Application.GPS.IsValidFix always False

1900
0
04-21-2013 07:02 PM
MarkWatson1
New Contributor
Hi All,

I'm currently trying to set up a Getac PS236 GPS unit with ArcPad 10.0 R2 Build 30 and have tried running a script that determines if a valid GPS fix has been established.

The code I'm using is as follows:

    '++ reset GPS
    If Application.GPS.IsOpen then
     Application.GPS.Close() ' Turn off the GPS
    End If

    '++ activate GPS
    Application.GPS.Open()
    'Application.MessageBox("Waiting for GPS Lock")
       
    ' wait for GPS Fix
    dim chk_fix
    chk_fix=Application.GPS.IsValidFix
    Do While chk_fix=False
        chk_fix=Application.GPS.IsValidFix
    Loop

It appears that the loop doesn't terminate since Application.GPS.IsValidFix always returns False.

When I take out the loop and re-run the script the GPS begins creating a track log which as you'd expect results in points that are fairly inaccurate before finally stabilising to yield reasonable values.

I've created a button to show the value of Application.GPS.IsValidFix right at the end of my test after the track log has been successfully created and found that the value of Application.GPS.IsValidFix is False.

Does anyone know of any problems with using this property in ArcPad 10.0 R2 Build 30? (I'm thinking it may be a bug with that release).

Or, could it be that I'm not using this property correctly?

Any tips would be very much appreciated.

Regards,
Mark.
Tags (3)
0 Kudos
0 Replies