Cdaqmx::setdatetime, Cdaqmx::setdodata – Yokogawa PC-Based MX100 User Manual

Page 87

Advertising
background image

2-64

IM MX190-01E

CDAQMX::setDateTime

Syntax

virtual int setDateTime(CDAQMXDateTime * pcMXDateTime = NULL);

Parameters

pcMXDateTime Specify the time information data.

Description

Sets time information data on the device.
If the parameter’s time information data is omitted, the current date/time of the PC is

used.
Milliseconds are discarded.

The FIFO stops. If auto control is enabled, the FIFO starts after the function
completes successfully.

The response to this function may take one second or longer.
An error occurs if the time is a negative number.

Return value

Returns an error number.
Error:

Not data

Specified value incorrect.

Reference

getNo getPacketVersion getUserTime
runCommand startFIFO stopFIFO
CDAQMXDateTime::getMilliSecond
CDAQMXDateTime::getTime
CDAQMXDateTime::setNow

CDAQMX::setDOData

Syntax

int setDOData(CDAQMXDOData & cMXDoData);

Parameters

cMXDoData

Specify the DO data.

Description

Sets the DO data.
Sets the data of all the channels collectively.

Return value

Returns an error number.

Reference

getNo getPacketVersion getUserTime runCommand
CDAQMXDOData::getDOONOFF CDAQMXDOData::getDOValid

2.5 Details of the MX100 Class

Advertising