LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application does not work while LabView editor is running

I recently confronted a problem where the VISA routine in my VI worked fine in development, but not as an application (EXE) on the same machine.  I don't understand why, but the problem disappeared when I closed labview and ran the executable.  This is bizarre, as the labview progam explorer allows you to launch executable files directly, so one would hope that doing so would not produce conflicts between the two.

 

But whatever, it works now.

 

I'm using 8.0 - if this hasn't been solved in the past few version upgrades, it should be put on the list.

0 Kudos
Message 1 of 3
(2,244 Views)
Not bizarre at all. My guess is that you are using serial and the windows OS prevents more than one process to access a port at a time. There is nothing to fix.
0 Kudos
Message 2 of 3
(2,242 Views)

In complement, do you really 'Close VISA' after your communication routine?

 

You could easily check it by watch the content of a VISA Resource Name object : a small icon appears near to opened session.

 

Session could be opened even the programme doesn't run. If it's not made with 'VISA Close' function, only exit LabVIEW or the executable releases it

0 Kudos
Message 3 of 3
(2,221 Views)