DI-2008 Digital IO programming

DI-2008 Digital IO programming

Hi,
 I'm trying to use matlab to turn on and off the digital ports of the DI2008, but I can't figure out the right commands. How do you use the digital ports as a switch?
Thanks
Charles