LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Not getting subvi results back in main VI

I've got a subvi that I using in another subvi that then gets used in the main VI.  The results from the first subvi transfer to the second subvi correctly but the results do not get transfered into the main VI.  I've wired the connecotr in the second subvi and the main VI the same way.  Can't labview transfer information like this?
I've attached a few jpg's for clarity, or attempted clarity!
0 Kudos
Message 1 of 9
(3,147 Views)

LabVIEW can easily transfer data like this. Could your subVI have a while loop that is not finishing?

You didn't attach anything for anyone to look at.

0 Kudos
Message 2 of 9
(3,137 Views)
I don't think so.  There is a while loop in the first subvi but then I just need to transfer the info to the 2nd vi and then the main vi.
 
I add the jpgs in the attachment section using the browse button but then it doesn't appear to ever attatch them.  What am I missing??
 
 
0 Kudos
Message 3 of 9
(3,130 Views)

Are you doing a preview? If you do, that will drop the attachments.

And how is the while loop being stopped?

Message Edited by Dennis Knutson on 04-11-2007 03:01 PM

0 Kudos
Message 4 of 9
(3,123 Views)

Ah ha!

The while loop ends in the first subvi by a time out, it finishes the array of tests then sends results to a spreadsheet.

Attachments...(hopefully it works this time)

Download All
0 Kudos
Message 5 of 9
(3,116 Views)

Assuming that you do have all of the indicators wired up correctly, you should be getting the results from your 'mid-level' VI as soon as it finishes the sequence. Maybe you should post a simplified version of your program.

p.s. You should really be using error in/error out connections in all of your VIs and subVIs. Then you could eliminate those unnecessary sequence structures.

0 Kudos
Message 6 of 9
(3,086 Views)

Funny how when you go to simplify your program to post you end up fixing it yourself...not bad.

 

0 Kudos
Message 7 of 9
(3,065 Views)
What was the problem?
0 Kudos
Message 8 of 9
(3,062 Views)
While simplifying the code I was cleaning up some Visa commands and suddenly it started working.  I've still got a few flakey things happening so I'm guessing I'm not totally out of the woods yet, but it's making more sense.
Thanks!
0 Kudos
Message 9 of 9
(3,053 Views)