Getfifodatanomx – Yokogawa PC-Based MX100 User Manual

Page 279

Advertising
background image

5-21

IM MX190-01E

Functions for the MX100 (Visual C/Visual Basic)

5

getFIFODataNoMX

Syntax

int getFIFODataNoMX(DAQMX daqmx, int fifoNo, MXDataNo *
startDataNo, MXDataNo * endDataNo);

Declaration

Public Declare Function getFIFODataNoMX Lib "DAQMX"(ByVal
daqmx As Long, ByVal fifoNo As Long, ByRef startDataNo As
MXDataNo, ByRef endDataNo As MXDataNo) As Long

Parameters

daqmx

Specify the device descriptor.

fifoNo

Specify the FIFO number.

startDataNo

Specify the destination where the start data number is to be
returned.

endDataNo

Specify the destination where the end data number is to be
returned.

Description

Gets the range of measured data that can be retrieved at the specified FIFO
number.

The start data number is set to the next number following the data number that was
retrieved last.

• The start data number is set to the next number following the data number that

was retrieved last.

• If the measured data that must be retieved does not exist, the negative of each

data number is returned.

Example:
If data numbers from 10 to 49 exist on the main unit and the last retrieved data

number was 29, a start data number of 30 and an end data number of 49 is
returned.

If the last retrieved data number was 49, the negative of each data number is
returned, and the function ends normally.

• For the validity check of the returned data, see the isDataNoMX function.

Return value

Returns an error number.

Error:
Not descriptor

No device descriptor.

Reference

CDAQMX::getFIFODataNo

5.1 Details of Functions - MX100 (Visual C/Visual Basic) -

Advertising