LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

store numeric value on button click for further calculation

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!

 

0 Kudos
Message 1 of 6
(3,023 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(2,985 Views)

In the button click event, read the values and store it in a shift register.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 6
(2,964 Views)

@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.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 4 of 6
(2,960 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 6
(2,955 Views)

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.

 

Timer


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 6 of 6
(2,949 Views)