03-29-2007 04:54 PM
03-30-2007 03:47 PM
03-31-2007 04:07 PM
04-02-2007 02:18 PM
01-19-2015 05:26 AM
Hi
How can i send string in serial port RS232?
I need to send the command ":OUT1;"
thenk's
01-19-2015 01:03 PM
For a fixed string, use the RS232 Output module configured to simply send UT1;\r\n (<CR> <LF appended)
01-20-2015 01:40 AM - edited 01-20-2015 01:46 AM
Attached you can find a "complex" example: The worksheet controls via RS232 a small electric engine. The engine understands three commands with format "<cmd><number>", eg. "F500" (set frequency to 500Hz), "D100" (set duty cycle to 10%), and "V450" (set voltage to 4.5V). That "450" means "4.5V" was hardcoded into the hardware.
Note how the values from the sliders are send indirectly to the hardware: first, the value is stored in a global variable. The value are now modified "behind the scenes" by calculating a global string (see attached image). If that string content changes, the action modules send that string via RS232 output module to the hardware.
The calculation of the string is necessary to get rid of the decimals after the comma.
Rename the file rs232_example._zip to rs232example.zip (remove underscore), because the NI forum is unable to recognize the ZIP file created with 7zip app... 😕
01-20-2015 06:19 AM
Hi
i need to send command to power supply see link
http://www.us.tdk-lambda.com/ftp/Manuals/zup_usermanual.pdf
first command :ADR01;
second command :OUT1;
I build this simple porgram
01-20-2015 06:19 AM
Hi
i need to send command to power supply see link
http://www.us.tdk-lambda.com/ftp/Manuals/zup_usermanual.pdf
first command :ADR01;
second command :OUT1;
I build this simple porgram
01-20-2015 11:09 AM
The manual suggests that you don't need a CR LF at the end of the command, and you can put both commands on the same line.
What are you trying to do? Did you see the detailed example that HolWo posted?
Please note that DASYLab V6 is very very old, and may not have some of the features of DASYLab 13. V6 shipped in 2001.