03-15-2018 06:43 AM
Hello all,
I have a problem in converting data to graph and sorting out the required data from bunch of data as shown in attached file
as in attached snap shot there is big data coming from machine and I using VISA to fetch data from the machine
I can successfully save data to the Notepad in same format as shown in attached file
only thing I want to convert data to graph and short the last 2 line data and save as list
can u please give tips to solve this problem
looking forward for your support
have a nice day
Regards,
vinay
Solved! Go to Solution.
03-15-2018 07:17 AM
Hi vinay,
you should rather attach your VI instead of an image of a text editor window…
- it seems you use the semicolon as separator char, so you might use it as TermChar for your serial communication…
- when you only need those "lines" containing "{}" chars you can filter them when you receive strings from your device…
03-22-2018 01:14 AM - edited 03-22-2018 01:14 AM
Thank u @GerdW I got it and its working fine
and one more problem plz see the attached snap shot of output data sheet in not pad
where as u can see how can we split the data in brackets only
looking forward for your support
have a nice day
03-22-2018 02:38 AM
Hi Vinay,
please keep questions in their related thread!
Who invented that weird file format with all those line breaks and huge amount of spaces in there???
As told before, search the brackets and get the strings between them:
(Just a sketch, you still need to implement some error handling. With RegEx this might be easier to solve, but I'm not an expert with RegEx.)
03-22-2018 11:19 PM
Dear GerdW,
Thanks for your replay
the output is created from testing machine and actualy tat is an graph value and final values in brackets
and I will try with tat VI and let u know the status
thank you for your help
Regards,
Vinay
03-25-2018 11:55 PM
hello GerdW,
The VI you posted is working fine
but it extract only one value at a time I need to take all value with bracket to the array is it possible ?
can v use producer and consumer loop to make queue the values and process the values later
looking forward for your support
have a nice day
regards,
vinay
03-26-2018 01:19 AM
Hi Vinay,
it extract only one value at a time I need to take all value with bracket to the array
With your example data I got an array of values, not just one.
So what is your problem?
can v use producer and consumer loop to make queue the values and process the values later
Yes.
04-09-2018 05:42 AM
hello Gerdw,
now I have built VI that should read 8 machine data when it arrives at visa port or when I select the Tab control
but problem is I cant able to read complete data from Visa port I can read only part of output data from the machine
can u plz go through the vi and tell me know the changes I should do to get full data from Visa port continuously
I cant able to attach the VI my security didn't allowed to upload but I can do with pictures
looking forward for your support
kind regards
vinay,