![background image](http://html.mh-extra.com/html/omega/ome-pci-1602/ome-pci-1602_windows-software-manual_737469039.webp)
3.5 The D/A Functions
3.5.1 P1602_Da
Description:
This function will write the 12 bit data to D/A port. This function will
refer to the current active OME-PCI-1602 board. Use the P1602_ActiveBoard(….) to select
the active board.
z
Syntax :
WORD P1602_Da(WORD wChannel, WORD wDaVal);
z
Input Parameter :
wChannel : 0 for channel_0 D/A, 1 for channel_1 D/A
wDaVal : 12 bit data sent to D/A port. 0=minimum and 4095=maximum. The D/A
output can be +/- 5V or +/- 10V depending on the setting hardware jumper JP1.
The software cannot detect the state of JP1, the user must be aware of its state.
z
Return Value :
NoError : OK
FindBoardError : cannot find the OME-PCI-1602 board
ExceedBoardNumber: invalid board number
DaChannelError : channel number must be 0 or 1
z
Demo Program : DEMO1.C
39
Summary of Contents for OME-PCI-1602
Page 37: ... Demo Program DEMO9 C 37 ...