IIODriver interface : Set method

Set method
Description
VWorks software calls the Set method to tell the plugin to command the specified digital output channel on the device to output the specified voltage.
Syntax
 
HRESULT Set(
[in] BSTR xml,
[out,retval] enum ReturnCode *retVal
);
Parameters
 
[in] A digitalOutput XML element that contains the name of a digital output channel on a device and the voltage to set.
0 = The request was completed (RETURN_SUCCESS)
1 = Something was wrong with the input, so the request was not completed (RETURN_BAD_ARGS)
2 = The request was not completed (RETURN_FAIL)
Set method input
VWorks software passes a digitalOutput XML element into the xml parameter of the Set method.
The value of the file attribute of the Velocity11 element is Velocity11. See “Velocity11 element” .
digitalOutput element
The digitalOutput element has the following attributes:
 
Example of Set method input
The following sample code contains a digitalOutput XML element that is received by the plugin from VWorks software as a string in the xml parameter of the Set method. VWorks software tells the plugin to command the digital output channel named Output channel to output 100 volts.
 
version='1.1' >
<digitalOutput name='Output channel' value='100' />
Related information