LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA project best practices

Hi, so I currently have a project that includes a Host VI and the FPGA VI. My project is expanding though. We're adding more digital and analog signals to the project (we're adding a new C-series module to read from). This will require updates to the FPGA, and then updates to the Host VI. We'll still need the original Host and FPGA VIs though for testing of the smaller system.

 

My question is then what the recommended way or best practice here would be. Should I create Host_2.vi and FPGA_2.vi (or something like that) within the project. Or should I just create a new project? Thanks!

0 Kudos
Message 1 of 5
(2,649 Views)

IMHO that's totally up to you. Both ideas are valid and might be useful, that's totally up to you. If you do no create a new project then I recommend to at least define a new RT-target with the extended setup. But that is all.

 

You could also start with Source Code Control like Git, and then create a new branch.

 

Regards, Jens

Kudos are welcome...
Message 2 of 5
(2,620 Views)

Thanks, Jens!

 

That makes sense, I was wondering if a new target would be the way to go. If I add a second RT-target under the project though (with all the modules and an new FPGA vi), it won't cause any issues with the existing target and FPGA.vi...as long as I name things uniquely, right?

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

Hard to tell with little info but I am not sure which is best.

 

How different will the two be?

 

Do you mind maintaining them so that the old one works as well as the new one?  A good question to ask is "how will things function or be in a few months or say a year?"  This helps shake out decisions which seem ambiguous in the near term.

 

The more you can share with us (not just code), the better we can help out here on the forum.


Certified LabVIEW Architect, Certified Professional Instructor
ALE Consultants

Introduction to LabVIEW FPGA for RF, Radar, and Electronic Warfare Applications
Message 4 of 5
(2,605 Views)

@sjacksonPA wrote:

That makes sense, I was wondering if a new target would be the way to go. If I add a second RT-target under the project though (with all the modules and an new FPGA vi), it won't cause any issues with the existing target and FPGA.vi...as long as I name things uniquely, right?


If you make a new top level host VI and FPGA VI (with unique names),  you should not have any issues.  I have had issues trying to support the exact same code on two different targets (VxWorks based cRIO and a Linux RT cRIO).  But you should be able to keep all of your subVIs the same in both targets.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 5
(2,603 Views)