01-01-2016 11:17 AM
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
01-01-2016 11:37 AM - edited 01-01-2016 11:49 AM
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)
01-01-2016 01:08 PM
Thanks a lot
01-03-2016 12:50 PM
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:
Bob Schor
01-04-2016 03:15 AM
Thank you Bob, yes it works.