RE How to communicate with Lamdba ESS power supply using RS232,
yariv said;
>How to communicate with Lamdba ESS power supply using RS232? I tried
>ComWrt() with all the different strings that the user manual offers
>but it doesn's seem that the power supply is getting anything. The
>power supply has an RSTL for RS232 and GPIB communications.
RS232 can be difficult, there are quite a few possibilities;
1. Have you opened the port?
2. Do the port setting match the instrument?
- Baud rate.
- Data bits.
- Stop bits.
- Parity.
- Hardware handshake.
- Software handshake (XON/XOFF).
3. Have you set sensible values for time-out, input and output buffers?
4. Is the instrument set to RS232 rather than GPIB?
5. Have you tested the value
s (error numbers) returned by the RS232
functions?
If that lot is OK then you might want to consider an inter-character
delay you can implement that by using ComWrtByte() to send one byte at a
time. Don't send a subsequent byte until the output queue is empty;
GetOutQLen().
Speaking as someone who has struggled with poorly implemented RS232
instruments, I can't stress enough how important it is to be in full
control of the settings, inter-character delays and to test the function
return values.
--
Regards,
John Cameron.