07-20-2017 09:28 AM
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.
Solved! Go to Solution.
07-20-2017 09:31 AM
It pulls up Error -1073807346 if that helps any
07-20-2017 09:50 AM
Why Do I Receive VISA Error -1073807346: The Given Session or Object Reference Is Invalid?
07-20-2017 10:05 AM
That didn't seem to work, It's still pulling up error at ID query
07-20-2017 10:17 AM
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).
07-20-2017 10:34 AM - edited 07-20-2017 10:35 AM
Well it is most likely a hardware issue here.
As Niquist was saying, use NI-MAX and the VISA Test Panel to troubleshoot connectivity.
07-20-2017 10:42 AM
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!
07-20-2017 11:09 AM
@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". 🙂
07-20-2017 11:13 AM - edited 07-20-2017 11:14 AM
...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!
07-20-2017 11:44 AM - edited 07-20-2017 11:46 AM
@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.