Skip to main content

FIFOStatus

FIFOStatus [/Q] FIFOName

The FIFOStatus operation returns miscellaneous information about a FIFO and its channels. FIFOs are used for data acquisition.

Flags

/QDoesn't print the S_Info string in the history area.

Details

FIFOStatus sets the variable V_flag to nonzero if a FIFO of the given name exists. If the named FIFO does exist then FIFOStatus stores information about the FIFO in the following variables:

V_FIFORunningNonzero if FIFO is running.
V_FIFOChunksNumber of chunks of data placed in FIFO so far.
V_FIFOnchansNumber of channels in the FIFO.
S_InfoKeyword-packed information string.

The keyword-packed information string consists of a sequence of sections with the following form: keyword:value;

You can pick a value out of a keyword-packed string using the NumberByKey and StringByKey functions. Here are the keywords for S_Info:

KeywordTypeMeaning
DATENumberDate/time when start was issued via CtrlFIFO.
DELTATNumberFIFO's deltaT value as set by CtrlFIFO.
DISKTOTNumberCurrent number of chunks written to the FIFO's file.
FILENUMNumberOutput file refNum or review file refNum as set by CtrlFIFO. This will be zero if the FIFO is connected to no file.
NOTEStringFIFO's note string as set by CtrlFIFO.
VALIDNumberZero if FIFO is not valid.
DATATYPENumberChannel's data type as if set by NewFIFOCHAN/Y=(numType), where numType is a value as returned by the WaveType function.

In addition, FIFOStatus writes fields to S_Info for each channel in the FIFO. The keyword for the field is a combination of a name and a number that identify the field and the channel to which it refers. For example, if channel 4 is named "Pressure" then the following would appear in the S_Info string: NAME4:Pressure.

In the following table, the channel's number is represented by #.

KeywordTypeMeaning
FSMINUS#numberChannel's minus full scale value as set by NewFIFOChan.
FSPLUS#numberChannel's plus full scale value as set by NewFIFOChan.
GAIN#numberChannel's gain value as set by NewFIFOChan.
NAME#stringName of channel.
OFFSET#numberChannel's offset value as set by NewFIFOChan.
UNITS#stringChannel's units as set by NewFIFOChan.

See Also

FIFOs and Charts

NumberByKey, StringByKey