LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading analogue input and storing

Hello All,
 
Just need an example or help start.
 
I need to read analogue data from a multiplexer of 32 channels. I.e. read every corresponding voltage to the 32 channels and store or log the data to a file every iteration (32 readings) and then put a delay and continue to read the 32 readings again.
 
Read channel 1 log its data, read channel 2 and log its data, ......., read channel 32 and log its data and then put the 32 reading in a file. Delay, then start all over again.
 
 
 
 
 
 
0 Kudos
Message 1 of 8
(3,603 Views)
If I assume you're using NIDAQmx then there's also lots of examples under "Help...Find Examples....Hardware Input and Output....NIDAQmx".

If you're not using NI DAQ then please supply the information on what hardware you're using, the interface and the version of LabVIEW.
0 Kudos
Message 2 of 8
(3,593 Views)

Hi Bill,

LabView 7 and NIDAQmx card 6071e. Thoses examples in the  find example .... Hardware Input and Output.... does it show how to store or send the data to file,

Sorry i am new to Labview.

0 Kudos
Message 3 of 8
(3,580 Views)
Hi

There are many Write to file examples available in the Example Finder. They can be located in

Hardware Input/Output >> DAQmx >> Analog Measurements >> Voltage. In here you will find examples that Write Data to File.

Kindest Regards

YatinM  | NIUK & Ireland
0 Kudos
Message 4 of 8
(3,566 Views)

Hi There,

 

All the examples in Hardware Input/Output >> DAQmx >> Analog Measurements >> Voltage. are acq and graph or cont acq and graph.

None of them is diplaying data

0 Kudos
Message 5 of 8
(3,548 Views)
Hi

I do not understand what you mean by 'they are not displaying data' The graphs are displaying the data that you are acquiring. In what format do you want to display the data in? Graph, numerics?

The Cont Acq&Graph Voltage - To File (Binary).vi acquires data and writes it to a binary file, this can be editted so that it writes to a text or spreadsheet file. It also has a graph indicator that is displaying the data.

Kindest Regards

Yatin | NIUK & Ireland
0 Kudos
Message 6 of 8
(3,546 Views)

Will this example fit my requests below or i have to do some changes, if yes any help will be appreciated

Read channel 1 log its data, read channel 2 and log its data, ......., read channel 32 and log its data and then put the 32 reading in a file. Delay, then start all over again.
0 Kudos
Message 7 of 8
(3,545 Views)
Everyone has a specific (and usually unique) problem to solve and few examples if any are turnkey solutions. The examples are meant more to guide you and show you the basics of how to do things in LabVIEW, tickle the old gray matter as it were.

I would take YatinM's suggestion and look particularly at the "Cont Acq&Graph Voltage-To File(Binary).vi". This VI will run on your DAQ card so you have the added advantage of actually using your hardware.

And I noticed YatinM is from the land of one of my favourite beers..."Murphy's Irish Stout".
0 Kudos
Message 8 of 8
(3,528 Views)