06-22-2010 04:51 PM
I am trying to write a program using Labview to control the SR245 (Stanfford Research). I have no Labview experience whatsoever.
Right now I can't even communicate with the SR245 via the COM port. I have no idea why.
Anyone who had similar experience before could help?
Thanks a bunch!
06-22-2010 10:21 PM
There is an uncertified driver but the first step is establish communication. Assuming that you are using a terminal emulation program such as Hyperterminal, check and double check all of the com settings (baud, parity, etc) and that you are using the correct type of serial cable (either null modem or straight-through). Ttyin anything in LabVIEW is just a waste of time until that works.
06-23-2010 10:26 AM
It uses a stright throught cable from DB25-DB9 connector. And I have tried with the SR272 program from SRS which worked fine.
So, here is what I know. The COM port is working, the SR245 is working, and I am certain the cable is working as well. So that leave the lab view in doubt. Either the driver is not working, or something else.
I tried to connect the Tektronix scope with COM2, and talked to it and it worked.
I am completely lost at this point.
06-23-2010 10:48 AM
Looking at the driver, i can see why it's unsupported. The functions have a fixed VISA Resource Name so that would be the first thing to fix.
If the driver for another model is working, use the parts of that driver that work. Turn on NI-Spy and capture the commands sent by the working driver to the commands sent by the non-working driver.