LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timestamp multivariate time series

I´m looking for a function which can timestamp my multivariate time series manually.. I have a multivariate time series with 11 time series of data and want to place a timestamp, which I paste my self, on the start of the timeseries. I found the "Set Dynamic Data Attributes" which can timestamp one timeserie at a time, but isn´t there an easier way to timestamp all of the multivariate data? (I read the data from ASCII via the "TSA Read from File VI" and get the multivariate time series output)

0 Kudos
Message 1 of 4
(2,809 Views)

Hi Jesboy

 

Have you solved your problem?

 

If you wan't to manipulate with the timestamp of a multivariate time series I would recommend to use the "Build waveform" and "Get waveform component" functions. If you wire you multivariate data into a forloop then you will have a single waveform inside the for-loop where you can use these functions.

 

I have made an example for you that takes in a multivariate time series and set the t0 component (same as timestamp) to something different for each time series as defined in an array of timestamps, see attached VI which is doing it for 8 measurements since the size of the array with timestamps is 8.

 

Best Regards,

Anders Rohde

Applications Engineer

Natioanl Instruments Denmark 

0 Kudos
Message 2 of 4
(2,775 Views)

Hi Anders

 

Thanks for your solution, however the problem with this is that when I after the timestamping want to display the data on one graph, the timeline (absolut) will automaticly be set to year 1904, even though it has just been changed in the for-loop for all the timeseries (also if I paste the same timestamp to all of the timeseries..)

 

So I did it the "hard" way with 11 single "Set Dynamic Data" functions, this way I could also name all of the signals...

 

However I do have an additional question that I hope you can help me with allthough it is a bit different:

I would like to make a couple of events manually at specific times (which I again paste myself in absolut time) in my timeseries data, so that it can be displayed like an vertical line on the graph(s) with the timeseries data. Do you know a function or VI for doing this?

 

Hope you can help.

 

Best Regards

Jesper  

0 Kudos
Message 3 of 4
(2,771 Views)

Hi Jesper

 

In relation to the first question it sounds strange that you can't display it on a graph with my VI. My solution works on my computer if I plot the data on a Waveform Graph or Chart, right-click on the waveform and removes the checkermark at "ignore timestamp"

 

(see attached multivariat2.vi - I have set my result as default data)

 

Maybe you can upload your time series data file and your VI, so I can see what you are doing since it doesn't work?

 

 

In relation to your second question. What you want is to place a vertical cursor on the graph. We have an article explaining how to do this programmatically:

 

How Do I Programmatically Create a Cursor for a Graph in LabVIEW?

http://digital.ni.com/public.nsf/allkb/280875F12A53D4FD8625699E006F0BBA

 

 

Best Regards,

Anders Rohde

Applications Engineer

National Instruments Denmark 

 

 

 

0 Kudos
Message 4 of 4
(2,762 Views)