LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

showing error while editing front panel

Solved!
Go to solution

hi

  

 when I am adding another tab(lockin amplifier) in the front panel, the program is showing connection error. What should I do to get rid of these errors? i am attaching the file along the sub vi.

Regards.

0 Kudos
Message 1 of 3
(2,340 Views)
Solution
Accepted by topic author jkfhdskh

That is happening because the datatype of the tab control is changing (you are adding another page). A tab control is essentially an enum, and the enum values are part of the datatype. A control reference of the tab control is being bundled and passed into several subVIs. The front panel cluster control on these subVIs have the "Main Control" element set to "Include Data Type". Thus, what they expect to see (e.g., a tab with 3 pages) is not what they're getting. Hence the broken wire. You have to either:

  • Uncheck "Include Data Type" for the "Main Control" element. I have no idea what other impact this will have as I did not look at all of the code.
  • Update all of the front panel controls with a new control reference.

Aside: whoever wrote that program needs a lesson on typedefs.

Message 2 of 3
(2,325 Views)

hi

 

   thank you for the solution. it really helped a lot. if you can take a little bit of more pain of eloborating what do you mean by udating all the refrences of the controls in the front panel. do you mean to say that i need to design the front panel from the scratch? i am new to labview.

 

warm regards,

srinivas

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