03-07-2015 08:22 PM - edited 03-07-2015 08:45 PM
Hi All,
I would like to use a text file to output voltage. I have gone through https://decibel.ni.com/content/docs/DOC-11694 and
http://forums.ni.com/t5/Multifunction-DAQ/How-to-send-data-from-text-file-to-analog-output/td-p/5824... and I had a few questions about it.
Should the text file have voltage as well as time or just voltage?
I am generating sine waves at certain frequencies using matlab.I would like to read it once in labview and then use daqmx write.Going by the examples,If I use autoindexing and put the daqmx write in a loop and use auto indexing to read data, would the frequency be still the same of the wave? Should there be delay between samples due to processing time?
Can anyone suggest the best way to do this
I am looking to replace the signal generator in my current vi using the text file in order to make it quicker.
Thankyou
03-07-2015 08:45 PM
03-07-2015 08:51 PM
Thank you for your reply dennis.
I already have a vi which performs frequency sweep and accquires thress other sinals.
The problem is when i try to sweep through more frequencies,the program runs like 5/10 times and shows error because of lack of samples.
I am guessing its beacuse the daq assistant for accquiring signal doesnt have anything to accquire because the signal generations takes some time.I have attached the vi.
I would like to either make the current vi better in some way or try something else altogether like using text file.
I thought we could control the timing from labview.
and i thinking of matlab because between frequencies i would like to have a pause where the voltage would be zero.I chose matlab just to make the text file.
03-07-2015 08:55 PM
I apply a certain correction to the amplitude of the signal generated for certain frequencies.The coreection values are stored in a text file.And the vi stops sometimes when I am applying the correction.
03-08-2015 04:11 PM
Read this White Paper and never again use the DAQ Assistant. You will be able to do more/better/faster, including (probably) programming a Frequency sweep (or at least a step-wise approximation to one).
Bob Schor