SatelliteInViewPRNs Property
Returns the PRN numbers of the satellites currently in view.
Syntax
Visual Basic
object.SatelliteInViewPRNs
Visual C++
object.GetSatelliteInViewPRNs()
| Part
| Description |
| object |
An object expression that evaluates to a GPS ToolKit object. |
Example
Visual Basic
Dim satelliteInViewPRNArray
'Get PRNs of satellites in view
satelliteInViewPRNArray = myGPSToolKit.SatelliteInViewPRNs
Visual C++
long arrayUBound;
VARIANT variantData;
_variant_t vtSatInViewPRN, vtSatInViewPRNArray;
short satInViewPRN;
// Get PRNs of satellites in view
vtSatInViewPRNArray = m_myGPSToolKit.GetSatelliteInViewPRNs();
SAFEARRAY *psa = vtSatInViewPRNArray.parray;
// Get upper bound of array
SafeArrayGetUBound(psa, 1, &arrayUBound);
// Iterate through array
for(long i = 0; i <= arrayUBound; i++)
{
SafeArrayGetElement(psa, &i, &variantData);
vtSatInViewPRN = variantData;
satInViewPRN = (short)vtSatInViewPRN;
}
Remarks
None
Default
Empty (VT_EMPTY)
Returns
A VARIANT array (type VT_ARRAY/SAFEARRAY/VB Array) containing elements of VARIANTs
(type VT_I2/short) which holds the pseudo-random noise number (unique ID number) of
the satellites in view. If there are no satellites in view, this variable will be empty (type VT_EMPTY).
Errors
None
See Also
GetSatelliteInfo method, FixSatellitePRNs property, NumSatellitesInView property,
NumSatellitesInFix property, FixQuality property,
ModeIndicator property, SatelliteUpdate event
|