LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to accesss Dll's Related to the display card

hello ,
i want to create a window in Labview ,similar to the windows desktop settimgs where in i can change the resolution etc........so how do i recogise which Dll's will be of use to me .

Regards
Tanisha
0 Kudos
Message 1 of 13
(4,016 Views)
Hi Tanisha,
You will have to call the windows API for playing around with the windows resolution etc,i think you will have to call the EnumDisplaySettings API function for windows settings.
there are lot of examples for calling API's from LV modify it to call yours.
hope it helps
vicky
0 Kudos
Message 2 of 13
(4,005 Views)
hi ,

thanks , i did have a look at it .i will tell u my problem specifically.i m working on ASUS frame grabber card .so wat i thought was if the exe or dll of the software that goes along with the card can be acessed directly so LV will call the rquired routine n the further task will be done by the ASUS frame grasbber software itself.

i will have to use the "call library function node " ?


Regards
tanisha
0 Kudos
Message 3 of 13
(3,995 Views)
Yeah you will have to make use of the Call Lib Func node for any calls.
cheers
vicky
0 Kudos
Message 4 of 13
(3,992 Views)
hi ,

there are some applications in which the files have .exe extension for eg.if in my VI at some point i want to call the calculator which is part of the windows acessories its giving me an error .
can the existing file with .exe extension can be rebuild and made into .dll files


thanks
tanisha
0 Kudos
Message 5 of 13
(3,972 Views)
No, you can't simply convert an exe into a DLL without the source code for the executable, which I doubt you have. What you usually do is invoking the executable with the LabVIEW "System Exec.vi" function and passing the command line parameters to the executable in that way. This assumes that the executable supports command line parameters to do what you want to control with it, of course.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 6 of 13
(3,964 Views)
hi ,

i tried wat u said but encountered a couple of problems like what is the "command line " i.e what input do we have to put in here .next what is the "standard input "i.e what input do we put so, is there any example based on the usage of "system exe.vi".
i have learnt LV by just exploring it. so ,if i m troubling u .plz forgive

thanks
tanisha
0 Kudos
Message 7 of 13
(3,947 Views)
command line means the actual DOS command you would enter on the Command Prompt otherwise, to start that application. It typically looks like this:

C:\WinNT\System32\yourapp.exe /I /F C:\somedatfile.dat

The first part is the executable program to start up, then follow some switches or flags to tell the application to behave in a certain way and last is a command line parameter consisting of a file path, which the program might read to further execute specific things. The path for your executable is obvious, the rest you will have to find in the documentation for your executable program you want to invoke in such a way and it may be in many cases not officially documented, which would mean you can't execute it in such a way.

The standard input is optional and won't work with most Windows applications, which have some sort of graphical user interface. For simple command line applications only, it would allow to pass in the characters you want the application to see during its execution as if they would have been entered over the keyboard.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 8 of 13
(3,943 Views)
hello ,

Facing a bit of a problem while working with DLL's .
An image application vendor has provided with the dll and using this i m creating i own user interface .but after passing the parameters to the "call library function node" and when i run my VI ,it completely closes LabView 7.1
what can be the possilble reasons ?
i find the user manual a bit confusing because it also talks of building library functions.

regards
tanisha
0 Kudos
Message 9 of 13
(3,837 Views)


@tanisha_lv wrote:
hello ,

Facing a bit of a problem while working with DLL's .
An image application vendor has provided with the dll and using this i m creating i own user interface .but after passing the parameters to the "call library function node" and when i run my VI ,it completely closes LabView 7.1
what can be the possilble reasons ?
i find the user manual a bit confusing because it also talks of building library functions.

regards
tanisha




Well, DLL interfacing is really something completely different than what you are used in LabVIEW. The fact that LabVIEW has a possibility to access DLLs does not mean that using that feature is as simple and painless as the rest in LabVIEW. DLL interfaces are based on classical programming languages and here mostly C. This means that in order to interface them you really should understand some basics about C programming. Without this knowledge it gets messy and painful very fast. No manual about Call Library Node usage can possbly replace a fundamental introduction into C programming, which in my case was acquired over years from sources like C programmer manuals, ANSI C standard manuals, LabWindows CVI programmers reference manual, Microsoft Developer Network, studying many Open source projects and examples and last but not least weeks and weeks of programming with the trial and error method. There exist no simple shortcuts to this other than hiring someone who knows all these things already.

Especially interfacing something like an image acquisition library over the Call Library Node in an efficient manner is something I would estimates more in weeks than hours of work for myself. Without some fundamental C programming knowledge this is most likely going to be an exercise in vain with lots of crashes and no working code in the end. I'm sorry for the bad news but I don't think it makes any sense to claim interfacing DLLs is even remotely as easy as most other things in LabVIEW.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 10 of 13
(3,829 Views)