Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Write measurement data to text file every 10 seconds for duration of 2 seconds, creating a new file each time.

Solved!
Go to solution

Greetings,

 

I am working on a data acquisition application that runs continuously and needs to log data at 10 second intervals for a duration of 2 seconds.

On every logging interval I have to create a new file that contains a log number in the filename (Test_1.txt, Test_2.txt, ...);

and add current time and date to the file header.

 

My question is how can I do this with what I have so far?

 

The attached vi is a concept of what I am trying to accomplish. The original application also has the DAQmx read functions in the surrounding while loop,

and some data manipulation. Outside the main loop I create and start DAQmx tasks.

 

Thank you for your help.

Best regards

Matej

/* A smart device is only as smart (stupid) as its programmer. */
0 Kudos
Message 1 of 2
(3,193 Views)
Solution
Accepted by topic author DsX

Hi,

 

Figured this one out myself. 😉

Here is the solution if anyone needs something similar.

 

Best regards

Matej

/* A smart device is only as smart (stupid) as its programmer. */
Message 2 of 2
(3,153 Views)