09-19-2006 07:59 PM
09-20-2006 08:34 AM - edited 09-20-2006 08:34 AM
I'm at work now with a working GPIB board so I can provide a picture of the NI-488.2 communicator screen. You will notice three different buttons - Query, Write, and Read. Do not click the query button for any commands that do not have a '?' in them. A query will do an ibwrt of that command and then do an ibrd. You do not enter the text 'ibwrt' or 'ibrd'. If the command does not have a '?', then the instrument will not return any data and the query will timeout. Depending on how you set the instrument up, even doing a proper query (i.e. '?1') may also return a timeout. For example, it the instrument does not get triggered, it will not acquire a signal so there wouldn't be any data to return.
Also, can you try to reattach the VI you've modified. Instead of attaching the VI, attach the whole llb because that would include all of the subVIs as well.
Message Edited by Dennis Knutson on 09-20-2006 07:37 AM
09-20-2006 10:48 AM
When I hit the menu of communicating with instrument, I saw the diaglog window like what you pasted
I followed what you said. If a command contains ?, I send query. If the comand doesn't contain ?, I wrote the comand first and then read it. The results are the same, "EABO". Nothing changes.
For example:
I wrote a command I1, and read it. The window showed "EABO". I1 means to designate the first 1 anolog port as input, the remainder become outputs.
Second example:
I queried a command ?1, which showed"iberr=EABO". ?1 means to return the value of the designated analog port.
Thank you, Dennis
09-20-2006 10:59 AM
09-20-2006 11:02 AM
When I complied a sample program use GPIB command write and read. We can't get any data. The error window poped up:
Error occurred at GPIB Read in Yu_001.vi
Possible reason(s):
Labview Generic file I/O Error
NI-488:I/O operation aborted
I pasted this program and you may help me look at it.
Thanks
09-20-2006 11:31 AM
When I send any commands from Communicator. what I got is "iberr:=EABO". There are two light indicator in the front panel of SR 245. One is Activity Green LED and Error Red LED. I can't see any light blinking when commands were operated. I bet there were no response.
When I turn on the power supply of Boxcar, the Activity LED and Red LED blink one time.
When I ran the program that I pasted, the LEDs blink one time.
Thanks
09-20-2006 11:37 AM
09-20-2006 11:55 AM
I tried again.
When I wrote command, and hit the Write botton, I do see Activity Green Light blinking quickly. I also tried other words(for example my name) by hitting Write botton. I also saw the Green Light blinking. Maybe any word may let Activity light blink.
When I send command like ?1, or ?D, What I got for string Received is "iberr=EABO"
Thanks
09-20-2006 12:10 PM
09-20-2006 01:51 PM
Just a stab-
Is EOS configured properly for the instrument? My only experience with SRS was over 10 years ago, it was a DS345, I had no problems communicating over GPIB.