Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Built application can not see visa resource defined USB camera

I built a custom application for use with a usb camera, which i created a ni-visa usb driver for.  On my development machine, the vi, as well as the built application function perfectly fine.  However, when I move the camera to another PC, although MAX can see the camera and I can assign it an alias, the application cannot find the USB camera.

This is using labview 7.1 on the dev machine.  The deployed machine has the visa runtime engine installed as well as MAX.  The current device selection is done with a drop down that allows undefined names.  I have tried manually typing in the alias and creating a constant in the block diagram with no luck.  I have also tried moving the visaconf.ini with aliases define to the built application's directory with no change.  Another interesting thing is that the built application on the deployed machine displays the available ports by their connect (ASRL#) instead of by alias. 

I realize there is one small change or variable i need to correct, but at this point ive tried everything I can, so any help would be much appreciated.

-Steven


0 Kudos
Message 1 of 4
(3,605 Views)

Hi Steven,

Could you explain what exactly is happening?  Does the application give you an error message?  Since you have MAX installed, are there any commands you could try sending the camera through MAX?  Also, have you tried running the built executable on the development computer to make sure nothing was broken during the build?  If we can narrow down where the issue is coming from, we have a better chance of fixing it.

Scott G.
AE Specialist
National Instruments
0 Kudos
Message 2 of 4
(3,577 Views)
The application doesnt give an error message, it just fails to see the camera device, which makes the program unable to communicate with the camera.  I have a drop down for visa devices built into the program, but the camera doesnt show up, and I see the ASRL connections instead of the visa aliases. 
 
As for MAX, I can send commands to the camera and have it respond correctly.  The build works correctly on the development PC, and the drop down has COM1, COM2, LPT, and the camera device alias I assigned it.
 
 
Thanks,
Steve
0 Kudos
Message 3 of 4
(3,537 Views)
Hi Steven,
have you tried manually typing in the aliases?  Generally if you manually type in an Alias that it does not recognize it will at least give you an insufficient location error.  Also will it let you communicate with the USB device if you type the full address rather than the alias?  A couple things you might want to try would be to try a different computer or try using a serial port instead of USB.  You could just do a serial loopback if you want to try this.
Scott G.
AE Specialist
National Instruments
0 Kudos
Message 4 of 4
(3,516 Views)