LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

One DLL for two device

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.

0 Kudos
Message 1 of 2
(2,283 Views)

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.

0 Kudos
Message 2 of 2
(2,260 Views)