DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Output a global variable to RS232 module

Hi

I try to control power supply model for this action i need to send command to the unit 

first command is   :ADR01;      its the address of power supply number one.

then i need to send the command      :OUT1;    this command get the power supply on.

can you send me some shoot screen how to send this in rs232

thank you .

Eyal

0 Kudos
Message 11 of 14
(3,255 Views)

Manual "5.5.1 Init control", p. 42, #3 says that you need to switch the device manually into remote mode using some button on the the device's front panel.

 

Place a RS232 input module into the worksheet.

Configure the interface settings.

Go to the RS232 monitor.

Enter :ADR1;:MDL?; then press enter (p.42). The device should answer with some information about its type, name, etc.

 

Is that working?

 

 

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
0 Kudos
Message 12 of 14
(3,248 Views)

HI

I do it is not work.

0 Kudos
Message 13 of 14
(3,246 Views)

Oh, add \r and/or \n to the string

:ADR1;:MDL?;\r

or

:ADR1;:MDL?;\n

or

:ADR1;:MDL?;\r\n

 

EDIT:

Ok, the manual says that commands send to the device do not need \r, \n symbols.

 

 

Hmm, sometimes the manual uses a colon (p. 48 for example), sometimes a semicolon to present examples.

 

Perhaps you should try :ADR1::MDL?:   with colons only.

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
0 Kudos
Message 14 of 14
(3,242 Views)