06-12-2013 01:33 PM
I have made the changes you suggested but I still don't think I am using the case structure correctly...
06-12-2013 01:54 PM - edited 06-12-2013 02:00 PM
Make the 0 case display 0... --> that means that there was a EOL found anywhere within the string. A -1 will mean that no EOL was found.
Edit: Sorry, I told you wrong before. I don't think I've had enough coffee in me yet.
06-12-2013 01:55 PM
One more thing, make the 0... case default.
06-12-2013 02:02 PM
Okay, I made the 0 case the default. Could you specifiy what you mean by "display?" I don't want to write a 0 to the text file.
06-12-2013 02:10 PM - edited 06-12-2013 02:12 PM
No problem.
On the zero case, place your cursor next to the 0 and add two peroids, not three, so it displays like the image below.
06-12-2013 02:15 PM - edited 06-12-2013 02:17 PM
Finally someone on here who is blatently clear! lol
I made the change but unfortunately no data is written to the text file.
I clicked on the wire coming from the offset past match while the VI was running and it displayed a probe dialog window. The window displayed the values of going through the offset past match wire and I never saw a 0 or -1. It jumped around from 81 to 24 to a few other numbers.
06-12-2013 02:19 PM
These forumns have been giving my browser fits. Plus it would help if I could a) type correctly, and b) get the syntax right.
Post your vi, not the images.
06-12-2013 02:23 PM
Using google chrome?
This VI is meant to get serial data from a GPS module and print the NMEA strings to a text file for post-processing. I don't think you would be able to get anything useful out of running the VI. I won't deny you it though.
06-12-2013 02:29 PM - edited 06-12-2013 02:29 PM
@Eric1977 wrote:
I like to use the Greater Or Equal 0 function to make things a little more clear. It also helps that I use the structure label to say what question is driving the case structure.
06-12-2013 02:39 PM
Tried that too. I think a better way to approach this would be this. Read the data in one byte at a time. Don't start to read until a $ is encountered. After a $ has been seen, start to print to the text file. Contine printing until a \r\n is seen. Go to a newline and repeat the process. Attached is the output from the last attempt using the greater than or equal function.