Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1073807346 occurred at VISA Write - only when executable

Hi Everyone,

 

Interesting error. I have a program that works fine when running in Labview but throws an error when it is made into an executable.

 

I am running Labview 2009 and using the rsspecan R&S drivers to control an FSUP spectrum analyser. Some control of the FSUP is happening when using the executable but one function is throwing the following error "Error -1073807346 occurred at VISA Write" (see attachment).

 

I have found http://digital.ni.com/public.nsf/allkb/4455BFE9B804DAAE86256CFE0078402E, this applies to  VISA read functions so i am about to upgrade the VISA runtime to 4.62. I will report back with this but It doesn't seem to make sense that the runtime would be the problem when most functions are already working.

 

Any other ideas?

 

Thanks

James 

 

 

Message Edited by Jimmej on 04-29-2010 08:21 PM
0 Kudos
Message 1 of 11
(5,411 Views)
VISA Runtime made no difference.
0 Kudos
Message 2 of 11
(5,408 Views)

Hi James,

 

From the error code attachment, it seems as if the issue occurs with the VISA Write subVI in some of the VIs that are installed with the rsspecan R&S driver.  It may be that the rsspecan R&S driver is a specific IVI driver that LabVIEW does not automatically detect and include in the installer.  I'm not 100% certain of this, because I have not tested it out on my machine.  But if this is the case, you will need to run both the installer for your application and the installer for the rsspecan R&S driver on your deployment computer before the executable will work.  If you don't want your end user to have to run both installers separately, you can create a simple batch file by writing the file paths to both installers in notepad and saving it with a ".bat" extension.  This .bat file can then run and will itself launch both installers in order. Please see the following KnowledgeBase article for more info: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LZOSA2&l=en-US

 

If you could link me to the exact version of the rsspecan R&S driver that you are using and attach your code to this forum, that would help me get a better idea of the issue.

Regards,

Sara Lewandroski
Applications Engineer | National Instruments
0 Kudos
Message 3 of 11
(5,358 Views)

Hi Sara,

 

I am not sure how to install the driver on a computer running the RT engine only. The rsspecan driver contains instr.lib and user.lib files that normally get copied to the labview 2009 directory, which I can't find an equivalent for when using the runtime engine. I did although try making an executable that didn't "remove unused members of project libraries" in the hope that this would be the same as installing the driver, but this was no different.

 

I have just downloaded the lastest rsspecan driver in the hope that it may make a difference. The history shows no update to the vi in the error message. 

http://www2.rohde-schwarz.com/en/service_and_support/Downloads/Drivers/?driverType=LabVIEW&driverTyp...

 

Also find attached the vi i use to read the FSUP and get frequency counted peaks and amplitude values.  

 

Thanks for your help 

0 Kudos
Message 4 of 11
(5,319 Views)

tried the new version of the driver before make the exe. No change again.

 

Still couldn't see how i could install the driver directly to the RT system. 

0 Kudos
Message 5 of 11
(5,314 Views)

Howdy,

 

To get Real-Time support for the NI VISA driver you will need to make sure it is installed correctly on the computer first. You can follow KnowledgeBase 3C6IHTL1: How Can I Install Serial Drivers for My Real-Time Controller but make VISA Real-Time support gets installed. Then, you can use KnowledgeBase 2HEEPEZ8: Installing Software on Real-Time (RT) Series PXI Hardware. Even though the KnowledgeBase article says to PXI the steps are the same for Real-Time Desktops.

Joshua B.
National Instruments
0 Kudos
Message 6 of 11
(5,285 Views)

Hi Joshua,

 

When i said RT i meant Run time not real time. I don't think this has anything to do with a real time system?

 

What i have installed on the PC is the runtime engine, NI Visa, and DAQmx.


Thanks

James 

0 Kudos
Message 7 of 11
(5,270 Views)
Doh! My mistake then. No, this has nothing to do with Real Time.
Joshua B.
National Instruments
0 Kudos
Message 8 of 11
(5,266 Views)

Hi James,

 

I checked out your driver.  I see that it's just a library of VIs and not an installer.  Is the device connected to your remote machine and enumerated as the same VISA resource that is called in your application?  Are the versions of VISA and DAQmx that the application was developed with the same as the versions of VISA and DAQmx that were installed on the remote machine?

Regards,

Sara Lewandroski
Applications Engineer | National Instruments
0 Kudos
Message 9 of 11
(5,227 Views)

The device is exactly the same, i have tried it over USB-GPIB and Ethernet. The strange thing is that some of the function work. If you go through the code i attached earlier it crashes half way through the routine after it already has been talking to the FSUP without any troubles. If it is run not as an executable it works fine.

 

VISA is the same, DAQmx I haven't checked but i can't see how this would be applicable. It is used to run a NIUSB6501 and it runs fine.

 

Thanks
James 

0 Kudos
Message 10 of 11
(5,217 Views)