DO_WritePort Previous topicNext topicFirst topicLast topic

DO_WritePort

@ Description

Writes digital data to the specified digital output port.

@ Cards Support

6208V/16V/08A, 6308V/08A, 7200, 7230, 7234, 7248, 7249, 7250/51, 7252, 7296, 7300A, 7432, 7433, 7434, 9111, 9112, 9116, 9118

@ Syntax

Microsoft C/C++ and Borland C++
I16 DO_WritePort (U16 CardNumber, U16 Port, U32 Value)
Visual Basic
DO_WritePort (ByVal CardNumber As Integer, ByVal Port As Integer, ByVal Value As Long) As Integer

@ Parameter

CardNumber : The card id of the card that want to perform this operation.
Port : Digital output port number. The cards that support this function and their corresponding valid value are as follows:
        PCI-6208V/16V/08A: 0
        PCI-6308V/08A: 0
        PCI-7200/cPCI-7200: 0
        PCI-7230/cPCI-7230: 0
        PCI-7234: 0
        PCI-7248/cPCI-7248/cPCI-7249R:
                Channel_P1A,  Channel_P1B,
                Channel_P1C,  Channel_P1CL,
                Channel_P1CH,  Channel_P2A,
                Channel_P2B,  Channel_P2C,
                Channel_P2CL,  Channel_P2CH
        PCI-7250/51: 0 through 3
        cPCI-7252: 0
        PCI-7296:
                Channel_P1A,  Channel_P1B,
                Channel_P1C,  Channel_P1CL,
                Channel_P1CH,  Channel_P2A,
                Channel_P2B,  Channel_P2C,
                Channel_P2CL,  Channel_P2CH,
                Channel_P3A,  Channel_P3B,
                Channel_P3C,  Channel_P3CL,
                Channel_P3CH,  Channel_P4A,
                Channel_P4B,  Channel_P4C,
                Channel_P4CL,  Channel_P4CH
        PCI-7300A/cPCI-7300A: 1 (auxiliary digital output port)
        PCI-7432/cPCI-7432: 0
        PCI-7434/cPCI-7434: PORT_DO_LOW, PORT_DO_HIGH
        cPCI-7433R: P7433R_DO_LED
        cPCI-7433R: PORT_DO_LOW, PORT_DO_HIGH, P7433R_DO_LED
        PCI-9111: P9111_CHANNEL_DO, P9111_CHANNEL_EDO
        PCI-9112/cPCI-9112: 0
        cPCI-9116: 0
        PCI-9118: 0
        PCI-9114: 0
Value : Digital data that is written to the specified port.
        PCI-6208V/16V/08A: 4-bit data
        PCI-6308V/08A: 4-bit data
        PCI-7200/cPCI-7200: 32-bit data
        PCI-7230/cPCI-7230: 16-bit data
        PCI-7234: 32-bit data
        PCI-7248/cPCI-7248: 8-bit data
        cPCI-7249R: 8-bit data
        PCI-7250/51: 8-bit data
        cPCI-7252: 8-bit data
        PCI-7296: 8-bit data
        PCI-7300A/cPCI-7300A: 4-bit data
        PCI-7432/cPCI-7432/cPCI-7432R: 32-bit data
        cPCI-7433R: 32-bit data
        PCI-7434/cPCI-7434/cPCI-7434R: 32-bit data
        PCI-9111: 16-bit data
        PCI-9112/cPCI-9112: 16-bit data
        PCI-9114: 16-bit data
        PCI-9118: 4-bit data

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered
ErrorFuncNotSupport, ErrorInvalidIoChannel