Utility of ARRAYREAD


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2016
    Posts
    60

    Default Utility of ARRAYREAD

    The ARRAYWRITE command is clear to me and I have used it succesfully in a program to write to an oled display. Totaly unclear to me is the use of ARRAYREAD command. Can somebody post a snippet with a practical example on how and when to use arrayread?

    Thank you so much for any help you will give me on this subject.


    Alberto

  2. #2
    Join Date
    Feb 2013
    Location
    Quebec, Canada
    Posts
    67


    Did you find this post helpful? Yes | No

    Default Re: Utility of ARRAYREAD

    You can use it to parse arrays. Here is how I'm using it to parse a NMEA string from a GPS:

    Code:
        ...
    
        'Parsing GGA
        '$GPGGA,193931.000,4600.0000,N,07100.0000,W,1,05,1.5,212.0,M,-28.5,M,,0000*6A
    
        ARRAYread BufferGPS, BFLN_GPS_BUF, Err_ParseNMEA, _
                [wait("$GPGGA,"), str GPSTime\6, wait(","), _
                str Latitude\9, wait(","), str Lat_NS\1, wait(","), _ 
                str Longitude\10, wait(","), str Long_EW\1, wait(","), _ 
                dec GPSFixQual, dec SatCount, str HDOP\3\","] 
        
        NMEAValid = 1
    
    Err_ParseNMEA:
        return

  3. #3
    Join Date
    Jun 2016
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: Utility of ARRAYREAD

    Thank you MichelJasmin for the useful snippet! Now it is much more clear (for me) how to use the ARRAYREAD command.

    Alberto
    Last edited by Alberto; - 4th August 2016 at 15:35.

Similar Threads

  1. New PIC Utility. PICMultiCalc
    By mister_e in forum Off Topic
    Replies: 68
    Last Post: - 12th November 2017, 06:52
  2. Arrayread problem
    By microcnc05 in forum General
    Replies: 4
    Last Post: - 1st October 2014, 17:35
  3. ArrayRead on longer arrays
    By amgen in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st September 2011, 17:07
  4. ArrayRead question
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 24th August 2011, 19:32
  5. Arrayread,arraywrite
    By suded in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th November 2009, 09:36

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts