10-15-2025 04:16 AM
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
10-16-2025 02:33 AM
I have actually taken into account the input from the following topics, as far as I understand correctly:
https://forums.ni.com/t5/DASYLab/how-to-send-3-variables-via-rs232-output-module/td-p/1047247
https://forums.ni.com/t5/DASYLab/RS232-Sending-Data-Format/td-p/4423010
https://forums.ni.com/t5/DASYLab/RS232-data-format/td-p/2509490
https://forums.ni.com/t5/DASYLab/Dasylab-sends-only-one-string-using-RS232/td-p/1008737
https://forums.ni.com/t5/DASYLab/Output-a-global-variable-to-RS232-module/td-p/499710
https://forums.ni.com/t5/DASYLab/Analysing-RS-232-ascii-data/td-p/2037074
https://forums.ni.com/t5/DASYLab/RS232-Input-and-Output-in-the-same-time/td-p/1820395
https://forums.ni.com/t5/DASYLab/Serial-Communication/td-p/4005791
https://forums.ni.com/t5/DASYLab/rs-232-output/td-p/2353268
https://forums.ni.com/t5/DASYLab/How-do-I-export-a-global-string-via-RS232-PS-history-of-dasylab/td-...
Unfortunately, I'm still stuck...
10-20-2025 02:56 AM
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?