**CIGAL Reference Manual, Chapter 7 (Hardware): NIDIG** =====NIDIG - National Instruments digital I/O interface ===== **usage: init nidig boardnum revpol nbits nports doutbits ** CIGAL supports National Instrument's NIDAQ-MX library interface capable of controlling a variety of NI data acquisition devices. There are separate INIT commands for configuring analog ([[jvs:cigal:manual:chapter7:nidig|NIADC]]) and digital (NIDIG) communication settings. The INIT NIDIG call expects the following arguments (default values in []): * boardnum [-1] - the device number (this is required) * revpol [0] - bitmask to reverse polarity of selected data bits * nbits [8] - number of bits per port * nports [1] - number of ports * doutbits [0] - bitmask indicating which data bits are for output (rest are input) You can also access some NIDAQ library routines directly in CIGAL using the PRIMITIVE command. A description of the NIDAQ primitive functions can be found in [[jvs:cigal:manual:chapter7:niprims|NIPRIMS]]. **See Also:**\\ [[jvs:cigal:manual:chapter7:nidig|NIADC]], [[jvs:cigal:manual:chapter7:niprims|NIPRIMS]],[[jvs:cigal:manual:chapter2:initialize|Initialize]], [[jvs:cigal:manual:chapter1:configure|Configure]] [[jvs:cigal|CIGAL Home]], [[jvs:cigal:manual|CIGAL Manual]], [[jvs:cigal:manual:chapter7|Hardware]], [[jvs:cigal:manual:help|Manual Help]]