Performing I/O Using Case Structures in SCTLs
- Updated2025-03-06
- 1 minute(s) read
You can use a Case structure inside a single-cycle Timed Loop (SCTL) to perform I/O for different cases or states of the application. This state machine architecture runs at the rate of the single-cycle Timed Loop, and the state transitions occur at a frequency that is less than the frequency of the loop.
When you use a Case structure inside a single-cycle Timed Loop, the combinatorial logic delay required to evaluate the case selector is proportional to the width of the selector input data type and the number of cases. The combinatorial logic delay introduced by output tunnels is proportional to the number of cases.
LabVIEW executes all cases in the Case structure every clock cycle, and then uses a multiplexing protocol to determine the output. To avoid unexpected behavior when using Case structures with digital I/O inside single-cycle Timed Loops, you need to understand the way LabVIEW synchronizes I/O in a single-cycle Timed Loop.