LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Phone Vibrate

Hi Everyone,

 I'm trying to make a window mobile (WM5) cellphone vibrate using Labview PDA.  This functionality is not included in the Labview PDA vis, so this requires the calling of external code.  The code is simple.  From Microsoft's website:

 

hr = Vibrate (0, NULL, TRUE, INFINITE);

 It also states as requirements:

Requirements

Header: Declared in vibrate.h

Library: Use aygshell.lib

 

 

I followed the example from the Labview Help Example, 'Calling External Code - Inline C Method' which calls external code to query the OS version number.  I replaced this code with the 

Vibrate (0, NULL, TRUE, INFINITE); 

 and right clicked on the inline c node to add the header file, vibrate.h.  I also included aygshell.lib as a souce file in the build specifications.  When I build the app, I get a slew of errors that are not called in my simple code like

'type is missing a vi or c file'

'BFFCALLBACK is missing a vi or c file'

 

I've attached the project file.  Can anyone help me ?

0 Kudos
Message 1 of 2
(2,959 Views)

Hi Mykl,

 

I have a few questions. Were you able to get the standard shipping example that gets the OS version number working? Have you tried any other function besides the vibrate one? If so, have you been able to get those working?

 

I think the best starting point here is to see if you can get the shipping example working as we know for sure that it should work. Let me know if it did and we'll move on from there.

 

Also, in the files you attached, you did not attach the actual VI. There is a project file but no VI's.

Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,902 Views)