LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Real time acqusition and integrating data points every one sceond using PCI 6259

Hi, users,

I am acquiring the voltage between resistor in the electric circuit board (electric current: 1.5mA and resistor:100 ohms) through input DAQ assistant vi, while loop and write Laview measurement file vi. I attached the vi file below.

 

First, I want to acquire the data (analog voltage) with 1000 data points per 1 sec (in DAQ assistant vi., Acquisition mode : N samples, Samples to read: 1000, Sample rate: 1KHz) through PCI 6259 in real time.

 

Q1. Is it possible to display the data in real time under the conditions above?

When I run my vi, there is a delay to display the graph or chart.

 

Second, I want to integrate 1000 data points during a second and finally make one data point per second.

Q2. Which vi function do I use to integrate them and to make one data point ?

or

Is there an example vi?

 

Thanks

Leek2

0 Kudos
Message 1 of 2
(2,553 Views)

Dear Leek2,

You can't access the data from the DAQ Assistant until all of the points have been read. That said, you can read in less data points more often. So for your case set N to 100 and the rate to 1 KHz. Then stick a for loop around the DAQ Assistant and make N=10. This way you can read data every 100 points.

To average all of the points, use Add Array Elements.vi and then divide by the number returned by Array Size.vi. Do this after all of the points are acquired. Have a great day!

Sincerely,

Marni S.

0 Kudos
Message 2 of 2
(2,529 Views)