From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time and freq scale

Hello all,

I am measuring data from my device and I showing my datas from waveformchart. But I want set my waveformcharts X scale for relative time (real time from computer) and my scale

must be between 0-10 seconds like this: 14:15:23 - 14:15:33 (10 seconds)

and my fft graphs X scale must be bewtween 0-1.

 

How can i set this paremeters for my time and fft graphs.

 

Thanks.

 

 

0 Kudos
Message 1 of 8
(3,015 Views)

Hi, YFA

 

Relative time scale, you can check waveform chart properties.

 

waveformchart2.PNG

 

Result

 

waveformchart1.PNG

 

Another question about set scale to one range.

 

you can use property node to set.

 

aa.png

 

I hope it is helpful for you.

 

 

Patrick

Certified LabVIEW Developer
0 Kudos
Message 2 of 8
(2,979 Views)

Hello Patrick, Thank you for your reply.

 

Check my capture. This result with your solitions.

But My X-Scale is frequency scale and its must be between 0-1000 (My sample rate 1khz), every time. I see this > 1000 now.

 

My X Scale setting is Relative Time HH:MM:SS for time graph. But its X-scale range everytime changing. Some times 10 second, sometimes more vs.

 

I cant fix this values.

 

 

0 Kudos
Message 3 of 8
(2,955 Views)
You haven't shown your code but I think you should be using a graph instead of a chart. With each iteration, a chart will append the new data to the old and the scrolling of the x axis is normal.
Message 4 of 8
(2,951 Views)

Hi, YFA

 

Dennis is right, you can use waveform graph to solve this problem.

 

Waveform chart will stack your data, so your x scale range will increase.

 

You can clear history data of waveform chart.

 

waveformchart3.PNG 

 

 

Patrick

Certified LabVIEW Developer
0 Kudos
Message 5 of 8
(2,927 Views)

Hello patrick and Dennis.

 

İf am I  right, with your solutions i clear my data from graph. But i need store my datas, I just updating real time X-scale between my range.

 

My project is on attachment.

 

0 Kudos
Message 6 of 8
(2,917 Views)

Hi,YFA

 

I saw your attachment but I cant find any block diagram.

 

If you need to store data, you can save it to excel file.

 

The following picture that what I saw in your project.

 

e2.PNG

 

Patrick

 

 

Certified LabVIEW Developer
Message 7 of 8
(2,898 Views)

Hello Patrick,

This vi reading online data from my device. 

You cant see block diagram because this vi run when you open it.

Just make it sub vi (drag any empty block diagram) and click "open front panel" from right mouse pop menu.

 

 

0 Kudos
Message 8 of 8
(2,878 Views)