LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1073807346 occurred at VISA Write in rsspecan_core_write.vi

Solved!
Go to solution

Possible reason(s):

VISA:  (Hex 0xBFFF000E) The given session or object reference is invalid.

 

I'm using a USB to GPIB connection to a Rohde Schwarz FSV30 Spectrum Analizer from Windows 7.

My program works 100% in LabView but the problem comes in when I've compiled the program into an executable.

I have already installed the NI VISA Run Time Engine 5.0.1 and it still does not work.

I've also installed the NI-488.2 2.73 drivers for the GPIB unit.

 

Any ideas?

0 Kudos
Message 1 of 12
(7,576 Views)

Does the instrument show up in MAX?

0 Kudos
Message 2 of 12
(7,568 Views)

Hey,

 

the problem when building executables with LabVIEW is, that the driver core of the attribute based instrument drivers (esp.. the VIs which are creating this error) is linked while runtime dynamically to the VIs. The application builder which follows all dependencies and include them into the package fails in this case.

To get a running executable please add manually all VIs for the folder <inst lib>\rzspecan\_utility\rsspecan_core\callbacks\ to the LabVIEW project and everything should work fine.

 

For more details of this driver refer to http://www.rohde-schwarz.com/appnote/1ma170

 

So long, juergen

0 Kudos
Message 3 of 12
(7,561 Views)

Hi Juergen,

 

I'm sorry to say, but it did not work. I've manually included every VI in <inst lib>\rzspecan\_utility\rsspecan_core\callbacks\ from \_utility to \callbacks and it still gives me the same error after compiling and running the executable.

0 Kudos
Message 4 of 12
(7,534 Views)

Hi,

 

maybe my explanations was missleading. You have to inlcude/add all VIs from <inst lib>\rzspecan\_utility\rsspecan_core\callbacks\ to you LabVIEW project. You must not move these VIs with inside the driver.

 

The situation is, that the LV application builder ist not able to figure out that these VIs are needed while runtime. For that reason you have to tell LV manually, "please include this VI in my executable" by adding this to the LV project.

 

I hope this helps.

 

So long, juergen

0 Kudos
Message 5 of 12
(7,523 Views)

I did understand you the first time and I did include the VIs to the project, but I still get the same error.

0 Kudos
Message 6 of 12
(7,519 Views)

Please double check whether you added all of these VIs to you project:

 

rsspecan_core_write.vi

rsspecan_core_attribute_write_int.vi

subrsspecan_core_attribute_express.vi

 

(all VIs which appearing in the error message)

 

juergen

0 Kudos
Message 7 of 12
(7,511 Views)

All VIs which appear in the error message except subrsspecan_core_attribute_express.vi was added.

But the same error still occured when I added subrsspecan_core_attribute_express.vi to the project.

Am I missing something here?

0 Kudos
Message 8 of 12
(7,506 Views)

Strange. The situation is, that I'm not able to reproduce your configuration due to the fact that I do not have this AppBuilder license.

 

I know this problem and the described procedure does the trick, ...normally. Please contact someone from NI to get this worked out. Sorry.

0 Kudos
Message 9 of 12
(7,499 Views)
Solution
Accepted by topic author The.C

I've figured it out (eventually), it works now!

After adding the necessary VIs to the project you should also go to the executable properties -> Source Files and then select all files to be "Always Included" to the right side.

 

Thanks for you help Juergen

0 Kudos
Message 10 of 12
(7,490 Views)