LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in displaying actual elapsed time in waveform chart

Hi,

 

I created a 256 samples per second random signal with (1024 samples to have 4 seconds). I want to display this waveform on a chart with actual elapsed time in seconds on x-axes.

 

Bellow is my code structure. Since I have 256 samples per second, I set the chart's Multiplier to 1/256=0.00390625, and Display Format to "relative time".

 

I have a problem: Some time labels doesn't go true and is repeated, some others is missed.

 

I have attached my simple VI, and images of the problem. Any help would be much appreciated.

 

Thank you,
Barana

 

00.PNG

 

01.png

0 Kudos
Message 1 of 5
(3,718 Views)

Change the format to also show fractional seconds.

 

Als, the resolution is limited to milliseconds, so you need to decide between 4ms and 3ms.

 

Since your total duration is short, You could also use a simple numeric format, just displaying seconds, for example.

 

(btw: wiring [i] to index array is equivalient to autoindexing. Now you don't even need to wire N of the seond loop. I assume you are using two instead of one loop to simulate some process. Otherwise you could place everything inside one FOR loop, of course)

Message 2 of 5
(3,705 Views)

Thanks a lot

0 Kudos
Message 3 of 5
(3,677 Views)

By your scaling rules, the X axis is in Seconds.  Instead of displaying it using a Time format, change the X axis display format to Floating Point to get the following:

 Time in Seconds.png

Bob Schor

Message 4 of 5
(3,607 Views)

Thank you Bob, yes it works.

0 Kudos
Message 5 of 5
(3,580 Views)