LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Timestamp -> DBL conversion

I'm using the [DBL -> TimeStamp] conversion VI to modify the t0 property of a waveform. This technique was taken from NI-Scope Express.vi, and sets the relative display position of a plot on a waveform graph.

The problem is that this seems to be a one way conversion and it is not possible to recover the DBL value from the converted TimeStamp. Not only is there no available VI to perform the reverse [TimeStamp -> DBL] conversion, but no property of the TimeStamp shows that the value is changing (I used a probe with not only the value, but everything else available on the property nodes). I know the TimeStamp changes though, even when it always says zero, because when the DBL going in is changed, the position of the plot on the waveform graph shifts appropriately as the DBL value is changed.

After much wrangling, I've just realized I can add the t0 DBL as an extra waveform component to recover it later. This seems cumbersome though, duplicating information, and buggy that any number you convert into a timestamp is used appropriately, but cannot be recovered, and always says 0 when probed.
0 Kudos
Message 1 of 3
(3,538 Views)
Hi m3nth,

To convert your timestamp to DBL use the 'DBL' function in the conversion palette. This will take a timestamp as an input.
Message 2 of 3
(3,537 Views)
Ding ding ding!

So simple and obvious I completely overlooked it! Boy do I feel bright... no wonder there weren't any other posts asking about that 🙂
0 Kudos
Message 3 of 3
(3,529 Views)