LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filter which can change wavelength automatically

Solved!
Go to solution

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.

0 Kudos
Message 1 of 14
(3,755 Views)

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 

0 Kudos
Message 2 of 14
(3,738 Views)
 

 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) .

0 Kudos
Message 3 of 14
(3,692 Views)

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!

Pattos

LabVIEW Gretchin
Message 4 of 14
(3,665 Views)

Hi

 

Is this what you are looking for?

Somil Gautam
Think Weird
0 Kudos
Message 5 of 14
(3,661 Views)
A bit improved
Somil Gautam
Think Weird
0 Kudos
Message 6 of 14
(3,660 Views)
 I have labview 7.1 version and the vi that you have posted is not opening in this system.
0 Kudos
Message 7 of 14
(3,646 Views)
Solution
Accepted by malavi

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

Somil Gautam
Think Weird
Download All
Message 8 of 14
(3,644 Views)

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. 

0 Kudos
Message 9 of 14
(3,637 Views)

Great!!!

 

But where are my Kudos? Smiley Wink

Somil Gautam
Think Weird
0 Kudos
Message 10 of 14
(3,634 Views)