From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using counter to time stamp to text file

Dear all,

 

I am using counter to acquire singnal from quadrature linear encoder. I would like to time stamp the data acquisition to text file but I found that I can't choose to read time. Anyone know how to solve this problem?

 

Attachment is my program.

 

Thank you very much!

Best regards,

George

0 Kudos
Message 1 of 2
(2,087 Views)

Hi,

 

Have you seen these two articles?

http://digital.ni.com/public.nsf/allkb/68806B93A21355E98625726F0064822B

http://digital.ni.com/public.nsf/allkb/5D42CCB17A70A06686256DBA007C5EEA

 

Basically, it can be done, but be aware it may not be as accurate as you would like.  Follow the code in the first article and note that the easiest way would be to just use the basic File I/O VIs to write to text file, since the Write to Measurement File VI will only work with waveforms and you have counter output.

0 Kudos
Message 2 of 2
(2,040 Views)