From: datalog on
I've posted this request over on the GPIB forum but I think this is probably a better location. I'm new to GPIB level LabVIEW but have developed a few applications, previously,  around existing instrument drivers. I want to write some simple configuration and data transfer functions around GPIB with ILX Lightwave and Keithley instruments.
 
I am able to send GPIB commands to each instrument, such as setting wavelength, voltage, filter time constants and so on, but I am having trouble reading from each instrument. I'm sure its a coding issue as this is the same with each instrument. After sending a command, such as :FILT fast to the ILX Lightwave 8210H and seeing the front panel indicator change, I send a GPIB Write again, with :FILT? followed by GPIB Read. The string returned from the GPIB Read has an unreadable format. I'm sure this is just a formatting issue, but  can anyone here shed some light on this?
 
regards,
Datalog 
 
Windows XP
LabVIEW 7.01
From: lmtis on
Hi datalog,
could you post a screenshot of your code along with a probe showing the data received?Message Edited by lmtis on 05-06-2008 07:12 AM
From: datalog on
I've attached a jpeg which is a screen dump of the LabVIEW windows used. Hopefully this will provide the data you requested


GPIB Read code.JPG:
http://forums.ni.com/attachments/ni/170/321352/1/GPIB Read code.JPG
From: datalog on
I just opened up the JPEG and the resolution is poor. Here is another image from the data window


data window.JPG:
http://forums.ni.com/attachments/ni/170/321355/1/data window.JPG
From: lmtis on
Well, that shows what the data string looks like.  Could you make a pic of the wiring diagram?  By the way, here is a link to a good freeware for grabbing a screenshot.
<a href="http://www.download.com/MWSnap/3000-2347_4-10524229.html?tag=lst-1&amp;cdlPid=10544482" target="_blank">http://www.download.com/MWSnap/3000-2347_4-10524229.html?tag=lst-1&amp;cdlPid=10544482</a>