18
MPS4232
Section 3: Operation
TCP client. Programs like ScanTel, HyperTerminal, or PuTTY
can be used to display and collect the ASCII data to the
screen or to a le. If binary data output is not enabled, and
the SCAN command is sent to the Telnet port, the MPS will
typically return data to the host from where the command
was sent.
ASCII data can be formaed using the FORMAT variable
under LIST S. The three formats available are:
• Unformaed, column based (scrolling)
• Formaed, VT100 terminal style (updang)
• Comma Separated Variable, CSV (scrolling)
Data output follows the specied ASCII packet structure
listed in Secon 5: Soware.
The MPS4200 provides a binary TCP server designed to
support any computer based TCP client, such as LabVIEW.
The structure of the binary packet sent from the binary
server is expressed in Secon 5: Soware.
The Binary TCP server expects a connecon to arrive on
port 503. Data will only stream to a single connecon. If a
second connecon is opened on the port, data will send on
the new connecon.
Because all conguraon sengs may be handled via the
Telnet server (port 23), the binary server supports starng
and stopping a scan with commands sent to port 503.
Sending the binary representaon of the integer “1” will
start a scan, and sending the binary representaon of the
integer “0” will stop the scan. The scanning will also stop if
the FPS variable has been met, the MPS scan buer over-
ows, or when the binary client disconnects from the MPS.
The scan sll adheres to the variables congured in the
MPS; RATE, FPS, and TRIG.
Scans can also be iniated use the SCAN command via
telnet, or an external scan trigger (TRIG == 2). When
these opons are used, the connecon to port 503 must
be opened prior to the SCAN command or external scan
trigger. If this connecon is not made, the MPS will not
send scan data to this desnaon. The scanning will also
stop if the FPS variable has been met, the MPS scan buer
overows, or when the binary client disconnects from the
MPS. The scan sll adheres to the variables congured in
the MPS; RATE, FPS, and TRIG.
The MPS4200 can transfer scan data using FTP protocol to
an applicable FTP server. The user may set up any suitable
server or NAS capable of running as a FTP server.
When ENFTP is set to one, and a scan is started, the so-
ware will aempt to connect and open a le on the FTP
server as congured by the FTP variables. The me and
date that is indicated by the GETTIME command is used in
the construcon of the le name.
The le that is saved on the server is assembled as follows:
<path on server><base data lename><date>_<me>.<type>
Where <type> is:
• “.DAT” for binary
• “.TXT” for ASCII Text
• “.CSV” for ASCII CSV le.
The le is closed when the scan stops. If the le cannot
be opened on the server when the scan starts, the scan is
stopped before any data is output and the MPS will report
an error.
FTP protocol can be used simultaneously with UDP output.
This allows users to congure a system such that data can
be monitored “real-me” via the UDP stream and collected
reliably via the FTP data transfer. For more informaon on
FTP variables, please see Secon 5: Soware.
The MPS4200 can transfer scan data using UDP protocol to
an applicable UDP client. The user may set up any suitable
UDP client for this operaon. Data output follows the speci-
ed packet structure listed in Secon 5: Soware.
UDP output supports a mulcast address following the
standard UDP mulcast address group, using a UDP address
of 224.0.0.0 through 239.255.255.255 and any valid port.
UDP protocol can be used simultaneously with FTP output.
This allows users to congure a system such that data can
be monitored “real-me” via the UDP stream and collected
reliably via the FTP data transfer. For more informaon on
UDP variables, please see Secon 5: Soware.
All binary data output, including the Binary server, can
buer up to 32768 frames of data (using the standard 32
channel binary packet) before the buer overows and
stops scanning. This allows the host soware to gather data
from the MPS at a slower rate than the MPS is scanning.
However, mulple frames must be read, at once, with each
read.
To calculate the maximum me that the client can wait
before reading data from the binary server use the
following: