Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
DrKlein
Posted - 09/10/2007 : 05:20:17 AM Origin Version (Select Help-->About Origin): 7.0 Operating System: Windows 2000
Hi, I am trying to transmit data to an external device, connected to the computer via the RS-232 port (in my case: COM 1)
What I eventually want to do is clicking into a .bmp image, imported into Origin and having Origin send the coordinates to an external device, which moves to this position.
Anyway, my problems start much earlier: I tried to communicate with a simple RS-232 device, tried the file RS232commands.c from the data exchange site and the RS232.c file shipped with Origin itself.Neither worked. Communication with Microsoft "Hyperterminal" works, though. Required RS-232 Settings are Baud Rate: 9600 Parity: none Data bits: 8 stop bits: 1
I tried commands like (RS232commands.c): rs_open(1); rs_write("*rst\n");
result: COM1 was opened successfully. (nothing else)
or with RS232.c: rso 1; rsw "*rst\n";
result: COM1 was openned successfully. 6 bytes chars have been sent COM.
The command for the device is *rst and \n is the message terminator. Is the message terminator maybe the problem ? I tried it with and without.
In order to get to the final goal (clicking and transmitting via RS232, is Winedge maybe the better choice for that task ?