dataTaker - Data Loggers, Powerful and Flexible Data Acquisition and Data Logging Systems
Powerful Data Logger and Flexible Data Acquisition and Data Logging Systems

DT ReadFromDataTakerTCPIPConnection.vi

LabVIEW DataTaker Driver >> DataTaker Low Level Communications >> DT ReadFromDataTakerTCPIPConnection.vi

Reads from the dataTaker using TCP/IP.

TCP/IP mode is CRLF. This mode waits until a CR (carriage return) followed by a LF (line feed) are received within the number of bytes requested or until the time runs out. Returns the bytes received up to and including the CR and LF or none. If a CR and LF are not found, reports a timeout.

Notes

- Assumes that the "DT OpenDataTakerTCPIPConnection" has been called first.

Error Message Generated

- DT LOWLEVEL ERROR: Unable to read from TCP/IP connection.


DT ReadFromDataTakerTCPIPConnection.vi


Controls and Indicators

cncrn

connection ID in network connection refnum that uniquely identifies the TCP/IP connection.

cu32

bytes to read (1000) if a line feed is not recieved within timeout then up to the number of bytes requested will be returned.

cu32

timeout (ms,25000) length of time to try and read data from the dataTaker (in ms).

cclstp

The error in cluster can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.

The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

    cbool

    The status boolean is either TRUE (X) for an error, or FALSE (checkmark) for no error or a warning.

    ci32

    The code input identifies the error or warning.

    cstr

    The source string describes the origin of the error or warning.

incrn

connection ID out network connection refnum that uniquely identifies the TCP/IP connection.

istr

data out is the data returned from the dataTaker.

ibool

timeout? returns true if a line feed did not occur within the timeout period.

iclst

The error out cluster passes error or warning information out of a VI to be used by other VIs.

The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

    ibool

    The status boolean is either TRUE (X) for an error, or FALSE (checkmark) for no error or a warning.

    ii32

    The code input identifies the error or warning.

    istr

    The source string describes the origin of the error or warning.

(C) 2003 dataTaker & ICON Technologies Pty Ltd

www.dataTaker.com

www.icon-tech.com.au

Google

WWW datataker.com

Go to top
Copyright © BIOLAB (Aust) Pty Ltd Trading as Datataker ABN 52 058 390 917