LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

windows API

Is there a list of the Windows API which can not be used with LabVIEW-RT ?
As an example, it seems we cann't use the ExitWindows API : we have a "load failed" error when we want download the VI which call this API.
Is it the same problem with all the function which are in the USER32 DLL ?
0 Kudos
Message 1 of 4
(3,524 Views)
Hello,

Unfortunately, there is no such list. Since you are using LabWindows/CVI, though, you can use the RT-specific compiler settings which can tell you if you are using an unsupported function. In terms of the ExitWindows function - are you trying to unload the LabVIEW engine? This will not work; When you boot a LabvIEW RT target the embedded RT engine begins execution. This is the only running process. The only way to exit it is to turn the machine off.

My suggestion would be to either develop in the LabVIEW environment or to use the CVI environment. The recommended method is to use LabVIEW RT for developing your code. Otherwise it is a little bit of trial and error.

Thanks,
Dafna
0 Kudos
Message 2 of 4
(3,524 Views)
In fact I don't have LabWindows/CVI and I am trying to use a third-party DLL. On my request, they have built the DLL with LabWindows/CVI using the setting as specified in the Apllication Note 182 (Programming for the LabVIEW Real-Time Module Using LabWindows/CVI).
But I am still not able to download a VI which uses this DLL ("failed to load shared library").
We try to understand where is the problem. For this reason, I have done some tests with different example like the one which call the ExitWindows.

Thanks
Hubert
0 Kudos
Message 3 of 4
(3,524 Views)
Hubert,

Would it be sufficient for your tests to try simple ANSI C functions rather than WIN API ones? If not, I can recommend a couple of simple API calls that I have tried and that I know work. A while back I sent you a link to an example on setting the system time. To build that example I used API call GetSystemTime. If you are familiar with that function you can try to build a simple dll that calls into that function.

Regards,
Dafna
0 Kudos
Message 4 of 4
(3,524 Views)