06-04-2012 01:24 AM
You can do it in many ways. Check the attached example.
06-05-2012 10:52 AM
Thanks!!!
Now Iam looking for a solution to one question.Searched throughout forum and tried my own way,that is:-
Is it possible to edit an array at run time??Here example showing array values changing from 10,20,30...while running,That time I want to enter my own input value in any of the array index.Is it possible?
Sorry I don't started a new thread because the example attachment is in this thread.
06-05-2012 11:36 AM
@jkuttu wrote:
Is it possible to edit an array at run time??Here example showing array values changing from 10,20,30...while running,That time I want to enter my own input value in any of the array index.Is it possible?
Look into the Replace Array Subset VI in the array pallet.
06-06-2012 12:44 AM
Yes,using "replace array subset" we can replace array element in a particular index at the time of coding.But I want to change my array element in the frontpanel itself while the VI is running.Is it possible?
06-06-2012 01:06 AM
06-06-2012 12:44 PM
Hi jkuttu,
If you want to manually change the value of what is being used to replace an element at a particular index in your array while your VI is running then you should use a control instead of a constant as the "new element" input for the "Replace Array Subset" function. This will allow you to enter any value you want on the front panel while the VI is running and this value will be input to the specified index of the array.
I hope this helps.
Regards,
06-07-2012 01:53 AM
Thanks James.It worked.But that particular array index seems to be not moving.So Iam trying in a way to create a mouse click event in the array.
Thanx and suggestions are welcome
06-08-2012 08:59 AM
Hi jkuttu,
I'm not sure I know what you mean exactly by the array index not "moving". What about the array do you want the mouse click event to control? If you can share some more detail on the purpose of the event then I can provide some guidance and suggestions on how to accomplish this in LabVIEW.
Regards,
06-08-2012 11:52 PM
Hi James,
Our array values are changing continuously.When we provide a control on any of the index that index seems to be not changing itself,that what I mean.Anyway I will post some code here.
06-09-2012 11:56 AM
@jkuttu wrote:
Our array values are changing continuously.When we provide a control on any of the index that index seems to be not changing itself,that what I mean.Anyway I will post some code here.
Whatever you are saying still makes absolutely no sense. Yes, please post some code!