06-15-2011 05:43 AM - edited 06-15-2011 05:44 AM
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;))
06-15-2011 05:49 AM
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
06-15-2011 05:52 AM
By the way I can't see any changing , what did you do ?
06-15-2011 05:55 AM
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)
06-15-2011 06:05 AM
I haven't check yet now I am connecting the usb to check , ok let me check , I have attached the sub vi, thanks
06-15-2011 06:15 AM
I checked now it doesn't change , still not working properly. any idea ?
06-15-2011 07:57 AM
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.
06-15-2011 09:21 AM
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
06-16-2011 12:20 AM
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".
06-16-2011 12:35 AM
Yeap but how to do that ?