Re: Need to control waterbath temp using labview via RS232
- From: chilly charly <x@xxxxxxxx>
- Date: Thu, 20 Oct 2005 23:40:41 -0500 (CDT)
Use simply the recommandations given in the RTE manual. You don't have to convert to binary : that's something done by the hardware.
For instance, to send the temperature setpoint to the controler, you have to send a byte string such as
CA 00 01 F0 02 01 2C DD, where CA 00 01 is a header specific to the type of serial link you are using,F0 is the set temperature command,02 is the number of bytes expressing the temperature that you are about to send01 0C is the temperature in tenths of degree (here : 30°C = 300 tenth = 010C$DD is a check sum byte.
The corresponding labVIEW program is as follow :
<img src="http://forums.ni.com/attachments/ni/170/148131/1/Water%20bath.png">
Of course, do not forget to initialize the serial port before writing the string !
Message Edité par chilly charly le 10-21-2005 06:21 AM
Water bath.png:
http://forums.ni.com/attachments/ni/170/148131/1/Water bath.png
Water bath.vi:
http://forums.ni.com/attachments/ni/170/148131/2/Water bath.vi
.
- References:
- Prev by Date: Re: While using Build App installer, how does one include drivers for hardware
- Next by Date: need help writing to spread*** file in labview
- Previous by thread: Re: Need to control waterbath temp using labview via RS232
- Next by thread: Re: Need to control waterbath temp using labview via RS232
- Index(es):
Loading