LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart digital display format keeps changing

I am running Labview 8.5.1 on windows XP. My digital display for my chart keeps changing to %.2f format when I run the VI.
I tried setting the display format to scientific but as soon as I run the VI, it changes back to floating point. I have included the VI. By the way, this did not work for 8.2.1
Does anyone have any suggestions?
Download All
0 Kudos
Message 1 of 15
(4,004 Views)

Joseph Loo

 

I was unable to reproduce your problem.  I changed the format to scientific on all the front panel digital controls and they will not change back for me.  I wonder if you need to use the Edit-> Make Current Values Default option in the LabVIEW menu. 

 

I attached a copy of your vi. Modified with the new format.  Let me know if it loads correct. 

Sorry I was not able to the find or load the init portion of your vi.

 

Regards,

 

-SS



0 Kudos
Message 2 of 15
(3,985 Views)

You need to run with both VI. The second VI adjusts a the digital display and legend. It seems to affect the format of the numbers. In general, I only need to have the top two digital display to be scientific. The pressure goes from 10e-6 torr to 1000 torr.

If it is not reproducible, then it might have to do with some kind of configuration issue. I have run into that issue before.

0 Kudos
Message 3 of 15
(3,982 Views)
Can you please provide Chart_Time-Init_No-Hist.vi and I will try running with the other vi.  I don't think this is a standard LabVIEW file.  -SS


0 Kudos
Message 4 of 15
(3,959 Views)

I thought I had put another message in with regard to it. I have created an llb file with all the VI that you should need (cross my fingers). I did not realize I had other ones.

0 Kudos
Message 5 of 15
(3,952 Views)
Hi Joseph,

I too am unable to reproduce this issue.  Each time I run the program, the Torr scale resets to its default range of 1E-2 - 1E-4, but it always remains Scientific.  If you can't get past this issue, you could try brute forcing it by adding the YScale.Format property node and setting the value to '1' (Scientific).  Let me know if this helps.
0 Kudos
Message 6 of 15
(3,934 Views)
Under 8.2.1 I did that. It keeps resetting. I think it has to do something when I make the digital display visible and invisible. Did you try it with the llb file?
0 Kudos
Message 7 of 15
(3,932 Views)

Joseph Loo,

Thank you for posting as an llb and saving in the known good state.  This makes repeating the problem very easy.

I can definitely repeat the problem and I agree it is annoying:)  And it does seem related to the property nodes being set.  I was curious why does the property node go invisible in the sequence?  I agree this should not change the formatting but I was interested why you would want to make the legend invisible followed by visible again?

Regards,

-SS



0 Kudos
Message 8 of 15
(3,889 Views)
Whoops!  For some reason I thought you meant the Y-scale values kept reverting back to floating point.  Now I notice that the values in the Chart's Digital Display do indeed reset each run.  I ran the application with highlight execution enabled and observed what you stated: each time the Digital Display's visibility is toggled, the Display Format switches back to floating point.  In your application, you can fix this by modifying the Legend_Left-Hor.vi.  In sequence frame "1", you need to add the DigDisps[] property node.  Feed the reference array into a FOR loop with auto-indexing and the indexed reference into a Format property node.   Wire a '1' to the input so that the format changes to "Scientific".   If you only want the first two controls to be scientific, add a conditional terminal to the FOR loop.  When i == 1, stop looping.



I will report this issue to R&D.


Message Edited by Pakman on 06-05-2008 12:47 PM
Download All
0 Kudos
Message 9 of 15
(3,886 Views)
When I was creating the VI, I wanted the digital display to align with the legend. The only way to get the correct values, I had to make the digital disply invisible then make it visible.
0 Kudos
Message 10 of 15
(3,876 Views)