Hi Alloush,
you should place a delay because:
1) it's style guide
2) at the moment you just simulate a signal, thus this loop is busy all the time (hogging the CPU)
3) your acquisition step in the upper loop takes at least 1 sec (100*10ms) - so you only need to check the 'acquiring'-local every ~500ms
4) there is no proper connection between the upper loop and the lower loop - you should use other techniques to control the acquiring of data when you need time repeatability: one way could be to set up a consumer/producer pattern using a queue to send commands to a state machine...
Remember: hogging the CPU will not give you proper timings...
Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019