LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Index array and build array from each element

The test station is currently setup with 7 differential pressure transducers.  The DAQmx read function returns the voltage from each pressure transducer in an array of 7 elements.  I would like to build an array from each channel over a specified amount of time, average each array and then apply the proper scaling to each channel.  The arrays are then cleared and the build arrays over "x" amount of time starts again.

 

I've attached a simple vi showing something I know will work but I feel like there must be a better way to go about this, probably something fundamental I'm overlooking.  

 

Thanks.

LabVIEW 2016 - Windows 7

CLAD
0 Kudos
Message 1 of 5
(3,710 Views)

Could you post for LV 2012?

0 Kudos
Message 2 of 5
(3,703 Views)

Just a quick code I would try something like this. You will have 7 columns each with 100 elements. Getting the readings would go in place of the "Readings In" constant.

 

Averaged Readings.png

0 Kudos
Message 3 of 5
(3,698 Views)

Acquistion Loop Will Read Data From the DAQ for N Times and The Average of all the channels are calculated

 

Avg DAQ Values.png

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 5
(3,666 Views)

@MeCoOp wrote:

The test station is currently setup with 7 differential pressure transducers.  The DAQmx read function returns the voltage from each pressure transducer in an array of 7 elements. [...]


Why are you using software timed single point acquistion in the first place?

Use hardware timed acquistion and you automatically receive an array per channel.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 5 of 5
(3,645 Views)