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

Introducing delay before start next...

3.JPG

 

 

2.JPG

 

First and second picture shows the FPGA linked to an RT. Im trying to introduce a certain delay after "Head" is executed before Servo 1 is started. And delay again before Servo 2 started and continues to Servo 3,4,5,6, and Tail. It is a while loop until a control stop is pressed.

Question is, should the delay be put inside the FPGA or RT host?

 

I tried this in the picture below but failed

1.JPG

 

I need some idea on how to do it. Totally stuck right now...Thanks in advanced

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

How much of a delay do you want?  It seems like what you really want to do is make your FPGA code more linear, not parallel.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 项奖励
2 条消息(共 13 条)
3,862 次查看

it's best if the delay is connected to a control. The delay I wanted is 1ms.

 

its put that way because i need to control each individual servos

0 项奖励
3 条消息(共 13 条)
3,848 次查看

anyone got any ideas?

0 项奖励
4 条消息(共 13 条)
3,813 次查看

Hi august,

 

your delay is located before the FPGA property node. The node will be executed after your delay: DATAFLOW RULES!

 

You should have one FPGA write node to set a new "head" value, then wait, then set the "servo" values...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
5 条消息(共 13 条)
3,810 次查看

so a total of 8 different fpga's?

0 项奖励
6 条消息(共 13 条)
3,806 次查看

Hi august,

 

when you need to set the delay in the RT host then you probably need some more FPGA write nodes (not "fpga's")...

 

You may program the delay in the FPGA target too...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
7 条消息(共 13 条)
3,804 次查看

so you're saying i should create another while loop with delay for controlling servo 1 parallel to the one controlling the head?

 

i prefer not to disturb the codes in fpga if possible

0 项奖励
8 条消息(共 13 条)
3,800 次查看

Hi august,

 

I didn't mention any loops so far. But you can do that if you want/need them...

 

It all depends on the goal you want to achieve. It's up to you to reach that goal! 🙂

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
9 条消息(共 13 条)
3,796 次查看

@augustg wrote:

so a total of 8 different fpga's?


No.  8 different FPGA Property nodes.  You can then put in a Wait before each one to create the delay you want.

 

Or, as I was saying before, create a sequence in your FPGA with the delays you want before each write to an output.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 项奖励
10 条消息(共 13 条)
3,772 次查看