This problem is really baffling me. I'm trying to use GPIB to control a laser power controller and everything seems to work fine except writing using VISA write. In MAX, I can successfully write to or read from the device using either the VISA test panel or the "communicate with instrument" command line. However, when I use the labview example "basic_gpib_write_and_read.vi" I can read data from the buffer but the command from the VISA write doesn't seem to make it to the instrument. There is no error in VISA write, and I get a return count from the vi if I wire that output, but the instrument doesn't respond to the same string given in MAX.
In MAX: writing the command "P 10 mw \n" modulates the unit to 10mW
With VISA write: writing "P 10 mw \n" does nothing yet gives no error
What's more baffling is that I can write "P ?\n" in MAX and successfully read the buffer "P 10.10 mW" using VISA read.
My guess is that somehow the commands are sent with VISA write but aren't properly terminated. Still, I would assume that a command issued in MAX would work identically to a command issued using VISA write.
Any help would be greatly appreciated.
Ken