LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Set multiple baud rates for Mega 2560?

My group is trying to use a parallax GPS (part # 28146). We want to collect the NMEA data strings, sort them into arrays, and then decode them and have a read out on a front panel. The problem we are running into is how to tap into a different serial port and set a different baud rate for the GPS.

When we tried the GPS on Arduino, we initialized serial port 3 with a baud rate of 4800. How do we do that on LabVIEW? We are doing a lot more than just a GPS so we can't change the baud rate of the main serial port.

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

I'm part of the same group and to add to this we now know that we have to call (on the sketch to the arduino, the LVIFA_base) the serial port 3 data in at 4800 baud and then say that the data out on that port is going to be at 9600 baud. However, we do not know what part of the LVIFA_base code to modify to account for multiple serial ports being called. Any help would be greatly appreciated perhaps from the creater/updater of that code (Kevin Fort)? If we can get the arduino to do this baud rate conversion then we should have no big problem initializing through labview.

Also I have attached our .llb which includes our GPS .vi so that you may have a better understanding of what we are trying to do. It uses the example found here  http://zone.ni.com/devzone/cda/epd/p/id/2197

0 Kudos
Message 2 of 3
(3,395 Views)

My suggestion here would be to not use the LIFA framework if you are just trying to read the GPS. If you don't need any of the other capabilities of the toolkit then adding new capabilities will be more difficult than just parsing the serial data on your computer. I have experimented with the GPS sensors before and it works well to pop the chip off the arduino so you just get the FTDI serial chip which converts the voltage ranges between the gps and computer serial port. You can then do all your coding on the computer and not have to worry about the sketch.

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 3 of 3
(3,395 Views)