Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

my device's provided vi's aren't working

i am trying to control a spatial light modulator (SLM).  it's built by cambridge research and instrumentation, and they provided vi's to operate it.  one of the vi's is basically just an id query, and it gives the number of pixels and the type of SLM.  the SLM has 128 pixels and has a dual mask, but this vi usually returns 0 for the pixel number and says it does not have a dual mask.  the other vi's usually don't work either.

i'm pretty sure that i've made some error, and that CRI's vi's are fine.  the SLM is a USB-TMC device, i can open it in VISAIC (even though most of the basic I/O commands time out).  i have correctly set the baud rate to 460800 bps, the data bits to 8, parity to none, and stop bits to 1.  i don't know what the flow control is supposed to be.

i'm having other problems besides just incorrect query answers, too.  my vi's often time out, and lately when they do time out, labview crashes and the task manager can't even kill it.  i have to restart the computer.

i'm definitely a novice in instrument control, so i would really appreciate the help and advice of the experienced users here.  i've attached the vi i described above.  thanks!
0 Kudos
Message 1 of 4
(3,406 Views)
Where does the device show up in MAX? It should show up in the USB instruments section if there was a USB driver provided (not the instrument VIs) by Cambridge and you installed it. Then, when using the LabVIEW driver, you should be able to click on the VISA Resource Name and select the USB instrument. You should not be selecting baud rate, etc. as this would be for using the instrument connect to a normal serial port (i.e. Com1).
0 Kudos
Message 2 of 4
(3,403 Views)
In MAX i go to Devices and interfaces->Ports->ASRL3::INSTR (COM3).  When i run the vi's, for the VISA Resource Name I choose ASRL3::INSTR.  Where should it be in MAX?  Sorry to be so ignorant about all this...

Message Edited by tanimada on 08-01-2005 12:14 PM

0 Kudos
Message 3 of 4
(3,400 Views)
A slight correction to what I said before. A true USB-TMC instrument will be detected by the system, use VISA as the driver, and will be listed in MAX under Devices and Interfaces>USB Devices. Make sure that you have the latest version of VISA installed as older ones did not have support for USB. If it does not show up as a USB device, you cannot use ASRL3::INSTR to communicate with it. There's a KB article on USB-TMC at http://digital.ni.com/public.nsf/allkb/044fa220f32774ed86256db3005850ca?OpenDocument.
0 Kudos
Message 4 of 4
(3,393 Views)