lunes, 26 de mayo de 2014

(labVIEW) ActiveX and DLL call

In this exercise i will explain how to use the DLL call to make a multiplication operation.

In "Functions - Connectivity - Libraries & Executables" have the function of "Call Library Function"








You double-click and choose the DLL, in this case, "calc.dll" ... At the bottom you can see the different functions having the DLL. Choose what you want. (I've chosen "multiply").













At the bottom you will see the inputs and outputs of the selected function and data type.














In the tab "Parameters" add inputs and outputs, indicated in the previous step, with its data type.














Now just add the inputs and outputs in graphical mode in the block diagram.














And the Fron panel...





But this is only the first step of the program. When done with the multiplier, a song is played with Windows Media Player and open up a web page with the Web browser.

To play the song I use the DLL calling to move the mouse and click on the play button, picking this DLL library from the folder C:\Windows\System32\user32.dll














This is the VI’s block diagram:










And this is the front panel:










No hay comentarios:

Publicar un comentario