You aren't passing any time information at all to the write function. Your loop spins without any function to determine time between iterations either. The wiring of the tab control to the case statement is also odd.
Try getting the current time and building a waveform data type and pass that to the write.
The sample rate of your pic could be totally irrelevant to how often the loop iterates. It really depends on how you wrote the subVI.
Try getting the current time and building a waveform data type and pass that to the write.
The sample rate of your pic could be totally irrelevant to how often the loop iterates. It really depends on how you wrote the subVI.