Hello fellow LabVIEw users
Please look at attached code. I have used an event structure to communicate with our electronic apparatus.
The "manual" part of the code has been done. The code is very simple. When I press "Ballast ON" a hex code is sent to the VISA write with the corresponding "Power Level %". When I press "Ballast OFF" the power to 0% and the whole program stops.
The "Automatic" part of the code will send the exact same codes as the manual part but it should do it automatically in certain time increments.
I want to do the following
- When I press "Start" I want the hex code to execute as per "TIme in minutes" going from values of 100% to 80% to 60% and finally to 0% (not shown) and shutting down the program thereof.
- I want the "time left" to be a countdown of the "time in minutes" in hours, min and seconds.
- When the user clicks on the "default" boolean I want the "time in minutes" to automatically go to 30 mins for 100% power, 15 mins for 80% power and 15 mins for 60% power.
- Time to finish indicator should show when the test is going to end at the time of the day.
Your help and guidance is much appreciated.
thank you
mhaque