LabVIEW Wireless Sensor Network Module

Write to Sector VI

  • Updated2023-02-21
  • 27 minute(s) read

Write to Sector VI

Owning Palette: User Memory VIs

Requires: LabVIEW WSN Module

Writes data into a user memory sector starting at the specified byte offset. The offset is advanced by the length of the data. After writing the data, the data is read to verify that the write succeeded. An error code is returned if the write or verify fails. You must manually select the polymorphic instance you want to use.

Details  

Write to Sector Boolean Array

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Boolean

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Complex Single Array

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Complex Single

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Int8 Array

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Int8

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Int16 Array

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Int16

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Int32 Array

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Int32

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Single Array

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Single

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector String

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector UInt8 Array

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector UInt8

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector UInt16 Array

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector UInt16

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector UInt32 Array

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector UInt32

sector in specifies the user memory sector.
offset in (0) specifies the byte offset to start writing data to in the user memory sector.
data in contains the data you want write to the user memory sector.
error in (no error) describes error conditions that occur before this VI runs. The default is no error. If an error occurred before this VI runs, the VI passes the error in value to error out. This VI runs normally only if no error occurred before this VI runs. If an error occurs while this VI runs, it runs normally and sets its own error status in error out. 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.
sector out returns the address of the specified user memory sector.
offset out returns the byte offset after reading the data.
data out returns the data written to the user memory sector.
error out contains an error code. If error in indicates that an error occurred before this VI ran, error out contains the same value. Otherwise it contains the error code that this VI produces. The value will be 0 if no error occurred, and non-zero if an error occurred.

This VI can return the LabVIEW WSN Module error codes.

Write to Sector Details

You can write to the same location in user memory multiple times, but you must erase the entire user memory sector before you can write to the same location again. You can write to the same user memory sector multiple times as long as you don't overwrite a location in user memory that has already been written to.