Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 200022

I know that it may be a very silly question but: I had some code where for acceleration measurement NI9233 and  sine signal generation NI 9263 where used and that worked fine. Then I decided to add Pressure reading as well using NI 9203.

But after this I am getting Error 200022. I have taken a look in forum and the only explanation I found that DAQmx sample clock should be the same. I have changed it but it does not help.

I have tried to use DAQ assistant as well but behaviour was about the same 9203 worked but 9233 does not.

How may I cure it.

I am using LabView 8.6.1.

0 Kudos
Message 1 of 14
(4,648 Views)

Hi Sergey,

 

I'm Oli, an Applications Engineer at NI UK.

 

I've downloaded and run your code with simulated hardware and it doesn't produce any errors.

 

As you are using DAQmx functions, I think the error is likely due to hardware reservations.  This is the -200022 error (not 20022 as you posted).

 

If you take a look at this article, you will find some more information.  I can't see where the error could be occurring in your code, so can you run the code with 'Highlight Execution' enabled and watch to find where in the code the error occurs.

 

Once you've found that out, we can begin to troubleshoot more specifically.  The error could occur if you have MAX open and running a task on any of your hardware when you try to run the code as the hardware will already be reserved.  Make sure you aren't running anything on that hardware before you start your code.

 

Kind Regards,

Oli
LabVIEW Student Ambassador
National Instruments UK
0 Kudos
Message 2 of 14
(4,633 Views)

Thanks Oli,

the error was always here and I have changed the code. But currently every time I stop the code it generates different error.. Could you take a look into that one?

 

 

Warning 1905 occurred at SVFA Power Spectrum (1 Ch).vi:2

Possible reason(s):

Sound & Vibration:  VI automatically was reset because number of samples in the input signal changed.

 

0 Kudos
Message 3 of 14
(4,630 Views)

Hi Sergey,

 

I'll take a look into that for you.  Do you have the config file that you are using.  You said that the error occurs when you stop the VI, which suggests that the error occurs in the cfg write tasks in the True case of your Stop case structure.

 

I can't run that part of the code without the file.

 

Kind Regards,

Oli
LabVIEW Student Ambassador
National Instruments UK
0 Kudos
Message 4 of 14
(4,627 Views)

Yes sure the cfg file is attached:

0 Kudos
Message 5 of 14
(4,625 Views)

Hi again,

 

Firstly, apologies for the delay in replying.

 

I have narrowed the cause of the problem down to the 'Power Spectrum' ExpressVI that you are using in the lower while loop.  I haven't been able to work out exactly why the error is occurring with the use of that ExpressVI.  It is something to do with the waveform buffer that it is reading from.  After the stop button is pressed, the buffer empties prematurely and the ExpressVI tries to read data that is no longer there.  A solution would be to use the NI_AALPRO version of the Power Spectrum VI.  You will find it in the Functions Palette under 'Signal Processing > Spectral > Power Spectrum'.

 

I will continue to try and find the cause of the problem with the ExpressVI, but in the mean time you should be able to use the alternative Power Spectrum VI.

 

Kind Regards,

Oli
LabVIEW Student Ambassador
National Instruments UK
0 Kudos
Message 6 of 14
(4,599 Views)

Thanks a lot, I'll try it.

I could not open  the file attached by you as I have Labview 8.6.1

0 Kudos
Message 7 of 14
(4,598 Views)

Woops.  Here's the 8.6 version.

Oli
LabVIEW Student Ambassador
National Instruments UK
0 Kudos
Message 8 of 14
(4,596 Views)

Thanks.

I'll try it later as I have an experiment running right now.

What is the best way to average pressure readings as I do not need it at such a high rate updated I just want it to be updated every second and averaged as it is oscillating. Another question is display of pressure reading. I would like it to be monitored on a plot/chart during the run from the start to the current moment(either starting from 0 or from the time it started). I have tried to use XY graph and elapsed time with it but did not like it. Could you show me the sample how would you do it?

0 Kudos
Message 9 of 14
(4,594 Views)

I have tried it but it gives wrong spectrum around 10-20Hz peak instead of 40Hz.

0 Kudos
Message 10 of 14
(4,589 Views)