10-28-2010 06:45 AM
Hi everyone, I am a amateur and very new to Labview driver and also the programming with drivers. But now I have to create a amplication in labview to control the Shutter SC10 of Thorlabs . I am trying to read documents about Labview but has not any effective.
Please tell me what can I do from the connection to writting that aplication!
I feel to be in despair of my capacity
Thank you very much for your help!
My e-mail: domaitrang@gmail.com
This Link to Shutter SC10:
http://www.mediafire.com/?ctjdc32nqpzhkbw
Solved! Go to Solution.
10-29-2010 11:06 AM
Hi,
According to the manual, the shutter SC10 can be controlled with an RS-232 link.
So the first step is to build (or buy) the cable if you don't already have it in order to connect the Shutter to the PC.
Then, in LV, you have to learn how to send RS-232 messages. You can do this with the VISA functions. Search for "RS-232" in LV example finder.
To learn how to communicate in RS-232, you can also connect 2 PCs together, send message with LV and receive them with Windows Hyperterminal.
Then you have to know exactly the syntax of the RS-232 messages that you have to send to the Shutter (each instrument has it's own set of "commands").
Finally, you will code the LV application using while/for loops, sequence structures, case structures...
Good luck!
11-02-2010 05:13 AM
Hi Thomas,
I use a laptop that has not COM port. Tell me, plz, how I can make a connection between two pc to send and receive messages via RS232? And where I can get the connector?
Thanks z lot for your help,
Trang,
11-02-2010
05:40 AM
- last edited on
04-03-2025
10:38 AM
by
Content Cleaner
Hi,
You can use an RS-232/ USB convertor.
We sell one here.
The connector is a standard "DB-9" connector. You can buy them on any electronic online store (Farnell, Radiospares...).
Best regards,
12-16-2011 02:56 PM
12-16-2011 03:03 PM
Then you probably forget to send a CR or LF code after the command. Something that is added by hyperterminal but not by LabVIEW.
It is however easy to add by concatenating a string with CRLF.
If it still does not work, there is another more subtle difference and that is that hyperterminal is sending character by character, a bit slower than LabVIEW.
Normally LAbVIEW dumps the string in one big burst of characters but if you write char by char in a loop it is almost as slow as hyperterminal.
12-16-2011 05:26 PM
12-17-2011 03:22 AM
12-20-2011 09:49 AM
Hi, I discovered IMax Visa panel works when I set the 488.2 standard and use \r as end character. I am still trying to write a woking code...
thanks for your advices,
Dan
12-20-2011 04:10 PM