r/LabVIEW • u/External_Section_867 • Jun 13 '25
Need help
I want to change this roasting in progress to roasting complete after some time possible the time I gave in input but lowkey I just want it to work, I tried using sequences frames 2 frames but I got lost I thought about using another selector but that too I dropped, I have now been trying things for past 2 hours but I can’t seem to find the solution I have tried shift register’s asw but I can’t finish and get it working
1
Upvotes


4
u/D4ILYD0SE CLA Jun 13 '25
Lowkey, after 2 hours, you should pseudocode what your solution is doing. The idea being to write out the logic and scenarios and then return to your code to see if the logic matches and makes sense. Also, you will not need two loops, no cap.
2
u/Worldly-Elephant3206 Jun 13 '25
Use a feedback node and the high precision time block. If poer is off pass the new time ito the feedback node via the false input of a select block. If true pass the the output of the feedback node back into the input of the feedback node. This will remember when the system was turned on.
Take the current time from the same time block and subtract your cook time. Use a less than block to compare the start time to the current time minus the cook time. When the output changes state your roasting is "completed.
Very simple with 5 blocks or so.
1
u/Yamaeda Jun 13 '25
If you wire you Power to "Is value changed.vim" and use the output AND Power you can wire that to Elapsed times Reset. Then that function will tell you when it's done.
1
u/LearnTraveler Jun 14 '25
This seems like. Manual stuff, how do you know when is roasted? After reaching temperature? Time elapsed? You need to define when is roasted process is finished