LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 20003 using a sub VI

I am reading in data with a 6052E, doing some filtering and displaying the spectral data with everything working fine. But, when I put some of the filtering blocks into a sub VI, I get error 20003 from the filter vi's, which tells me samples are getting delayed or out of whack with respect to the other blocks. Am I missing something obvious with putting vi's into a sub-VI?

Thanks in advance,

Mark
0 Kudos
Message 1 of 4
(3,054 Views)
Mark,

There should be no difference in running the code as a SubVI. Make sure that you are passing the same data to the SubVI that you passed when the code was pasted in the main VI.

Most likely you get this when the data sent to the SubVI is not a valid array of numbers. You can open up the SubVi to add a probe to the data that you filter. This way you can see if it is actually a valid array.

I hope this helps, let me know if you have any questions.

Regards,

Juan Carlos
N.I.
Message 2 of 4
(3,054 Views)
Juan,

Thanks for the response. The problem went away when I made my sub-vi's "reentrant."

Mark
0 Kudos
Message 3 of 4
(3,054 Views)
Mark,

Most likely the VI was being called from different parts of the code at the same time; causing unvalid data to be passed into the functions.

I am glad this is working now.

Juan Carlos
0 Kudos
Message 4 of 4
(3,054 Views)