LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS 232 TO USB DAQ

Hi,

 

 

Is is possible to sync. RS 232 with USB DAQ 6008? i have a GPS mouse and i am woundering whether i could, physically wire each individual ports of RS 232 (output port) with NI USB DAQ 6008 and read the data in labview. thankyou.

 

sincerely,

solomon

0 Kudos
Message 1 of 4
(3,206 Views)

Yes if the baud rate is low enough for the 6008. Rember there is about 11 bits per byte (start data parity stop) and you want to over-sample at a factor of 10 or for each bits cell time.

 

Converting the data stream to something that can be aprsed wll be like designing a chip for serial. THen you have to pars the data.

 

It will be an excellent learning adventure so have fun.

 

If this is not jus to learn something, I'd suugest you look into purchasing a widget that will give you GPS sync'd time pulses.

 

Trying to help,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 4
(3,197 Views)

If the GPS puck follows the NMEA standards (and most do) the data will be a string of text transmitted at 9600 baud.

 

You do not need to query it as the data is sent out at regulat intervles, (again assuming NMEA)  just use the visa serial routines to wait for bites then just decode the string. 

 

I have done this but the code is at home and I am still at work.

 

Here is a great source of information on decoding the NMEA data http://www.gpsinformation.org/dale/nmea.htm

 

If you are lacking a Rs232 serial port a simple USB-Serial adaptor is all you need.

 

Message Edited by RTSLVU on 10-29-2009 05:11 PM
========================
=== Engineer Ambiguously ===
========================
Message 3 of 4
(3,159 Views)

RTSLVU wrote:

If the GPS puck follows the NMEA standards (and most do) the data will be a string of text transmitted at 9600 baud.

 


I meant to say ASCII data transmitted at 4800 baud 8,N,1

 

I would just plug it into a program like Hyperterminal first and watch what it is doing.

 

Then you will see what NMEA "sentences" your device sends out.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 4
(3,127 Views)