The following information is for the EMANT300, EMANT380

Visual Basic 2005 Digital Output Error

Question: My digital output program has null reference exception error.

Answer: You have copied the Console example and used it in a Windows Form application. Please read the last two exercises of the Visual Basic 2005 and DAQ instructional guide to learn how to program the DAQ module in a Windows Form application.

Please download our digital output example program which is a Windows Form Application with Digital Output. It turns on/off the Green and Yellow LEDs in the Light Application Adaptor.
1) Click the Open button to connect the DAQ module.
2) If it connects correctly, the HwId will show EMANT300 000002.
3) Click on the check Boxes to turn on/off the LEDs.
4) Click the Close button to disconnect the DAQ module.