Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Use internal timebase as Source for encoder Channel A in position measurement ?

I'm using the Measure Buffered Position (NI-TIO).vi example with a 6602 board with two pulse encoding selected and Z Channel Indexing enabled. I do not have an encoder but use this for multiple event counting (using another gate input to latch the current count) with ability to reset the initial count back to zero using the Z-Index input. Is it possible to use an internal timebase as the Source for the Channel A input phase ? I've tried using Counter Source (NI-TIO).vi to specify this, but it did not work and I could not observe the timebase at the Source pin. Is this just not possible/allowed because the Encoder application is expecting an external clock to be applied ? If so, can Route
Signal somehow be used instead ?
0 Kudos
Message 1 of 2
(3,166 Views)
Hi Steve,

Unfortunately, the source for this application is configured internally by the application and the Counter Set Attribute will be overridden by the application.

An alternative which isn't quite as elegant as an all internal solution would be to use another counter to export the internal timebase to a PFI line which you could connect to Channel A. The example program linked below demonstrates this best.

Routing the NI 660x Internal Timebase to a PFI Line
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DFC156A4E034080020E74861&p_node=DZ52325&p_source=External

Have a good day.

Ron
0 Kudos
Message 2 of 2
(3,166 Views)