LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When building an appllication the data display changes between VI and EXE

I have an application where data is written in exponential notation (1.0E-9) into a file and then read and displayed. In the VI this works fine, but when I build an application containing this VI, the graphical display is wrong, even though the values written into the file are the same.

 (See pictures). My suspicion is that the scale formatting gets lost.

How can I solve this ?

 

0 Kudos
Message 1 of 14
(3,227 Views)

Hi rpweber,

in which file format do you have your data? In your Data_Viewer_Pressures.vi is no graph. Can you provide a file with dates in it?

Mike

Message 2 of 14
(3,220 Views)

The VI you posted simply reads the file. Where is the VI that actually has the graph?

 

With respect to  your code:

 

  •  I'm not sure why you're using the Read Characters From File function. This is an old function. I'm guessing you can use the Read From Spreadsheet File.
  • I suspect your method for getting the data and time can be simplified. My first look would be at using Scan From String. If you provide an example file this can be looked at.
  • There's no need to have separate Index Array functions. Simply resize it to get additional rows.
  • Why do you say "It is essential to specify 0.0E+0 as default"?
Message 3 of 14
(3,183 Views)

Hello Mike,

i think I have posted the wrong VIs, so here are the right ones as a llb. plus the text file.

Download All
0 Kudos
Message 4 of 14
(3,158 Views)

Hi rpweber,

your text file contains exactly the values you see in your graph. How do you write this data to the file? I think there is the problem. If you read 1.0e-7 or 1.0e-8, then you can only display this values and that´s what you do.

 

Mike 

Message Edited by MikeS81 on 08-26-2008 09:12 AM
Message 5 of 14
(3,154 Views)

Hello Mike,

The fact that really confuses me is the difference in the display between VI where it works fine and the corrupted display when this VI is in an application. I have tried it with changing e.g. 1.0E-9 to 1.00E-09, but this doesn't help either.

0 Kudos
Message 6 of 14
(3,144 Views)

Hi rpweber,

so you read in your vi from the same file?

Mike 

Message 7 of 14
(3,142 Views)

Hi Mike,

thats exactly what I am doing. In the application I use the same VI to read this data from the same file, but the VI is called by another one.

0 Kudos
Message 8 of 14
(3,121 Views)

Hi rpweber,

i can´t believe that it´s the same file, because the values in your "correct" graph are not in your file.

 

Mike 

Message 9 of 14
(3,118 Views)

Hi Mike,

can you please try and build an application from the data viewer VI?

 

0 Kudos
Message 10 of 14
(3,102 Views)