LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract time from a dynamic wire?

I tried doing the "one file with append" option, but the problem is that it creates only one file and keeps appending data to it everytime I run the application.

I chose the "multiple files" option so that it would create a new file (with the date & time in the filename) everytime I run the application.


Even within the same run, I could set "reset" to true and have it make a new file.


Message Edited by emerino on 02-28-2008 11:13 AM
0 Kudos
Message 11 of 16
(1,272 Views)
For some reason, I thought that the files were writing 1 sample at a time , 1 sample per file, to numerous files.  Now that I have the rest of the code, I can see it's not behaving that way.
 
Have you tried what I said in message 9  "In the Read from Measurement File in PostProcessor, try the setting that is Absolute time rather than Relative."?
 
When I did that, then the waveform graph showed the correct start time.
 
0 Kudos
Message 12 of 16
(1,260 Views)
It did?


Hmmm....I tried it too and it showed two minutes elapsed from start to finish...for a 63 seconds interval!

(see attached files)



Download All
0 Kudos
Message 13 of 16
(1,255 Views)
By the way.....if I change TakeDAQDataSave2File and add the small "time extraction" routine (see attached JPG), then it does display the correct time.

The time stamp updates several times per second....instead of just once/sec  like it happens later in the PostProcessor VI
0 Kudos
Message 14 of 16
(1,249 Views)
It seems that for some reason it will disregard the time saved in the LVM file and will just create its own making one line/second, so if the file has 120 lines of collected data, the time will show as 120s (2 minutes)
0 Kudos
Message 15 of 16
(1,224 Views)
^
0 Kudos
Message 16 of 16
(1,208 Views)