12-10-2005 08:40 PM
12-11-2005 05:15 PM
12-11-2005 11:44 PM
Hi,
Had a look at your VI
I have two points to tell.
1. why is your AI reading DAQ assistant outside while loop? This way, it will not read continously fom the AI channel but read only once before starting the while loop.
2. And to vary the frequency of pulses in real time, look at example 'Gen Dig Pulse Train-Continuous.vi' shipped with labview and see how you can modify this vi to work as you want.
Also look at Multi function Sync examples in which you can achieve simultaneous AI read and Pulse generation
Hardware input output ->DAQmx ->Synchronization ->Multi-Function ->Multi-Function-Ctr Pulse Train Genereration for AI Sample Clock.vi
This might serve your purpose better
regards
Dev
12-12-2005 12:03 PM
Hi stepper-
You will need to transpose your array before writing to the file. You can use the "Transpose 2D Array" function from the All Functions>>Arrays palette. Dev is also correct- you will need to move the DAQ Assistant inside the While loop if you expect to receive readings with each iteration.
Dev's suggestion to use the pulse train generation example for your stepper control would require the use of one of your device's counters rather than the digital I/O lines. The digital I/O lines are not hardware-timed on your device, so the only method to adjust the pulse specs with hardware-timed accuracy is to use a counter. This example shows one method to change the specs of a hardware-timed pulse generation on the fly.
Hopefully this helps-
12-30-2005 07:40 AM