LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timestamp not showing up properly in waveform graph.

Solved!
Go to solution

Hello,

 

I have started using labview only couple of weeks before so forgive me if my question is stupid.

I am plotting a waveform graph from a quantity measured in real time. I take samples every three seconds and append them to array in a while loop using a shift register. On each iteration of the loop I pass this array to my waveform graph. Everything works great.

 

Now, I changed the X-axis to display absolute date and time. I set the offset value and multiplier at the start of VI and then plot a sample every 3 seconds. I want to show minor ticks on the X-axis, but they are not showing up. I have minor ticks and values enabled in the X-axis properties.

What am I missing?

0 Kudos
Message 1 of 11
(4,317 Views)

Hi zomboy,

 

welcome to the forum!

 

Well, you miss to attach your VI…

Best regards,
GerdW


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

Well, it's very big and messy. But this is what I am doing basically.

0 Kudos
Message 3 of 11
(4,296 Views)

Does the VI you attached show the same behavior? I don't see anything "suspicious" and all major ticks have their text. Minor ticks have no text.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 11
(4,291 Views)
0 Kudos
Message 5 of 11
(4,281 Views)

Hi zomboy,

 

I can also state as Norbert did: everything is nice at it should be…

 

On your VI: instead of using the value property of the graph you should initialize the shift register! And you should set XAxis.Factor too…

Best regards,
GerdW


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

I am on LabVIEW 2009 v9.0 if that has something to do with it.

0 Kudos
Message 7 of 11
(4,270 Views)
Solution
Accepted by topic author zomboy_

Hi zomboy,

 

your LabVIEW version could be related to this issue. With LV2014 everything is nice…

 

Try something like this:

check.png

Don't forget to switch OFF "ignore timestamps…" in the axis properties!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 11
(4,264 Views)

Your screenshot shows a different graph than the VI you posted contains:

a) Scale configuration (autoscaling, scale setting)

b) Position of the graph itself

But if i change a) in the VI to match your screenshot, i still see the text next to the major ticks.

 

Do you execute the VI from within a project?

 

Also please note that i'm using LV 2014 while you are using 2009. Can you double check with a more up-to-date version of LV if you can reproduce the issue there?

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 9 of 11
(4,262 Views)

Thank you for your prompt replies. This seems like a version issue to me. I ran the same thing on LabVIEW 14 and everything works great. I guess I need to figure out something else.

0 Kudos
Message 10 of 11
(4,251 Views)