12-29-2008 02:44 PM
Hello I am developing a VI that gathers data with a thermocouple( USB-TC). I am having trouble writing software. I want 8 bottons on the front panel that start the data logging and then when you press it again it starts a timer. After a while I want to press it again to stop data logging. I want the front panel to indicate when the highest temperature was read durring data logging time. Is this possible?
Solved! Go to Solution.
12-29-2008 02:51 PM
You probably need to add a few more explanations.
You are only mentioning very few functions (start data logging, start timer, stop logging, etc.) So why do you need 8 buttons?
nicholas03 wrote:Is this possible?
Everything is possible! 😄
12-30-2008 04:44 PM
12-30-2008 05:05 PM
Based on that last post by you, I'd say a state machine would be your best option
It sounds like you don't have any idea where to start so I'd look up stuff about using VISA in labview seeing as your connection is USB, using XY graphs/arrays, the write to spreadsheet file VI. If you try to code something up, even if its a hack job, people can help you a lot more as I've learned. Also, trying it on your own helps a lot and helps you remember how to do stuff in the future (at least thats what i've learned). Theres lots of info on this site that you can use and should look at for examples and you'd be surprised how far you can get.
12-30-2008 10:37 PM
I am just trying to build a control that toggles the buttons through four cases not just on and off.
12-31-2008 12:22 AM
12-31-2008 12:35 AM
My last post was messed, I tried to edit it and ran outta time so here goes again..
You have 4 States in a state machine inside an event structure. Each time you enter the event structure it should be set up to check the previous state you were in (idle, data logging, etc). You start in the idle state. The first time the button is pressed it notes a value change in the event structure and takes you to the logging state. In the logging state you read data. When this is done you click the button again so another value change is noted and you enter the event structure. Because you were in the data logging state, your state machine should be set up to pass you to the check for max value. You can record that value, graph it etc, whatever you need to do. Press the button again, another value change is noted and it checks your previous state(check max value). It then passes you to the next and final state (test completed). This way you only have to hit the button once at the beginning. Again im sorry that I cant actually code this but hopefully you understand, someone else can draw it up, or someone can give you a better solution. Shiznit that was confusing. Like is said on here a block diagram is worth 1000 words. Sorry if i failed 😕
12-31-2008 09:03 AM
12-31-2008 10:01 AM - edited 12-31-2008 10:02 AM
nicholas03 wrote:
I will try the state machine as you describe, but do you know how to change the text and appearance of the buttons so that each state is different on the user interface (front panel)?
Instead of 4 buttons for each thermocouple, how about a text ring control?
Since only one of the states will be occurring at any 1 time, you could just select the state from a text ring control.
12-31-2008 10:42 AM - edited 12-31-2008 10:46 AM
use cory's idea... 🙂
http://www.kaczurba.pl/?current_page=5,4,0,