cancel
Showing results for 
Search instead for 
Did you mean: 

ID Query fail

SOLVED
Amanda_Kay
Member
Solved!

ID Query fail

I'm currently trying to use the Rigol DP821 instrument and I have the DP821 instrument pack downloaded. However, it won't let me run the program because the ID Query failed in the initialize section of the code. Any ideas? I tried replacing the constant with DP821 as well.

16 REPLIES 16
Amanda_Kay
Member

Re: ID Query fail

It pulls up Error -1073807346 if that helps any

RTSLVU
Trusted Enthusiast

Re: ID Query fail

Message contains a hyperlink

 

Why Do I Receive VISA Error -1073807346: The Given Session or Object Reference Is Invalid?

========================
=== Engineer Ambiguously ===
========================
Highlighted
Amanda_Kay
Member

Re: ID Query fail

That didn't seem to work, It's still pulling up error at ID query

NIquist
Trusted Enthusiast

Re: ID Query fail

WHAT didn't work?  What did you try?  Can you query the device through NI-MAX?  Don't worry about LabVIEW until you can open a VISA session with your instrument and communicate with it.

 

Use MAX and goto Devices and Interfaces.  Click on your VISA interface connected to your instrument then open the VISA Test Panel.  You can configure the interface there and use the Input/Output section to query (the *IDN? command is there and should return your device's ID string).

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
RTSLVU
Trusted Enthusiast

Re: ID Query fail

Well it is most likely a hardware issue here.

  1. Is the instrument on?
  2. Is the instrument plugged in (communications)
  3. Is the instrument in the proper mode (remote?)
  4. Can you see the instrument in NI-MAX?
  5. Is the instrument on the address you think it is? (GPIB)
  6. Are you addressing the instrument properly?  
  7. Are your communication parameters set correctly?

As Niquist was saying, use NI-MAX and the VISA Test Panel to troubleshoot connectivity.

========================
=== Engineer Ambiguously ===
========================
Amanda_Kay
Member

Re: ID Query fail

I figured out that the program runs if a False constant is wired so I think that's what I'll stick with for now.

Thanks!

billko
Proven Zealot

Re: ID Query fail


@Amanda_Kay wrote:

I figured out that the program runs if a False constant is wired so I think that's what I'll stick with for now.

Thanks!


Remember that this is a self-help forum.  If you could describe, in more detail, what you did to fix it, it will be of more value to someone else who has the same problem.

 

Right now, it is like saying, "I changed a wire and now my car runs".  Smiley Happy

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
billko
Proven Zealot

Re: ID Query fail

...And please, let it NOT be "I wired a FALSE constant to 'Query ID'" - that's like saying, "I solved the low oil problem by disabling the low oil light".

 

Failing the Query ID usually means you have the wrong driver installed!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
RTSLVU
Trusted Enthusiast

Re: ID Query fail


@billko wrote:

...And please, let it NOT be "I wired a FALSE constant to 'Query ID'" - that's like saying, "I solved the low oil problem by disabling the low oil light".

 

Failing the Query ID usually means you have the wrong driver installed!


Well... Yes and no...

 

We have several California Instruments AC power sources and Ci AC loads that seem to only respond to an *IDN? query about half of the time.

 

Been that way for almost 20 years, even the Ci units we bought in the last few years still have the same intermittent *IDN? response issues.

 

In most of my programs, when searching for or verifying connected instruments I do the *IDN? query like 10 times before I consider it a failure.

 

========================
=== Engineer Ambiguously ===
========================