11-10-2005 11:32 AM
11-10-2005 11:38 AM
11-11-2005 12:10 AM
Hey krithika,
First i would like to answer the last part of your query,
To control the frequency, all you have to do is toy around with the update rate, cycles per buffer and the buffer length
For ex, if cycles per buffer = 10 and buffer length = 1000, effectively, each sinusoidal oscillation in the generated waveform will be represented by 100 points.
Now if update rate = 1000, then you will get a sine wave of frequency 10 hz on the selected AO channel.
in the same case, if you bring the update rate to 100, frequency of sine wave generated on Analog output becomes 1 Hz.
for going to higher sampling rates, take a larger buffer size, suitable update rate and increase number of cycles
Just keep in mind, lesser number of samples per cycle, poorer will the quality of your generated sine wave be.
so represent each sinusoidal cycle by suitable number of points.(practically i have observed that each sine wave represented by more that 20 points looks decent. but the fact is that more number of points, the better sine wave you get )
hope you get the idea.
so a buffer size of 10000, cycles per buffer 100 and update rate 10000 give a sine signal of frequency 100 hz.
check out the maximum update rate and permitted buffer size that the AO of your DAQ card supports to calculate the max frequency you can generate using this VI.
Regarding the first part of your question, I have these doubts.
All the SCXI channels are multiplexed to the channel 0 of the DAQ card.So, you can use any other DAQ channel except channel 0 to read your generated sine wave.
Use any AI examples to achieve this.
Previously, you spoke of using this sinusoidal output to run a motor, on which you have mounted the strain gages.
Now, do you want to measure this generated sinusoidal output using any analog input on the DAQ card?
You cannot measure this sine wave on the scxi module's channels but you can measure it on the spare channels of PCI 6040 E, (if the singal is within the limits of the DAQ's ADC range)
Regards
Dev