LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Typedef not indicating properly

Hey everybody,
  I'm running LabVIEW 8.2 Full DS, and I'm having some trouble with something that I think is very specific.  I'm using a strict typedef as a control/indicator, and the problem comes when I programmatically read 9 FieldPoint targets and try to update the display.  I'm using the Control Value:Set [Variant] method to force disabled numeric controls to update on a timeout event (the other events actually control the rig), but the controls don't visibly update.  I can probe all of them and they show proper data, and I can force the displays in quick test vis using the exact same methodology, so I am kind of at a loss.
 
  I have the control set inside a while loop to keep it updated, which is the only thing different than my little test cases.  The FieldPoint addresses are passed as an array, and indexed through a for loop, with a case statement updating the proper control.
 
Thanks,
  Jeff
0 Kudos
Message 1 of 5
(2,895 Views)
Can you attach a simplified VI that shows the problem using simulated data?
0 Kudos
Message 2 of 5
(2,888 Views)
Sure thing, although I apologize because it's a rush job.  The actual code is on a non-internet capable machine.  Also, I noticed that my data loss happens on the edge of the case statement.
 
 
 - Jeff


Message Edited by JeffCWRU on 01-02-2008 01:55 PM
0 Kudos
Message 3 of 5
(2,880 Views)
You need to keep your cluster in a shift register or for each new ieration you start out with the original data.
 
It is also probably sufficient to write the value after the loop (A local variable might be sufficient to replace the control property write. It is much less overhead).
 
 
0 Kudos
Message 4 of 5
(2,868 Views)

I actually had shift registers, I just forgot to put them in the sample code Smiley Sad

 

Anyway, I have a workaround that's sufficient for now.  I just randomly update them individually, which gives me about a quarter second refresh on a ten millisecond timeout.

0 Kudos
Message 5 of 5
(2,861 Views)