LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Labview to control B2901A

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

0 Kudos
Message 1 of 8
(175 Views)

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. 

0 Kudos
Message 2 of 8
(149 Views)

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.

 

NIquist_0-1715277055690.png

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
Message 3 of 8
(140 Views)

Yes, The error is in the Congfigure Waveform.Vi. I checked it and it was showing ID Query Error

0 Kudos
Message 4 of 8
(130 Views)

Thank you for your Replay. I also think this is the error. Can you tell me how can i turn off this? 

Thank you

0 Kudos
Message 5 of 8
(128 Views)

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

0 Kudos
Message 6 of 8
(108 Views)

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

 

NIquist_0-1715348898443.png

NIquist_1-1715348925268.png

NIquist_2-1715348997447.png

 

 

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 7 of 8
(85 Views)

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 Screenshot 2024-05-10 144011.pngScreenshot 2024-05-10 143109.pngScreenshot 2024-05-10 143008.pngScreenshot 2024-05-10 142957.pngScreenshot 2024-05-10 142945.png

0 Kudos
Message 8 of 8
(54 Views)