LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set initial value(t0) in Digital Waveform

Hi,

 

I want to plot the digital waveform from x=5, ie time t0=5. I tried in many ways but I could not plot form 5.

 

In the build waveform, there is an element 't0'  in cluster, but it is in the time stamp format. 

Kindly share your Ideas. 

 

Regards,

 

Raja 

0 Kudos
Message 1 of 6
(3,731 Views)

Hi Rajaa,

 

It would be simple to do that. Please refer to the attached picture and VI. What you have done is almost correct, need to add "to Time Stamp format". Do not forget to set the properties of the Digital Waveform indicator to untick "Ignore Time Stamp" to be able to see the t0 has been changed.

 

Hope it Helps!
Sincerely,

 


Krisna Wisnu

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
0 Kudos
Message 2 of 6
(3,716 Views)

Hi,

 

Sorry, I forget to inform that I am using LabVIEW 8.2. Can you post that in 8.2

 

Regards,

 

Raja 

0 Kudos
Message 3 of 6
(3,711 Views)
As attached.
Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
0 Kudos
Message 4 of 6
(3,709 Views)

Hi,

 

Actually I want the Time scale in numbers(ie. 5,6,7....). I ignored the time stamp, but the plot is not visible.

I used number to Time Stamp converter as you mentioned, but it doesn't work.

I read the data from a file & then I convert into digital format & display in graph with shift in the initial value(t0).

I attached the vi.

0 Kudos
Message 5 of 6
(3,685 Views)

Hi Rajaa,

 

1. If you want to ignore TimeStamp, do not play around with t0. Let me show what happen if you play around t0:

- You do not changed the number of the data

- You change the t0, it is similar like zoom in or zoom out functions in oscillscope.

- Block Diagram:

 Block Diagram.png

- Front Panel with Index=0 (Notice X-axis changed into timestamp)

 Front Panel t0=0.png

- Front Panel with Index=5 (Notice the signal is shifted-zoom out)

 Front Panel t0=5.png

 

2. If you want to start at N-samples, let's say n=5, then you should not play around with t0. You should delay the signals with zero data or append zero data in the front end of the signals. Refer to the picture.

Delay 0 samples.png

Delay 5 samples.png

 

You may refer to the VI attached for the second part. Hope it helps!

Sincerely,

 


Krisna Wisnu

 

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
Download All
0 Kudos
Message 6 of 6
(3,673 Views)