Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating a wfm (PXI-6723) and measuring a frequency (PXI-4071): error 200018

Hello all,

I am developing a test system: I need to measure a frequency while generating a waveform.

My hardware is :

  • Pxi case PXI-1042
  • DMM PXI-4071
  • Analog Outputs PXI-6723
  • Other NI devices

 

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

0 Kudos
Message 1 of 2
(2,752 Views)

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 

0 Kudos
Message 2 of 2
(2,727 Views)