取消
显示结果 
搜索替代 
您的意思是: 

hardware automation sequencing (switch-function inside while-loop)

Hi SJL,

 

It's been fruastrating because I spent so far 2 months trying to get this done:

if A<=5

and B is pressed

if I ask the machine to go

1->2->3

instead of

1->3

From this description I would be frustrated too - I cannot recognize the logic behind this!

There are just two IF statements, but no THEN… 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
11 条消息(共 14 条)
1,179 次查看

Core 1-2 are proper training materials. You can learn a lot from these modules. You can go to your "My account" --> "My NI", and check if you can still access the training videos...

0 项奖励
12 条消息(共 14 条)
1,177 次查看

The logic is:

 

Say,

LowHeight

Move(destination)

points A,B,C

 

if (A<=LowHeight && Move(C).pressed=true){

Move(B);

A=B;

}

Move(C)

}

0 项奖励
13 条消息(共 14 条)
1,174 次查看

Hi SJLPHI,

 

if (A<=LowHeight && Move(C).pressed=true){
   Move(B);
   A=B;
}
Move(C)

So you check a condition of a Move(C) call before you even call this Move(C)?

 

But again: use a state machine. Use a shift register to store current conditions of your states (like "Move.pressed")…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
14 条消息(共 14 条)
1,160 次查看