MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

Using UCB to model hybrid (continuous and discrete) multi-rate systems

Is there a way to use one UCB block to model a hybrid (continuous and discrete) multi-rate system?

There are two potential problems:

1- scheduling of different discrete tasks running at different rate
2- handling different state (continuous, discrete) types

The first one could be addressed by incorporating a "micro scheduler" in the UCB code which handles scheduling of different discrete tasks.

The second problem is more difficult to address since there is only one state vector and system-build treats it either as discrete or continuous.

One solution could be to only identify the continuous states to system-build and take care of the discrete states internally. This will work
fin
e for simulation purpose. However, it will not work properly for other utilities such as linearization and trimming (since the discrete states will be hidden).

Any suggestion on how to achieve the above objectives simultaneously?

Thanks,
0 Kudos
Message 1 of 2
(6,697 Views)
The desired objectives can not be obtained simultaneously from one UCB. You should use multiple UCBs and let the scheduler take care of the timing for you.

Joseph D.
National Instruments
Message 2 of 2
(6,697 Views)