LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

No option to convert control to class

Hi,

 

I got fairly deep into a project here and realized that I really ought to make one of my controls into a class (I want to flatten it to an XML file to save it, and unflatten to load even if the control has been updated).

 

I was under the impression that it should be fairly straightforward, according to the help file on the subject, but when I go to the project explorer and try to right-click the control, I get no such option.  Not even greyed out.  See attached picture... I censored some file names for company confidentiality but the right click menu and project explorer are visible.

 

I am using LabVIEW 2011 SP1 on Windows 7 64-bit.

 

I am using this control in 37 VIs according to the "find callers" option so I am really hoping to not have to manually replace it and all of the wires to it in every single one.

 

Any ideas?

0 Kudos
Message 1 of 6
(3,233 Views)

It might be a Win 7 64 bit version issue. Check this feature availability in LabVIEW 2011 64 bit version.

 

I was able to view the option in LabVIEW 2011 under Win 7 32 bit OS.

0 Kudos
Message 2 of 6
(3,205 Views)

Well Im 72 hours old to labview ( still have other programming experience ) and Im not at the point of converting controls to classes but i really think there are missing infos for resolving this case.

- Are all the controls in your list giving you the same problem ? ( Still dont have the option when right-clicking on them ? )

- Is your control a cluster of other controls ?

- Does it contain x-controls ?

- Is it a private control ?

- Is your control locked ?

 

4G

 

4GForce
0 Kudos
Message 3 of 6
(3,198 Views)

Not a single one of my controls can be converted to a class.  Even if I create a new project and a new control with just a couple things in it.

 

The control in question has a bunch of other controls in it (7 enums, 3 U8s, 2 booleans, and a string) as well as an array of strings and 3 arrays of other custom controls.  But seeing as how even the most primitive control doesn't work, I don't think this is the issue.

 

The control and all sub-controls are currently strict typedefs, but like I said, any new control with just one numeric in it also has this same issue, so this is also probably not the issue.

 

No x-controls.

 

The control isn't part of an existing class, so it's not private.  It nor any control it contains is locked.

 

I checked, and despite being a 64-bit version of Windows 7 the LabVIEW version I have is 32-bit.

 

0 Kudos
Message 4 of 6
(3,179 Views)

If you are sure it is not a "Controls" and Windows 7 OS issue, try repairing the LabVIEW.

0 Kudos
Message 5 of 6
(3,166 Views)

I tried a few more things, none of them worked.

 

Eventually I just gave up on having the menu option show up, and I made a new class, and populated it's provate cluster with a copy-paste of all elements of the original control.  Then I removed the cluster from the control, and put the new class in there instead. 

 

Then I did all of the conversions, after making some new accessors.  Took about 3 hours to fix the 37 broken VIs...

0 Kudos
Message 6 of 6
(3,126 Views)