LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

combining two file paths

I have an LV in 6.0. It has two file paths. How do I combine the two file paths into just one? The LV is attached.
0 Kudos
Message 1 of 3
(3,317 Views)
Do you mean to have just one file path, or two individual one which you want to somehow make into one (which in itself is impossible I think).

If you mean to have just one file path, then move the control outside the case structure and then wire it in.  Both of the receiving VIs in the case structure will then have access to the same file path.
Message 2 of 3
(3,314 Views)
Quick Answer: SInce the File I/O is identical between the two cases, it belongs outside the case structure (on the right)!
 
Long Answer: OK, You just need to learn to program a little bit more efficiently. 😉
 
Compare the two casees. They are identical except for a diagram constant and the output indicators! (And I am not sure why you need seperate indicators for each case). So, why do you duplicate all that code???
 
Here's a suggestion: Place the diagram constant in a tiny case structure and do something similar to the attached image:
 
(If you really need seperate indicators, place them in another tiny case structure on the right).
 
Note also that I eliminiated the stacked cases. You need only a single frame, the following subVI cannot execute until the frame finishes, because it depends on inputs from the sequence frame.
 
If you really need a true 200 ms wait between the dig port and the sibsequent VI, you should use a true "wait" and not a "wait next multiple". You decide.
 
(Stacked cases should be avoided if possible because they hide code, sometimes force backwards wires, and always make the diagram harder to read and debug.) 
 

Message Edited by altenbach on 07-28-2005 11:41 AM

Message 3 of 3
(3,306 Views)