Writes data to the shared memory of the RT target running on the RTX subsystem. You must wire RTRTX::0 to the device input of the RT Write VI to specify the RT target running on the RTX subsystem. Details
Use the pull-down menu to select an instance of this VI.

![]() |
device is the name of the RTX subsystem (for example, RTRTX::0). The default is RT::0. | ||||||
![]() |
byte offset is the location in memory to start writing data. | ||||||
![]() |
data is the data to write to shared memory. | ||||||
![]() |
previous data is the previous data the VI wrote to shared memory. | ||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||
![]() |
device out is the name of the RTX subsystem. | ||||||
![]() |
next byte offset is the location in shared memory to write during the next iteration of this VI. | ||||||
![]() |
write new data? is TRUE if writing new data and FALSE if writing previous data. | ||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|

![]() |
device is the name of the RTX subsystem (for example, RTRTX::0). The default is RT::0. | ||||||
![]() |
byte offset is the location in memory to start writing data. | ||||||
![]() |
data is the data written to shared memory. | ||||||
![]() |
previous data is the previous data written to shared memory. | ||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||
![]() |
device out is the name of the RTX subsystem. | ||||||
![]() |
next byte offset is the location in shared memory to write during the next iteration of this VI. | ||||||
![]() |
write new data? is TRUE if writing new data and FALSE if writing previous data. | ||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|

![]() |
device is the name of the RTX subsystem (for example, RTRTX::0). The default is RT::0. | ||||||
![]() |
byte offset is the location in memory to start writing data. | ||||||
![]() |
data is the data written to shared memory. | ||||||
![]() |
previous data is the previous data the VI wrote to shared memory. | ||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||
![]() |
device out is the name of the RTX subsystem. | ||||||
![]() |
next byte offset is the location in shared memory to write during the next iteration of this VI. | ||||||
![]() |
write new data? is TRUE if writing new data and FALSE if writing previous data. | ||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|

![]() |
device is the name of the RTX subsystem (for example, RTRTX::0). The default is RT::0. | ||||||
![]() |
byte offset is the location in memory to start writing data. | ||||||
![]() |
data is the data written to shared memory. | ||||||
![]() |
previous data is the previous data the VI wrote to shared memory. | ||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||
![]() |
device out is the name of the RTX subsystem. | ||||||
![]() |
next byte offset is the location in shared memory to write during the next iteration of this VI. | ||||||
![]() |
write new data? is TRUE if writing new data and FALSE if writing previous data. | ||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|

![]() |
device is the name of the RTX subsystem (for example, RTRTX::0). The default is RT::0. | ||||||
![]() |
byte offset is the location in memory to start writing data. | ||||||
![]() |
data is the data written to shared memory. | ||||||
![]() |
previous data is the previous data the VI wrote to shared memory. | ||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||
![]() |
device out is the name of the RTX subsystem. | ||||||
![]() |
next byte offset is the location in shared memory to write during the next iteration of this VI. | ||||||
![]() |
write new data? is TRUE if writing new data and FALSE if writing previous data. | ||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|
If you use the RT Write VI in a loop to write data to shared memory, you can pass the write data to the previous data input of the RT Write VI during the next iteration of the loop. This assures that no write occurs if the previous data value matches the new write data. For example, use a shift register to pass the data value to the next iteration of the loop.

The RT Write VI checks a read/write value located before the data in shared memory to see if the last write value has been read. If the read/write value = 0, indicating the data has been read, the RT Write VI writes the new value to shared memory and the read/write value is set to 1. If the read/write value = 0, indicating the data has not been read, the VI does not write data to shared memory.