03-08-2012 10:00 AM
How to pass words / phrases to other vi's, so they appear as constants?
Regards,
Hugo Santos
03-08-2012 10:05 AM
have you used the search box at the top of the NI homepage? look up sub vi basics
03-08-2012 10:09 AM
Hi,
you can use the FGV-Structure:
Using a Functional Global Variable to Communicate with a SubVI
https://decibel.ni.com/content/docs/DOC-12876
You can also create a gloabal variable in LabVIEW:
http://zone.ni.com/reference/de-XX/help/371361H-0113/lvhowto/creating_global_variables/
But I think FGV is the better way.
03-08-2012 12:14 PM
You could also concider using an Action Engine as I described in this Nugget.
Ben
Sorry Xenox but why stop at FGV when you can do an AE?
reminds me of a campaign line that developed in my head (bad head!) while watching a recent political debate "Why settle for mediocracy when you can choose the vest?"
This posting was not endorsed by any candidate or even myself!
03-08-2012 01:13 PM
Thanks for the reply, resolves some of the obstacles.
But for the string does not work.
There is another way for the strings?
Regards
03-08-2012 01:16 PM
@hugosantos wrote:
Thanks for the reply, resolves some of the obstacles.
But for the string does not work.
There is another way for the strings?
Regards
Please post an image of your code and show us where you want to do the transfer of the string.
Images should let us help you better than us just gueessing at what you could be having difficulty coding.
Ben
03-08-2012 01:38 PM
Below is the example code only works with numbers, and also liked to work with words.
Greetings.
03-08-2012 01:41 PM
Just edit the FGV and right click the control and indiactor and choose "Replace" then navigate to a string control/indicator.
Save done.
Ben
03-08-2012 01:51 PM
Thanks for reply.
I've tried to do what you said but does not work, when I do replace, is not accepted.
Greetings.
03-08-2012 01:54 PM
What you are attempting is trivial.
Show us a screen shot of your machine when you are attempting the replace and please report any errors or messsage you see.
Ben