09-28-2011 08:09 AM
hello
I want to control the input data by a start /stop button,so, and I dont know how I can do it?? ???.
I aquire signals from PCMCIA and USB NI cards
Please please help me
Alexandra
09-28-2011 08:16 AM
This question gets asked like a bijillion times a month. Did you try a search? You need a loop that sits there waiting for the user to press the button. (Note: the only thing that should be in the loop is the actual operation. One-time configurations should be outside the loop. Same goes for closing the resources.) A simple state machine is an ideal solution. I'd recommend reading this article: Application Design Patterns: State Machines