Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing string out of for loop inside sub_vi

Status
Not open for further replies.

ttkacd

Bioengineer
Feb 15, 2006
1
Hi,

I am quite new to labview. I am writing a program that consist of a basic for loop inside. Within each turn,a new string is generated. While I am running it as a vi, teh string is displayed each turn and I am able to view it in the front panel. I then proceed to link to string out into a terminal. However, when I incorporate this vi as a sub_vi, the terminal only output the last string generated. Is there a way for me to link all the other string that is been generated for each turn of the for loop? Thanks for the help
 
Replies continue below

Recommended for you

I know I've read something about this in the on-line help. While I don't have LabView in front of me at the moment, I believe that when you bring the signal out of the box and then right click on the exit point you'll get the option to get the last string or an indexed version that has a value from everytime through the loop. Setting it to the indexed version will output an array of strings instead of a string. Whether you'll get the array at 'each turn' or it only pops out after all turns are complete I'm not sure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor