LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open visa sessions for controlling external dlls

The solution is what rolfk said. Attached VI calls one of the dll functions and shows how to do it. All the parameters that you pass in to the dll, like ViPSession are defined in visatype.h which is in "C:\Program Files (x86)\IVI Foundation\VISA\WinNT\include".

 

Matt

 

vi.png

0 Kudos
Message 11 of 18
(748 Views)

u da man thx matt

0 Kudos
Message 12 of 18
(745 Views)

Except that I have Labview 2010...can u get me a vi in 2010?

0 Kudos
Message 13 of 18
(743 Views)

2010 attached.

0 Kudos
Message 14 of 18
(741 Views)

I have one issue left and that is that these dll functions all return a Function Status Return Code in which I suspect they are returning an instrument error code of some sort.  Where are these things defined?  When I get a number back on this output, how do I know what it means? Are they standardized anywhere or are they vendor speciifc error codes?

0 Kudos
Message 15 of 18
(724 Views)

These are all defined in visa.h in the folder I mentioned above. They are defined after line 522 after the comment "Completion and Error Codes".

0 Kudos
Message 16 of 18
(721 Views)

Thanks.  By finding this lookup I now knopw that I have a

 

#define VI_ERROR_RSRC_NFOUND        (_VI_ERROR+0x3FFF0011L) /* BFFF0011, -1073807343 */

 

which tells me that the dll that we have called can find the reource.  While running the vi error.vi (attached) I get this -1073807343 error.  I am stuck becaue I have created the USB RAW VISA Reosurce with the VISA Driver wizard and there is nowhere left to go.

 

Please help.

Download All
0 Kudos
Message 17 of 18
(712 Views)

Hi id,

 

What version of VISA are you using? Have you considered upgrading it (according to the compatibility chart)? I've seen a few other people with BFFF0011 errors that were fixed by either upgrading or re-installing VISA

 

Tim W.

Applications Engineering

National Instruments

http://www.ni.com/support 

0 Kudos
Message 18 of 18
(690 Views)