03-09-2008 10:51 AM
03-10-2008 10:36 AM
Hello,
First off, there is no reason to create 3 separate DLLs. If I understand you correctly, you have a LabVIEW VI that you want to make into a DLL. And you need it to be able to perform 3 functions - initialize, read data, and close. This could all be implemented in one VI that is designed as an "action engine" - basically, you have one input that defines whether to perform the initialize function, read data function, or close (perhaps an enumeration with those 3 values). Based on that input, you perform the appropriate code and any data that needs to be stored between calls can be maintained in shift registers. Once that is compiled into a DLL, you can call from whatever other language you are using. Just call initialize function of the DLL once, then sit in a loop processing each peice of data, then at the end call the close function.
Good luck.
Rob