LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Manual data input in a loop

Hey all,
 
I'm  wondering how to input manual data into a loop (control string).
 
At the press of a button, my program records various other data (time/strain/ stress/ etc...) but before the loop ends, I want it manually type in a value (pressure) since it doesnt have a digital output. I was wondering how I could write the loop so that it won't continue UNTIL a value has been filled in and, for example the "ok" button has been pressed.
 
thanks
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 1 of 10
(3,391 Views)
Why not use the prompt user for input function on the time and dialog pallette.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 10
(3,387 Views)

I don't think I have that function... Using labview 6.1 😞

 

or did u mean the "One button dialog" , link 2 booleans together, and put the manual value in, if empty string constant false, and one button dialog true, move on?

thanks.

Message Edited by Aquaphire on 07-14-2005 04:19 PM

Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 3 of 10
(3,381 Views)
You are right you do not have that option in 6.1 but you could do as you said, or you could make your own subvi made to accept user input.This would be the easiest to do I would think.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 4 of 10
(3,375 Views)
Try these two vi's and see if it is close



Joe.
"NOTHING IS EVER EASY"
Message 5 of 10
(3,370 Views)
If you make your own dialog box, or even in the higher level one, put a while loop "in series" with the rest of the program's flow  (before the outer loop ends). The attached picture shows one method (I don't have the LV version you are using handy)
 
P.M.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 6 of 10
(3,369 Views)

HEY LV_Pro,

How do u make the "error IN" and "Error out"?

I don't understand what its use is precisely....

Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 7 of 10
(3,345 Views)

Hey,

 

Error in and error out are error clusters. An error cluster consists of three parts: error status (true value implies an error occurred), error code (numeric code for the error) and  error source (it tells you which function or VI caused the error). The error in and error out clusters can be found in the Controls >> Array and Cluster palette . These clusters are used for transferring any error information to/from a subVI.

Hope it helps.

Ankita

Message 8 of 10
(3,339 Views)
The error clusters may also be used even when the vi won't generate its own errors, to provide a means to force the order in which vi's are executed. If you drop your dialog/operator entry sub-vi on to the calling vi's diagram without some means to determine when it is called it may be called before you actually want it. By putting the error clusters into it, even if they are just passed through the vi, and then wiring them to the error out of the vi prior to when you want it to run, and the dialog vi's own error out to the vi that follows when you want it to run, it forces, by data flow, the vi to execute when you expect it. This obviously is not always necessary and frequently I will put the error clusters. etc., into a new vi and then never actually use them but ...
 
P.M.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 9 of 10
(3,329 Views)
thanks both of u. I managed 🙂
 
 
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 10 of 10
(3,318 Views)