‎07-24-2013 09:51 AM
Hi
I have an FPGA loop that is outputing its total running time as a continually updating usec number. On the click of a button I wish to store the current numeric value, and subtract all future values from this number going forward, effectively starting the count over again at 0.
How can this be achieved please? I have been playing around with shift registers and case structure but can not get anything that works properly!
Many thanks!
‎07-28-2013 10:18 PM
What you need is to spend some time going through the LV tutorials. Alternately, show us what you have come up with so far. Also, where is this code going to be running?
Mike...
‎07-29-2013 06:24 AM
In the button click event, read the values and store it in a shift register.
/Y
‎07-29-2013 06:29 AM
@Yamaeda wrote:
In the button click event, read the values and store it in a shift register.
I don't think, Event structure will be available to use in FPGA VI.
‎07-29-2013 06:39 AM
That is correct, but it is unclear from the OP where this code is to be running - which is why I asked. One possible structure is that the FPGA is simply returning a value and this "reset" logic is running on the PC.
Mike...
‎07-29-2013 06:41 AM
Hi boileroo,
You can use this logic, if you want to implement the code for FPGA target.
You may need to replace the timing functions to what is available for FPGA target.