LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting data to graph and short the required data

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 8
(3,307 Views)

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…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(3,291 Views)

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 Smiley Happy

 

0 Kudos
Message 3 of 8
(3,254 Views)
Solution
Accepted by topic author Vinaygowda

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:

check.png

(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.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 8
(3,246 Views)

Dear GerdW,

Thanks for your replay Smiley Happy

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 Smiley Happy

 

Regards,

Vinay

0 Kudos
Message 5 of 8
(3,229 Views)

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

0 Kudos
Message 6 of 8
(3,209 Views)

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.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 8
(3,198 Views)

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, 

0 Kudos
Message 8 of 8
(3,120 Views)