08-15-2017 09:52 AM - edited 08-15-2017 09:53 AM
Attached is the project and the software that is on the cRIO.
I am trying to run a project on the cRIO that uses the real time module along with the FPGA modules. I am sort of new to LabVIEW, but I am familiar with the myRIOs real-time structure. All I am trying to do is send data from the host PC to the cRIO's FPGA and vice versa using analog inputs and analog outputs. I'm using a combination of user-defined variables (on the FPGA VI) and shared variables (on the cRIO real time structure). When I try to run the VI on the host PC I keep getting the error, "The target is already running a Real-Time Startup Application."
Any help is appreciated! And like I said I am new to the cRIO so please bare with me!
Also, I am using LabVIEW 2016 if that helps
Solved! Go to Solution.
08-15-2017 10:48 AM
I'm reinstalling the software on the cRIO now to see if that was the issue
08-15-2017 11:07 AM - edited 08-15-2017 11:26 AM
Now I am getting a new error
Edit: So I fixed this error, but I am still getting the "The target is already running a Real-Time Startup Application." message
08-15-2017 03:35 PM
I'm still not making any progress, if any one has any suggestions, I would really appreciate it!
08-16-2017 09:15 AM
Hello,
That error typically just means there is a VI already running on the myRIO. It could be a previous project or an earlier version of the one you are trying to run. You should have an option to abort that project in order to deploy and run your current project.
08-16-2017 11:49 AM
Even when I do that I am still not getting a voltage reading from the analog output
08-17-2017 09:48 AM - edited 08-17-2017 09:52 AM
Am I doing the FPGA VI correctly? This is my first FPGA program so I am not 100% positive if I made a mistake or not.
Edit: and the problem is still occurring when I set the VI on the cRIO to run as a startup, it won't allow me to run the VI on the host PC without aborting the execution on the cRIO
08-17-2017 04:23 PM
Sorry, I had not caught this earlier. I think the issue might be that you are opening the FPGA VI Reference every iteration of the while loop. This is causing the VI to try to load and rerun every iteration. What you should do is open it just once before the while loop. Does this make sense?
08-25-2017 08:53 AM - edited 08-25-2017 08:59 AM
I did that, but I am still getting an error saying "The target is already running a Real-Time Startup Application"
Edit: I managed to get the shared variables working from the host pc to the RT on the cRIO (I can see the input values whenever I highlight execution), but there is still no voltage reading on the analog outputs via FPGA.
Here is the updated project
08-25-2017 09:16 AM - edited 08-25-2017 09:42 AM
Okay so when I run the host vi outside of the project it runs properly as a real time device, I put a indicator on the monitor that I am using with the cRIO and it shows my input changing, but my FPGA VI isn't updating the values to the cRIO for some reason
Figured it out. I added a delay to the FPGA VI then recompiled it, now it is working properly