11-20-2011 03:06 PM
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
11-20-2011 03:32 PM
u da man thx matt
11-20-2011 03:36 PM
Except that I have Labview 2010...can u get me a vi in 2010?
11-20-2011 03:38 PM
2010 attached.
12-02-2011 10:01 PM
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?
12-02-2011 10:23 PM
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".
12-04-2011 12:07 PM
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.
12-05-2011 01:55 PM
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