10-24-2016 11:34 AM
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.
10-24-2016 12:04 PM
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.
10-24-2016 01:29 PM
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 ?
10-24-2016 01:39 PM
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
10-25-2016 02:12 AM
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/
10-25-2016 04:03 AM
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
10-27-2016 07:47 AM
I have now found time to look at your problem.
But I'm missing your project file.
Can you attach that?
10-27-2016 02:16 PM
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
10-27-2016 02:49 PM
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.
10-29-2016 03:27 AM
Hi Milos,
Why don't you use the open FPGA VI Reference as I told in this thread?