Difference between revisions of "Component: MIAC NXT / ECU (MIAC Module)"
From Flowcode Help
Jump to navigationJump to search| Line 52: | Line 52: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| Line 57: | Line 59: | ||
==Macro reference== | ==Macro reference== | ||
| + | ===TransistorOutputState=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 80: | Line 83: | ||
| + | ===DisplayPrintFormattedNumber=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 103: | Line 107: | ||
| + | ===DisplayPrintFloat=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 126: | Line 131: | ||
| + | ===DisplayGetCursorPosition=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 144: | Line 150: | ||
| + | ===ReadTransistorOutputCurrent=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 162: | Line 169: | ||
| + | ===RelayOutputState=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 185: | Line 193: | ||
| + | ===ReadUSBConnected=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 198: | Line 207: | ||
| + | ===InputAnalogByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 216: | Line 226: | ||
| + | ===ReadKeypad=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 229: | Line 240: | ||
| + | ===ReadEEPROM=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 247: | Line 259: | ||
| + | ===DisplayClear=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 260: | Line 273: | ||
| + | ===DisplayPixel=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 288: | Line 302: | ||
| + | ===WriteEEPROM=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 311: | Line 326: | ||
| + | ===DisplayClearLine=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 329: | Line 345: | ||
| + | ===DisplayPrintASCII=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 347: | Line 364: | ||
| + | ===TransistorPWMDuty=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 375: | Line 393: | ||
| + | ===DisplayPrintString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 393: | Line 412: | ||
| + | ===Print=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 431: | Line 451: | ||
| + | ===TransistorPWMEnable=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 459: | Line 480: | ||
| + | ===DisplayCursor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 482: | Line 504: | ||
| + | ===InputDigital=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 500: | Line 523: | ||
| + | ===DisplayPrintNumber=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 518: | Line 542: | ||
| + | ===InputAnalogInt=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 536: | Line 561: | ||
| + | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Revision as of 11:51, 3 February 2023
| Author | Matrix TSL |
| Version | 1.1 |
| Category | MIAC Module |
Contents
- 1 MIAC NXT / ECU component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 TransistorOutputState
- 5.2 DisplayPrintFormattedNumber
- 5.3 DisplayPrintFloat
- 5.4 DisplayGetCursorPosition
- 5.5 ReadTransistorOutputCurrent
- 5.6 RelayOutputState
- 5.7 ReadUSBConnected
- 5.8 InputAnalogByte
- 5.9 ReadKeypad
- 5.10 ReadEEPROM
- 5.11 DisplayClear
- 5.12 DisplayPixel
- 5.13 WriteEEPROM
- 5.14 DisplayClearLine
- 5.15 DisplayPrintASCII
- 5.16 TransistorPWMDuty
- 5.17 DisplayPrintString
- 5.18 Print
- 5.19 TransistorPWMEnable
- 5.20 DisplayCursor
- 5.21 InputDigital
- 5.22 DisplayPrintNumber
- 5.23 InputAnalogInt
- 5.24 Initialise
- 6 Property reference
MIAC NXT / ECU component
Component to drive the MIAC NXT / MIAC ECU range of hardware.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_MIAC_NXT_Component_Source.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_MIAC_NXT_Component_Source.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
TransistorOutputState
DisplayPrintFormattedNumber
DisplayPrintFloat
| DisplayPrintFloat | |
| Prints a formatted floating point number to the display | |
| Number | |
| DecimalPoints | |
| Number of decimal points to display | |
| Return | |
DisplayGetCursorPosition
| DisplayGetCursorPosition | |
| Gets the current pixel position of the cursor within the coordinate space | |
| Axis | |
| 0=X, 1=Y | |
| Return | |
ReadTransistorOutputCurrent
RelayOutputState
ReadUSBConnected
| ReadUSBConnected | |
| Checks to see if there is an active USB cable connected to the MIAC. Returns 1 if there is a USB cable present, otherwise returns 0. | |
| Return | |
InputAnalogByte
| InputAnalogByte | |
| Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-255 | |
| Channel | |
| Range: 1 - 8 | |
| Return | |
ReadKeypad
ReadEEPROM
| ReadEEPROM | |
| Read a single byte from the EEPROM. | |
| Address | |
| Return | |
DisplayClear
| DisplayClear | |
| Clears all text from the display | |
| Return | |
DisplayPixel
| DisplayPixel | |
| Sets or clears a pixel at location X, Y. | |
| X1 | |
| Y1 | |
| State | |
| 0=Off / 1=On | |
| Return | |
WriteEEPROM
| WriteEEPROM | |
| Write a single byte to a location in the EEPROM. | |
| Address | |
| Data | |
| Return | |
DisplayClearLine
| DisplayClearLine | |
| Clears a single line of text from the display | |
| Line | |
| Line to clear. Range 0 to CharacterHeight - 1 | |
| Return | |
DisplayPrintASCII
| DisplayPrintASCII | |
| Prints a single ASCII character to the display | |
| Character | |
| Holds an ASCII value e.g. 'A' | |
| Return | |
TransistorPWMDuty
DisplayPrintString
| DisplayPrintString | |
| Prints a string of ASCII characters to the display | |
| Text | |
| Enter the text or variable to print to the display | |
| Return | |
TransistorPWMEnable
DisplayCursor
InputDigital
| InputDigital | |
| Reads one of the input channels ( IN1 - IN8 ) as a digital value with range 0-1 | |
| Channel | |
| Range: 1 - 8 | |
| Return | |
DisplayPrintNumber
| DisplayPrintNumber | |
| Prints a number to the display as an ASCII string | |
| Number | |
| Enter the number or variable to print to the display | |
| Return | |
InputAnalogInt
| InputAnalogInt | |
| Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-4095 | |
| Channel | |
| Range: 1 - 8 | |
| Return | |
Initialise
| Initialise | |
| Starts up the MIAC IO and display. | |
| Return | |