02-04-2008 10:03 AM
02-04-2008 11:40 PM
02-08-2008 05:42 AM - edited 02-08-2008 05:43 AM
Hi Adam
The easiest way to achieve that is to create a local variable for the image control (right click on the image control and choose Create>Local Variable).
After that, you can use the local variable to update your front panel and you shouldn't have problems with race conditions unless you are trying to read or write to this image control from somewhere else in your program as well.
A better way of doing it would be to use a state machine. Your program will have two (or maybe more) states, 'Configure' and 'Running' .It will start by default in the configure state and you will be able to determine programmatically when the program will transit to the 'Running' state.
This option obviously would require you to rewrite the program so I don't know what would work best for you. I've attached a VI that uses a state machine to achieve what you are trying to do.
Let me know if that helped,
KostasB
NI UK