LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Alternative for the Quotient and Remainder function inside an SCTL

Hi NI community,


I recently started working with LabView and am trying to design a switch port selector algorithm for an FPGA. This includes a counter with a total number of repetitions (e.g. 100) which needs to switch on every Nth (e.g. every second) repetition.

To implement this, I used the Quotient and Remainder operation after the counter, placed within an FPGA source clocked Single-Cycle Timed Loop (SCTL). Since this function is restricted to use in a SCTL, I am trying to find an alternative which won't influence the outcome. Any advice is highly appreciated.

Thanks!

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

Keep the counter in a shift register.  It increments every iteration.  When the value reaches your desired count (what you were trying to divide by), reset using the Select node (current count in FALSE, 0 in TRUE).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,701 Views)