05-13-2023 11:39 AM
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
05-13-2023 05:16 PM
See Ultrasonic range finding on a myRio using the HC-SR04
05-13-2023 07:56 PM
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
05-13-2023 09:07 PM
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
05-13-2023 09:23 PM
@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.
05-13-2023 09:35 PM - edited 05-13-2023 09:39 PM
ya i have try it, but i want to connection library and FPGA, this is my Program
05-14-2023 10:05 AM
@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
05-15-2023 03:00 AM
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
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
5. The full Project Program in the below:
that's all for myProblem, and I need for ur help, gbu.
Chris...
05-15-2023 03:03 AM
okey, thank u for sugestion, i will apply what u say.