Component: Simulation External Input (Runtime Tools): Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
A simulation only component designed to allow a single digital pin to be toggled at a set frequency. Allows things like switch presses or external square waves to be used with the simulation. | A simulation only component designed to allow a single digital pin to be toggled at a set frequency. Allows things like switch presses or external square waves to be used with the simulation. | ||
==Component | ==Component Source Code== | ||
Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_Sim_External_Input.fcfx FC_Comp_Source_Sim_External_Input.fcfx] | |||
==Detailed description== | ==Detailed description== | ||
| Line 32: | Line 34: | ||
==Examples== | ==Examples== | ||
| Line 199: | Line 203: | ||
|- | |- | ||
| colspan="2" | Number of pulses to output. 0 = Run forever. > 0 = Output the selected number of pulses | | colspan="2" | Number of pulses to output. 0 = Run forever. > 0 = Output the selected number of pulses | ||
|} | |} | ||
Revision as of 17:51, 9 November 2022
| Author | Matrix TSL |
| Version | 1.1 |
| Category | Runtime Tools |
Simulation External Input component
A simulation only component designed to allow a single digital pin to be toggled at a set frequency. Allows things like switch presses or external square waves to be used with the simulation.
Component Source Code
Please click here for the component source code: FC_Comp_Source_Sim_External_Input.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
| Control_Pulse | |
| Controls if the toggle input is enabled or disabled allowing you to stop and start the waveform. | |
| State | |
| 0=Disabled, 1=Enabled | |
| Return | |
| Get_Pulse_Count | |
| Reads the number of pulses remaining in the current run. The Pulse Count property needs to have an initial value > 0 to switch on the pulse counting mode. | |
| Return | |
| Set_Space | |
| Overrides the component property setting allowing for a variable frequency input or adjustable Space timings. | |
| Delay | |
| Delay between transitiions in milliseconds. | |
| Return | |
| Set_Frequency | |
| Allows the frequency to be changed on the fly | |
| Frequency | |
| Return | |
| Set_Mark | |
| Overrides the component property setting allowing for a variable frequency input or adjustable Mark timings. | |
| Delay | |
| Delay between transitiions in milliseconds. | |
| Return | |