07-19-2005 10:08 AM
@sudhir01 wrote:
Is there a way to obtain the string X0 Y0 Z0 F100 inside the case G0 instead of obtaining it outside the while loop.
Hey, this is LabVIEW! Everything is possible! 😄
I assume you want this extra string only inside the case structure and not also in the listbox later split into seperate tokens. Is this correct?
In this case you could do something like in the attached modification.
07-19-2005 11:06 PM
07-19-2005 11:41 PM
@sudhir01 wrote:
I am unable to implement this one using search pattern. May be I'm still at a beginner level. Below is my VI. Kindly modify this for me to obtain X0 Y0 Z0 F100 inside G00 using search pattern. Thanks.
07-20-2005 04:05 AM
Hi Altenbach,
Once more you came for the rescue. You should be called, The LV Superman. Thanks a lot.
I have one more doubt. When I get the string containing X10 Y50 Z70 F100 inside the case G00, I am able to seperate the numbers following X,Y,Z and F i.e. 10,50,70 and 100 into four variables. Now I feed these values to a three axis motion control system using NI PCI7344 motion controller in which X,Y, and Z specify the position of the motor for the three axes and F specifies the speed of the motors. I have used the VIs "load vector motion", "load speed" and "start motion" to command and "read speed in rpm", "read position" to analyse. Now, my control does'nt stay in G00 till all axes reach their required position. It just commands the controller and moves to the next case. Hence the variables that indicate the speed and position of motors become inactive because the control has shifted to another case. Please let me know, how to keep the control to the case till the task finishes.
07-20-2005 09:58 AM
Sorry, I am not familiar with the motion control VIs. Here's a wild guess on a possible solution to be placed in the G00 case:
(1) Give your motion commands, then (2) put the "read position" inside a small while loop (together with a small wait statement e.g. 10 ms). Inside the loop, compare the actual position with the target position and once they are equal finish the loop. Only after this loop finishes, the G00 case can complete.
07-21-2005 07:57 AM
07-21-2005 10:59 AM