LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph Yscale.NameLbl.text does not update when vi is called as subvi

Solved!
Go to solution
In lab software we've written, we (still using ver 7.1.1) use a subvi set up to print on completion to print results showing four XY graphs. The Engr Units selected in the main vi is passed into the subvi via the connector pane. I extract the EU text there and write to YScale.NameLabel.Text using property nodes. This works fine in development when run from it's own front panel, but not when this subvi is called from the main vi. Is this maybe a known bug?? With a workaround? I've tried time delays, separating operations with Sequence structures, etc.
0 Kudos
Message 1 of 12
(3,733 Views)

Can you post your code. The way you describe it, it should work fine.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 12
(3,720 Views)

Hi Mike,

Am posting subvi code at:

http://webusers.physics.umn.edu/~wgilbert/MoLab/

Print Results demo.llb

 

Thanks, let me know whart you think. Made fake calling app to demonstrate problem.

Thanks!!

-BG

0 Kudos
Message 3 of 12
(3,703 Views)
Post your code here. That's what the attachment option below the message body is for.
0 Kudos
Message 4 of 12
(3,695 Views)
OK, here it is, attached.
0 Kudos
Message 5 of 12
(3,669 Views)

Hello BG,

Thanks for posting your code.  I have tried running it and it seems to work fine on my computer.  What exactly is not working when you are running this as a sub-vi?  A brief description of what the expected behavior is, and what you are seeing instead would be helpful. 

Thanks,

-Christina

Applications Engineer

0 Kudos
Message 6 of 12
(3,647 Views)

Hi Christina,

Are you running it in v7.1? Or something later?  The problem is that the name labels for the graph scales are not updating to the new values passed in through the connector pane when PrintResults is called as a subvi. Works fine when run from it's own front panel. Sorry if I wasn't clear about that.

 

0 Kudos
Message 7 of 12
(3,641 Views)

BG,

I'm running Print Results demo.vi in LabVIEW 7.1.1.  When I change the units on the front panel of the main VI, then run it, the new front panel that comes up (MoLab Print Results.vi) reflects the new units that I have chosen both at the bottom of the front panel and in the labels for all the graphs.  Are you trying to change the units while the program is running? 

-Christina

Applications Engineer

0 Kudos
Message 8 of 12
(3,627 Views)
This is embarrassing. I just ran it on a different machine, and it(the demo I built) works fine. Guess I better get back to you on this. Maybe the problem has something to do with the way they image the drives on the lab machines. The IT guys don't touch this one.
0 Kudos
Message 9 of 12
(3,618 Views)

It works fine now. Apparently one of the changes I made, the sequence, and or the delay, must have cured it. Sure couldn't get it to work a few days ago, maybe there was something in the water here.

 

Thanks for your time, and sorry for  fire drill.

-BG 

0 Kudos
Message 10 of 12
(3,610 Views)