# cbMemSetDTMode()

Sets the DT-Connect Mode of a Memory Board

## Function Prototype

C/C++

int cbMemSetDTMode(int BoardNum, int Mode)

Visual Basic

Function cbMemSetDTMode(ByVal BoardNum&, ByVal Mode&) As Long

## Arguments

BoardNum

The number associated with the board when it was installed with InstaCal or created with cbCreateDaqDevice(). BoardNum may be 0 to 99.

Mode

Must be set to either DTIN or DTOUT. Set the Mode on the memory board to DTIN to transfer data from an A/D board to the memory board. Set Mode = DTOUT to transfer data from a memory board to a D/A board.

## Returns

- Error code or 0 if no errors

## Notes

- This command only controls the direction of data transfer between the memory board and the base board connected to it via a DT-Connect cable.
- If you are using the EXTMEMORY option, do not use cbMemSetDTMode(), as the memory board mode is already set with EXTMEMORY.
- Use this method only when the base board is not supported by the Universal Library.