04-20-2010 07:21 AM
Hello all,
I am developing a test system: I need to measure a frequency while generating a waveform.
My hardware is :
I initialize the waveform generation with pxi-6723 and I start the task, all works fine and the signal is correctly generated.
When I call the "niDmmInitialize" with pxi 4071, the generation stops and the "DAQmx Stop Task" will return the -200018 error code. If I remove the DMM subvis there will be no errors.
I'm using LabView 2009 9.0f3
As attachment you can find the code that gives me the problem.
Thanks a lot for helping me!
Fabio Giordani
04-21-2010 04:28 AM
hi Fabio,
the error code you post is not well define and so is not easy give you a specific indication about it.
I have seen your code, and there are 2 points that must be modified. First, you shouldn't use 2 consecutive create daqmx channel, but you could specify the different channels in one function (delimit with comma.)
The continuos generation is not correct, you should use a while loop with inside a function "wait until done". Have a look to the examples of labview.
(help>find examples, keywors: continuos waveform generation ).Maybe this solve the problem.
Simo