Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

ZResetCondition

Reset condition for Z-indexing

Description

When working with the session-based interface, use the ZResetCondition property to specify reset conditions for Z-indexing of counter Input 'Position' channels. Accepted values are:

  • 'BothHigh'

  • 'BothLow'

  • 'AHigh'

  • 'BHigh'

Example

Change Counter Channel Z Reset Condition

Create a session and add a counter input Position channel.

s = daq.createSession('ni');
ch = addCounterInputChannel(s,'cDAQ1Mod5',0,'Position')
ch = 

Data acquisition counter input position channel 'ctr0' on device 'cDAQ1Mod5':

    EncoderType: X1
   ZResetEnable: 0
    ZResetValue: 0
ZResetCondition: BothHigh
      TerminalA: 'PFI0'
      TerminalB: 'PFI2'
      TerminalZ: 'PFI1'
           Name: ''
             ID: 'ctr0'
         Device: [1x1 daq.ni.CompactDAQModule]
MeasurementType: 'Position'

Change the ZResetCondition to BothLow.

ch.ZResetCondition = 'BothLow'
ch = 

Data acquisition counter input position channel 'ctr0' on device 'cDAQ1Mod5':

    EncoderType: X1
   ZResetEnable: 0
    ZResetValue: 0
ZResetCondition: BothLow
      TerminalA: 'PFI0'
      TerminalB: 'PFI2'
      TerminalZ: 'PFI1'
           Name: ''
             ID: 'ctr0'
         Device: [1x1 daq.ni.CompactDAQModule]
MeasurementType: 'Position'
Was this topic helpful?