Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

visa resource info blank during first run

Solved!
Go to solution

Hi all,

 

I am trying to run the fluke 6100A driver on a remote fluke 6100A.  When I run initialization on the remote device, I always get the following error: 

 

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

 

I trace down the problem, and I saw that the visa resource name being passed doesn't contain valid information (see below).  That doesn't make sense, since when I select the resource name from the drop down box, the program clearly recognized the remote device.  Why would the program allow the user to select the visa resource but won't pass valid visa info to the driver?  

 

This error only happen during first run.  If the user run the program again, the error goes away.  Can anyone help?  Thanks!

 

Yik

 

 

When program ran for first time, visa name contains valid info:

General

Canonical VISA resource name = blank

visa refnum = blank

session ID = 0

I/O timeout = 0

Intf Type =0

Value in = blank

Stop? = True

 

Condition

session valid? False

Is Instr? = False

 

Stop? True

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 15
(4,644 Views)

Hi Yik,

 

Can you take a screenshot of the error and the front drop down selector? Since it is a remove device are you setting it up as a VISA TCP instrument? 

 

Thanks!

Chris T.
0 Kudos
Message 2 of 15
(4,616 Views)

Hi Chris,

 

What did you mean by setting it up as a VISA TCP instrument?  See attached for the portion of the block diagram of how I feed in the VISA resource name and the error.  Thank for looking at this.

 

Yik

 

 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
Download All
0 Kudos
Message 3 of 15
(4,594 Views)
Solution
Accepted by jyang72211

AHA!

 

Do you select the resource from the dropdown list BEFORE the Loop starts?  A SR might helpSmiley Wink


"Should be" isn't "Is" -Jay
Message 4 of 15
(4,585 Views)

Hi why not simply

 

GPIB0::18::Instr

greetings from the Netherlands
0 Kudos
Message 5 of 15
(4,577 Views)

Albert,

 

The name on the list was created by LabVIEW.  I didn't change the name.  Are you saying I should make an alias for it?  

 

Yik

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 6 of 15
(4,563 Views)

Hi Jeff,

 

You are right on.  I can't believe I miss such an obvious problem.  I was working through a bunch of bugs, so I guess I created another one carelessly.  I have made this kind of mistakes before too.  I need to find a way to stop myself from doing that.  Thanks!

 

Yik

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 7 of 15
(4,562 Views)

An alias is not needed, but from your latest mail I guess it is solved.
I've never seen this kind of resource name in windows, are you maybe using unix or mac?

greetings from the Netherlands
0 Kudos
Message 8 of 15
(4,539 Views)

 


@Albert Geven wrote:

An alias is not needed, but from your latest mail I guess it is solved.
I've never seen this kind of resource name in windows, are you maybe using unix or mac?


 

Albert-

Its a remote resource located on a GPIB bus where the GPIB controler is on a PC with the machine name "mc_bobby'.


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 15
(4,535 Views)

Thanks

 

Something we never did, better for NI finances.Smiley Wink

greetings from the Netherlands
0 Kudos
Message 10 of 15
(4,527 Views)