From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

myRIO FPGA VI and RT VI problem

 

Hi,

we have a robot that is controlled via a joystick, we take the value of the joystick place them in the shared variable and then using these values moving a robot that has 4 DC motor, a problem arises because we have to improve our robot, we add it  3 ultrasonic distance sensor, that we have programmed in FPGA mode, the measurement we get from FPGA use to stop a robot before it hit obstacle, namely the problem is that when we run the FPGA VI then RT VI mode is not working properly, we run RT VI and we have no errors but motor dont react.Generally the problem is that if we have an FPGA VI and RT VI together RT VI is not be executed, but it is compiled and dont have any errors. I attached picture of my project, and I'll be very grateful if you give me a hand. 

 

PRO1.JPG

 

 

0 Kudos
Message 1 of 21
(3,884 Views)

Hey Milos321

 

Showing us your project items does not really tell us what you are doing. 

Have your take the basic cRIO tutorial? 

https://www.ni.com/compactriodevguide/

 

If you have a problem with your code, you need to show us what code you have. 

Attach your code and some image of the block diagram, and there are a lot more we can help with.

0 Kudos
Message 2 of 21
(3,870 Views)

Here are my project, I attachet it in zip file.  Problem is that when I run Untitled 1.vi it dont work but I dont have any errors, before I run Untitled 1.vi I runed FPGA myRIO Ultrasound (2).vi and it work normal. But I I frst run Untitled 1.vi after that I cant run FPGA myRIO Ultrasound (2). it show error. Can this two VI work together on myRIO 1900 ? 

0 Kudos
Message 3 of 21
(3,857 Views)

If you have any project that have an  FPGA Vi and VI RT VI on same target, can you sent it me please. I am using NI myRIO 1900. I am new in this kind of programing so i will be grateful for any kind of help.

Regards, Milos

0 Kudos
Message 4 of 21
(3,854 Views)

I'll take a look at your vi later. 

But have you looked at the link that I send you? 

I that link is a step by step guide on how to make a program for a RIO system, like your myRIO.

Have you looked for myRIO tutorials on this site? 

http://www.ni.com/academic/students/learn-rio/

http://www.ni.com/tutorial/14621/en/

 

 

0 Kudos
Message 5 of 21
(3,826 Views)

Hi, 

I looked turtorial on this site but it was not very helpful. I dont have any idea what to do and what is going wrong..

Regards,Milos

0 Kudos
Message 6 of 21
(3,815 Views)

I have now found time to look at your problem. 

But I'm missing your project file. 
Can you attach that?

0 Kudos
Message 7 of 21
(3,780 Views)

Hi, thanks you for reply, in attach I sent you project and VI that are used in project. One more time the essence of the problem is that when we start the FPGA VI simply other VI that are to on myRIO 1900 does not work.

Best regards,

Milos

0 Kudos
Message 8 of 21
(3,769 Views)

But that it not how you should run your FPGA vi!

If you have gone through the guides that I send you, you would have seen that you need to open and run your FPGA vi from your RT vi. 

 

0 Kudos
Message 9 of 21
(3,762 Views)

Hi Milos,

Why don't you use the open FPGA VI Reference as I told in this thread?

https://decibel.ni.com/content/docs/DOC-36001

0 Kudos
Message 10 of 21
(3,739 Views)