Cdaqmx::runpacket, Cdaqmx::searchchno – Yokogawa PC-Based MX100 User Manual
Page 83

2-60
IM MX190-01E
CDAQMX::runPacket
Syntax
virtual int runPacket(unsigned char * reqBuf, int lenReq,
unsigned char * ackBuf, int lenAck);
Parameters
reqBuf
Specify the request packet using a byte array.
lenReq
Specify the byte size of the request packet.
ackBuf
Specify the field where the response packet is to be stored using
a byte array.
lenAck
Specify the byte size of the response packet.
Description
Sends the specified request packet and receives the response packet. The
response packet is stored in the specified field. This is a member provided for non-
standard packets. The packets must be processed on the user side.
The use of a timeout is not recommended.
Return value
Returns an error number.
Reference
receiveBuffer send
CDAQMX::searchChNo
Syntax
int searchChNo(int fifoNo, int fifoIndex);
Parameters
fifoNo
Specify the FIFO number.
fifoIndex
Specify the channel sequence number in the FIFO.
Description
Searches for the channel number corresponding to the specified value from the
information stored in the data member.
Returns 0 if it does not exist.
Return value
Returns the channel number.
2.5 Details of the MX100 Class