LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ID Query fail

Solved!
Go to solution
Highlighted

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.

0 Kudos
Message 1 of 16
(1,450 Views)

It pulls up Error -1073807346 if that helps any

0 Kudos
Message 2 of 16
(1,448 Views)

 

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

-------------------------------------------------------------------
Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
Message 3 of 16
(1,434 Views)

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

0 Kudos
Message 4 of 16
(1,425 Views)

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 8.5.1 - 2018 Pro Dev
Message 5 of 16
(1,418 Views)

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.

-------------------------------------------------------------------
Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
Message 6 of 16
(1,404 Views)

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!

0 Kudos
Message 7 of 16
(1,397 Views)

@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.
0 Kudos
Message 8 of 16
(1,383 Views)

...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.
0 Kudos
Message 9 of 16
(1,381 Views)

@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.

 

-------------------------------------------------------------------
Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
Message 10 of 16
(1,369 Views)