06-06-2013 10:03 PM
Hi Everyone,
I have a problem here,
I have not found a way for my FOR loop to read the strings from my array. My FOR loop currently can only read the first element in my array. Do anyone know the way for my FOR loop to read all my elements?
Thanks,
Alan
06-06-2013 10:11 PM
index enabled the tunnel?
06-06-2013 10:54 PM
I tried that before but thanks anyway, my loop is inside a case. It does not allow me to Index Enable the loop.
06-06-2013 10:58 PM
please post your VI
06-06-2013 11:08 PM
I can't give you all of my .vi but I'll show one of them I made.
06-06-2013 11:30 PM - edited 06-06-2013 11:32 PM
@saintalan94 wrote:
I have not found a way for my FOR loop to read the strings from my array. My FOR loop currently can only read the first element in my array.
you dont have an array entering your FOR loop?
06-06-2013 11:58 PM
Hope this will answer.
Let me know.
06-07-2013 03:12 AM
Nope I'm doing a simplified parser for XML. My program is a little more complicated.I have to read many different values from a single source of string using match pattern. Then I need to loop my program the same number of times a value is shown on the string, but everytime I input my array of string to my vi.... Only the first value the match pattern could detect and not the rest of the data, This VI is just an example, I need to make a program suitable for many boolean in this case. I was wondering if there are other ways better than using for loop or for loop with shift register. Thanks!
06-07-2013 03:35 AM - edited 06-07-2013 03:37 AM
@saintalan94 wrote:
Nope I'm doing a simplified parser for XML. My program is a little more complicated.I have to read many different values from a single source of string using match pattern. Then I need to loop my program the same number of times a value is shown on the string, but everytime I input my array of string to my vi.... Only the first value the match pattern could detect and not the rest of the data, This VI is just an example, I need to make a program suitable for many boolean in this case. I was wondering if there are other ways better than using for loop or for loop with shift register. Thanks!
What is many different values from a single source of string?
Give one sample source string and what output(s) you are looking from that.
06-07-2013 03:51 AM
Hi Ranjeet,
It's in my attachment eee.jpg where the G!@#$%ibberish XML is the source of string and I will need all the values in the '<val>'s... and </val>'s... But now my program could only get me one of the values.
Thanks,
Alan