# 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

- An ErrorInfo object that indicates the status of the operation.

## Notes

- Use the SetDACStartup() method to store the DAC values you would like each DAC channel to be set to each time the board is powered up.
- To store the current DAC values as start-up values, call SetDACStartup() with a configVal value of 1. Then, each time you call AOut() or AOutScan(),the value written for each channel is stored in NV RAM. The last value written to a particular channel while SetDACStartup() is set to 1 is the value that channel will be set to at power up. Call SetDACStartup() again with a configVal value of 0 to stop storing values in NV RAM.

##### Example

DacBoard.BoardConfig.SetDACStartup(1);

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

{

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

}

DacBoard.BoardConfig.SetDACStartup(chanNum, 0);