LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to insert delay in array?

Hi erfan,

 

Check out the attached vi. I have added a timeout event and wired a 10ms to its timeout terminal. There is not need of two wait timers inside the for loop. I couldn't run your vi as the Sub VI was not attached. But still, I think this must work. Let me know if you have anymore queries.


Regards,

Nitzz

(Give kudos to good Answers, Mark it as a Solution if your problem is Solved;)) 

Message 11 of 41
(2,202 Views)

I for sure i give you kudos this is enough that you reply my msg in this difficult situation hahaha, let me check now and let you know the result, thanks 

0 Kudos
Message 12 of 41
(2,197 Views)

By the way I can't see any changing , what did you do ?

0 Kudos
Message 13 of 41
(2,196 Views)

Hi , 


Can you attach both the VIs? I mean the Sub VI also.Then i can run it and check it well.. I had added a timeout case in your event structure and wired a timeout of 10ms in your code. Did you see any difference while running it?

 

Regards,

Nitzz

(Give kudos to good Answers, Mark it as a Solution if your problem is Solved:smileywink:)  

Message 14 of 41
(2,194 Views)

I haven't check yet now I am connecting the usb to check , ok let me check , I have attached the sub vi, thanks 

0 Kudos
Message 15 of 41
(2,188 Views)

I checked now it doesn't change , still not working properly. any idea ?

0 Kudos
Message 16 of 41
(2,185 Views)

i think you should read the technical manual and make sure the VISA configure is in right set.

and i suggest you put the VISA configure and close VISA outside the while loop.

0 Kudos
Message 17 of 41
(2,171 Views)

Hi Arc thanks for your advise, actually the visa workes well only the problem here is arrays sending together and it cause all motors move together, can you tell me whats difference that I put visa outside the loop ? I will try that to see the difference thanks 

0 Kudos
Message 18 of 41
(2,160 Views)

you mean the array like "255 45 56 78 87 54 220" is control 5 motors? and 255 is the handshaking, 220 means the end of this control?

if so, i think you should send it like "255", delay, "45", delay, "56", delay, "78", delay, "87", delay, "54", delay, "220". 

 

 

 

Message 19 of 41
(2,126 Views)

Yeap but how to do that ?
 

0 Kudos
Message 20 of 41
(2,124 Views)