LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA Making 2 loops start simultaneously

Hi,

I have an FPGA vi which contains multiple loops and i would like 2 of the looops to always start simultaneously always

0 Kudos
Message 1 of 6
(3,184 Views)

Hi nowoxi,

 

THINK DATAFLOW!

 

With correct dataflow the loops will start at the same time...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,172 Views)

Hi,

I pass data to the 2 loops by FIFOs and they are written in parralelt so i believe they should get data at the same time. is there a reason why 2 FIFOs in parrallel with everythign identical except the names ofcos will not transfer data at the same time?

0 Kudos
Message 3 of 6
(3,165 Views)

Hello, 

If you would like more information on parallel execution in FPGA then I would suggest you take a look at this link that gives you detailed information about it and also shows an example for doing the same. It will also give you some information about pipelining.

 

Optimising your LabVIEW FPGA VIs: Parallel Execution and Pipelining -  http://www.ni.com/white-paper/3749/en/

 

Another useful resource for you would be the Getting started with LabVIEW FPGA, this webpage has videos/tutorials which can help you with you programming . Please click on the link below to access this page :

 

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

 

Also if you search 'Using Graphical Loop Structures in LabVIEW FPGA' there is a great video in there by National Instruments that can help. I would have posted the link here but the page restricts me from doing so. 

 

Hope this has helped you.

All the best with you Application 

 

 

0 Kudos
Message 4 of 6
(3,103 Views)

Thank you Shruti,

I would use the inofmration you provided I am grateful. Do you have an idea why my VIs dont act the same way everytime. Atimes I run it and all the components run, other times they dont.

0 Kudos
Message 5 of 6
(3,084 Views)

You are welcome! This could be a problem with the code..if you like you can upload your code and I can have a look to see where the problem may lie?

0 Kudos
Message 6 of 6
(3,053 Views)