LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help Insert Data from String Control to Array

Solved!
Go to solution

Hi everyone,

 

I'm trying to insert 2 data from string control into an array. I was done to insert 1 data from string control into an array but when I try to add 1 string control, it not works. Could you guys assist me?

 

Thank you

0 Kudos
Message 1 of 6
(3,486 Views)

You need to understand data flow.

 

You write both String and String 2 to the same location in Array 2 and then you update the Value of Array 2 twice with the different entries????  Watch it run with Execution Highlighting (the Light bulb) On.

 

What are you really trying to do?  Can you show an example of what the result should look like?

 

Lynn

Message 2 of 6
(3,468 Views)
Solution
Accepted by topic author Papang

I think this is what is wanted...to append data to an array. Only issue is it's a control not an indicator so this example may need a little modification if the user needs a control. If you don't want the user to enter anything, this method should work. The function used is insert into array

 

Message 3 of 6
(3,460 Views)

Actually I know it won't work, but I have no idea how to do it so I just plug all the wire together (newbie).

 

What I'm trying to do is when I press the OK button, those 2 strings will be store at array. Just like saving username and password into tiny database.

0 Kudos
Message 4 of 6
(3,455 Views)

@Papang wrote:

Actually I know it won't work, but I have no idea how to do it so I just plug all the wire together (newbie).

 

What I'm trying to do is when I press the OK button, those 2 strings will be store at array. Just like saving username and password into tiny database.


Then use my solution; that should suffice. In the mean time check out these tutorials

 

http://zone.ni.com/devzone/cda/tut/p/id/5247

Message 5 of 6
(3,453 Views)

Wow for(imstuck), It's work.

 

Thank you very much..

 

And also thank's for the link, it's really helpful.

0 Kudos
Message 6 of 6
(3,437 Views)