Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Grafica tiempo real de motores

Tengo un PLC que controla 3 motores, los cuales mueven 3 actuadores x,y,z, el plc tiene un tarjeta rs-232 el cual me manda informacion como strings lo que yo quiero esque labview me grafique en tiempo real el movimiento de los actuadores como mencione anteriormente el plc me puede dar la posicion del actuador los actuadores comienzan en cero si tienen alguna duda preguntenme por favor esque estoy trabado Smiley Sad gracias
0 Kudos
Message 1 of 5
(3,723 Views)
sorry here is in english i have a motion controller that control 3 motors, and they control 3 actuators in x,y,z position the motion controller send me the position of the actuator in strings, i need to graph in real time the motion of this actuators how are they moving i slide switch button and i put a case structure inside the case struct i put a flat sequence in the first frame i put get motor1 position, and in the other frame i put get motor2 position, outside the case structure i put the switch button with the condition if the buttion is pressed then give me the motors position, i can read the 2 motors positions but i cant graph the signal what can i do?
0 Kudos
Message 2 of 5
(3,718 Views)
Are you trying to graph the position over time?  If you are...your setup will need a little fixing.  You will need to build your motor data into a multi dimention array and send it into a chart.  All this must be performed inside the controlling while loop or else the data will not update properly.  Sounds like you can keep your program as is...but add a 3rd frame and place the build array function and the waveform chart inside.  If you have any other problems go ahead and post your code as it sounds fairly small.
 
cheers,
Brett
0 Kudos
Message 3 of 5
(3,704 Views)
No its motor position 1 over motor position 2. Its a ultrasonic equipment so i need motor position 1 over motor position 2 and a intesity graph that display the speed of the ultrasonic signal but i need now to graph the two motor positions thanks
0 Kudos
Message 4 of 5
(3,699 Views)
If your controller is returning position data in strings, then you need to use the string-to-number functions in the String/Number Conversion palette to convert to a numeric data type so that you can graph the data.  Once you have the position data in a numeric data type then you can perform any calculations you need, or use and intensity graph.
0 Kudos
Message 5 of 5
(3,689 Views)