LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ and Event Structure Data Output

I am writing a program in LabView using DAQ inputs and outputs.  I am using LabView 2009 and cDAQ-9172 chassis.  This program lets a user set a certain pressure, then at some time in the future the user presses a front panel button, and data read from a single channel and stored at a high rate.  I have modeled the program around this example.

 

https://decibel.ni.com/content/docs/DOC-5712

 

I am displaying the data on a graph, but also want to do mathematical operations on some of the data.  I want to break the data out into indicators.  This program will display the information correctly on the graph, but will not write to the indicators until the event structure is in its "timeout" wait clock.  IF I adjust the timeout time to more time, the data is displayed on the indicator longer.  But this obviously slows the program down too.  I have tried several methods of breaking data out of the DAQ Read function with the same results.  Can someone tell me what I am doing wrong?

 

0 Kudos
Message 1 of 3
(2,619 Views)

I don't see a need for the event structure.  You can accomplish what you want with a case structure.  If you have to handle other events, do that in another loop.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,618 Views)

Thank you for the suggestion.  I have used a case structure in place of the event structure, and it works the same.  However, I get no output to the indicators when using the case structure.  They all read zero.  So, I guess the question is still there.  How can I display to the graph and indicators at the same time?

0 Kudos
Message 3 of 3
(2,615 Views)