LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calling a dll

Hi

 

i am trying to call a dll in labVIEW. Thisdll is user32.dll located in the system32 folder in the Windows.

My question is, how do i set the PARAMETERS for one particular FUNCTION NAME?  They have to be specific for each FUNCTION NAME or i can enter any random parameter or some specific parameter is common for each and every FUNCTION NAME??? 

Somil Gautam
Think Weird
0 Kudos
Message 1 of 11
(4,664 Views)

 check the below link.....you will find some examples to start............

 

http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/catnav:ex/q/user32-PERIOD-dll

Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 2 of 11
(4,652 Views)

Thanks

 

I followed the link and NI is telling that it has moved the document to some other place and some error is being displayed.

NO helpSmiley Sad

Somil Gautam
Think Weird
0 Kudos
Message 3 of 11
(4,649 Views)
copy and paste the entire link in your browser...........some part of the link is not having hyper link........
Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 4 of 11
(4,647 Views)

Somil wrote:

i am trying to call a dll in labVIEW. Thisdll is user32.dll located in the system32 folder in the Windows.

My question is, how do i set the PARAMETERS for one particular FUNCTION NAME? 


I think you can get more details about the parameters of that dll in Microsoft's MSDN library. Study there and use Call Library Function node in LabVIEW to call that dll and selecting a particular function and declaring parameters.

 

Post if you stuck you anywhere.

 

Mathan

0 Kudos
Message 5 of 11
(4,645 Views)

My question remains the same anil. Here in these examples, they are defining some particular parameters in some VIs and some random parameters  in other VIs.

I want to know, what parameters are necessary for one particular function name. Are there any predefined parameters or we can set them any time?Smiley Happy

Somil Gautam
Think Weird
0 Kudos
Message 6 of 11
(4,640 Views)

Thanks for the reply MATHAN. You come to my rescue most of the times. Smiley Happy haha

so, in the MSDN library of microsoft, i wasnt able to find the answer to my question. In LabVIEW, i can get the name of the function i need, but the problem is with setting up of the parameters. Are there any predefined parameters or we can set any parameter for a function name???

Somil Gautam
Think Weird
0 Kudos
Message 7 of 11
(4,630 Views)

You are talking about C programming knowledge here. Without that the Call Library Node will be a very painful experience for you.

 

So go and grab a C programming course and study it throughly especially the part about data types and function calls. Once you have some good understanding of that, these things will appear a lot more clear to you. Without that knowledge we can explain you all day how to setup the Call Library Node for particular functions but you will simply fail with the next function that requires a little different parameter list.

 

Basically what parameters a particular function takes is decided by the original developer at the time of implementation of that function. For most of user32.dll functions this would be for instance some Microsoft programmer back in 198x something. That is why you have been pointed at MSDN for the documentation of those functions.

 

To understand how the Microsoft data types translate to C data types (no magic here just some ability to search in the MSDN headers is necessary) you need to understand about the issues to pass the various C data types to a function. The rest is simply applying that C programming knowledge.

 

Rolf Kalbermatter

Message Edited by rolfk on 09-11-2009 08:02 AM
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 8 of 11
(4,613 Views)

O OW... so i need to go through C concepts before i start with calling setting parameters for a function.

ok, Thanks

Somil Gautam
Think Weird
0 Kudos
Message 9 of 11
(4,608 Views)

Somil wrote:

Thanks for the reply MATHAN. You come to my rescue most of the times. Smiley Happy haha


Welcome. Glad to hear that. Whatever RolfK suggested was 100% true. So please go ahead and study and do postback here whether you achieved your goal and tell your findings. All the best.

 

Mathan

0 Kudos
Message 10 of 11
(4,595 Views)