08-30-2006 03:03 PM
08-30-2006 03:08 PM
The occurence wire needs to be static. Follow the wire from the end. Make sure it is always static (i.e. not common from a tunnel of a case structure....). The error is coming up because the set or wait function cannot determine what occurence reference it is wired to.
Regards,
Joseph D.
National Instruments
08-30-2006 04:11 PM - edited 08-30-2006 04:11 PM
Thanks for your quick response.
The occurrence is static. It is generated outside the loops and fed into the loops through a tunnel. Do you have any other suggestions?
Message Edited by John Rich on 08-30-2006 04:12 PM
08-30-2006 04:42 PM
Are they fed into subVIs? For some reason the wait and/or set can't guarantee the occurence reference is static. When you follow the wire back from a wait or set to the generate function what exactly does it go through?
Regards,
Joseph D.
National Instruments
08-31-2006 09:22 AM
They are not fed into subvis. Furthermore, I have removed the occurences and still have this problem. Is there something else which could be causing this problem? Are there things that I might not be recognizing as references which this could be related to? I'm going to try breaking down each portion of code to see if I can determine where the error is originating.
Thanks,
John
08-31-2006 10:54 AM
08-31-2006 12:02 PM
I don't see what could be wrong with this VI. Can you include the embedded project file (.lep)? I made my own and added I/O and the VI you sent compiled fine.
Regards,
Joseph D.
National Instruments
08-31-2006 12:34 PM
Here is the embedded project file.
Thanks for your help.
John
09-01-2006 02:36 PM
I have solved my problem and wanted to post the solution for those who may reference this in the future.
The problem was apparently with the embedded project. It appears that the aliases were somehow corrupted. I suspect that this is due to the copying of the project to make a new project. I made a new project and defined all of the aliases and the program compiled properly.