Since the 0/0/8 is an InterfaceKit, you can use the same code as in the examples to open and create the handle to the Phidget. In order to set the Output state, you can replace the getSensorValue callib on line 27 in the analogin.m example file with:
Code: Select all
calllib('phidget21', 'CPhidgetInterfaceKit_setOutputState', ikhandle, i, outputState)
where 'i' is the index of the relay and 'outputState' is either 1 or 0 for true or false.
The API for MatLAB is very similar to the API for C/C++.