02-25-2011 09:51 AM
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?!
02-25-2011 10:03 AM
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.
02-25-2011 12:06 PM
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
02-25-2011 12:10 PM
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....
02-26-2011 12:55 PM
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?