I have a VI that uses 9 radio buttons to select one of nine cases. Each case contains a subVI that essentially creates a dated filename to write varying GPIB data to. The first two selections (1 and 2) work as designed. I get a date-coded filename with each subsequent run of the Main VI. However, my problem lies in selections 3 - 9. Each of these also creates a corresponding filename, however 3 seconds after the initial run, I get a second unprompted filename. It appears that selections 3-9 run twice. One filename reflects the value left in the buffer from the previous selection and the other is new as expected. I have scoured my code for loops and there are none. I would have expected all selctions to perform alike but the first two are working to design. Any ideas?
Let me ask a couple of questions. Is this the radio button control introduced in LabVIEW 7.1, the "slide control" radio button in earlier versions, or something of your creation? You have no loops at all in your program and you run it once just by clicking the Run button on the toolbar? Frankly, I have never seen a case statement execute more than a single case and would like to see your VI.
Your description dies not make a lot of sense. Do you have nine radio buttons or a single radio button with 9 choices? What exaclty happens 3 seconds after the initial run? Is the program still running at that time? Do you use dataflow or is the code chopped up and uses mostly local variables and value property nodes?
Could you strip out your VI to the essentials to demonstrate the problem., Remove all the GPIB and file IO so it just displays the resulting file name in a text indicator... Then attach it here. Thanks! 🙂
Your cases weren't looping. What you need to know about case structures in general, is that except for a case driven by a Boolean, you have to define a default case. This is to avoid errors if you pass a value that is not defined. It is the default case that is executed with an undefined value. It is not a strange behavior at all. With an enum like the radio button, all you have to do right click and select "Add Case for Every Value".