LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Listbox ActiveRow display

Solved!
Go to solution

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
0 Kudos
Message 1 of 19
(3,072 Views)

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)

0 Kudos
Message 2 of 19
(3,058 Views)

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
0 Kudos
Message 3 of 19
(3,051 Views)

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

0 Kudos
Message 4 of 19
(3,047 Views)

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
0 Kudos
Message 5 of 19
(3,045 Views)

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
0 Kudos
Message 6 of 19
(3,023 Views)

@Ranjeet_Singh wrote:

Is it possible?


Yes, of course.

0 Kudos
Message 7 of 19
(3,016 Views)

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
0 Kudos
Message 8 of 19
(3,015 Views)

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
0 Kudos
Message 9 of 19
(3,010 Views)

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
0 Kudos
Message 10 of 19
(3,009 Views)