LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A VI called by reference with a express VI included does not work!?

An application has a call by reference node. All the called VI's that have Express VI's (in my case "build text") included does not work in the application, also if you convert the Express VI's to normal SubVI's. Can anybody explain that?
Message 1 of 26
(4,019 Views)
Here is an example of using the Express vi Build Text as a vi being called by reference. I haven't seen any problems and this example works. Could you post your code maybe so we can look at it. Maybe my example will help you out.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
Message 2 of 26
(4,007 Views)
When you say application, do you mean a built application (.exe). If that's the case, any VI that you call dynamically has to be added to the build by clicking the Add Dynamic VI on the Source tab of the application builder.
Message 3 of 26
(3,988 Views)
I cannont post you my code because it's a trade secret (my boss would kill me) but let me give you some further information. The VI has no problems with calling VI's by reference, but the application has. A solution would be that a add all the called VI's dynamically to the application but these VI's change steadily and it's impossible to me to build every time a new application, so I just add one neverchanging VI dynamically and the template which I use to make the called VI's. Then all works fine up to the day I want to call a VI with the Express VI "Build Text". First I had no idea what's wrong but then I deleted the Express VI and it worked, I added it and it failed, I removed it and it worked, and so on. That's strange, isn't it?
0 Kudos
Message 4 of 26
(3,973 Views)
I cannot build a new application everytime a want to call a new VI, it's impossible. The only called VI's I have problems with are the one with the Express VI's included. Why are Express VI's bad for VI's called by reference from an application (*.exe, in the VI all works fine)?
0 Kudos
Message 5 of 26
(3,971 Views)
I built a test VI that had a Build Text Express VI. I built a VI to call it by reference and built that into an application. You are correct that it failed.

I then converted the Build Text Express VI into a regular subVI and it also failed. I then tried to copy the block diagram out of that subVI and it failed. After deleting much of the unused stuff in the diagram, IT WORKED. I have been unable to narrow down which piece it is, but something is keeping it from working.

It does not seem to track with a particular diagram object. I am not sure what to look at next.

My advice would be to not use the Build Text Express VI and to use the format into string instead. You could also try to use the Express VI and then convert them to subVIs and strip out all of the unused stuff and there is really more than there should be (imho).

I hope that this helps NI to find the problem.

Bob Young
Message 6 of 26
(3,960 Views)
Thanks a lot Bob. In my case it was the "build text" Express VI but it doesn't matter. I just wanted to know if somebody else in this world is aware of this problem. I hope NI has already set this task on their TO DO list!!!

Best Regards
Michael
0 Kudos
Message 7 of 26
(3,955 Views)
"I hope NI has already set this task on their TO DO list!!!"

Do not count on it!

If you whip up an example that demos this, and post it here, I will report this issue.

Just talking about it on this exchange does not mean that NI will notice.

Trying to help,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 26
(3,935 Views)
Only for you Ken (and for NI)!
0 Kudos
Message 9 of 26
(3,921 Views)
Hi Michael,

I am only a volunteer here so this will have to wait until tomorow AM when I will be on vactaion.

I will update you then.

Still trying to help,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 10 of 26
(3,917 Views)