Getchdatanomx – Yokogawa PC-Based MX100 User Manual

Page 274

Advertising
background image

5-16

IM MX190-01E

getChDataNoMX

Syntax

int getChDataNoMX(DAQMX daqmx, int chNo, MXDataNo *
startDataNo, MXDataNo * endDataNo);

Declaration

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

Parameters

daqmx

Specify the device descriptor.

chNo

Specify the channel 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 channel.
• 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::getChDataNo

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

Advertising