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.
It pulls up Error -1073807346 if that helps any
Why Do I Receive VISA Error -1073807346: The Given Session or Object Reference Is Invalid?
That didn't seem to work, It's still pulling up error at ID query
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).
Well it is most likely a hardware issue here.
As Niquist was saying, use NI-MAX and the VISA Test Panel to troubleshoot connectivity.
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!
@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". ![]()
...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!
@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.