01-23-2019 01:42 PM
Hi H1636,
there are several problems in your VI:
- overuse of local variables: all of them can (and should!) be replaced by wires!
- the case selector values are wrong: when dealing with bits you should have cases of 0, 1, 2, 4, and 8. (Even better: set the display mode of the case values to binary display…)
- you need to limit the "progress bar" (or better: the value in the shift register) to a range of 0…1
- you don't need an additional numeric indicator for your progress bar: just enable its own numeric display!
Something like this:
You still should implement the event structure!
01-23-2019 01:52 PM
Hi GerdW, it looks my problem almost solved. Can you please sent me the Vi if possible 🙂
I really need it
Best,
Osman
01-23-2019 01:52 PM
01-23-2019 02:12 PM
Hi GerdW,
I did everything you showed above. Here is the result: While the duty cycle has data, the buttons only work for wait time I set inside a loop. So, it does not work as I want 😞
I really need help,
FN: Those who created a vi to help this issue, please upload the file. I am not sure if the problem occurs because of my computer.
01-23-2019 02:22 PM
01-23-2019 02:45 PM
Hi GerdW,
? - change the case selector values
Done - replace ALL local variables by wires
Done - replace that additional numeric indicator by the digital display of the progress bar
Button 1 & 2 are working fine, but I cannot say the same thing for 3 & 4. 3 problems left.
1 - Default value is the duty cycle value,
2 - Decrement by the duty cycle value with button 3,
3 - Make the value "0" with button 4,
I think these are the final problems 🙂 You did really great
01-23-2019 02:57 PM
01-23-2019 03:28 PM
Sorry, could not find it. I am trying to find it for 6 hours without eating and drinking and it is now 2 am here. I do understand your concern about not sending the solution. But I really do not understand it.
B1-1
B2-2
B3-4
B4-?????
DutyCycle-????
Best,
01-23-2019 03:47 PM
01-23-2019 11:36 PM
I read it now, and it solved all the problem. This is a valuable page for me and you help a lot.
Thank you sir 🙂