I am trying to run a model in the control and simulation loop but also
require inputs and outputs coming to and from my cRIO 9082, I am getting
project build errors with my attached .VI can I please get some support for
this application? the model is running in pu's where i believe my cRIO data
coming in is in the engineering units as displayed to my HMI. this could be why they are not getting along.
I need to take certain inputs from the cRIO and feed them into my model, my model will then output a value back to the cRIO.
Thanks for the assistance.
We have had simulations loops running in real-time interfaced to real signals (reading and outputting as you want), but running on the cRIO itself. Not sure what you mean by "the model is running in pu's", and it isn't clear if you are trying to run the simulation loop on a PC getting linked to the cRIO or on the cRIO itself. Anyway, given that you are trying to link a simulation loop to real time there are few very important things:
I'm sure there are more subtle things that need to get right, but these are main ones.
Hope this helps,
Thanks Andy, much appreciated.
What I meant by pu’s is that the unit used for the signal within the model is in per unit. I will need to do some conversion between the interaction of the simulated signal and the real signals from the cRIO.
I will be building my project and uploading to the cRIO and launching the executable from the networked HMI.
My concern is how do i tie the inputs and outputs from the cRIO to the closed loop simulation.
Thanks for the help, it is much appreciated.
Assuming your simulation loop is running on the cRIO itself (rather than on the network somewhere), accessing the inputs and outputs on that cRIO chassis and getting the timings right should be ok if you know LV RT. Try it with a simple model and simple I/O first just to make sure you have the basics working.
Some more comments:
All of Andy Clegg's suggestions are excellent. Here is a pdf for a set of tutorials including one for the control and simulation loop integrated with an analog input. This tutorial starts on page 22 and should help you with your problem. It was written for a LabVIEW RIO evaluation hardware (based on Single-Board RIO) but the LabVIEW project and VI development are the same as with CompactRIO.