02-10-2011 05:16 PM
I received an ASCII output from a signal source analyzer that I would like to convert to a readable text format. In the attached vi (LV2009) the read buffer string control contains the data I'm receiving and I put a free label on the front panel that contains the expected output. When I typecast to an array of single I got the good values but every 3 values I got a number that is probably a conversion of a return character. I could sort the array to convert the number to string and every third value to \r\n but it seems a silly way to solve this. There must be an easy way to do it. Any idea?
Ben64
Solved! Go to Solution.
02-10-2011 05:27 PM - edited 02-10-2011 05:34 PM
Edit: Missed convert to text part.
02-10-2011 05:50 PM
As an added bit of fun, I originally wanted to do this:
A little annoying that the Build Matrix function does not deal with SGL, but for some reason LV9 throws this at you:
Consider this my report to NI Tech Support.
Adding a coercion to DBL before Build Matrix kind of defeats the purpose, but fixes the problem.
02-11-2011 08:07 AM