From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-25-2015 03:26 AM
Hello,
I'm trying to show the executed SubVI on the front panel of my main VI.
How I see it: I would like to have a string indicator on the frontpanel, showing the name of the SubVI that is currently executed.
Kind regards,
Robbie
06-25-2015 09:16 AM
We need more information than that. What is your code structure like? How are you loading the subVIs?
If you can work it in to your code when you call a subVI that you care about you can use the "VI Nam" property to pull the name as a string if you have a reference to the VI.
Sharing your code is the easiest way for support.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
06-25-2015 09:34 AM
Hello,
Please find an example of my description in the attachment.
KR,
06-25-2015 10:49 AM
Hi Lektroluv, I attached a way to do what you want, it is based on a notifier in which each SubVI publish his name, you can improve this put the code in a Library, etc.
I hope this help you.
06-25-2015 11:54 AM
06-29-2015 10:35 AM
Hello AYanez,
This is working for my example code, but when I implement it in my code from work it is not working...
It's not possible to share the code I use professionally in this topic.
It's unclear why it is not.
Is it that the drivers are in different folder? Or something else that could make it not work?
Basically the code I use in my professional environment is to initialize some drivers of instruments which are in the inst.lib folder and some self-made subvi's in a library folder.
Do you have any idea?
07-02-2015 10:02 PM
Hi Robbie, what is the problem, the indicator does not update or the showing value is wrong?. If the code is complex with many parallel VIs use a Notifier could be not the best way because only store the last value, with more information we could looking for a better solution.
07-03-2015 05:53 AM
The indicator string is not always empty, no last value or something.
Software is confidential, so a better example than before cannot be added, but indeed the code is very complex with allot of subvi's etc. ...
This example is a really light version of the complete software.
It would be used as an extra feature in my software, but no big issue if it doesn't work.