05-30-2008 10:51 AM
06-03-2008 06:40 AM
06-13-2008 12:07 PM
Hello,
Thanks for your reply.
Let me specify my exact requirement. I want to implement some differential algebraic equations on the cRIO and a state-chart diagram on the FPGA.
Can you provide me with some similar examples? Or may be some examples which implement control (any kind of) on both RT controller and FPGA too.
Thanks,
Gayatri
06-16-2008 11:41 PM
Hi Gayatri,
I would suggest two things to start off. First, open LabVIEW and from the file menu select Help » Find Examples. This will open the LabVIEW example finder. Use the search tab and search for "Statechart". There is a full statechart tutorial that you might want to go through. This will help you understand how to use the statechart module and save you lots of time when you start writing your code. Secondly, use the browse tab of the example finder and select Hardware Input and Output » CompatcRIO. In the FPGA Fundamentals folder there is a folder with Analysis and Control example projects and in the Module Specific folder there is a folder with Motion Control examples. This is a starting point, in the mean time I will see if I can find anything more specific to what you are trying to do. Thanks and have a great day.
06-17-2008 08:08 PM
06-19-2008 11:02 AM
Gayatri,
I'll see what else I can find. Thanks and have a great day!
06-23-2008 01:50 PM
Hi here what I can think of if you want to do control using Statechart on the CRIO.
You have 2 statechart 1 on the FPGA and 1 on the RT. The communication between them can use the FPGA Host Interface so you make an indicator (Enum most likely) that tells the current control state of the FPGA Statechart. The RT side will be polling this FPGA indicator and decide what the next command to send down through the FPGA, again you can use the host interface that the FPGA code poll.
I seen this work for several application so essentially both side poll for a command stream from RT & FPGA.
Thanks,
oga
06-23-2008 03:41 PM