Moose Man
20 years ago
I'm a new user of LABVIEW and yessterday discovered something fairly interesting: there are no "momentary action" buttons or switches. (Nor, for that matter, does there appear any concept of sequential logic (i.e., D or T of JK flip flops). <br> Why would I want a momentary action switch? Well, I started writing a VI to prompt user for input (ultimately to be a file name in which input setup paraments are to be stored). Without a momentary action switch, the simple VI I wrote wants to keep on prompting for input until that switch is manually turned off with another mouse click. But I'm not able to enter the that mouse click because I am continually being asked for input. Clearly, a momentary action switch would solve that problem. Alternatively, a "pulse generating" function or "triggering" function would half way solve the problem (I'd still have to manually turn the switch back off, which wouldn't be all that great, but that's not aailable either.<br> My tentative conclusion here is that there you just can't do this sort of thing in Labview--- at the very least, that there is no concept of either "sequential logic" or synchrounous logic more generally, in Labview. I know that I could at least in theory make my own "flip flops" out of NAND gates. But of course, there still would be no "system clock." Perhaps what I need to do is create my own digital one shot multivibrator using LABVIEW NAND gates. Fine, but why can't Labview simply provide a "momentary action" switch? One that would be of sufficient "duration" to "prompt for user input" once, after the virtual panel switch was hit, and only once.