LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

listbox & commands

Hello,
i am working on evenment structure. I have a Source list box . I have created a Target listbox by doubleclicking everytime on an element in the Source listbox.

My goal is to create on the same line of every element in the Target listbox 3 commands: 2 time commands (Start & END time) and a boolean command.
These commands are used as entries to Write Trace and Historical Trend blocks. Then i should be able to change them all time.

How could i do that ?
Thx
Samer,
0 Kudos
Message 1 of 12
(4,100 Views)

Hi Samer,

what do you mean with 3 commands? Can you please explain? How should the command look like?

Mike

0 Kudos
Message 2 of 12
(4,092 Views)
By 3 commands i mean:

- a "horodatage" (time) command used to specify the start time (for Historical Trend for exemple)

- a "horodatage" (time) command used to specify the end time (for Historical Trend for exemple)

- a boolean command used to cancel or to maintin the trace arhiving (for example)

I like to have each element of the Target list box and these 3 commandes on one line.

In conclusion, after i add an element to the Target list these commands will specify the start time, the end time and the state.

If you have more questions let me know.
Samer,
Samer,
0 Kudos
Message 3 of 12
(4,084 Views)
Hi Samer,
do you mean you click on the source listbox and ..., sorry i don´t catch it. Do you want to write a simple string into the target listbox?
Mike
0 Kudos
Message 4 of 12
(4,081 Views)
yes i want to write a simple string into the target listbox and near it at right i want to have the 3 commands....

all that i want it to be produces by clicking on a string into the source listbox.

In result i want each click on a string into the source listbox produce a string in the source listbox and 3 commands near it
Samer
Samer,
0 Kudos
Message 5 of 12
(4,079 Views)

Hi Samer,

attached is an example as i understand what you need.
Hope it helps.

Mike

0 Kudos
Message 6 of 12
(4,076 Views)
Hi Mike,

by command i mean a command button then i need 2 horodatage (time) buttons and 1 boolean button...
i will use these buttons later and change their values. These buttons should stay as long as the string is in the target listbox.
i want them to be on one line ( and not one column) of the string in the target listbox

Could you help me please ?
Samer,
0 Kudos
Message 7 of 12
(4,059 Views)

Hi Samer,

you can add the "concatenate Strings" function to get only one line. Do you want to create these buttons dynamically?

Mike

0 Kudos
Message 8 of 12
(4,054 Views)
Hi samer,

it seems you want to mix several datatypes, so an array of clusters would be fine...

(The example is not perfect, but should show how to get your task done.)
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 12
(4,050 Views)
Hi Mike,

It appears that "GerdW" understood what i mean 😉
His solution is what i was searching for
 
Thx for your patience 😉
Samer
Samer,
0 Kudos
Message 10 of 12
(4,040 Views)