LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

executable malfunction

Hi,
I have a perfectly working VI, but when I turned it into an executable, it doesn't work as perfect. Basically I need for it to read the default setting of some registers, and in the executable, the first number is always messed up. But in the VI itself, everything is always fine. I have checked that all the necessary files are included.
Thanks.
0 Kudos
Message 1 of 4
(2,768 Views)
what do you try to say with messed up?... It's mean is corrupted, changing, zero... If you need to read initial values, i recommend to use "Configuration Files (inside File I/O)" they are a strong way to ensure read correct values, and keep configurations settings, and so on... Anyway, could you be more specific, please?.

Regards,

JFT
0 Kudos
Message 2 of 4
(2,768 Views)
Oh sorry, I mean, it reads back a bunch of registers' setting inside a chip through a parallel port. So in the VI itself, it reads back the correct value for the all the register. But in the executable, the first number is wrong, it gives me a decimal number for some reason, and the values should always be a whole number. But if I run it again and again after the first time, then it's right. So basically in the executable program, the first time you run it, the first number is wrong.
0 Kudos
Message 3 of 4
(2,768 Views)
I don't know, really, what is happening... maybe is a problem related to the parallel port for example. Anyway, if the decimal number you obtain is near to the correct value, you can change the format and precision property of the control (or indicator) according your needs, or you can force the correct value in the first iteration only if it can... Meanwhile, you could try creating a installer version of the VI, and see if the problem persist.

Lucky,

JFT
0 Kudos
Message 4 of 4
(2,768 Views)