From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-16-2007 06:27 AM
01-16-2007 07:29 AM
01-16-2007 11:02 AM - edited 01-16-2007 11:02 AM
Message Edited by hemmerling on 01-16-2007 11:07 AM
01-17-2007 06:48 AM
01-17-2007 11:42 AM
I'd agree with Jochen -- you could do unbuffered period measurements on the 3 signals. Each time you want to query speed, you would just start the tasks and then read the result. (I'm not certain if you'll need to explicitly stop the tasks or whether they are already stopped after producing the measurement). At your speed, the measurement should be done within 3 to 6 msec.
One small caution: if you query fairly rapidly and chart the speeds, you might see crazily erratic looking variations. Real-life motion systems typically have a few characteristic frequencies of speed variation. Think of them as small sine waves & their overtones superimposed on your flat speed response. A true high-speed capture would show a speed response representing the sum of all these contributions. It would osciallate about the nominal speed, but the oscillations would look fairly smooth.
In your app, the speed snapshots you take will not be in sync with the system at all. Your sampling rate will not be constant since it's software-driven and will not be fast enough to avoid aliasing. The net effect is that you will take sort-of random samples out of the true response, so any chart you make will appear to have a sharp jagged trajectory. As long as you're aware ahead of time, you'll know not to believe it.
-Kevin P.
01-18-2007 02:45 AM
01-18-2007 09:11 AM
If you just need a measure of steady-state speed / torque, you should consider querying data serially. The mfgr will probably have some filtering between the raw signal and the serial stream, so you'll get a less erratic looking signal. There's a decent chance that the filter will even be configurable.
Just be very careful about serial port settings and any special characters to mark end-of-transmission. Communication can be pretty simple if you've got good docs, but not nearly so simple with not-so-good docs.
-Kevin P.