Question: In Visual Basic/VB.net, how can I delay each step of a for loop? My code is below. I am writing to the console to see

In Visual Basic/VB.net, how can I delay each step of a for loop? My code is below. I am writing to the console to see if the for loop is working correctly, and it is, but I am sending commands to another machine and the for loop steps too quickly for the other machine to catch up. How can I have a delay in between each step? Maybe a timer? I am not sure.

Dim F As Integer Dim Frequency As Integer For F = 50 To 1000 Step 10

Frequency= F instrument.WriteString("FREQ" & Str$(F) & "MHZ") Console.WriteLine("Frequency" & F) 'Testing if this portion of the for loop is reached

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!