LabVIEW Wireless Sensor Network Module

User RAM Allocate VI

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

User RAM Allocate VI

Owning Palette: User RAM VIs

Requires: LabVIEW WSN Module

Allocates the specified number of elements in the user RAM.

Details  

size specifies the number of elements to allocate in the user RAM.
data type specifies the data type of the elements to allocate in the user RAM. You can allocate waveforms of single-precision, floating-point numbers, signed 8-bit, 16-bit, and 32-bit integers, and unsigned 8-bit, 16-bit, and 32-bit integers in the user RAM.
error in 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.
reference out is a reference to a block of memory in the user RAM.
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.

User RAM Allocate Details

If an error occurs when you use this VI, allocate more memory in the user RAM.