LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controls and constants cluster issue

Hi, I am trying to update controls to my SPI drivers (3 of them in the same FPGA) and I made seperate loop controls for each them. However if I remove and replace the same control constant back into the cluster it loses the references in the design. Even if I put the same one back without modifying it. It gives some kind of polymorphic error but I do not understand why. Anyone have any ideas?!

 

problem.jpg

0 Kudos
Message 1 of 5
(2,793 Views)

Your cluster is probably not a typedef. Meaning that you probably have two different definitions of it (specifically with the enumeration). You should create typedefs of the enumeration and of the cluster. Use the enumeration typedef in the typedef of the cluster. This way, wherever you use it you know it's going to be the same. Please read the section in the LabVIEW Help on typedefs.

0 Kudos
Message 2 of 5
(2,785 Views)

All my types are "strict" Actually I think I found the problem, stupid mistake really. The name of the enum wasn't "Next State"...very silly mistake  Smiley Very Happy

0 Kudos
Message 3 of 5
(2,771 Views)

One other thing I noticed is that sometimes when I save a project seperately it still takes files from the previous project!?! I noticed this when I saved the project in Labview 9 format. Two folders containing the main programs and ones from a previous save. This can be very dangerous....

0 Kudos
Message 4 of 5
(2,770 Views)

I don't quite understand what you mean by saving it "separately". And what do you mean by a "previous save"? Have you checked your VI hierarchies to see the source of the subVIs you are using?

0 Kudos
Message 5 of 5
(2,739 Views)