LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

enqueue error

Hello,

My program running good only the first time, because then appear an error: Error 1 occurred at enqueue element in strumento.vi.
I dont' know why.
Attach the VI.
0 Kudos
Message 1 of 4
(3,732 Views)
Are you sure the 'element data' wired to the enqueue vi is valid? 

In general, you really should try to avoid using sequences.   I suggest using a state machine structure to make your code more compact and readable without having to scroll left/right and up/down to see the code.


>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 4
(3,687 Views)

I agree that you should get rid of the flat sequence structure.  Add Error In/Out to your subvi's and use it for execution flow.  You block diagram is too large to fit on one screen, so you should cut it down by using subvi's.

For your problem, the Enque functions shows a red dot at the element input.  This means that Labview is trying to convert the data to the proper type.  You problem probably lies here.  Use probes to see what is being enqueued.

- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 4
(3,678 Views)
The problem are bad release queue operation. Now is ok.

Thanks
0 Kudos
Message 4 of 4
(3,662 Views)