10-05-2009 11:48 AM
Hi everyone,
I'm playing with the mobile module in my spare time and trying to create an App for Windows Mobile 6 that can display something on the Today screen (a bit like the Desktop).
I have a few problems with this:
1) I don't know enough C/Java/anything else to understand the MSDN gobbledegook and understand what DLL calls I have to make or which Call by Ref nodes I need to setup
2) I need to access the registry on my device to get some of the settings to make this work. NI does not support this yet, but I'm sure I should be able to code around this and create my own Registry R/W commands in LabVIEW (If I knew what I was doing) - is this possible or am I just living in a dream world?
Basically I want to code an App to sit on a Windows mobile 6 Professional device (for fun) entirely in LabVIEW without any callouts to code other than MS stndard code that is already on the device.
I have tried looking at the MSDN website here:
http://msdn.microsoft.com/en-us/library/bb416637.aspx
for help, but I think I need to download loads of toolkits to be able to even look at the examples (and then they will be in a Text based progamming language - not good for me).
Any *pointers would be great thanks!!!
Thanks
James
10-12-2009 07:46 AM - edited 10-12-2009 07:47 AM
Hi James
What kind of application are you wanting to create in LabVIEW on your mobile device? If you are wanting to perfrom handheld measurements I can provide you with a setup page that will guide you through the steps to set this up, however I would like to know more about the type of application you are creating to help some more.
Please visit the below link for the setup:
http://zone.ni.com/devzone/cda/tut/p/id/7705
There is also a very helpful tutorial I ll list below:
http://zone.ni.com/devzone/cda/tut/p/id/5361
What version of LabVIEW are you using James?
10-13-2009 02:04 AM
Hi David,
I was going to create lots of simple little apps for fun that other people have already created in other programming languages (no DAQ stuff)
e.g.
Phase of moon calculator
Sunrise calculator
Rough tidal calculator (not tide tables)
All above at fixed location
All above at current GPS location
Current financial week at work (each company is different)
How old is a baby (weeks)
That sort of thing.
I was using LabVIEW 8.6.1 (my normal dev enviroment), but I'm trying the Mobile Module in LV2009 to see if it's any better. (so 8.6.1 or 2009)
10-13-2009 03:48 AM
Labview should be capable of doing all of the fuctions you want on the PDA platform and I don't really see why you need to reg edit the PDA for the GPS data part you might be able to get a couple of ideas from this thread http://forums.ni.com/ni/board/message?board.id=170&thread.id=226877 which is a PDA app (see the attached word doc in the linked thread for details) I created this 3 years ago - Its basic but did what was needed!
If your PDA has an integral GPS receiver you will have fun and games getting the hardware to power up correctly using just Labview calls, in the end I either use a seperate Bluetooth GPS receiver or an application called Fransons GPS Gate to start the GPS hardware then Labview is quite easy to configure to read the data from the device - Mike
10-13-2009 07:05 AM
Thanks for the pointers to the GPS stuff Mike.
The Reg functions are required to display things on the "Today" screen (e.g like the number of tasks are) and are being dealt with in this seperate thread:
http://forums.ni.com/ni/board/message?board.id=170&thread.id=445761
The PDA has an integral GPS reciever and my existing Satnav software always enables Bluetooth (not required), so I would like to improve on it, or at least create an app that launches it, and kills the Bluetooth 30s later to save battery life. There seems to be reasonable documantation for my PDA H/W though so I'm hopeful when I get there it will be not too difficult.
10-13-2009 09:57 AM
10-13-2009 10:32 AM
10-19-2009 09:19 AM
Hi James
Thank you for your patience. Incase you havent been able to activate LabVIEW on your mobile device, heres a run through of how to do it.
In LV 2009 (Needed to build app in with Windows Device 6), Open a New Project.
Right click the Project and select New >> Targets and Devices
Select TouchPanel CE 5.0 (Works with Windows Mobile 6)
Then select New TouchPanel VI. From this screen select 12" Touch Portrait.
Build your VI within the Touchpanel VI screen for the custom code you want. (Note: Build your code in the "Run" tab of the case structure; this means it is not processor intensive)
To configure your phone, clock on the Start Menu >> Settings >> Connection Tab >> USB to PC and select ActiveSync. This will enable the windows device to recognise the windows mobile software and to allow download from your PC to the phone.
The registry part of your application can be done following MSDN links and following the Microsoft tips on how to configure the registry.
Please let me know how you get on. Many thanks.