LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure's value change, not detecting changes when tabbing thru array of clusters

Hi!  I have an array of clusters (int, int, string, int) control, and want to detecting changes made to the it.  I used the Event Structure's value change case on the array, it works excellent except that it'll only detect the changes when you click out of the element or press the enter key (the one by the numbers, not carriage return).  I want it to detect the changes when I tab thru the cluster or array too, but I can't figure it out... Does anyone have any ideas?
 
Thanks!
0 Kudos
Message 1 of 21
(5,367 Views)
It is better if you can post you vi here.
0 Kudos
Message 2 of 21
(5,336 Views)
Here's a simplified version of what I have.  When you run the vi and the change value of the array of clusters, the event structure will only detect the value change (and pop the dialog message) when you click out of the element you changed or press the enter key on the element you changed.  But I want it to detect the change when you tab out from the element you changed too.
 
Thank you!!
0 Kudos
Message 3 of 21
(5,329 Views)
I would use Mouse Down?
 
Matt
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 4 of 21
(5,327 Views)
Sorry, I use LV7.1.  Can't open you vi.
0 Kudos
Message 5 of 21
(5,325 Views)
check Key down and Key up event. , define the tab event.
0 Kudos
Message 6 of 21
(5,322 Views)
On a sidenote, tab works fine in LabVIEW 7.1 using a simple "value change" event, so your observation seems to be a bug (or feature) specific to LabVIEW 8.0.
 
The bug is actually more serious. Try the following:
  1. Change one element
  2. tab to the next element
  3. click outside

---> the "value change" does not register at all if you "click out of it" after a tab.

Message Edited by altenbach on 01-06-2006 09:14 AM

Message 7 of 21
(5,319 Views)
altenbach
 
Tried Value Change with my example done in 7.1 and it doesn't trgger an event.  That is why I suggested Mouse Down.
 
Matt
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 8 of 21
(5,315 Views)
Something else must be going on, I tried to duplicate the behavior in a new .vi and it works as expected in both 7.1 and 8.0

In a blank vi, I created two numerics, put them in a cluster, and put that cluster in an array.  I set up the event structure just as in Elsa's example.

It worked in both versions when I created it in 7.1 and it worked in both when I created it in 8.0

I am stumped.
0 Kudos
Message 9 of 21
(5,303 Views)


@mfitzsimons wrote:
altenbach
 
Tried Value Change with my example done in 7.1 and it doesn't trgger an event.  That is why I suggested Mouse Down.


Curious. I did a few minor edits in 8.0 before saving as 7.1, but the simple value change event got triggered just fine when the value vas terminated with a tab in 7.1. Every time.  Strange....
 
Are you on 7.1 or 7.1.1? Maybe there's a difference (I am using 7.1.1).
0 Kudos
Message 10 of 21
(5,300 Views)