Error getting tags :
error 404Error getting tags :
error 404 write to driver | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
write to driver
Basics
Expander triangle
Type
Command
Syntax

write value to driver deviceName

Introduced
1.1.1
Changed
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Disk,Process
Summary
Sends data to a device that has been opened with the open driver command.
Examples

write field "Command" & return to driver "/dev/cu.modem"
write nextData to driver mySerialDev

Additional Comments
Expander triangle

Use the write to driver command to control a peripheral device or send data through it.

Parameters:

The value is any expression that evaluates to a string.

The deviceName is the name of a device driver that's installed on the system and that you have previously opened with the open driver command.

Comments:

The device to write to must be opened first with the open driver command, and the mode the device was opened in must be either write or update. If the device is not open or is open read-only, the result function is set to "File is not open for write.".

Changes to Revolution:

Support for using serial drivers with OS X systems was added in version 2.0.

User Comments
Expander triangle