05-05-2011 08:15 AM
Hi everybody !
For a project in my school, I need to use labview to both project a grid on a projector and control a camera to capture this grid. I know it's possible to "send" the front panel on a second screen (the projector in my case) but is it still possible to have another front panel on the main screen ? Do I need to use a sub-VI for that ?
Thanks in advance !
Lionel Schmied
Solved! Go to Solution.
05-05-2011 02:57 PM
Having two sub-vi's called from a main vi, one to do the "projecting" the other controlling the camera, would be a fine method. The main can be minimized the other two can have their front panels set to open when called. If there is a need to communicate between them you should look up the "producer/consumer" example under the help/examples pull down in the LabVIEW front panel toolbar.
05-05-2011 03:12 PM
I have done something similar to this as far back as LV 5. The "projection" VI can be a subVI which runs in parallel with the main VI or a regular subVI which is called within a loop in the Main VI whenever the value on the screen needs to be updated. The subVI contains a hidden control to get inputs from Main and a Picture indicator for the image to be projected - no code executes inside the subVI. The Main VI panel is on the computer screen and can be sued to control or monitor what is projected. I have also written a "Slide Show" program which behaves similarly.
Lynn
05-16-2011 01:56 AM
Thank you both answers helped me ! To my surprise, adding just the VI for projecting as a sub-VI worked great !