DT WriteToDataTakerSerialConnection.vi
LabVIEW DataTaker Driver >> DataTaker Low Level Communications >> DT WriteToDataTakerSerialConnection.vi
Writes a command to the dataTaker using serial communications. CRLF termination of the command string is handled by this vi.
Notes
- Assumes that the "DT OpenDataTakerSerialConnection" has been called first.
- Assumes that dataTaker HW is in "CRLF" mode.
Error Message Generated
- DT LOWLEVEL ERROR: Unable to write to serial connection.
Controls and Indicators

|
DT serial contains the serial session configuration information. |

|
protocol: specifies whether to use standard serial communications, or the DARTS protocol (DT500 only). |

|
VISA resource name: the VISA resource to use for serial communications (ignore when using DARTS protocol). |

|
DARTS reference Reference to a DT DARTS object. |

|
serial buffer reference Reference to a DT SerialBuffer object. |

|
data in the command to send to the dataTaker. |

|
timeout (ms,25000) length of time to try and write to the dataTaker (in ms). |

|
direct write (false) disables the DARTS protocol (true) if it is enabled. This is useful in establishing communications via a modem. |

|
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. |

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

|
The code input identifies the error or warning. |

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

|
DT serial contains the serial session configuration information. |

|
protocol: specifies whether to use standard serial communications, or the DARTS protocol (DT500 only). |

|
VISA resource name: the VISA resource to use for serial communications (ignore when using DARTS protocol). |

|
DARTS reference Reference to a DT DARTS object. |

|
serial buffer reference Reference to a DT SerialBuffer object. |

|
timeout? returns true if the command could not be written within the timeout period. |

|
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. |

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

|
The code input identifies the error or warning.
|

|
The source string describes the origin of the error or warning.
|
(C) 2003 dataTaker Pty Ltd & ICON Technologies Pty Ltd
www.dataTaker.com
www.icon-tech.com.au
|