05-09-2024 11:23 AM
i am trying to control B2901A using labview, I am able to use the examples given in driver library. But for the user defined waveform case, i am not able to run it. It shows the error "Error -1074000000 occurred at Agilent B2900 Series.lvlib:Error Query.vi"
Instrument reports:
+951,"Unsupported command"
+951,"Unsupported command"
+951,"Unsupported command"
+951,"Unsupported command"
+951,"Unsupported command"
+0,"No error"
Please let me know what can be the possible source of error!!
thank you
05-09-2024 12:24 PM
Run the Vi with highlight executionand run single step to troubleshoot where is the error started.
It's hard to tell but it looks like your sw tried to send an unrecognized messasge 5 times.
Running step by step you allow you to identify when the error occurred.
Most likely the instrument didn't recognized the message sent.
05-09-2024 12:52 PM
The main error indicates that the instrument identity query failed. This is common with Agilent as they try to do a very specific check on the string returned by the *IDN? command.
Try turning OFF the ID Query boolean. Your choice as to whether to use the RESET, but most everything I circled in red is just useless Agilent overcoding.
05-09-2024 02:07 PM
Yes, The error is in the Congfigure Waveform.Vi. I checked it and it was showing ID Query Error
05-09-2024 02:13 PM
Thank you for your Replay. I also think this is the error. Can you tell me how can i turn off this?
Thank you
05-09-2024 04:00 PM
When you use the Initialize VI by default if unwired ID Query is True, so wire a False.
If you look in the code for the Initialize.vi posted above, it looks like its looking for a B2901 B not A model. That would cause the error, and you might run into a few more as A model is older than the B.
Hope that helps,
Craig
05-10-2024 08:50 AM
Press Cntl-H to turn on the context help, then hover over the VIs to see the connections. You can right-click to create a constant on the ID Query input. Click the boolean constant to toggle it to FALSE.
If this is confusing to you, you need to go through a basic LabVIEW tutorial: LabVIEW Tutorial (ni.com)
There are also some very good links at the end of that short tutorial that explain more about LabVIEW. 😉
05-10-2024 01:45 PM
Thank you for the Reply,
I have tried turning off the ID Query Boolean also, but it did not work. The error is in Udef block, as shown below,
Also, for other examples I am able to successfully connect to B2901A , but specifically with user defined waveform there is some issue,
Thank you