In your VI you are calling the same hardware (device 1) two times in parallel. This is not recommended. You should make sure that there is a sequence in the flow, so one � AO Update Channel.vi�s will execute before the other.
What is more likely to be the issue in your case, is that the VIs include an error handler � a popup window, in case an error occurs. You shouldn�t have error handlers within your DLL, but rather a Boolean output of the DLL to tell if an error occurred or not. A simple solution would be to use two �AO Write One Update.vi�s connected by the error cluster (so one will run before the other) and then use an �unbundle by name� to get the error �status� � if an error occurred or not. Use this Boolean as an output from the DLL.
Best regards,
Philip C.
Applications Engineer
National Instruments
www.ni.com/ask
- Philip Courtois, Thinkbot Solutions