LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hesitate to pass data between vi's

How to pass words / phrases to other vi's, so they appear as constants?

Regards,

Hugo Santos

Hugo Santos
Student at ISEC - Master Mechanical Equipment and Systems
0 Kudos
Message 1 of 14
(2,420 Views)

have you used the search box at the top of the NI homepage?  look up sub vi basics

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
0 Kudos
Message 2 of 14
(2,414 Views)

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.

_____________________________________________________________________

---Please mark a post as a Solution if it solved your problem ---
0 Kudos
Message 3 of 14
(2,410 Views)

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?

 

 

Spoiler

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!

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 14
(2,386 Views)

Thanks for the reply, resolves some of the obstacles.
But for the string does not work.
There is another way for the strings?

 

Regards

Hugo Santos
Student at ISEC - Master Mechanical Equipment and Systems
0 Kudos
Message 5 of 14
(2,374 Views)

@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

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 14
(2,370 Views)

Below is the example code only works with numbers, and also liked to work with words.
Greetings.

Hugo Santos
Student at ISEC - Master Mechanical Equipment and Systems
0 Kudos
Message 7 of 14
(2,364 Views)

Just edit the FGV and right click the control and indiactor and choose "Replace" then navigate to a string control/indicator.

 

Save done.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 14
(2,358 Views)

Thanks for reply.

I've tried to do what you said but does not work, when I do replace, is not accepted.

Greetings.

Hugo Santos
Student at ISEC - Master Mechanical Equipment and Systems
0 Kudos
Message 9 of 14
(2,355 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 14
(2,349 Views)