LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows CE power management

1 down vote favorite
 
<script type="text/javascript"></script> share [fb]

I am trying to control the backlight of a Windows CE 5.0 device using labview touch panel module. Does anyone have any ideas on how to do this? In C++ I could call a setdevicepower() function but labview doesn't have the ability that I know of to do this. I am interfacing with Windows CE 5.0 or 6.0. I have looked into calling the dll which is core.dll, but it is located in the rom and therefore i don't see a way to call it in the code.  Any help would be good. Thanks!

0 Kudos
Message 1 of 5
(4,056 Views)

Hi Beans0312!

 

This is actualy performable throught LabVIEW. You must import the library that contains this function (Coredll.lib) with it's header (Pm.h) and input the data (pvDevice S, dwDeviceFlags and DeviceState) into the vi that will be created. Please take a look here to see how to call the library.

 

I hope this helps! If there is anything else I can help or clarify please let me know.

 

Best Regards

 

Carlos O

Applications Engineer

National Instruments

0 Kudos
Message 2 of 5
(4,042 Views)

Carlos,

Yes this is what I thought, however herein lies the problem.  Can you tell me where to find coredll.lib.  I have  access to the PM.h through visual studio 2005 with embedded CE 6.0 toolkit. I can't find the coredll.lib however. 

 

After looking at the help it seems to be saying i can just call a reference to it.  I have tried using the double clicking of the call library function node and it then wants a path to the library.  This is where I get stuck.  Is there another way to reference the library without pointing to it on my computer drive.

 

Thanks for all the help.

 

Brandan 

0 Kudos
Message 3 of 5
(4,037 Views)

I tried to build a shared library using coredll.lib and pm.h.  Can you help with the details of doing this? I get the following message:

 

"Cannot create VI
The following VI cannot be created. This might indicate that the associated function contains parameters of a data type that cannot be converted directly. To work around this issue, you can create a custom control or typedef control to represent a complex structure or multidimensional array, then re-run the Import Shared Library wizard and select Update VIs from a shared library. Using the same shared library, step through the wizard again. On the Configure VIs and Controls page, assign the custom control or typedef to the associated parameter(s). Complex structures include nested structures, structures containing arrays, arrays of strings, and multidimensional arrays.
    Get Device Power.vi
    Set Device Power.vi"

 

Any help with getting this



0 Kudos
Message 4 of 5
(4,031 Views)

Hi Beans0312!

 

Plase take a look to the Configuring the Call Library Function Node to call a Simple DLL tutorial. This tutorial walks you through the process of dropping and configuring a Call Library Function Node to call a simple C/C++ DLL from LabVIEW.

 

Hoppefuly this will do. If there is anything else I can clarify please let me know.

 

Cheers!

0 Kudos
Message 5 of 5
(4,019 Views)