Does the Measurement Computing GPIB card come with an utililty like NI MAX , which allows you to send GPIB commands interactively to the device and does that work ?
And also check that the 34401 command language is really set to SCPI and not to emulate either a 3478A or a Fluke 8840A.
I have verified proper operation through VISA Interactive Control/NI Spy, so I do know that the commands do work. Given this, and the fact that I do have 2 of these intruments, I am sure my problem lies with my code, or use of commands. This function only has this problem with this intruments. I have other intruments (e3649, Sorenson, Belhman) and they all respond to all queries with this function. Something is different about the 34401 that is causing my problem or I need to update my code.
As far as the set language, there is an option on the 34401 to set it to GPIB, RS232. I have checked this and it is set to 34401. Again, this instrument does respond to commands such as set to AC or DC and so on. The function I use for this is very similar to the one posted.
Yes, I do have this driver, but because I have other instruments on this bus which do not have drivers ( VISA or not ), I decided to go through low level 488 commands. I have done this many times in the past with no issues and typically use low level commands. I did however, go through this driver, to make sure that I was using the correct commands ( which do match not only to manual, but to VISA commands).
I think my problem lies in the command Termination, I have tried several options but always get an error on queries.
I am up against a major schedule deadline and willing to try anything at this point.
Thank U both for your response.
I had the same problem (beep, error..) using that scpi query command with the 34401a.
My solution was to send set the function, send "VOLT:AC" then just query using the "READ?" command.
Hope this helps
Thanks for your response.
I have tried several different ways to make the measurement, including READ, FETCH and MEAS. The error occurs when I add "?" to the command ( to query), regardless of which command I use.
However, I will admit I have not tried your particular suggestion of using VOLT:AC and then READ... I have tried CONF:VOLT:AC, then READ or MEAS:VOLT:AC?... of course got beep/error on both. I prolly should try *IDN? and see what happens.