04-09-2017 01:19 PM
Hi everyone,
I wrote the attached Step controller.vi that works on the MyRio when used by itself. Then, when I try to use it in the Main.vi, I got a broken arrow with the error "The current personality or target does not support this VI. Switch to another personality or change the current target." for every open.xnode in the Step controller.vi. Am I missing something?
There is another issue: I would like to run tracking.vi continuously and also step controller.vi in parallel, based on the data it gets from the tracking. Is there an easy and elegant way to do this?
Thanks,
Leonardo
04-09-2017 01:36 PM
04-09-2017 02:05 PM
The Rube-Goldberg is the result of adding bit over bit and never stopping to think about it. I will symplify it!
Can producer-consumer be done with global variables? I am asking because I do not need the queue but just the last value.
And still the bigger problem is the vi, not working as subvi
04-09-2017 03:36 PM
04-10-2017 02:25 AM
Hi Leonardo
When you say that your vi do not work as a sub vi, on what target are your main VI running on?
You haven't include your project file, so is it unclear were your main vi is running.
Remember that special myRIO functions in a vi can only run on the myRIO hardware, not under My Computer.
04-10-2017 02:47 AM
So that is the problem! My main vi is running on the computer because image processing is faster there. Is there a way to have one running on pc and the other on the myRIO? Or do I have to move the image processing vi on the myRIO giving up a bit of speed?
04-10-2017 02:53 AM
Hi Leonardo,
Is there a way to have one running on pc and the other on the myRIO?
LabVIEW comes with example VIs and example projects.
Those example projects (file menu -> "New…") explain how to run software on different targets and have communication between them!
So the answer is YES!
04-10-2017 03:50 AM
Look into the examples on Network Streams. They are easy to use and handle most of the TCP/IP for you.
Alternatively, you can make your own TCP messaging scheme (look at the STM library).