BoardConfig.SetDACStartup()

Sets the board's configuration register STARTUP bit to 0 or 1 to enable/disable the storing of digital-to-analog converter (DAC) startup values. Each time the DAC board is powered up, the stored values are written to the DACs. New DAC start-up values are stored in memory by calling AOut() or AOutScan() after calling SetDacStartup() with the argument set to 1. Refer to the "Notes" section below for more information.

Member of the cBoardConfig class. Accessible from the MccBoard.BoardConfig property.

Function Prototype

VB .NET

Public Function SetDACStartup(ByVal configVal As Integer) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo SetDACStartup(int configVal)

Parameters

configVal

Set to 0 to disable, or 1 to enable the storing of startup values for the channel.

Returns

Notes

Example

DacBoard.BoardConfig.SetDACStartup(1);

for (int i =1; i <8; i++)

{

DacBoard.AOut(i, BIP5VOLTS, DACValue[i]);

}

DacBoard.BoardConfig.SetDACStartup(chanNum, 0);