キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

parallel state machine

解決済み
解決策を見る

I am building a vi that needs to run a device with two identical columns. Each column goes through cylce where gas is loaded, heated, then purged. The two cylinders are use the same pumps and what not to control. I was wondering if I could create two state machines, one for each column and then use a functional variable to communicate between the two? do parrallel state machines work ok?

0 件の賞賛
メッセージ1/3
3,509件の閲覧回数
解決策
トピック作成者TSClineが受理

Yes, just two independent loops, one for each column. You could use a third loop for the user interaction.

メッセージ2/3
3,507件の閲覧回数

@TSCline wrote:

I am building a vi that needs to run a device with two identical columns. Each column goes through cylce where gas is loaded, heated, then purged. The two cylinders are use the same pumps and what not to control. I was wondering if I could create two state machines, one for each column and then use a functional variable to communicate between the two? do parrallel state machines work ok?


"Parallel state machines" can work.  but I'm a really big fan of "Code it once".  Let's assume you created the perfect Queue Driven state machine.  All you really need is for the Producer to call copies of the consumer.  So if the QDSM was saved with the extension VIT instead of vi the producer could load as many as it wanted into sub-panels and create an array of queues for each. 


Here is a similar scalable project I once built

Untitled.png

 

A better example can be found in a presentation to the Minneapolis User's group by CLD Tore Johnson of St. Bernard Engineering.


"Should be" isn't "Is" -Jay
0 件の賞賛
メッセージ3/3
3,501件の閲覧回数