LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Push button which gives data: how to store it?

Solved!
Go to solution
this give me an idea how to do it... of course this is not the solution in fact

Carlos Ignacio Sarmiento
Electronic Engineer
(Ciudad Madero Technological Institute)
Laboratory of Bioelectronics, Biohospital Engineering Departament
National Institute of Neurology and Neurosurgery "Manuel Velasco Suárez" (Mexico City)
0 Kudos
Message 11 of 19
(813 Views)

OK, here's one with a numeric control.

 

(I also implemented it as a solution with several buttons, but I still think an array of buttons is better)

Message 12 of 19
(810 Views)

Altenbach solution is a better one mine is not bad but his is more modulare and uses less event so there is not as much overhead. the biuld array can give you a little overhead tht is why I chose the insert into array function rather then the build array function. you could use the reshape array function and it should work like the biuld array function.

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 13 of 19
(789 Views)

wow I see... it is a very good job!! thank you collegues. I have no much experience in labview, I'm learning by myself, ythat's why I'm asking you, I was two weeks with this little problem. Thank you so much to both!!


Carlos Ignacio Sarmiento
Electronic Engineer
(Ciudad Madero Technological Institute)
Laboratory of Bioelectronics, Biohospital Engineering Departament
National Institute of Neurology and Neurosurgery "Manuel Velasco Suárez" (Mexico City)
0 Kudos
Message 14 of 19
(786 Views)

@Harold_Timmis wrote:

the biuld array can give you a little overhead tht is why I chose the insert into array function rather then the build array function.


The "insert into array" gives you the same overhead as the "built array" function. Both might force a new array allocation due to a change in array size. The most eficient way would be to initialize the shift register at the full final size with an impossible value (-1, NaN, etc. as suitable), then use "replace array subset" to fill with the real data without ever changing the array size again. 🙂

0 Kudos
Message 15 of 19
(782 Views)

I have a last little problem, when I select a limit number and I finish my array, obvious, it is full, but if I select one more number (of push button) the sequence is erased... how can I avoid it?? I just want to store the sequence 🙂


Carlos Ignacio Sarmiento
Electronic Engineer
(Ciudad Madero Technological Institute)
Laboratory of Bioelectronics, Biohospital Engineering Departament
National Institute of Neurology and Neurosurgery "Manuel Velasco Suárez" (Mexico City)
0 Kudos
Message 16 of 19
(779 Views)

Which code are you using? Are you re-running the VI? In this case the shift regsiter gets re-initialzied of course. You could use an uninitialized shift register, for example.

0 Kudos
Message 17 of 19
(777 Views)

the last one you published


Carlos Ignacio Sarmiento
Electronic Engineer
(Ciudad Madero Technological Institute)
Laboratory of Bioelectronics, Biohospital Engineering Departament
National Institute of Neurology and Neurosurgery "Manuel Velasco Suárez" (Mexico City)
0 Kudos
Message 18 of 19
(775 Views)

Try this (of course you would need to increase the max size number before re-running).

 

 

0 Kudos
Message 19 of 19
(773 Views)