APX-3302 User's Manual (OM110000019A)
-50 -
■
The setting example for software
The sample code for sending command "AVAL" is as follows.
In this code, an alphabetic code, a baud rate, and a final character carry out the following.
Communication speed: 9600 bps
Final character : CR (¥r)
character code : ASCII
<Sample code>
// Open serial port
AcapSerialOpen(hDev, INPUT_CH);
// Configure serial parameter
AcapSerialSetParameter(hDev, INPUT_CH, 9600, 8, 0, 0, 0);
// Send command (writing)
AcapSerialWrite(hDev, INPUT_CH, TRUE, "AVAL¥r", NULL, NULL);
// Close serial port
AcapSerialClose(hDev, INPUT_CH);
Summary of Contents for APX-3302
Page 1: ...APX 3302 User s Manual ...