LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display time stamp on waveform graph

Hi Everyone, I have this problem. For my waveform graph, I have already changed the display format to absolute time.

However the time doesn't tally with the one the below when I run the program. How do I go about doing it so that the time will show exactly

the same on the bottom right hand side. Time-Stamp??? Help will be greatly appreciated.

0 Kudos
Message 1 of 7
(5,989 Views)

Posting an image of the front panel really does not do any good. The graph gets the timestamp information from your data or from writing to a property node. You did not post an image of the block diagram so can't say much except you did something wrong on the diagram. Look at the shipping examples or post the code/diagram.

0 Kudos
Message 2 of 7
(5,986 Views)

 You are right. I understand what you mean. I have posted the image of my block diagram. U guys will have a clearer picture and troubleshoot

what is wrong. Your help is greatly appreciated.

 

0 Kudos
Message 3 of 7
(5,953 Views)
You are writing a 1D DBL array to the graph. A 1D DBL array contains no timing information so there is no way the graph can represent the correct information on the x axis. Without seeing the actual code and what is acquiring the data, I have no way to tell what modifications need to be made. At some point, you would have to get a timestamp and dt information. You could use this to create a waveform data type or pass the timestamp and dt directly to the graph.
0 Kudos
Message 4 of 7
(5,934 Views)

hi PSB Singapore,

 

Since you are from PSB, you may contact me at ian_fung at yahoo dot com. My office is around RedHill area... 

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 5 of 7
(5,923 Views)

What do you mean by dt information? I am keen to learn more. 

I have searched a few examples and I want to see something like this. This one is a waveform chart.

0 Kudos
Message 6 of 7
(5,916 Views)

Dt is delta time or the time between samples. That example is setting the t0 or start time. The only reason it works is that the Wait (ms) is set to one second which is the default dt. Anything else, would have to be wired to the XScale Multiplier property. Look at example called Real Time chart. And, as I mentioned, you can use a waveform data type. It's a cluster that contains t0, dt, and a y array. If you turn on context help (which you should always have on) and move your mouse over the graph on the diagram, the context help window will show you how a regular cluster can be used.

 

At this point, only you know the sample rate, etc of the data since you did not provide the code. No one but you even knows what hardware you are using. If you wrote it, it should be easy for you to modify the returned data.

0 Kudos
Message 7 of 7
(5,909 Views)