03-03-2013 02:36 PM
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
03-04-2013
07:15 PM
- last edited on
05-09-2025
09:56 PM
by
Content Cleaner
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.
- Basically you use the first loop to acquire data and the second one to analyze and record data (using queues).
- You can also find examples about this architecture at the developer zone.
Regards