04-13-2015 09:09 AM
I am using a load cell curcuit with an Arduino Mega and controling an operation with LabView. I would like to create a tear button for the load cell just like a scale would have. In order to do that, I need to read the analog value and then set that value to a variable, like "x", when the zeroing button is pressed. Then x becomes a constant that subtracks from the analog signal from the load cell. I am not sure how to set a numeric constant using a case structure controlled by a button. I think I may be making this harder than it needs to be, but I am stuck, and would appreciate some insight.
Solved! Go to Solution.
04-13-2015 09:17 AM
04-13-2015 10:56 AM
So, does that mean I need to use a while loop that has a shift register inside a boolean case structure? or can it be done with just a button and a shift register?
04-13-2015 11:19 AM
I think I did it, but I don't really understand if what I did was the proper way or not. When I tested the VI it indeed zeroed out the input like I wanted. I used a feedback node to make it work.
04-13-2015 11:29 AM
Try this, I don't have the arduino code enabled so I can't run it.
What it should do is on the rising pulse of pressing the zero button is set the current output to the zero value.
I've just done this quickly so no guarantee!
04-13-2015 12:46 PM
Thanks! That seems to work. I completely forgot about the other boolean operators. It has been a long while since I last used LV.
06-15-2015 12:05 PM
Please, could you share your code in a later version? Thanks
06-15-2015 12:17 PM
@DiegoSV wrote:
Please, could you share your code in a later version? Thanks
Later version? Like LabVIEW 2015? I'm pretty sure you mean earlier version. Attached is the same VI saved in 2011.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-15-2015 12:19 PM
Your are right. I need the earlier version. Thanks!
06-15-2015 12:33 PM
@DiegoSV wrote:
Your are right. I need the earlier version. Thanks!
Thanks are given with kudos.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord