LabVIEW Wireless Sensor Network Module

Erase Sector VI

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

Erase Sector VI

Owning Palette: User Memory VIs

Requires: LabVIEW WSN Module

Erases the specified user memory sector. This VI erases one 4 KB user memory sector. You must erase user memory sectors that have been previously written to before writing data to the same location again. The erase is successful only if the sector is not empty. error out returns an error code if erasing the user memory sector fails.

sector in specifies 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.
erases remaining returns the remaining number of erase operations for the user memory sector. If erases remaining returns a negative value, the maximum number of erase operations has been exceeded, and that user memory sector might not function as expected.
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.

Log in to get a better experience