07-06-2012 10:28 AM
What I am doing is relatively simple. I am taking some sensor input and following an ouptput voltage above a certain predefined value, I want to flash an image (perhaps loads a jpg file or something ) or plays a video clip.
Do you think it is possible to do this in LabVIEW 2011? I tried drawing a circle for example. didn't quite work.
Any input would be appreciated.
Thanks,
07-06-2012 02:21 PM
Short answer, yes. Post your code so we can see how you are trying to do this.
07-06-2012 02:24 PM
Yes, it is absolutely possible. How you do it depends on lots of things, such as: what is your rate of data acquisition? is it continuous or "bursty"? can you "pause" while you pop up the picture, or do you want to have acquisition continue "in the background"?
LabVIEW can operate multiple tasks in parallel, even within a single VI. For example, you can have two loops running at the same time, one handling your data acquisition, the other handling popping up your window, etc. There are multiple mechanisms for communicating between these loops (queues, local variables, and others) -- what you do and what you use depends on what you want to do.
07-09-2012 04:25 AM
Thanks. Please find my VI.
07-11-2012 07:52 AM
Hi Shrijit,
If you just want to simply load a file and display it on a certain condition, you could use the code from the 'ReadFile Example' VI that is installed in the Example Finder (in LabVIEW > Help > Find Examples...) to perform this function. This example requires the NI-IMAQ drivers, which you can download from here.
If you want the image to pop up in front of your main front panel, you can keep the image loading code in a subVI and then simply call that subVI set to 'Dialogue' appearance mode. You can do this by navigating to File > VI Properties > Window Appearance in the subVI. Then select 'Dialogue'. That means the image will pop up as soon as the VI is called.
I hope that helps.
Best Regards,