06-03-2015 09:43 PM - edited 06-03-2015 09:48 PM
Hello,
I am trying to program a Newport SMC100PP controller to run a Newport TRA6PPD linear actuator to move a Newport 481 rotation stage.
My goal with this program is to have the stage move at a slow velocity form designated point 1 to point 2 while reading out the absolute position.
The program that i have written is having a problem. Every time i try and run the program i get an "Error on reset - Timeout" error and the light on the front panel of the SMC100pp controller reads solid green as if the system is ready to go.
In the code below i have the top part which simply reads the motor position and time and saves that to a txt file. The top part is necessary because it is a reduced set of code for the rest of an instrument i want to incorporate this rotation stage into. The bottom code is my program where i am trying to 1st initialize the step motor, 2nd enter/modify controller velocity on command part way through a larger experiment once i see some preliminary data and 3rd execute the programed controller movement on command as the last part of a larger experiment to finish the experiment.
Included below is my labview error message, picture of the program and the program vi.
06-05-2015 09:00 AM
Hello Shike,
As you are using a library or VIs that are provdided or created by the Newport company it seems, you need to contact them and verify the conditions needed for Reset to be executed correctly.
RIght now you are getting a timeout that may refer to a VI not given the sufficient time to execute or a similar condition.
Please contact Newport support about this controller and the VI's.
Regards,
David M.
National Instruments
06-06-2015 11:46 AM
Thank You david for the reply,
The individualt vi's utalized in my vi are from newport.
I contactated the Newport motion control experta and they agree that the problem is most likely the vi does not have sufficient time to execute. Unfortunatly Newport support does not help debug code so i am wondering how to add time to the code? Does this mean i need to place a flat sequence with wait.vi components or do i need to move to a timed sequence structure?
Thank You again for your help
Max
06-06-2015 02:06 PM
06-10-2015 10:02 PM
Yes,
I am able to get a connection with the newport gui and the simple controle.vi provided by newport. I am confident that the system is comunicating with the unit. My trouble starts when i try and expand the smple controle.vi.
Max
02-26-2019 09:38 AM
Found an error while loading the VI. You have used a subvi called Simple Control controller.vi which, I could not find in the directory. Can you share that sub vi file, where we can find them?
02-27-2019 11:55 AM
Dear Anubhab04,
I dont remember anymore where i originally found all the labview .llb files though i am uploading everything that i have.The way i solved my problem was to copy the Virtual Front Panel into my program and start cutting out function that i did not need.