|
From: lizimunro on 6 May 2008 06:40 I am still getting used to Labview and wondered if someone could give me any advice on the best way to store test setting values for each element of the listbox. I have two listboxes. 1) That displays three possible tests and 2) That allows any combination of the tests from listbox 1 to be selected via two navigation buttons. Once the user has selected the tests and they appear in the 'selected tests' listobox. I would then like to store values of flow rate and hours for each test so that when the user clicks on the test in the listbox - the corresponding values for that test appear in the flow rate and hours controls. I am not sure whether this needs to be done via a listbox event or a change value event and as I am a novice at building arrays I would appreciate any advice. Many Thanks, Liz Listbox Event Processing.vi: http://forums.ni.com/attachments/ni/170/321314/1/Listbox Event Processing.vi
From: MikeS81 on 6 May 2008 07:10 Hi Liz, do you really need "Flow Rate" and "Hours" as array? Mike
From: MikeS81 on 6 May 2008 07:10 Hi Liz, here is an example for you. You can add the value for the flow rate to the cluster. I recommend to create a type def for the cluster. Hope it helps. Mike Listbox%20Event%20Processing_LV80.vi: http://forums.ni.com/attachments/ni/170/321323/1/Listbox%20Event%20Processing_LV80.vi
From: lizimunro on 6 May 2008 07:10 Hi Mike, I think so, although there may be another method that I do not know about! I need to be able to store multiple flow rates and hours values so that when the user highlights one of the selected tests - the corresponding value for that test will be displayed in the flow rate and hours box. Thanks, Liz
From: lizimunro on 6 May 2008 07:10 Thanks Mike, I will try that :smileyhappy:. Having come into Labview from .NET I seem to forget about clusters and their uses and think everythign needs to be put in an array!!
|
Next
|
Last
Pages: 1 2 Prev: control axes in 3D graph Next: Removing non-alpha-numeric characters from a string |