LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application Builder 7.0

Yesterday I created a *.exe file of my VI to test its functionality on another computer.

My VI uses Visa Read and Write to communicate with an external Microcontroller which is connected via USB.

 

On the computer where Lbview 7.0  is installed the VI works flawlessly communicating with the Microncontroller.

 

On the other computer which I wanted to use I first installed the USB device using the driver, it now recognises the USB device and it appears in the Device Manager list as to be working fine. The name of the device also pops up when I connect it.

 

But when I install and run the VI on this computer it cannot find the USB device,at the beginning I use Visa Find to look for devices with the following addresses " USB0::0x04D8::0x0011::NI-VISA-[0-9]*::RAW"

 

This search returns no results, thats how the USB device was being found on my original computer.I also installed Labview Runtime Engine 7.0 on the other computer.

 

If anyone has any ideas as to why it can't see the USB RAW device let me know, maybe it has something to do with how I'm searching for it? Maybe its being assigned a totally different name ?

0 Kudos
Message 1 of 11
(3,503 Views)

On a windows machine, the USB info will be stored in the registry. So use regedit and search for 'USB0::0x04D8::0x0011' on your first machine and look up the same place on the second computer.

Furthermore consult msdn on that issue.

If your not on windows, it will be different, so please not in the reply.

 

Felix

0 Kudos
Message 2 of 11
(3,503 Views)

Maybe it's because you did not install NI-VISA on the other computer? You don't mention doing that. Did you install MAX? If you did that along with installing NI-VISA, you could tell if the device is available.

0 Kudos
Message 3 of 11
(3,498 Views)

I am just doing that to check to see which name the device has been given.

But in general I dont want every person to have to do that, I need to give this software to maybe 10 or 20 people, but just this once Ill see which name it has been assigned.Its Windows XP on both machines

Message Edited by eoin87 on 05-21-2009 11:36 AM
0 Kudos
Message 4 of 11
(3,491 Views)
You don't want every person to do what?
0 Kudos
Message 5 of 11
(3,486 Views)

I don"t want every person to have to install NI-Visa on their computer.

I installed it on the other computer and it works now, I am able to talk to the microcontroller and the VI finds the USB device which is attached.

But now the question is now can i get this to work without having to install NI-Visa on each computer?

0 Kudos
Message 6 of 11
(3,482 Views)

You absolutely have to install NI-VISA. You created the driver with the VISA wizard and you are using VISA Reads and Writes to communicate with it. All of that means you have to install the VISA driver. If you don't want to install VISA, you should have taken a different approach. For  example, create a low level driver with C/C++ and use a Call Library Function Node.

0 Kudos
Message 7 of 11
(3,467 Views)

Ok, I understand, considering that NI-Visa is a very large package can I somehow extract the components from it which I need and include them in my project when I generate the installer file.

I assume I dont need the full functionallity of NI-Visa its a huge package at 290Mb or something.

Any suggestions welcome.

 

0 Kudos
Message 8 of 11
(3,447 Views)

all you will have to do is include the NI-VISA just like when you add the labview runtime to your application when you create an installer.

 

there will be a checkbox for the NI-VISA.

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 9 of 11
(3,441 Views)

In Labview 7.0 and 7.1 it was not necessary to install VISA for serial support. In the application builder go to the "Installer settings" tab and select advanced. Then select "Serial Port Support". This will embed some VISA functions in you application. Perhaps this will work for USB. I do not know but you may test it.



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 10 of 11
(3,438 Views)