beautypg.com

Aiscan, Bufoverwrite, Bufsize – Measurement Computing DAQFlex User Guide User Manual

Page 42

background image

DAQFlex Software User's Guide

DAQFlex Message Reference – Programming messages – AISCAN

42

AISCAN

Sets and gets property values when scanning analog input channels.

Refer to the device-specific information in the Hardware Reference section for the component properties

and commands supported by each DAQ device.

Properties

BUFOVERWRITE, BUFSIZE, BURSTMODE, CAL, COUNT, EXTPACER, HIGHCHAN, INDEX, LOWCHAN,
QUEUE, RANGE, RATE, RESET, SAMPLES, SCALE, START, STATUS, STOP, TEMPUNITS, TRIG, XFRMODE

BUFOVERWRITE

Enable or disable buffer monitoring to prevent overwriting unread data.
Message

"AISCAN:BUFOVERWRITE=value"

Response "AISCAN:BUFOVERWRITE "

value

ENABLE, DISABLE

Example

"AISCAN:BUFOVERWRITE=ENABLE"

Note

DISABLE (default): Do not monitor the buffer – allow overwrite.

ENABLE: Monitor the buffer and generate an error if unread data is being

overwritten.

Get a value indicating whether the buffer is being monitored to prevent data overwrite.
Message

"?AISCAN:BUFOVERWRITE"

Response "AISCAN:BUFOVERWRITE=value"

value

ENABLE, DISABLE

Note

ENABLE indicates that an attempt to overwrite unread data will generate an error
message.

DISABLE indicates that no error will be generated when data is overwritten.

This message is processed by the DAQFlex Software library, and is not sent to the

device.

BUFSIZE

Set the size in bytes of the buffer to be used for AISCAN.
Message

"AISCAN:BUFSIZE=value"

Response "AISCAN:BUFSIZE"

value

The size in bytes of the buffer.

Example

"AISCAN:BUFSIZE=131072"

Note

The default buffer size 1,024,000 bytes. This should be sufficient for most
applications. The actual buffer size will always be an integer multiple of the device's

maximum packet size.

If this value is set, it should be at least (the number of bytes per sample) x (number
of channels) x (sample count) for finite mode. In continuous mode, a circular buffer

is used, so the size needs to be sufficient to allow reading the data before it is

overwritten.