LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify fpga personality ?

hi

i want to modify the default fpga personality to only control PWM pins

and leave the  remaining pins to RT to control them or do what i ever  want to do with them

 

when i first tried to control a servo using fpga and read anlog sensor from real time , the fpga only worked when i removed the fpga , the RT worked!

i found this solution in https://forums.ni.com/t5/Academic-Hardware-Products-ELVIS/Using-more-than-4-quadrature-encoder-input...

that says i need to modify the default fpga personality add and remove components as needed and then build the bitfile.

i removed all DIO pins from connector A and connector B except the PWM functions (see the attached file)

i built the bitfile then updated the Open FPGA VI Reference in myRIO v1.1 Open.vi like the solution said

original.png

i also updated Open FPGA VI Reference  in my RT vi block diagram

original2.png

after all that i didn't work  Smiley Mad

 

 

my questions are as follows

 

  1. how to properly modify the default fpga personality? with steps please!
  2. where to put my pwm fpga code ? as i don't know where to put the pwm fpga code and iam very confused
  3. if someone  could modify fpga personality to only control pwm pins and create an example on RT, i would really appreciate any help

 

Thanks,

 

0 Kudos
Message 1 of 5
(3,534 Views)

Are you asking how to develop software for an NI FPGA?  If you are then you will need the FPGA module and a way to compile to a bit file.  This can either be NI's cloud compile service or a local PC if you have the compilation tools installed (usually come with the FPGA toolkit).  After that I'd say read up on how to develop and deploy to the FPGA.

 

http://www.ni.com/white-paper/6983/en/

http://www.ni.com/white-paper/12950/en/

 

It basically involves making a project, adding the FPGA as a target, writing your VIs, and then building and deploying code to it.  Do you have the source of the existing FPGA code?  If so you may already have a project with this setup for you.

0 Kudos
Message 2 of 5
(3,497 Views)

first of all ,thank for your reply

No, i already knew  how to develop software on fpga say driving stepper motor on it but when i try to read sensor on real time plus controlling the stepper on fpga it simply doesn't work together

 

the default fpga personality uses all the pins  so when using real time with fpgai can't use any pins

 

see this link for more information

http://zone.ni.com/reference/en-XX/help/376300A-01/elvisriocm/elvis_rio_fpga_personalities/

0 Kudos
Message 3 of 5
(3,484 Views)

Oh sorry I wasn't aware of premade "personalities" for various FPGAs like this.  I've never used an Elvis RIO, or myRIO.

0 Kudos
Message 4 of 5
(3,480 Views)

Are you saying that you want to basically tweak the RIO scan engine FPGA personality? 

 

EDIT: Never mind, you clearly meant something else.

0 Kudos
Message 5 of 5
(3,451 Views)