From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Kudos
Message 1 of 13
(2,770 Views)

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.


GCentral
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 Kudos
Message 2 of 13
(2,766 Views)

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 Kudos
Message 3 of 13
(2,752 Views)

anyone got any ideas?

0 Kudos
Message 4 of 13
(2,717 Views)

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 Kudos
Message 5 of 13
(2,714 Views)

so a total of 8 different fpga's?

0 Kudos
Message 6 of 13
(2,710 Views)

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 Kudos
Message 7 of 13
(2,708 Views)

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 Kudos
Message 8 of 13
(2,704 Views)

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 Kudos
Message 9 of 13
(2,700 Views)

@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.


GCentral
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 Kudos
Message 10 of 13
(2,676 Views)