06-23-2016 05:21 AM
Hello. I am currently working with a GPS module and I need to write data to the GPS to change its update rate and I'm trying to do that using UART, as the GPS is sending data back through UART. Attached pictures shows the data I need to write and the code I tried. I cant seem to figure out why its not working. The array is of U8 type Hexadecimal. One of the NI help guides showed the same thing too.
http://digital.ni.com/public.nsf/allkb/6C24F2F07BC23BB78625722800710865
06-23-2016 05:36 AM
@deepen_solanki wrote:Hello. I am currently working with a GPS module and I need to write data to the GPS to change its update rate and I'm trying to do that using UART, as the GPS is sending data back through UART. Attached pictures shows the data I need to write and the code I tried. I cant seem to figure out why its not working. The array is of U8 type Hexadecimal. One of the NI help guides showed the same thing too.
http://digital.ni.com/public.nsf/allkb/6C24F2F07BC23BB78625722800710865
Try to Re define your code, In such a way that it will initialize once and then Write data, then wait for sometime based on data availability or poll for Number of Bytes at Port if the Number of Bytes is Greater than 0, then Read
This is how you need to Frame a Driver
06-23-2016 05:58 AM
Make Sure you are calculating CRC and Appending with the data if Required
You can try communication in Hyperterminal or Putty Software before running in LabVIEW as a Debugging Technique
06-25-2016 03:06 AM
I figured it out. I was closing the NI Serial Visa and then re-opening it. That didnt work. I then changed it.
Thank you.
06-27-2016 02:18 AM
If you are done with your requirement you can mark as solution, it may be your own answer, so that other members wont be providing inputs