Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-1200 daq function

Hi,

Does anybody know what daq fuction that performs
the task of sending a binary patern to the digital I/O port.

Example:
If I what do sent 1 to PA0 , 0 to PA1 and 0 to PA2 simultaneously,
Is there a function that do that?

Thanks.
0 Kudos
Message 1 of 3
(1,327 Views)
"Tan" wrote:
>>Hi,> >Does anybody know what daq fuction that performs >the task of sending
a binary patern to the digital I/O port.> >Example: >If I what do sent 1
to PA0 , 0 to PA1 and 0 to PA2 simultaneously,>Is there a function that do
that?> >Thanks.

Hi Tan,

First, use "status = DIG_Prt_Config (deviceNumber, port, mode, dir)" to configure
the ports.
Use these arguments:

  • devicenumber: as specified in the measurement and automation explorer

  • port: 0 ( PA)

  • mode: 0 (no handshaking)

  • dir: 1 (standard output)



  • Then, call "status = DIG_Out_Prt (deviceNumber, port, pattern)", with

  • devicenumber: as specified in the measurement and automation explorer

  • port: 0 ( PA)

  • patt
    ern: 10000000 (binary)


  • See NI-Daq help index -> 1200 Series Device Function List ->DIG_Prt_Config
    / DIG_Out_Prt
    for more info.


    In LabView:Tthe VI's will probably also be called something like"DIG_Prt_Config"
    and
    "DIG_OUT_Prt". Enter these same arguments into the VI.

    Hope it helps,

    Walter

    0 Kudos
    Message 2 of 3
    (1,327 Views)
    "Tan" wrote:
    >Hi,
    >
    >Does anybody know what daq fuction that performs
    >the task of sending a binary patern to the digital I/O port.
    >
    >Example:
    >If I what do sent 1to PA0 , 0 to PA1 and 0 to PA2 simultaneously,
    >Is there a function that do that?
    >
    >Thanks.

    Hi Tan,

    First, use "status = DIG_Prt_Config (deviceNumber, port, mode, dir)" to configure
    the ports. Use these arguments:
    - devicenumber: as specified in the measurement and automation explorer
    - port: 0 ( PA)
    - mode: 0 (no handshaking)
    - dir: 1 (standard output)

    Then, call "status = DIG_Out_Prt (deviceNumber, port, pattern)", with
    - devicenumber: as specified in the measurement and automation explorer
    - port: 0 ( PA)
    - pattern: 10000000 (binary)

    See NI-Daq hel
    p index -> 1200 Series Device Function List ->DIG_Prt_Config
    / DIG_Out_Prt for more info.

    In LabView:The VI's will probably also be called something like"DIG_Prt_Config"
    and "DIG_OUT_Prt". Enter these same arguments into the VI.

    Hope it helps,

    Walter
    0 Kudos
    Message 3 of 3
    (1,327 Views)