04-24-2014 05:57 PM
Yeah I just realized, thanks anyway.
04-24-2014 07:44 PM - edited 04-24-2014 07:44 PM
After entering the string format specifiers, the scan from string keeps skipping one of the values (There are 30 values and the 3rd has dissappered). The error message says I have one too many specifiers but thats not true. I have 30 specifiers and 30 default values. For the 3rd where it shoud say DBL, it is blank. What is the way around this issue?
04-24-2014 08:52 PM
Again, we cannot troubleshoot a VI from a verbal description. Attach the newest code and we have a look.
04-24-2014 09:43 PM
I sorted that problem, I made an error with one of the specifiers.
I have another question though.
In the radio file if some fields contain '_ or -' along with integers, would it change the specifier from %d to something else?
04-24-2014 09:50 PM
Patel33 wrote:In the radio file if some fields contain '_ or -' along with integers, would it change the specifier from %d to something else?
All these cryptic questions.... You need to be significantly more specific.
04-24-2014 10:17 PM
One column has data like this 'Link1_B' and the other like this '37856-34974'.
So for example I specify '37856-34974' as %d, or would it be different because of the '-', or does it not matter?
04-24-2014 10:33 PM - edited 04-24-2014 10:39 PM
Of course it can't be %d because %d looks for a decimal integer. '37856-34974' is not a valid integer because you can't have a negative sign in the middle of a number.
As Altenbach said, you need to post your VI. You also need to post examples of the strings you are trying to decode.
04-24-2014 10:36 PM - edited 04-24-2014 10:51 PM
Here are the examples of the strings I'm unsure about.
84079168-251202190, F-Block, 1.08.0009, Link1_B, 0 / 574512549072, 98:35:71:00:01:88, 150 days 6:49
04-25-2014 08:52 AM
You should be using a comma has your string delimiter. Then you will have a 2-D array where the rows represent each line, and the columns represent each item within that line. When you iterated on that array, you'll be working on each row. Then use Index Array, to break apart each item within that row and convert each item as needed to the appropriate datatype.
There is probably a way you can do it with match regular expression. But working with that function is much more advanced and only a few people seem to understand the arcane syntax of a regular expression. Since you don't seem to really have your string format well defined, it would be impossible for anyone to help you figure out exactly what your regex expression should be.
04-25-2014 08:57 AM
I am using a scan from string function which does not have a delimitter node