02-26-2016 06:23 AM
Hi!
I am trying to control in LabView stepper motor PRM1/MZ8 with TDC001 and shutter SH1/M with TSC001 as the following:
Firstly, I need stepper motor to rotate for 5 degrees and then to open the shutter for a certain time(200 ms) and then close. After that the program should do all the above again and again. That's why I can't use just APT software to control the shutter and need to control it directly in LabView. I tried to use for opening and closing the shutter SC_Enable and SC_Disable methods. But in this case I can't control the on-time of shutter. I tried to insert for loop between SC_Enable and SC_Disable with wait function 200 ms. In this case the program does what I want but it waits after running for a while and than executes. Please could you tell me,how I can fix it or maybe I can use other ActiveXmethods ?
Attach the current code.
Thanks in advance.
02-26-2016 08:45 AM
02-29-2016 10:53 AM
Hello,
Within your for loop, there are no move commands listed. Therefore, nothing will happen during that loop. You will need to put the move commands in your loop and depending on the functionality, it may be better to execute a while loop rather than a for loop. Since this is a duplicate thread, I recommend keeping the correspondences in the original thread.