LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connection FPGA with LIbrary From NI myRIO 1900

Hello  everyone, i have some question that, it is possible to connect some FPGA and Combine it with Library that include at Labview NI myRIO 1900?.

For Exemple: 
If I have FPGA ultrasonic Sensor HCSR04 and I want to connect it with Library PWM that Labview Have

please Help my Question 

Regards 
Christoper 

0 Kudos
Message 1 of 9
(1,461 Views)

See Ultrasonic range finding on a myRio using the HC-SR04

-------------------------------------------------------
Control Lead | Intelline Inc
Message 2 of 9
(1,424 Views)

Hello, Christopher, 

 

Please mark the previous Reply by @ZYOng as the "Solution", as it takes you to a site that describes how to program the myRIO to use the Ultrasonic Range sensor, and even includes a link to a UTube video outlining the programming (including the FPGA code, which might be above your level of expertise at the present).

 

Bob Schor

0 Kudos
Message 3 of 9
(1,411 Views)

thank u for reply, but that doesnt answer my Question. 

I ask for, is it Posibbile FPGA that using on HCSR04 combine with library PWM Labview that using on Motor?, that's my Question

0 Kudos
Message 4 of 9
(1,399 Views)

@Cristophergahar wrote:

thank u for reply, but that doesnt answer my Question. 

I ask for, is it Posibbile FPGA that using on HCSR04 combine with library PWM Labview that using on Motor?, that's my Question


Have you even tried to open the link and the youtube and take a look? That example is showing how you can read from the HCSR04 sensor using FPGA with myRIO exactly.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 5 of 9
(1,389 Views)

libraryd.png

ya i have try it, but i want to connection library and FPGA, this is my Program 

0 Kudos
Message 6 of 9
(1,382 Views)

@ZYOng and I are really trying to help you, but you refuse (so far) to attach your code, i.e. attach the .vi file that will let us actually see what you are doing.  I also don't understand what it is that you want to do.  What does the PWM library have to do with using the ultrasonic "distance" sensor?

 

Ah, maybe I get it -- you want (as we sometimes say) "to have your cake and eat it, too" (which means "You want to use the FPGA routines that are part of the myRIO Software Toolkit and also use a small user-written FPGA routine that manages the ultrasonic sensor.

 

This, I believe, is likely to be a little bit tricky.  The myRIO Software Toolkit relies on Express VIs to generate all of the FPGA code needed by your "Target" code running on the myRIO, if you choose to use it.  The alternative (which I'm currently doing) is to write all of your own FPGA code, which means that you'd need to create a "Custom FPGA" routine that included not only the code to manage the ultrasonic sensor but also the code that does the PWM functions that are currently being handled by an Express VI inside the myRIO Toolkit.

 

I think you need to make a choice here -- PWM or ultrasonic sensor.  Of course, you could get a second myRIO to handle the second task, then devise a way to keep the two parallel Real-Time Tasks synchronized.

 

Have you tried the "pure ultrasonic" FPGA code?  Does it work?  If you posted it, and said "Could someone please help me add a PWM section that has the following properties" and clearly spell out what you want it to do, including what myRIO ports it uses, what Controls and Indicators you need, etc., and attached your VI!!!, one of us might provide some additional help.  Otherwise, you'll probably be able to do this for yourself if you keep learning and using LabVIEW, particularly if you have some good mentors to help you out, but it will take a few years, I suspect ...

 

Bob Schor

Message 7 of 9
(1,332 Views)

Halo Everyone, I am Chirs, i have got problem during myproject for myStudy, the problem are: 

1. why the FPGA Somtimes Error?, meanwhile i have done for compile the FPGA program, for the proof is in the below 

 image.png


2. then when i use that FPGA for my motor servo, doesnt working, for the proof is in the below:
https://drive.google.com/file/d/1H8UJJalglajFmnDaEJD63vBBBLMirKST/view?usp=sharing 

3. then when I use PWM Library that NI myRIO has, is working very Well, for the proof is in the below: 
https://drive.google.com/file/d/1YDkVlG5vsH8n8QsWk9LIcMeLxpq4FV74/view?usp=sharing

4. this the FPGA ss Program 
image.png

5. The full Project Program in the below: 

that's all for myProblem, and I need for ur help, gbu. 

Chris... 

0 Kudos
Message 8 of 9
(1,335 Views)

okey, thank u for sugestion, i will apply what u say. 

0 Kudos
Message 9 of 9
(1,308 Views)