LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Record digital data

I am having a problem writing digital data to a file. I am using the example VI Multi-Function-Synch AI-Read Dig Chan.VI
 
I am aquireing 6 channels of digital and 15 channels of analog synchronusly (at the same rate), and I need to write the time stamped digital data to a file ordered in columns. When I convert the data to analog then use the Write LVM express VI it records all the data into one column. I just need to save the time stamed digital data to a file. It should not be that hard to do, I just can't figure it out.
 
Thanks
Scott Donahue
0 Kudos
Message 1 of 2
(2,469 Views)
Scott,
I took a look a the example program you mentioned and have made some edits to it in order to get the digital data and analog data in the same file with the "time stamps". The time stamps can actually be calculated by looking at the T0 and adding dT to it depending on which sample you're concerned with. For example, if T0 = 12:01:00.00 pm and you are sampling at 10 samples per second, then dT = 0.1 seconds and the fifth sample's time stamp would be 12:01:00.50 pm. Hopefully the attached code will act as a guide to solving the problem and may even completely solve the problems itself. Post if you have any more questions.
 
Best Regards,
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(2,444 Views)