Retrieval of the measured data – Yokogawa PC-Based MX100 User Manual
Page 1074
![background image](/manuals/360310/1074/background.png)
22-7
IM MX190-01E
22
DARWIN for Extended API - Visual Basic.NET -
Retrieval of the Measured Data
Program Example
Module Module1
Public Sub Meas()
Dim comm As Integer
Dim rc As Integer
Dim value As Integer
'connect
comm = openDA100("192.168.1.11", rc)
'get
rc = measInstChDA100(comm, 0, 1)
value = dataValueDA100(comm, 0, 1)
'disconnect
rc = closeDA100(comm)
End sub
End Module
Description
Overview
Retrieves instantaneous values of the measured data from channel 1 of DARWIN
subunit number 0 and stores them in the field. Reads the measured values and
concludes the process.
Communication Connection
comm = openDA100("192.168.1.11", rc)
The IP address of the DARWIN is specified. This statement specifies the
communication constant for the DARWIN communication port number.
Retrieval of the Measured Data of Channel 1
rc = measInstChDA100(comm, 0, 1)
Retrieves instantaneous values of the measured data from channel 1 of DARWIN
subunit number 0 and stores them in the field.
Retrieval of Measured Values
value = dataValueDA100(comm, 0, 1)
Reads the measured value of channel 1 of subunit number 0 from the field where
the measured data is stored.
Comm. cut
rc = closeDA100(comm)
Drops the connection.
22.2 Programming - DARWIN/Visual Basic.NET -