06-01-2011 02:42 PM
***SEE ATTACHMENT BELOW***
I have created a program which creates a constantly updating intensity image, but I would like the user to be able to adjust the "exposure" control during the camera use. Currently, the camera is set, and continously takes pictures on only one exposure setting. I am not sure as to how to incorporate the exposure time into the loop, without compromising the structure of the program.
Solved! Go to Solution.
06-01-2011 02:52 PM - edited 06-01-2011 02:53 PM
There's 2 approaches (well, there's more, but I will describe 2 of them )
1) Use 2 loops. The inner loop (the one you have) terminates when the user changes the exposure. The outer loop just updates the exposure and then the inner loop starts again.
2) Put the exposure VI into your acquisition loop, but only call it when the user changes it (use a shift register to check if the value changed. Place the VI so the exposure is changed while no data is acquired (e.g. between fetching the data and starting to take a new image).
Hope this helps.
06-01-2011 03:22 PM
Dan,
First off, thanks for the input!
I tried both of your ideas, but was unsuccessful =[ so then I figured I could just have the inner while loop run once (by connecting a true constant to the true stop), then the whole outer loop would run again (checking for a new exposure setting). However, this process is either incredibly slow, or my logic is incorrect. I have attached my (fail) vi attempt =/
Thanks again!
06-01-2011 03:28 PM