DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Outputstring via RS232-Module

Hello,
I am using DasyLAB version 2024. I need to operate hardware for acquiring measurement signals and controlling actuators (ICPDAS USB-87P4). The hardware is connected via a serial USB interface. DasyLAB reads all values correctly via the RS232 input module.
What I haven't been able to do yet is output a string that transmits a variable value from a manual controller module:
The manual controller provides a 0-10 scale value (analogous to the 0-10VDC control signal). The global variable ${VAR_0} is generated from the scale value. The output string should have the format “#050+00.000”, where “00.000” is the current scale value. The output string is defined as the global string “${STR_AO0OUT}”.
An action module is used in the layout, which selects the RS232 output module. The action is triggered when, for example, the value of the manual controller changes; I have also tried a “always” trigger. The action is “send global string”, synchronous, parameter: “5” (no. of the output string). The output module is set to “individual commands,” with “[a]/r” entered in the output string field.
The problem is that when the manual controller is activated, the global variable is written and the output string is also created correctly (in the Global Variables/Strings Overview menu), but no control signal is received by the hardware (0-10VDC output is connected to a measuring device).

I really hope that someone can help me with this.
Best regards

 

0 Kudos
Message 1 of 3
(108 Views)

I have now achieved the following:
After placing a “$5” in front of [a]\r in the RS232-Out module, the input values went haywire, but the output string was sent and processed correctly. I removed the “$5” again, and now the interface situation is such that when I move my slider, the input values jump and freeze (the output string is sent and processed correctly). After stop moving the slider, the input data is displayed correctly again.
Unfortunately, receiving measurement data while an output signal is being sent does not work satisfactorily – does anyone have any advice on this?

 

0 Kudos
Message 3 of 3
(45 Views)