LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

After building Application,VI doesn't work proper

I have designed one serial application by using
"VISA Read/Write" when i run this VI it works fine giving satisfactory results but when i build application or installer for this VI & when i run this
app it doesn't work .what must be the problem......
0 Kudos
Message 1 of 5
(2,834 Views)
Does it only not work on a pc without the LabVIEW development system. If that the case, then did you include VISA as part of the installer? If you did install VISA and it doesn't work, are you using aliases for the com ports (i.e. com1, com2) instead of the actual VISA resource name (ASRL1::INSTR, ASRL2::INSTR)? You can use aliases with VISA run-time but you have to update visaconf.ini. Look for this file in \VXIpnp\WinNT\NIvisa.
Message 2 of 5
(2,834 Views)
As u said i already been tried by including VISA as part of the installer,but invain.
Yes,i am using aliases for the comports(com1,com2,com3) .
In the development environment my vi works fine.
This all i am trying on my computer only still i haven't distributed elsewhere.

For ur better understanding i am attaching my "serial_custom.vi",this i am testing by using "loopBack" method on a single comport by shorting it's "RX & TX".Pls guide me if there is any error in my coding.

Pls try by building it's application whether it works or what.



Regards,
Milind
0 Kudos
Message 3 of 5
(2,834 Views)
The first I would recomend is that you get rid of the string control for port selection and just wire a VISA Resource Name control directly to the VISA Configure Serial Port. You have a pretty classic race condition with the local variable. You could also redesign it so that the serial port is initialized just once when there's a change in the com port selection. Since, you didn't mention exactly what the problem was in the built application, I don't know if these changes will fix anything. Do you get an error or is there something else?
0 Kudos
Message 4 of 5
(2,834 Views)
I redesigned your just a little using version 7.0 try this and see if it works any better. Also when you build the application there is a selection in the create installer section under advanced make sure that you have the add serial port support checked. let us know if this helps.

Joe



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 5 of 5
(2,834 Views)