09-21-2007 07:36 AM
Hello everyone,
I have a problem about monitoring the position of an axis. First let me give some details about the motion controller system I’m using.
I’m using PCI-7358 as controller and MID-7654 as servo driver, and I’m controlling a Maxon DC Brushed motor. I want to check the dynamic performance of the actuator system in a real time environment so I created a LabVIEW function and implemented it on LabVIEW Real Time module.
My function loads a target position (Load Target Position.vi) and starts the motion. (Start.vi) then in a timed loop I read the instantaneous position using Read Position.vi. When I graphed the data taken from the Read Position.vi, I saw that same values are taken for 5 sequential loops. I checked the total time required by Read Position.vi to complete its task and it’s 0.1ms. I arranged the loop that acquires the data as to complete its one run in 1ms. But the data shows that 5 sequential loops read the same data?
09-21-2007 08:19 AM
09-22-2007 03:41 AM
Hi,
I want to obtain a graph that shall give a precise idea about the dynamic performance of the axis when it's driven using LabVIEW Real Time Module and when commanded by a target position. 5ms sampling rate for my axis performance is not enough as I am trying to complete my motion in less than 10ms. I don't need these data in my calculations or in my program instantly (they are not input parameters to rest of the program), so I can store them in an array and draw the graph after the motion is complete if Waveform subvi's are taking long time to finish their task.
If the ReadPosition can run in .1ms then there shall be a way to read that datas in that rate? Is there a way or not? Using on board programming can be a solution?
Thanks for your interest...
09-24-2007
02:06 AM
- last edited on
03-26-2025
11:15 AM
by
Content Cleaner
Read Position.flx can execute much faster than 5 ms but as it reads a register that is updated every 5 ms on the board, it reads the same value multiple times.
To get around this problem there are two methods:
I hope this helps,
Jochen Klier
National Instruments