08-02-2012 09:48 AM
Hi everyone,
I am trying to control Agilent 4448a using the latest version of VI. I just run the Initialize.vi; however the error message keeps popping
Instrument reports:
+227,"Instrument mode request not supported"
+0,"No error"
Then I run the code step by step, what I found was that the error message came from running the Error Query.vi. So I went to the subfolder of Public/Utility and found the Error Query, and then run it individually. Suprisingly, there was not any error at all. Do you really think this is the problem with the setup of the instrument mode?
I ve seen some discussions saying the correct mode of the instrument needs to be chosen, but how to do so? where to make a change of the instrument mode?>
Many Thanks!
Chong
08-02-2012 09:49 AM
@Allenlee27 wrote:
I ve seen some discussions saying the correct mode of the instrument needs to be chosen, but how to do so? where to make a change of the instrument mode?>
Maybe you should consider reading the programmer's manual for the instrument.
08-02-2012 10:45 AM
I can sucessfully mangage to run many other VIs such as Self-Test, Revision Query, Reset that have Error Query as subVI, but not Initialize.vi? Any suggestions? Thanks
Chong
08-02-2012 12:34 PM
Look at the commands that are being issued in the initialize function and determine which one is causing the error. There can only be a couple in there. You can just look at the code or capture them with NI-Spy/NI-Trace. Run them one by one until the instrument creates the error.
08-02-2012 12:59 PM
Allenlee27 wrote:
I am trying to control Agilent 4448a using the latest version of VI. I just run the Initialize.vi; however the error message keeps popping
Instrument reports:
+227,"Instrument mode request not supported"
+0,"No error"
Then I run the code step by step, what I found was that the error message came from running the Error Query.vi. So I went to the subfolder of Public/Utility and found the Error Query, and then run it individually. Suprisingly, there was not any error at all.
There is something being setup wrong. The Error Query requests errors from the instrument. Somewhere in the setup, the instrument stored a error code 227. Once the error buffer is read, it is deleted (it's like a FIFO). So it makes perfect sense that running Error Query alone does not generate any errors.
08-03-2012 07:42 AM
Could you please explain it in more detail? Thanks!
08-03-2012 09:25 AM
The Error Query issues the SYST:ERR? command. This is documented in the instrument manual.
There are three separate drivers for the 4448A. Which one are you using? Obviously, you would have some issues if you use the CDM version and you have the CDMA model of instrument (or vice versa). That would certainly account for the error that you are getting.