LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO hybrid mode real time error

Solved!
Go to solution

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 

Download All
0 Kudos
Message 1 of 10
(4,418 Views)

I'm reinstalling the software on the cRIO now to see if that was the issue

0 Kudos
Message 2 of 10
(4,375 Views)

Now I am getting a new errorNew Error.png

 

 

Edit: So I fixed this error, but I am still getting the "The target is already running a Real-Time Startup Application." message

0 Kudos
Message 3 of 10
(4,368 Views)

I'm still not making any progress, if any one has any suggestions, I would really appreciate it!

0 Kudos
Message 4 of 10
(4,335 Views)

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.

Madison T
0 Kudos
Message 5 of 10
(4,312 Views)

Even when I do that I am still not getting a voltage reading from the analog output

0 Kudos
Message 6 of 10
(4,307 Views)

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

0 Kudos
Message 7 of 10
(4,278 Views)

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?

Madison T
0 Kudos
Message 8 of 10
(4,261 Views)

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

0 Kudos
Message 9 of 10
(4,235 Views)
Solution
Accepted by topic author atokad

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 Smiley Happy

Message 10 of 10
(4,231 Views)