Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA counter on EtherCAT-Slave

Hello dear NI friends,

 

I am trying to capture a rotary encoder signal with the help of a NI-9401 module on the FPGA of the EtherCAT-Slave chassis NI-9145, which is connected to a PXI target.

For this purpose I have a Controlling.VI, Logging.VI and UserInterfacing.VI which run in parallel. The counter should be calculated within the high priority Controlling.VI and the rotor position should appear at the lower priority UserInterfacing.VI (on my host laptop), with the help of a network shared-variable.

However I am not sure how to implement this. Do I have to create a separate FPGA VI containing the counter block diagramm, and then download it on the target? Are there available blocks for the counter function or do I have to create a block diagram that does this with the help of shift registers, detect change of a signal et.c.?

 

Separated tasksSeparated tasks

 

Best regards,

Lysandros

 



0 Kudos
Message 1 of 1
(2,362 Views)