11-05-2009 03:48 AM
I have ahead of me certain task regarding filter. Now my filter has semi auto(user can input desired wavelength) wavelength selection.The range of the filter is 550nm to 720nm. My tasks are:
1) the filter should automatically select (for eg: 600nm, 645nm,686.7nm and 718nm) one after other and remain in that level for a specified time(.5s,1s etc)
2)The camera attached should take image at each of these wavelengths and store the image(without giving capture command)
Can I use stack structure for the first task.
Solved! Go to Solution.
11-05-2009 09:01 AM
It would be better to start with a state machine architecture rather than a sequence structure. It will do everything that the sequence could do and be much more flexible and modifiable later. Stacked sequence structures are avoided by most experienced LV programmers because they are inflexible and because they hide code. Look at the design patterns which ship with LV for examples of state machines.
The state machine should be abel to handle both the filter changes and the camera.
Lynn
11-13-2009 12:20 PM
I framed the following code for the filter sweep( not for individual wavelength) . Here I have one problem.
When the input reaches 720, it is stopped. I want the program to run again from the beginning.( that is , it sweeps from 550 to 720 repeatedly) .
11-16-2009 01:45 AM
Hi malavi,
After the wavelenght of your filter reaches 720 your loop ends.
if you want it to run again you have to reset the value of your slider to 550.
Cheers!
11-16-2009 02:03 AM
Hi
Is this what you are looking for?
11-16-2009 02:06 AM
11-16-2009 02:44 AM
11-16-2009 02:49 AM
Hey
I have 8.6 version of labVIEW.
So i guess i cannot save in a version previous than 8.0
however i am attaching a pic of the modified code. Do the modifications accordingly and also i am attaching a 8.0 version of the same. Ask some one who can save it in 7.1 for you
11-16-2009 03:10 AM
thank you somil.It worked.
This filter is attached to a camera.The filter should sweep from 500 to 705 and it should take images at the following frequencies. 1) 500 2) 545 3) 575 4) 630 and 5) 705.
So I have planned to add this sweep program as a subvi whose output goes instead of wavelength selection. I will post the original code.
11-16-2009 03:14 AM
Great!!!
But where are my Kudos?