LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time on X axes (Multiple pressure sensors)

Solved!
Go to solution

Hi everyone,

I can not get time in X axes. X axes maximum show always same number with 'samples to read'

 

I asked chat gpt and read old forums in ni communty. Based on that I have added an empty array to chart history node of waveform chart and added "build waveform". But this did not worked. 

 

I just want to see time in x axes, which should run as normal seconds. I changed chart history to 30 because I just need to see what happened in last 30 seconds. 

Also I am not sure about all the sample rate, sample to read, there is also sample per channel in timing vi,  and number of samples per channel in read vi. I just need 2 sample in a second to see in write to measurement file later. 

0 Kudos
Message 1 of 6
(271 Views)

Hi Natig,

 


@Natig wrote:

I just want to see time in x axes, which should run as normal seconds. I changed chart history to 30 because I just need to see what happened in last 30 seconds. 


You are using a chart, not a graph…

You can display waveforms in the chart and it will display time on X axis! It would help to get rid of ExpressVIs and DDT wires…

Do you want to see absolute timestamps or relative time intervals?

 


@Natig wrote:

Also I am not sure about all the sample rate, sample to read, there is also sample per channel in timing vi,  and number of samples per channel in read vi. I just need 2 sample in a second to see in write to measurement file later. 


Right now you set a sample rate of 500S/s and read 200 samples. This will need 200/500 s = 0.4s.

Additionally there is a 500ms wait inside the loop - which should be DELETED!

 

When you need just 2S/s then you should set a samplerate of 2 (instead of 500)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(264 Views)

Hello Sir and all labview folk,

I have removed Express vis and DDTs but still I see high numbers in X axes. I want to have time start from 0 and continue. I have unchecked autoscale as well. 

 

0 Kudos
Message 3 of 6
(223 Views)

Hi natig,

 

see this:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(217 Views)

Natig_0-1739447744364.png

Hi, I think that is what you meant. But It does not start from 0 still.

Download All
0 Kudos
Message 5 of 6
(208 Views)
Solution
Accepted by topic author Natig

Hi Natig,

 


@Natig wrote:

Hi, I think that is what you meant.


No, this is not what I suggested…

 

  • Why do you manipulate the t0 of the waveforms from DAQ? I didn't say so…
  • Why do you need GetDateTime 3 times in the same loop?
  • Why do you subtract the current DateTime even though I suggested to use the timestamp from before the loop?
  • Why do you subtract the timestamp from your sample data (aka Y array in the waveforms)??? I manipulated the t0 value in the IPE structure!
  • Why do you manipulate the dt value in those waveforms instead of relying on your DAQ driver?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 6
(204 Views)