Instrument Control (GPIB, Serial, VISA, IVI)

取消
显示结果 
搜索替代 
您的意思是: 

visa resource info blank during first run

已解决!
转到解答

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 项奖励
1 条消息(共 15 条)
4,761 次查看

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 项奖励
2 条消息(共 15 条)
4,733 次查看

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!
下载全部
0 项奖励
3 条消息(共 15 条)
4,711 次查看
解答
接受人 jyang72211

AHA!

 

Do you select the resource from the dropdown list BEFORE the Loop starts?  A SR might help眨眼表情


"Should be" isn't "Is" -Jay
4 条消息(共 15 条)
4,702 次查看

Hi why not simply

 

GPIB0::18::Instr

greetings from the Netherlands
0 项奖励
5 条消息(共 15 条)
4,694 次查看

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 项奖励
6 条消息(共 15 条)
4,680 次查看

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 项奖励
7 条消息(共 15 条)
4,679 次查看

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 项奖励
8 条消息(共 15 条)
4,656 次查看

 


@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 项奖励
9 条消息(共 15 条)
4,652 次查看

Thanks

 

Something we never did, better for NI finances.眨眼表情

greetings from the Netherlands
0 项奖励
10 条消息(共 15 条)
4,644 次查看