11-10-2011 09:03 PM
Hi,
I have built a DLL that is going to be used for a DAC. However, I have two identical DACs that I wish to operate simultaneously (each DAC has unique serial number that can be passed to the DLL) . How can I use the same DLL (and its functions) to pass information to and get information from the DACs at the same time? I tried creating another copy of the DLL (named it uniquely as well), but the LV Vi crashes when I ran it. When I use one DLL only, one of the DACs works, even though I use the same DLL twice in two seperate VIs.
Any help is appreciated!
Thanks.
11-11-2011 01:09 PM
Hey Ghulam,
In order to access it in multiple places, you will need to make sure to set the DLL to reentrant. An Overview of Accessing DLLs or Shared Libraries from LabVIEW discusses general DLL access including reentrant. I would look it over to see if it helps.