LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

explaination of error in vi analyzer

If a control is placed in an event structure to execute the event, I dont see why I should be asked to put it outside the event structure or perhaps I haven't really understood what "placing on top level diagram means". Can anybody explain following message error to me please which is returned by vi analyser under "Wired terminals in subdiagrams"

Kind Regards

 

0 Kudos
Message 1 of 3
(2,350 Views)

Can you show us your diagram? What is your LabVIEW version?

 

The main reason for placement of controls on indicators on the top-level diagram is performance as explained here (entire thread).

 

It typically applies to non-interactive subVIs, so I don't understand why the rule should apply to event structures.

 

For event structures, there are many good reasons to place the control inside because else we might read a stale value or we don't revert latch action booleans. Maybe the VI analyzer test is slightly flawed. 😉

 

Can you show us some code that triggers the problem in the VI analyzer test. Are your test settings at the defaults or highly customized?

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

Here's the description of the Wired Terminals in Subdiagrams test...this test doesn't have any customization options:

 

"Checks to see if any control or indicator that is wired on the connector pane does not reside within the top-level diagram.  In order to avoid unnecessary memory copies, control and indicator terminals that are wired on the connector pane should be placed on the top-level diagram."

 

I don't know if I've ever seen a VI that has a control configured for events on an Event Structure also wired on the connector pane.  But I guess it's possible...should I add code to the test to ignore connector pane controls/indicators whose terminals are inside an Event Structure?

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