118153-001 Rev. B
12
4.1.1 Enabling
Communications in C# for RS-232
Communications in Microsoft Visual C# are started with the COM port
initialized and then the port opened. Then a routine would be created
to send commands out the COM port, and another routine to receive
responses from the port.
Initialization
Routine:
For example:
CommResult
Connect(
string
comPort,
int
baudRate,
Parity
parity
=
Parity
.None)
Send
Routine:
For example:
void
SendCommand(
Command
cmd,
string
[]
parameters,
ref
byte[]
buf)
Receive Routine: That is polled or interrupt called.
For example:
void
ReceiveCommand(ref
byte
[]
buf)
4.1.2 Configuring
Communications in C# for RS-232
In order to configure the COM port object, first you must initialize it
in the COM port properties:
Settings
115200,n,8,1
Handshaking
0
–
None
The following could be an example C# Code routine to initialize the
COM Port.
port
=
new
SerialPort
(comPort,
baudRate);
port.Parity
=
parity;
try
{
port.Open();
}
catch
{
Console
.WriteLine(
"Error
opening
"
+
comPort);
}
Summary of Contents for uX SERIES
Page 11: ...uX MANUAL 4 118151 001 REV A Figure 2 1 50kV uX DIMENSIONS ...
Page 12: ...uX MANUAL 5 118151 001 REV A Figure 2 2 65kVuX DIMENSIONS ...
Page 16: ...uX MANUAL 9 118151 001 REV A Table 3 2 DC Input Filament Connections ...
Page 17: ...uX MANUAL 10 118151 001 REV A Figure 3 3 Monitors Voltage Current Control Connections ...
Page 18: ...uX MANUAL 11 118151 001 REV A Figure 3 4 Recommended Interlock HV on Configurations ...