Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LV Get Matrix String.vi fails #4

Open
smaslan opened this issue Aug 20, 2021 · 0 comments
Open

LV Get Matrix String.vi fails #4

smaslan opened this issue Aug 20, 2021 · 0 comments

Comments

@smaslan
Copy link

smaslan commented Aug 20, 2021

Whenever the infostring matrix closing tag #endmatrix has some indentation, like " #endmatrix", the following VI function Spread Sheet String to Array.vi used in the text matrix parsers will interpret the line terminator AND the indentation space(s) as additional fake row of data. E.g.:
#startmatrix:: a
1; 2; 3
#endmatrix:: a
will be parsed ok as [1, 2, 3]

But e.g.:
#startmatrix:: a
1; 2; 3
#endmatrix:: a
will be then parsed as [1, 2, 3; NaN; NaN; NaN] by the Spread Sheet String to Array.vi.
Can be solved by insertion of Trim White Space at output of Get Matrix String.vi (schmutzig) or changing the regular expression stuff handling the closing tag #endmatrix, so it eats up the white stuff just before it, but I don't like regexp, so can't do it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant