How to use the busDAQ to get GPS data?

Setup and use of the imc instrumentation via "imc Devices" software

How to use the busDAQ to get GPS data?

Postby mrkrupp » Thu Apr 16, 2009 1:07 pm

I am trying to configure a busDAQ (via online FAMOS) to record GPS data, but so far no luck.

The busDAQ has a dedicated GPS port (with a GPS connected) and I can see some "Process vector" information in Online FAMOS (pv.GPS.height, etc) but how do Iturn that into data?
User avatar
mrkrupp
User
 
Posts: 6
Joined: Sun May 18, 2008 6:58 pm

Re: How to use the busDAQ to get GPS data?

Postby cjboeckman » Mon Apr 27, 2009 11:53 am

You need to make a virtual channel to read the process vector into.

Here is some sample code from the Busdaq manual that you can put into the operations section of online Famos:

slow = Mean( DIn01, 1, 10 )
latitude = CreateVChannelInt( slow, pv.GPS.latitude)
longitude = CreateVChannelInt( slow, pv.GPS.longitude)
quality = CreateVChannel( slow, pv.GPS.quality)
satellites = CreateVChannel( slow, pv.GPS.satellites)
cjboeckman
User
 
Posts: 2
Joined: Sun May 18, 2008 7:05 pm

Re: How to use the busDAQ to get GPS data?

Postby Nylander » Fri May 08, 2009 11:31 am

And an addition comment: CreateVChannel takes a "number" or instantaneous value (for example, the current GPS speed), and turns it into a channel -- a channel is something with a start time and and end, a sample rate, units, perhaps a trigger, storage, etc.

So the reference channel for the CreateVChannel command can be anything in the system -- it's value is irrelevant, only it's sample rate and trigger are used to "define" a new Virtual Channel.

GPS parameters are made available through Online FAMOS' "process variables" -- instantaneous values of system parameters. With Online FAMOS Professional, there is extensive use of the "PV" variables, or collectively know as the process vector, to provide hard real time calculations and control.

Paul
-=-=-=-=-=-=-=-

Paul Nylander
imc DataWorks, LLC
931 East Main Street, Suite 7
Madison, WI 53703
608-231-6123
http://www.imcDataWorks.com
User avatar
Nylander
Site Admin
 
Posts: 55
Joined: Thu Apr 24, 2008 3:02 pm
Location: Madison, WI


Return to Measurement Configuration

Who is online

Users browsing this forum: No registered users