×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

passing string out of for loop inside sub_vi

passing string out of for loop inside sub_vi

passing string out of for loop inside sub_vi

(OP)
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    

RE: passing string out of for loop inside sub_vi

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.  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources