09-18-2013 01:03 AM - edited 09-18-2013 01:08 AM
Hello all,
I have an application in which I need to send sequence of commands to unit and read it back response, for all the commands there is one name assigned.
Now I am using listbox to show all this and I am able to write all the test sequence names to listbox. What I want is when user selects particular row then It should also show what command it has sent in the background and what it got. I have attached image file for reference.
Thanks
Solved! Go to Solution.
09-18-2013 01:11 AM
To get the selected listbox string, use index array with the array of strings and the listbox wired to the index terminal. If the listbox is configured to allow more than one selection, use a FOR loop.
Have a look at this example (look at the OK button event)
09-18-2013 01:20 AM - edited 09-18-2013 01:21 AM
May be my words were not correct sir. In the image when user selects 21st row then it will show for corresponding 21th what command it has sent and received(in the block diagram) which is in yellow box.
One more thing. Name which is displayed in the listbox and command sent and recceive is different.
Thanks
09-18-2013 01:22 AM
Then index into an array of corresponding commands. Same difference.
09-18-2013 01:23 AM - edited 09-18-2013 01:24 AM
I can display in array but what I want is when user select the particular row then only it should display command and response of particular commands name
09-18-2013 01:35 AM
Is it possible?
09-18-2013 01:41 AM
09-18-2013 01:49 AM
I think i came up with a clever solution, check this out:
(damn IE cant insert pictures ...)
/Y
09-18-2013 01:58 AM
thanks Yemeda, but looks like your solution is incomplete. Can you upload your VI
09-18-2013 01:59 AM
I also gonna need active row property so that I can write to each row.