LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with SERIAL FPGA

I have a PWM project runing in FPGA target. And my execution file is working very well but just with Ethernet. I would like to do a project that a person who will execute this file can choose witch communication to use. Other words I just want to know how to implement serial communication on my project.

 

Of portuguese: Eu tenho um projeto em FPGA de um pwm simples. Criei o meu arquivo executavel e esta tudo funcionando bem porem em comunicacao Ethernet. Gostaria agora de criar o mesmo projeto, porem em comunicao serial.

 

Please someone give me a help!

0 Kudos
Message 1 of 12
(4,052 Views)

Good morning,

Here are some links with examples to assist in its implementation. Any questions please contact us.

RS-232 Interface Reference Example for LabVIEW FPGA

https://forums.ni.com/t5/LabVIEW-Robotics-Documents/RS-232-Interface-Reference-Example-for-LabVIEW-F...

 

Can You Implement RS-232, RS-422, or RS-485 with NI FPGA Hardware?

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P9GYSA0&l=en-US


Sincerely,

Mauro Vera
Applications Engineer
National Instruments
0 Kudos
Message 2 of 12
(4,036 Views)

Thank you Mauro. I had been seen that examples already. They are very hard. But I need to compile just FPGA MAIN?

And where i will put wich outputs I want set?

Thanks!

0 Kudos
Message 3 of 12
(4,019 Views)

Good morning,

Please tell us what hardware you are using.

Sincerely,

Mauro Vera
Applications Engineer
National Instruments
0 Kudos
Message 4 of 12
(4,011 Views)

Good day,

 

I am using c-Rio 9074 a output device 9474.

0 Kudos
Message 5 of 12
(4,006 Views)

Alex,

Follow the link to PWM example. Any questions please contact us.

Generate PWM Clock on cRIO Using Scan Mode

https://forums.ni.com/t5/Example-Code/Generate-a-PWM-Pulse-width-modulation-Output-Signal-On-cRIO/ta...

 

Sincerely,

Mauro Vera
Applications Engineer
National Instruments
0 Kudos
Message 6 of 12
(4,000 Views)

Thank you Mauro. I have already my PWM done. I just want to set serial communicate to 9474 output. I this example is not for serial, is not it?

0 Kudos
Message 7 of 12
(3,989 Views)

Good afternoon,

Here's an example of PWM done in FPGA module NI 9474. Any questions please contact us.

 

Pulse Width Modulation (PWM) IP Core for LabVIEW FPGA

https://forums.ni.com/t5/Example-Code/Pulse-Width-Modulation-PWM-IP-Core-for-LabVIEW-FPGA/ta-p/39961...


graciously,

Mauro Vera
Applications Engineer
National Instruments
0 Kudos
Message 8 of 12
(3,972 Views)

Good Afternoon,

Mauro I have did a PWM and works good. I have just one problem. Actually I have 2 pwms and I control them by frequency and duty cicle. But the problem is, when one pwm is working the other must be off but doesn´t. It stay at high. In attachment are my FPGA file and Host vi. If you see something wrong please help me.

Download All
0 Kudos
Message 9 of 12
(3,962 Views)

Good morning,

There are examples of serial communication with FPGA, you will have to develop the communication protocol using their outputs and inputs of the module. Any questions please contact us.

Sincerely,

Mauro Vera
Applications Engineer
National Instruments
0 Kudos
Message 10 of 12
(3,950 Views)