02-21-2008 09:45 AM
Hi Basyarie,
I looked at your screenshot for E4403B and tested the same input with the instrument that I have here (E4404B) and the code seems to run fine without any problems. Did you do any modifications to the sub VIs? Also what version firmware is the instrument running? (You can check this by running the Revision Query VI. It will tell you what firmware you are running in the "Instrument Firmware Revision" indicator.) I would recommend upgrading to the latest firmware.
Another question i have is, what USB to GPIB converter are you using? Is it an NI product or a different companies product? It is always best to go ahead and run the latest driver cd to update the system software components such as VISA and drivers.
Let me know if these don't help, then we can try and figure out which exact command is causing the error.
As for the Anritsu MS2663B driver, I don't have the instrument with me and the driver wasn't developed here so I'm not familiar with it. However the error code you are getting translates to
"VISA: (Hex 0xBFFF0038) Bus error occurred during transfer." So there might be a problem with the GPIB interface you have.
Let me know what you find out.
02-25-2008 11:33 PM
02-25-2008 11:35 PM
02-26-2008 08:58 AM
Hello Basyarie,
I looked at the agilent website and your firmware seems to be pretty old. The current revision that the ESA series analyzers have is A14.04. You can find the files here.
Also they have the revision history (which you can find here) for their firmware updates and it seems that they have been adding or updating some commands since the A07 firmware revision. Our driver has been developed with the latest command set of the instrument so it is vital that you upgrade the firmware. Since it is an "undefined header" or in otherwords unrecognized command error you are getting, i hope the firmware upgrade would solve the issue. Let me know what you find out.02-26-2008 09:14 PM
02-27-2008 09:34 AM - edited 02-27-2008 09:43 AM
2) Create a probe (right click on the wire and select Probe) at the string line going into the VISA Write "write buffer" terminal. It will create a small new window which will give you the realtime value of the wire while the VI is running. Here is the screenshot.
3) Configure the VI on the front panel (put in the visa resource, the values you want, etc.)
4) Run the VI. It will stop at the VISA Write and blink on the block. Also notice that your probe window is now filled with the commands that were going to be sent to the instrument. Here is the screenshot.
5) Copy the commands to notepad. Arrange it so that you have one command per line. (Each command is terminated by a ";", therefore you can simply press enter after every semi-colon) Here is the screenshot.
6) Launch Measurement & Automation Explorer (MAX), find your instrument (most probably under the Devices Interfaces -> GPIB tab) and select it. Here is the screenshot.
7) Click on "Communicate with Instrument", it will open a new window to send commands to the instrument. Here is the screenshot.
😎 Open the "Error Query" VI from the instrument driver (under Utilities palette). Configure the VISA resource.
9) Send a command through the communicator by pasting it into the "Send String" field and then pressing "Write"
10) Run "Error Query" to see if that command causes an error. (Specifically the one that you have seen before)
11) Repeat for every command that you pasted on notepad and take a note of the ones that are causing the error.
12) Remove the parts that use or modify the erronous commands so that the VI's will run without a problem.
After doing this, the VI's will work since you took out all error causing commands but you will have to configure the features that are taken out manually if the instrument supports them in your firmware version.
After getting everything to work, you can use the "Read Trace" VI to acquire a trace onto your computer. Then you can use the LabVIEW "File I/O" palette to write the data to a spreadsheet or however you want to store it.
Let me know if you have any questions.
02-27-2008 09:35 AM
04-08-2008 09:44 PM
04-08-2008 09:49 PM
04-09-2008 08:43 AM