LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring temperature and flow with USB 6009

Thank you Lynn! I really appreciate it!! Think this is all I needed;)

0 Kudos
Message 11 of 14
(550 Views)

One more question; 

 

I don´t have the equipment yet to test the program, but am I displaying the data as only 500 samples at the time now? Meaning that I will have to "wait" for the loop to get the next 500?

 

And I alos want to get the max value of y from the graph, and at what x-value this is. Is that somehow possible? 

 

Thanks again:)

Regards

0 Kudos
Message 12 of 14
(533 Views)

here is the vi

0 Kudos
Message 13 of 14
(530 Views)

Ingrid,

 

Reading 500 samples at a time with a 1000 sample/second rate will result in two readings per second. So you will wait 500 ms for the next read.  Updating th efront panel two times per second is reasonable.  Not too fast for the user to see and understand what is happening and not so slow as to make the user think the program is unresponsive.

 

You can use Array Max and Min on the Array palette to get the maximum value and the index at which it occurs.  If you apply this to the 500 point array coming from DAQmx Read, you only get the maximum for the last 500 points.  Since you are using charts, not graphs, you can use the History Data property node for the chart to get all the points stores in the chart history and then yuse ARray Max & Min on that.

 

Lynn

0 Kudos
Message 14 of 14
(516 Views)