03-08-2017 12:17 PM
hi
i'm using DAQ NI 6343 for generation sinewave signal in AO0 output
i need to start this signal for couple of milliseconds and stop it afterwards , this is my time_duration variable.
how i can do this automatically without manual start/stop button in GUI.
i tested it by timer1 method, but this make collision in threads.
Thanks very much
03-09-2017 11:24 AM - edited 03-09-2017 11:25 AM
Hi Arbo,
It sounds like you need a finite analog output task. You can find a good example of this in the example finder. In the task directory, it can be found at Hardware Input and Output -> DAQmx -> Voltage - Finite Output.vi. You can also find it by searching the example finder for "Voltage - Finite Output.vi". The timing of this example is determined by the sample rate and number of samples. For example, with sample rate = 1000 (Hz) and number of samples = 1000, the acquisition will take 1 second.
03-09-2017 11:29 AM
Hi Arbo,
I just noticed this is in the Measurement Studio forum! I apologize for any confusion. There are still good examples for a finite voltage output in our examples. You can find them by clicking Measurement Studio -> Measurement Studio Examples. The DAQmx examples can be found at:
C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DotNET4.5.1\Analog Out\Generate Voltage
The GenMultVoltUpdates_IntClk_2013 seems like a good example to start with.
03-15-2017 10:35 AM
thanks. i will try.
03-20-2017 03:24 AM
hi
i understand from the examples to use finite samples.
but still can i use option continuous sampling and generate sine wave by DAQ 6343. by the same time DAQ must read and save received data.
and some timer or another function will stop this process by time_duration variable.
P.S. this is parallel task, generation by AO0 and reading these values by AI0.
03-20-2017 03:56 AM
some similar issue was in this topic but for labview and i need for c#
http://forums.ni.com/t5/forums/v3_1/forumtopicpage/board-id/170/thread-id/385152/page/1
03-20-2017 07:05 AM
exactly that i need but again in labview
03-21-2017 10:01 AM
Hi Arbo,
I'm having some trouble understanding what you need to do. If you need to continuously generate a waveform, the ContGenVoltageWfm_IntClk example at the location I linked earlier should accomplish this. If you need to generate a waveform with finite samples, GenMultVoltUpdates_IntClk_2013 should accomplish that. Are your requirements more advanced?
03-21-2017 10:14 AM
hi , let me be more specific, i want to generate 1vptp sinus wave (freq=100Hz) by DAQ-6343 at AO0 continuously. the signal goes to electronic board that have some output channel which i want to read by AI2.
the measurement must be taken at highest sampling rate. and this measurement must be taken at some time period window (5, 6, 10 sec) = this is my time_duration variable which i can change.
after this time period the measurement stops. all measured data will be written to file. and generation of sine wave stops too.
03-22-2017 04:54 PM
Hi Arbo,
Do you have specific questions regarding the examples? Either example (ContGenVoltageWfm_IntClk or GenMultVoltUpdates_IntClk_2013) can accomplish the functionality you require with minimal changes. GenMultVoltUpdates_IntClk_2013 is probably preferable because you can have greater control over how long the generation occurs.