01-20-2007 11:36 AM
01-20-2007 12:12 PM
01-21-2007 08:16 AM
01-21-2007 12:39 PM
02-01-2007 09:08 AM
02-01-2007 10:05 AM
1. During the time out I write a random value to one element of the cluster (simulation reading out a device). However when I add one element in the array (e.g. changing number of column from 2 to 3) then this new element is not active until the user changes one of the values of the cluster of this new array element. I assume there must be a way to activate an element of an array without user input.
2. The switch-until-released option seems to work fine (for the < and > buttons), except for the fact that 2 event are created why comparing old and new value of the array, that is, one during mouse down and one during mouse up (when the button is pressed longer that 100ms). This is demostrated by the led. Up till now I have solved this by checking that the actual value of the pressed button is 'true' (not in the example vi) so only 'mouse down' events are used for further evaluation. However this makes the program (unnecessary?) complicated. Is there a way to optimize this?
3. In order to find which button was pressed I use two for loops and fine where the 'old' and 'new' value are different. I only check for the first 3 elements of the cluster (so I avoid that events are created when the user changes the controller between the < and > button). I was wondering if there is a more elegant way to do this.