Hi H.A.,
Make sure to close ALL references that you open during your VI and do it in the reverse order of how they were opened.
Forgetting to close all references, or messing up the order of closing, is a very common programming mistake, that most likely will give you errors.
Best regards,
Philip C.
Applications Engineer
National Instruments
- Philip Courtois, Thinkbot Solutions