ni.com is currently experiencing issues.
Support teams are actively working on the resolution.
ni.com is currently experiencing issues.
Support teams are actively working on the resolution.
06-12-2013 03:50 PM
I removed the 500 ms delay you had. The VISA read will delay waiting for the next line of data. You don't wont to miss it, so do not add a delay into between reads. It is not needed to prevent hoggin the CPU. The VISA read will be the delay. I did add it to your "Don't Read" case to slow down the while loop. Also added the flush funtion to dump what the GPS sends when you are not reading.
The Read One Line VI is a stripped down version the one I use every day.
I noticed that an over all timeout check is missing. If your GPS start sending out text without a return (it get in some abnormal mode?), the VI will lock up waiting for a return that never comes. Add a time check to the Read One Line VI inside the loop to check if it is taking too long and abort if it is.
06-12-2013 03:51 PM
Thanks everyone for helping me, I really do appreciate the time yall took to look at my code and figure out what wasn't right. Both Eric1977 and Omar_II codes worked but Omar_II's seemed to run more smoothly.
Thanks again!
06-12-2013 03:53 PM
Yes, I was trying to decipher what you had designed.lol
I will do that eventually, but right now I'm just glad to finally get the data in the correct format into the file.
06-12-2013 03:56 PM
Added an overall timeout to the Read One Line VI