Getchdatamx – Yokogawa PC-Based MX100 User Manual

Page 273

Advertising
background image

5-15

IM MX190-01E

Functions for the MX100 (Visual C/Visual Basic)

5

getChDataMX

Syntax

int getChDataMX(DAQMX daqmx, MXDataNo * pMXDataNo, MXChInfo *
pMXChInfo, MXDataInfo * pMXDataInfo, int * pFlag);

Declaration

Public Declare Function getChDataMX Lib "DAQMX"(ByVal daqmx As
Long, ByRef pMXDataNo As MXDataNo, ByRef pMXChInfo As
MXChInfo, ByRef pMXDataInfo As MXDataInfo, ByRef pFlag As
Long) As Long

Parameters

daqmx

Specify the device descriptor.

pMXDataNo

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

pMXChInfo

Specify the destination where the channel information data is to
be returned using the MXChInfo structure.

pMXDataInfo

Specify the destination where the measured data is to be returned
using the MXDataInfo structure.

pFlag

Specify the destination where the flag is to be returned.

Description

After declaring with a data retrieval start function (talkChDataMX, talkFIFODataMX,

etc.), retrieve time information data with the getTimeDataMX function and then
retrieve the measured data, data by data.

• When the last set of data is retrieved, the flag status is set.
• Do not perform communications using other functions until the data retrieval is

completed.Other functions may not operate properly.

Return value

Returns an error number.

Error:
Not descriptor

No device descriptor.

Reference

CDAQMX::getChData
CDAQMXChInfo::getMXChInfo
CDAQMXDataInfo::getMXDataInfo

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

Advertising