01-28-2015 04:39 AM
Hi everybody,
I need to create a software to do some realtime acquisition & analysis.
I trained myself a little bit on c# lessons to get use to this programming language; I’m also discovering Measurement Studio & Visual Studio. (I’ve background in C++).
My software will have 2 modes :
I have examples in my National Instruments directory which don't use daq Assistant and code is different from generated files with daq Component.
If I use Daq Assistant ( http://www.ni.com/tutorial/4652/en/ )
I know that the code to create channel is stored in DaqTask.cs
Plotting :
NationalInstruments.AnalogWaveform<double>[] acquiredData = daqTaskComponent1.Read(); waveformGraph1.PlotWaveforms(acquiredData);
When I look to examples, like "MStudioVS2010\DotNET\Examples\DAQmxWithUI\SpectrumAnalyzer\cs "
all code to create channel is generated in Mainform.cs, there is no Daq Assistant (http://www.ni.com/tutorial/5409/en/ )
and there is a slight difference between acquired type :
private AnalogWaveform<double> data = new AnalogWaveform<double>(1000); data = reader.EndReadWaveform(ar); (…) acquiredDataWaveformGraph.PlotWaveform(data);
Questions :
What is the difference between AnalogWaveform<double> and AnalogWaveform<double>[] ? why it's not the same type ? I need to do some signal processing with this signal, so what type should I use for my application ?
I didn't succeed to configure my 2 modes in daq Assistant (continuous and triggered acquisition) is it possible or should I create 2 Items in my solution, one for continuous acquisition and on for triggered acquisition ?
Kind regards,