StepByStep CS NET and The UL Basics
StepByStep CS NET and The UL Basics
NET Data Acquisition solution using the Universal Library from scratch
ULStat = MccDaq.MccService.ErrHandling(MccDaq.ErrorReporting.PrintAll,
MccDaq.ErrorHandling.StopAll);
That’s it. From here you can add code and procedures to things such as:
Analog input: DaqBoard.AIn
Analog InScan: DaqBoard.AInScan
Digital In: DaqBoard.DIn
Digital Out: DaqBoard.DOut
Digital Bit In : DaqBoard.DBitIn
Digital Bit Out: DaqBoard.DBitOut
Analog Out: DaqBoard.AOut
Analog Out Scan: DaqBoardAOutScan
Please see the Universal Library function reference guide or C:\MCC\Unilib.chm for more information.
For example, you could add a command button and 2 labels to the form, then paste in the follow to the code window:
Note: This will only work for MCC hardware that has an A/D converter with a Bipolar 10 volt range.