status


Description

Specifies updated status of device.

Syntax

UInt32 status

Read

Gets the status of the device. Refer to table below for description of status configurations.

Example

unsigned deviceStatus;
deviceStatus = dsm.status;

Write

Read-Only

Configurations

Decimal Hex Code Binary Code Status
1 0x1 00000001 Armed
2 0x2 00000010 Triggered
4 0x4 00000100 In Loop
8 0x8 00001000 Auto-Armed
16 0x10 00010000 Slave
32 0x20 00100000 Slave Wait
64 0x40 01000000 Infinite Loop
128 0x80 10000000 Data Length Enabled

Note that the device can be simutaneously be in multiple states. In binary code, each "1" bit represents a state. If there is more than one state, then the binary code will have multiple "1" bits. For example if the device was Armed, Triggered, In Loop and Auto-Armed, then the binary code would be "00001111". Status can be output in any format so it is best to output it in binary code.