
DAQFlex Message-based Firmware Specification Message-based control transfers
5
The DEV component message "DEV:DATATYPE=ENABLED" specifies whether raw data is enabled or
disabled for returned data. When DEV:DATATYPE=ENABLED, the first byte indicates the data type
returned. Refer to the RawData Notes for more information.
The amount of data transferred must be specified in the wLength field.
Message-based control transfers
Digital I/O Commands
Send string messages to the device
Return raw data from the device
StringMessage — SMBI string message
This command reads/writes the string message components of a device. The device stores the various
components and parameters to provide read back.
Output arguments
char[64]; 64 character string including a NULL terminator.
Input arguments
None
Input response
char[64]; 64 character response string including a NULL terminator.
Notes
Invalid output strings result in a STALL to the USB Control Transfer, and the input response returns
"INVALID".
RawData — Raw data with SMBI
This command reads the RAW data from the last StringMessage sent to the device. Data is only
returned if the StringMessage has matching RAW data; otherwise a 0 length packet is returned.
Output arguments
N/A – output is not currently supported.
Input arguments
None
Input response
0x03 – uint8
0x07 – uin16
0x09 – uint32
0x0A – float32
0xFF – Invalid
This depends upon the StringMessage sent, but will have the form of
DATATYPE. Invalid StringMessage result in a 0 length packet, or if
DATATYPE is set to ENABLE, one byte reading 0xFF.
Komentarze do niniejszej Instrukcji