From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication with TDK-Lambda

Hello, I'm trying to control the genesys TDK-Lambda 750W power supply through serial communication(Through hyperterminal). I have connected my power supply with the PC using a RS 232 cable with DB25 and Rj-45 connectors. THe power supplu has the following settings:

Bits per second:9600(Default)

Parity :None

Address:06(Default)

For serial communication the power supply is setted to use RS232 in the rear panel.

I have verified the address, the baud-rate, the switches on the rear of the instrument, but it appears all ok.

I have verified the COM in the PC, too..but it doesn't talk with the tdk lambda. when I send "ADR 06" to the power source through hyperterminal it should say "OK", but I read only

ADR 06

ADR 06

 

I don't know whether the communication port on the power supply is enabled or not.could any please help. Thank you

0 Kudos
Message 1 of 6
(10,736 Views)
Neither hyperterminal or the instrument are NI products so I'm not sure why you are posting here. The vendor should have a support page.

That being said, double check the command and the termination character(s).
0 Kudos
Message 2 of 6
(10,728 Views)


 

I don't know whether the communication port on the power supply is enabled or not.could any please help. Thank you


You are the one sitting in front of the instrument. How are we to know?

0 Kudos
Message 3 of 6
(10,721 Views)

Baud rate needs to be set to 19200.  

 

Have fun.

Message 4 of 6
(10,469 Views)

mraya001, were you able to get this to work?  I have the same Lambda power supply with the Lambda-supplied RJ45 to DB9 RS-232 cable and I get no response from the power supply whatsoever, just a timeout.

 

The port on the supply is enabled as far, as I can tell from the documentation.  The PC's serial port is functioning because I can use the NI-MAX VISA Test Panel to communicate with two other devices that are presently sitting on my desk.

 

Unless I missed it, the documentation does not say anything about having to send special termination characters, but it wouldn't surprize me if that's what it is.

 

0 Kudos
Message 5 of 6
(10,222 Views)

Ok, I got this to work using the VISA Test Panel in NI-MAX.  It was the termination string which Dennis alluded to in a previous post. 

 

Make sure you uncheck Send End On Writes.  The power supply requires only a carriage return after a command.  Nothing more, nothing less.  Oddly, it will not work if you check Enable Termination Character.  Once I unchecked those and manually added the \r to the end of my command strings, everything worked.  Also note that the supply will not respond if it doesn't get a ADR\s06\r as the first command in a "session" (the \s and \r are just visual representatives of a space and a carriage return respectively.  06 is the factory default address setting).

 

(edited for spelling)

Message 6 of 6
(10,215 Views)