LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with SUB-VI

Hi all, 

 

I've created a VI to control my motors where I'm now trying to implement a load cell. Since I already have a well working VI from the manufacturer for the load cell, I'm trying to add this as sub-VI. But when I execute the code the frontpanal of the sub-VI opens, even when disabled in the "subvi node setup". Furthermore the indicators and controls that are connected to the sub-vi-terminals don't work. I don't get what I did wrong. Could someone help me? Thanks in advance!

 

Regards

Bigles

Download All
0 Kudos
Message 1 of 3
(2,295 Views)
Without even looking at the subVI, I'm going to say that it's property is set to show when called and that it has a while loop that must be stopped. Think dataflow. You pass execution to a subVI and your main will not operate until the subVI finishes but it can't since you cannot pass the Boolean stop. Just get rid of the whole loop in the subVI.
Message 2 of 3
(2,265 Views)

Hey Dennis

 

Yes, that was the problem. Thanks a lot!

 

Best regards

Bigles

0 Kudos
Message 3 of 3
(2,229 Views)