07-25-2013 07:29 AM
Hi,
A stuipidly simple question I know, but I'm trying to log data to a TDMS file, only while a digital input(switch) is true). I think I need a DAQ loop and a Logging loop, but I'm unsure how to correctly set up the logging loop. Is it case of just putting the logging loop inside a case structure?
Thanks,
Kevin
07-25-2013 07:39 AM
I would recommend having a DAQ loop and a Logging loop. To do this properly, you should look into the Producer/Consumer architecture. In short, you use a queue to send the DAQ data to the logging loop.
Now for you extra requirement. Use a case structure so that the daq data only gets enqueued when your line is true.