LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Built application containing VISA resource control in Labview 7.1 not working

Very new to Labview (student). The program (my first) containing a VISA resource name control works fine in development mode in Labview 7.1. When built as an application (on the same PC) the app does not work. When I removed the control and changed it into a constant (read this in old que's here on forum with Labview 6), the app functions 100%. Run-time engine fine and app (without VISA resource name control) works on other PC's. What can the problem be - a way around it? I would really like to include a VISA resource name control in the app. Thanks, Madri
0 Kudos
Message 1 of 7
(3,211 Views)
Are you reading this control immediately when starting your app? What is the default value of the control. Maybe try setting the default value to the same value as you did with the constant. It could be reading an empty control and not working. You can set the default value by right clicking on the control when you have the proper data in it and then goinging to Data Operations >> Make Current Value Default. Hope this helps. If this doesn't work try and post an example of how you are using this control.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 7
(3,211 Views)
Do you mean that depending on your default value, you can kill VISA in your executable ?

Doc-Doc
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
0 Kudos
Message 3 of 7
(3,211 Views)
well if you do a test in the development system and use a blank visa resource name. What happens.. Visa doesn't know what to talk to. Same will happen in an exe if you have a default value of " ". Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 4 of 7
(3,211 Views)
"Madri" wrote in message
news:50650000000800000048EF0000-1079395200000@exchange.ni.com...
> Very new to Labview (student). The program (my first) containing a
> VISA resource name control works fine in development mode in Labview
> 7.1. When built as an application (on the same PC) the app does not
> work. When I removed the control and changed it into a constant (read
> this in old que's here on forum with Labview 6), the app functions
> 100%. Run-time engine fine and app (without VISA resource name
> control) works on other PC's. What can the problem be - a way around
> it? I would really like to include a VISA resource name control in the
> app. Thanks, Madri

Did you include the VISA run time engine when you built your app?
0 Kudos
Message 5 of 7
(3,211 Views)
Yes, I'm reading it on startup, waiting for the user to make their selection of COMM settings via an OK button. After that this app transmits and then receives data via RS232 with PIC18F452. Currently testing with loop-back. Even with the default value saved the app does not work. Will try to send this part of the project later. Is it possible to set the VISA resource name value in exe? Thanks for the help, Madri
0 Kudos
Message 6 of 7
(3,211 Views)
Hello �

This is a duplicated question. It has already been answered here.

S Vences
Applications Engineer
National Instruments
0 Kudos
Message 7 of 7
(3,211 Views)