LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read strings from array for loop

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

0 Kudos
Message 1 of 12
(4,065 Views)

index enabled the tunnel?

Message 2 of 12
(4,062 Views)

I tried that before but thanks anyway, my loop is inside a case.  It does not allow me to Index Enable the loop.

0 Kudos
Message 3 of 12
(4,045 Views)

please post your VI

0 Kudos
Message 4 of 12
(4,041 Views)

I can't give you all of my .vi but I'll show one of them I made.

Download All
0 Kudos
Message 5 of 12
(4,035 Views)

@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?

Example_VI_BD.png

0 Kudos
Message 6 of 12
(4,029 Views)

Hope this will answer.

 

Let me know.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 7 of 12
(4,020 Views)

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!

 

0 Kudos
Message 8 of 12
(4,000 Views)

@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.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 9 of 12
(3,994 Views)

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

0 Kudos
Message 10 of 12
(3,987 Views)