Visit our LabVIEW Wiki MINDSTORMS® NXT article
Tags |
(This content has not been tagged yet)
|
![]() |
Sep 19 2007, 04:30 PM
Post
#1
|
|||
|
Enough LAVA to be dangerous Member Posts: 4 Joined: 15-November 06 Member No.: 6852 Using LabVIEW Since:1993 LV:7.1.1 ,8.0.1 ,8.20
|
Over on nxtasy.org they have been discussing GPS bluetooth hardware and the NXT. Yesterday, some LabVIEW code was shown to parse GPS data. My first reaction from looking at the block diagram shown was that it looked like C code transferred to G. I know all about this coding style because I used to do that all the time, before I got more comfortable in G. The author also mentioned the solution was inspired by RobotC code and gives his benchmark of 92 milliseconds on the NXT block.
I'm thinking the folks here could come up with some slick and quicker G solutions. It would be a great way to help the NXT community. I'm going to try to look into this more, but I thought I'd mention it here. Cheers!
|
||
|
|
|||
| Ad |
Sep 19 2007, 04:30 PM
Post
#
|
||
|
|
|
||
|
|
|||
Sep 19 2007, 07:30 PM
Post
#2
|
|||
![]() Extwemely Active Premium Member ![]() Posts: 1634 Joined: 23-January 05 From: Here Member No.: 1431 Using LabVIEW Since:2003 LV:8.6 ,7.0 ,.
|
It doesn't look that bad to me. I mean, yes, it probably could be improved, but the style looks reasonable and to be honest, which piece of code can't be tweaked and improved?
My understanding was that NXT has some performance issues which need to be taken into consideration. For all I know, this might be the most efficient way. -------------------- More than meets the eye...
|
||
|
|
|||
Sep 19 2007, 08:28 PM
Post
#3
|
|||
![]() Extremely Active Member Posts: 361 Joined: 6-February 07 From: Homburg/Germany Member No.: 7689 Using LabVIEW Since:2004 LV:8.5 ,8.0.1 ,.
My Gallery
|
I use reading VISA to CR LF, then Spreadsheed string to array(with a comma as delimiter) to get an array of strings. After checking of the cheksum you can interpret your array elements to Lat. Lon and so on. I think it's very easy.
Can you post any code here, I want to look on? Eugen --------------------
|
||
|
|
|||
Sep 21 2007, 08:22 AM
Post
#4
|
|||
![]() Very Active Member Posts: 165 Joined: 9-February 05 From: region Eindhoven, the Netherlands Member No.: 1555 Using LabVIEW Since:2008 LV:7.1.1 ,8.5.1 ,8.2.1
|
Hmm, I could try with my LabVIEW SLR(1) parser module... I curious how it performs against very optimized solutions.
Joris
|
||
|
|
|||
![]() ![]() |
| Time is now: 3rd December 2008 - 09:14 AM |