I want to read data continuously from some sensors (Pressure, Temperature, etc...), and do intermittent analog output on demand.
I am using an event case for the analog output, so that when I push a button, LV sends an analog signal to a NI Chassis for output.
If I put the Analog output and data acquisition block inside the same loop without the event structure (not on demand), everything works fine.
If I put the Analog output event case (on demand) and the data acquisition block in the same loop, the graph only gets updated once after the entire signal has been sent.
Bottom line: I want LV to always take sensor data, and send commands to the analog output when I push a button.
I attached my code for reference. (The Multiple Stage Square Wave is a sub-vi).
Note: the waveform I am using for the output signal is constructed once based on user input. the pulse and waveform functions in labview did not give me the control I needed.
Thanks,
-JTech452