LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data acquisition & state machine

Hi all,

 

I am working on a project that is capable of data acquisition, analyse, and record processes. I have to acquire data of temperature from 8-32 channels and that of pressure from 7 channels. After analysis, I have 48 outputs. I want to record raw data (acquired) and analysis data at the same time.

 

1) Is it possible to record two text files (raw data and analysis data records) at the same time?

 

I also want to adjust acquired sample rate but I have doubts about utilizing it in a state machine. For now, I have just used time elapsed function to acquire data once in 60 seconds.

 

2) How could I set sample rate of acquisition except using time elapsed function?

 

I also have one more doubt about timing. If I needed to acquire sample once in 60 seconds, but the analysis took more than 60 secs, what would happen?

 

3) How can I prevent data loss in this case?

 

I have not prepared a user interface yet.

 

4) How can I utilize it? Do I put graphs and indicaters in the same VI or is it better to prepare another vi just for user interface?

 

Thanks in advance

Egemen
0 Kudos
Message 1 of 2
(3,152 Views)

Hi Egemen

 

-          If we need to acquire data and analyze it at the same time we recommend the architecture producer-consumer to prevent data loss, and yes you can record two text files at the same time. Please take a look to this architecture.

-          https://www.ni.com/en/support/documentation/supplemental/21/producer-consumer-architecture-in-labvie...

-          Basically you use the first loop to acquire data and the second one to analyze and record data (using queues).

-          https://forums.ni.com/t5/Archive-TKB/Using-Producer-Consumer-Architecture-for-DAQmx-Read-and-Write-t...

-          You can also find examples about this architecture at the developer zone.

 

Regards

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