RFQ / BOM 0 Entrar / Registro

Selecione seu local

imagem do usuário

Why is the production consumer model called a state machine?

Hardware design
janeiro 11, 2021 by Howie 809

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.

Todos os comentários

user image

Rich postado em 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 postado em 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 postado em 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.

  • Você precisa fazer login para responder. Entrar | Registro

Escreva uma resposta

Você precisa fazer login para responder. Entrar | Registro