LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i call a DLL file from labview?

Iam using a sensoray 2601 module.It is given as DLL file(S2600.DLL).How can i call this function from LabVIEW?

0 Kudos
Message 1 of 12
(2,998 Views)

Hi there

 

I think you need to take a look at the call library function node. I would start by checking sources like this

 

/sletten

0 Kudos
Message 2 of 12
(2,993 Views)

The DLL function is written in Visual Basic.Is it possible to call from VB?In call library function calling convention is only in C.

0 Kudos
Message 3 of 12
(2,988 Views)

As far as I can tell problems might occur with the call library function node if the the DLL from visual basic is actually an ActiveX dll if that is the case it seems calling the dll by using the Invoke node is the way to go.

Have a look at this 

 

/sletten

0 Kudos
Message 4 of 12
(2,980 Views)

Could u plz tell me to call the DLL using a invoke node?

0 Kudos
Message 5 of 12
(2,966 Views)

You'd use Automation Open to create the appropriate class. Then you wire that reference to an Invoke Node. Please look at the examples that ship with LabVIEW on ActiveX.

 

Are you sure this is an ActiveX DLL?

0 Kudos
Message 6 of 12
(2,940 Views)

Yes am sure.I tried this with call library function.It didn't work.

0 Kudos
Message 7 of 12
(2,935 Views)

That doesn't mean it's an ActiveX DLL. Did you configure the CLFN correctly? How do you know you configured it correctly? What does the documentation for the DLL tell you?

 

Did you try Automation Open?

0 Kudos
Message 8 of 12
(2,931 Views)

ya its working with call library function.Its only calling that DLL by file path.But i want to communicate my sensoray module using labview?so is there any additional drivers needed?

0 Kudos
Message 9 of 12
(2,910 Views)

So now it's working? Or it's not working? I have no idea what additional drivers are needed. You have provided no documentation or information on the module or the DLL.

0 Kudos
Message 10 of 12
(2,899 Views)