LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read datalog file.

Hello,

I modified the "Read Datalog.vi" from the Examples given with LabVIEW to create a .vi that reads and displays up to eight channels of data from a datalog file. I am interested as to whether or not it is possible to read a previous trace from a datalog file. I have created a .vi that allows the user to read traces sequentially but does not give the user the ability to view previous traces. Is it possible to do this or can datalog files only be read in sequence? If it is possible, I have attached the "View.vi" that I have created and a datalog file in which we collected 4 channels of data at 2000Hz with 0.500s pretrigger duration for comment and any possible solutions (that is, a "display previous trace" button).

Thank you for your
time. Any help much appreciated.

Shane W.
0 Kudos
Message 1 of 3
(2,667 Views)
You can view any record in your data file, provided that you wire the record number as input to the read file vi.
I have modified your vi to add a "previous record" button. Avoid passing negative values as input parameter. An "U32" coertion can do the trick.
Since I have problems in posting files, I just attach a JPEG of the solution.
Hope this help...
Chilly Charly    (aka CC)
Message 2 of 3
(2,667 Views)
Thanks, that was exactly what I needed!
0 Kudos
Message 3 of 3
(2,667 Views)