LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
t.kendall

Actor Framework- Batch Message Accesor

Status: New

 

Batch message class should have a public static method to build a batch message that can be sent to the Time-Delayed Message.vi.

tkendall_0-1643323757644.png

 

I would like to wait xxxx ms then send three messages in order.

tkendall_1-1643323849848.png

Yes there are twelve other ways to do this but this would be much cleaner and it is an easy one change.

3 Comments
AristosQueue (NI)
NI Employee (retired)

Making all Batch Msg classes have a dependency on timed message seems like a bad idea. You'll have to work to convince me that one of the other 12 ways isn't better than that.

t.kendall
Member

Sorry I was unclear, no dependency injection. 

 

I just want one more public method. 

 

tkendall_1-1643325908892.png

 

tkendall_2-1643325927437.png

 

Then it can be used like this.

 

tkendall_3-1643326024541.png

 

 

AristosQueue (NI)
NI Employee (retired)

Oh. I see. So not having the time delay embedded.

 

I can't see a reason that's bad off the top of my head. Anyone else want to comment?