LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i get signal without...

hi, i'm using labVIEW 7.1...

now i'm facing a problem here, that is how can i get signal from a VI to a subVI without running the subVI?

just like the example below, can i have the "SAVE" function and make those random number enable to write into the file in a same time?

with regard Jaxx
0 Kudos
Message 1 of 7
(3,085 Views)
I guess you are trying to generate some data and write it to a text file. Look at Write to Text File.vi example shipped with Labview. Hope this helps. Please come back if this was not what you want !.
0 Kudos
Message 2 of 7
(3,076 Views)
Sorry about confusing you...

actually what i want is avoid the prompt message run in the while loop with non-stop...

with regard
Jaxx
0 Kudos
Message 3 of 7
(3,062 Views)
below is a example after modify by me...
0 Kudos
Message 4 of 7
(3,060 Views)
I think what you're asking for is to get a single prompt every time the save button is clicked. Change your mechanical action on the save button to Latch When Released. When you do this, the button will automatically return to the false state immediately after being processed.
0 Kudos
Message 5 of 7
(3,049 Views)
Hi Dennis...

Your method is work, and i knew it too... but if do so, then another problem will occur...
because in the simply VI that i posted is trying to save those random number into a file, but if the case structure return to false then those random number will not going to save into the file agian....
That is what i'm trying to ask...

So, any solution about that? Welcome anyone who know about this to solve my problem...
thanks!!! 🙂

with regard
Jaxx
0 Kudos
Message 6 of 7
(3,031 Views)
I don't think I really understand what you're trying to do. Are you trying to write a series of numbers to a file or just the single random number present when you click the save button? If you want every number saved, there's no need for a case structure. Just continuously write to the file. You'd want to put your file dialog, new file, close file outside the while loop. Another way and to keep the case structure, is to have a shift register and a build array function. The array in the shift register would keep accumulating values. then when you click save, first write the current array and then clear it.
0 Kudos
Message 7 of 7
(3,026 Views)