01-20-2010 02:34 PM
I have been working with LabVIEW for a while but don't have much GPIB experience so I was looking for help on this one. The amplifier I'm working with returns "an amplifier status string when the interface is addressed to talk." I need to get this string but it says nothing about how to address the device to talk. It just says you have to in order to get this status string. I am not looking to use the labVIEW stat function as it seems this wont return the same thing. It's more of an overall status of the device.
I was wondering if there is a standard for addressing the unit to talk, because nothing is listed in the manual? I am using a GPIB 488.1 not 488.2. Also, this status string includes different faults that I will be monitoring. Is this something I want to be monitoring continuously, or are faults things that will only occur after issuing a command? The manual lists 7 commands: operate, standby, reset, power up/down, and mode1/2.
Anyways, sorry if this was confusing but hopefully you catch my drift. I would love to post some code, but I don't even know where to start. If I can get some direction, or a simple block diagram (even a screenshot) to give me a basic idea that would be great.
There will be more questions I'm sure, but I don't want to cram them all into one post. And yes I have read over some of the NI tutorials, I'm just not quite understanding it, so I figured I'd go somewhere I can ask questions more directly. Thanks.
The version dejure of labview i'm using is 8.5
01-20-2010 03:41 PM
When you do a GPIB read, the controller will instruct the instrument to be a talker. Normally, you do not have to be concerned with all of the handshaking being done to switch a listener to a talker. That's all handled by the GPIB driver.
Does the documentation say that the instrument will return this status information without being written to first? Or, is the instrument a talker only?
If you could attach the instrument manual or provide a link to it, that would help.
01-20-2010 04:19 PM
01-20-2010 04:28 PM
If you have an NI GPIB board and the VB code uses that, you can turn on NI-Spy and see the commands.
01-21-2010 11:14 AM
01-21-2010 11:35 AM
01-21-2010 03:11 PM
01-25-2010 03:42 PM - edited 01-25-2010 03:47 PM
Ran it with NI spy, here is what I'm getting and an attached screenshot of just simple test code. The VB stuff works fine and those commands/responses are up to step 8 in the screenshot. The labview commands/responses are step 9 and on.
I am using 488.2 subvi's here, which may be causing a problem, but based on the first 8 commands can someone give me a structure for setting up a simple program in labview that would execute the same.
The error it's giving me is number 3 which looks like an addressing error, and I may not have the right controller in charge
01-25-2010 04:15 PM
01-25-2010 04:26 PM