04-20-2012 06:59 AM
hi
how can i read a data from string.my output string looks like.:
for example
{<V01/DST62/SRC01/PT08/DT01><C04/R01/A00><P120.002.001/R001/C001><2000>}:{<V01/DST62/SRC01/PT08/DT01><C01/R01/A07><P120.003.001/R001/C001><6>}u and so on.But i need only the value 2000 and 6.i have to analyse more than 20 such output string.how can i read these value in my front panal?
Thank u.
Thakur
Solved! Go to Solution.
04-20-2012 07:27 AM
What data are you looking to extract? You need to help us here if you want help.
What do you need to do?
Will the string that you are getting always look like the one that you have provided?
How are you going to get the data?
What have you already tried?
04-20-2012 07:29 AM
Match Pattern and Scan From String will be your friends here.
04-20-2012 07:41 AM
hi I am trying to get data which contains between <>.i have such more than 20 String that i received.each string starts with { and ends with with }+Checksum.Then starts with{ next string for next data.but i fell difficulty getting so many string as output.I am not so gut in programing..
thanks
04-20-2012 07:45 AM
do i need any loop or case too.Coz i have more than 20 string that i have to analyse.
04-20-2012 08:31 AM
Here is what I would do to start:
\
This will accommodate the multi string that you want to process. You just need to get them into an array to pass to the for loop.
04-20-2012 08:59 AM
I think it really still depends on what the actual rules for the input string are.
I thought this:
Replacing the input string with an array and a for loop would work. Or concatenating all strings together would work.
04-20-2012 10:09 AM
04-20-2012 10:43 AM
wow..thanks it works .And can i use while loop in visa read for continuous reading a data?i used concanate string to send all the string.But Some string contains only the commands to be set and rest of them contains commands to get.e.g.in my above string C01 is for Get and C04 is for set.How can i read data continuously.i just use visa read and write with out any loop.(see attachment)
04-20-2012 10:57 AM
hi
Thanks a lot.Can i use while loop in visa read ?.Because i need to get data continuosly.
Tadhika