LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Forcing Relays via rs232

Hello everyone,
I’m new to Labview and i would appreciate it if someone could show me how to make, or use an existing Labview VI to operate via RS232 (ASCII or Modbus) an external Power Relay Output (Advantech ADAM 4069), in order to switch on and off a vacuum pump.

The problem is that no Labview VI or driver exists yet from Advantech. However, according to the manual I have to send simple hex command like 0x01 for Set and 0x00 for Reset, through a serial port.  
 
Product Page of Power Relay Output:
http://www.advantech.com/products/8-ch-Power-Relay-Output-Module-with-Modbus/mod_1-2MLDJ5.aspx

The event which will set or reset the relay is a dc voltage reading acquired by an internal PCI Multifunction Card, for which several VI’s exists.

Thanks in advance for any help!

Regards,
John
0 Kudos
Message 1 of 4
(2,820 Views)
First, start looking at the example program for Serial Read and Write in the example finder.
 
For simple commands like hex 00, you can create a string and set it for Hex display and type in 00.
 
Remember to pay attention to baud rate, stop bit and parity settings.  Also whether you need to send and carriage return (hex 0D, /r in /display mode) or line feed (hex 0A, /n in /display mode) at the end of a command.  Note that /n is a single byte meaning new line and is not separate bytes of a "/" and an "n".  That mistake causes problems for lots of people until they catch on.
 
With the Basic Read/Write example, you can try out one command at a time.
0 Kudos
Message 2 of 4
(2,818 Views)
Hi John,

Hope you have fixed or solved your little problem! If so could you please explain how? 😉

Actually I have a similar or maybe the same problem. I have a ADAM 4068 connected via a ADAM 4520 (serial) to my PC and i tray now to control that with LabView 8.5.1.

No luck so far

Is there anyone how could please help?

Many thanks in advance!

Sebastian
0 Kudos
Message 3 of 4
(2,742 Views)
Hi Sebastian,
 
Have you tired contacting the manufacturer to see if they have drivers for LabVIEW and the particular model you are using? We do not have drivers available on our Instrument Driver Network but we do offer resources that can help you develop the drivers. Please refer to the following links for more information.
 

Development Tools and Resources

You can also submit a request for a particular driver.
 
Thank you,
Simran K
National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(2,703 Views)