04-24-2018 06:58 AM
Hi,
I am working on a spectrometer project. I have created two vis, one for the spectrometer and other for the current source of the spectrometer. When I run the spectrometer vi, I want spectrometer vi to run a specific function in the current source vi, that is to turn the current source on to supply power to the spectrometer. For this, I have created two separate classes which contain each of the vis. So I need to achieve the above mentioned that is to make the current source supply power to the spectrometer just by running the spectrometer vi. So what is the best way for this? Can I just use my amateur LabVIEW skills to try and communicate between subvis by connecting the terminals or should I use the actor framework? I have never worked with actor framework before and I am trying to learn that and I find it really complex. Also, there is a 3rd part coming later where I have to program a CNC robot that automatically changes the led after the spectrometer has done the measurement. So I need communication between all the 3 vis for the spectrometer, current source and CNC robot. So what is the best way to do that, considering the fact that I am not a pro LabVIEW programmer. Kindly reply. Thanking you.
Solved! Go to Solution.
04-24-2018 08:19 AM
Actor Framework would be a good way to do this. But if you don't want to dive all the way down that rabbit hole, do a search for Queued Message Handler. The idea is that you have a loop that just accepts commands via a queue and does whatever it has to from there.