cancel
Showing results for 
Search instead for 
Did you mean: 

Listbox ActiveRow display

SOLVED
Ranjeet_Singh
Active Participant
Solved!

Listbox ActiveRow display

Message contains an attachment

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

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

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
18 REPLIES 18
altenbach
Knight of NI

Re: Listbox ActiveRow display

Message contains a hyperlink

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)

Ranjeet_Singh
Active Participant

Re: Listbox ActiveRow display

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 

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

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
altenbach
Knight of NI

Re: Listbox ActiveRow display

Then index into an array of corresponding commands. Same difference.

Ranjeet_Singh
Active Participant

Re: Listbox ActiveRow display

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 

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

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Ranjeet_Singh
Active Participant

Re: Listbox ActiveRow display

Is it possible?

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

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
altenbach
Knight of NI

Re: Listbox ActiveRow display


@Ranjeet_Singh wrote:

Is it possible?


Yes, of course.

Yamaeda
Proven Zealot

Re: Listbox ActiveRow display

Message contains an attachment

I think i came up with a clever solution, check this out:
(damn IE cant insert pictures ...)

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Ranjeet_Singh
Active Participant

Re: Listbox ActiveRow display

thanks Yemeda, but looks like your solution is incomplete. Can you upload your VI

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

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Ranjeet_Singh
Active Participant

Re: Listbox ActiveRow display

I also gonna need active row property so that I can write to each row.

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

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet