견적 요청 / BOM 0 로그인 / 등록하다

귀하의 위치를 선택하세요

사용자 이미지

Why is the production consumer model called a state machine?

Hardware design
1월 11, 2021 by Howie 806

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.

  • 답글을 달려면 로그인이 필요합니다. 로그인 | 등록하다

답변 작성

답글을 달려면 로그인이 필요합니다. 로그인 | 등록하다