04-02-2015 10:52 AM - edited 04-02-2015 10:57 AM
"Hi there,
I think I am pretty clear about how to use the Actor framwork's and I would like to
have some guidance about to use the framework in my project.
This VI is a very simplified version of the actual layout.
Basically, there is only one hardware performing different types of measurements, send TX and RX messages through CAN and LIN.
My development strategy is
I intend to create an actor for everything related to the hardware measurements that I consider as the measurement bench.
This hardware will have to perform some asynchronous operations and will eventually send some messages / commands to others actors.
Those commands will contain for instance, the stuff (value type of course, I'm not willing to message everything with references) related to the information do display to the end-user in different VI.
The other actors representing different VI in some containers will send commands to this actors
In short, I was thinking about creating about 10 actors and more:
1) The most important one: the Bench (containing the settings and parameters in the class cluster) and performing the actions related to the hardware, inputs and outputs and inform other actors about what it just (if doing performing actions synchronously) or what is available (if some things are asynchronously in a loop). [Not sure if splitting the concerns of the Bench purposes into additional actions is really wise or not (especially since it will embed a VISA reference), it will probably require to additional lock accros the different Bench related actors with something like below:
- Bench Master Actor (to send and receive message to the enduser actors and dispatch the work with the two other Bench related actors)
- Bench Synchronous Actions Actor
- Bench Asyncrhonous Actions Actor
It's also in charge of receiving orders to start, stop, notify, performing actions asynchronously and / or synchronously.
2) Actor (especially the core as): VI ML
3) Same strategy for VI BRC
4) Same strategy for VI TRC
5) Same strategy for VI 1
6) Same strategy for VI 2
7) Same strategy for VI 3
😎 Same strategy for VI 4
9) Optional: VI TM ... not really necessary I guess except to go with full actor everywhere..
Thank you."