見積依頼 / BOM 0 サインイン / 登録する

所在地を選択してください

ユーザーイメージ

Why is the production consumer model called a state machine?

Hardware design
1月 11, 2021 by Howie 800

Why is the production-consumer mode called a state machine? I think it's better to create a variable. I want to ask how to control the running and stopping of an event? ?

It is the kind that controls the start and stop of a cycle.

すべてのコメント

user image

Rich ポストする January 11, 2021

In LABVIEW Core Course 2, there is a detailed introduction to the producer and consumer. The use of variables will cause competition problems, which will lead to data loss. This kind of problem will not occur to producers and consumers. In addition, production and consumption are only one of many state machines. Usually use event-driven queue message processor.

0
user image

Riki ポストする January 11, 2021

I understand

In fact, the producer consumer model and the state machine are two things

But when what is produced and consumed is the state in the state machine, the two are combined into a state machine based on the producer-consumer model.

To control the beginning of a loop, the loop structure can be executed in the condition structure.

0
  • Howie

    Howie ポストする January 11, 2021

    So how do you stop the loop in the conditional structure?

    But there is a problem. The message is an instant quantity. How to convert it into a state quantity (that can last for a certain period of time). So I feel that this cannot be called a state machine.

  • 返信するにはログインする必要があります。 サインイン | 登録する

答えを書く

返信するにはログインする必要があります。 サインイン | 登録する