LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiler error, ufppushop err, c=0x21

Solved!
Go to solution

I'm really new to LabVIEW so I'm hoping that this is a simple fix that I’m overlooking.  I’m trying to create a feedback loop that turns heaters on and off.  I am using an Omega IR thermometer to read the surface temp.  When the surface temp goes above the temperature goal I want the heaters to turn off and when it goes back below the temperature goal I want the heater to turn back on.  I’m pretty sure my hardware set up is correct I just can’t figure out why I keep getting this error message.  Any bit of help is appreciated.

 

Error message:  Compiler error.  Report this problem to National Instruments Tech Support.  ufppushop err, c=0x21

0 Kudos
Message 1 of 8
(4,179 Views)

@BKingNotreDame wrote:

I'm really new to LabVIEW...


Sorry, I don't have daqmx installed, so I cannont see how your express VIs are configured.

  • At what point do you get that error? (running editing, configuring express VIs, etc.)
  • What is happening in the subVI? Can you attach that too?
  • I would recommend to use left-to-right wiring, DAQ assisstant 2 should be on the right of most of your code.
  • An "equal false" is just a "Not", keep it simple..
  • I would avoid express VIs and dynamic data in general.
  • Do you really need such a fast loop rate (0ms wait)? Most likely the loop rate is determined by the IO functions anyway. Most likely you could loop much slower.
0 Kudos
Message 2 of 8
(4,172 Views)

Thank you for your reply,

 

The error occurs right after I try running it.

The subVI is very simple arithmetic. multiplication and subtraction.

How do I avoid express VIs and dynamic data?

There is no reason for the loop rate to be set at zero.  It will probably be run a 1 sec later on.

 

I wasn't having any trouble with the program until I added in the second daq assistant.  I've reattached the program with a division of what works and what doesn't.  The upper half I had working fine.  The top half is the ir thermometer and the bottom is the heaters.

 

Thanks for your help.

Download All
0 Kudos
Message 3 of 8
(4,159 Views)

So I took your advice (I think) and changed the dynamic data type to dbl at the very beginning of the code.  Now I'm getting this error...

 

Error -200524 occurred at Feed Back Loop Testing.vi:Instance:20:97001

 

Possible reason(s):

Write cannot be performed, because the number of channels in the data does not match the number of channels in the task.

When writing, supply data for all channels in the task. Alternatively, modify the task to contain the same number of channels as the data written.

Number of Channels in Task: 1
Number of Channels in Data: 100

Task Name: _unnamedTask<5>

 

I reattached the program that is showing this error.

 

Thanks again for your help.

0 Kudos
Message 4 of 8
(4,145 Views)

As I said, I cannot test because I don't have daqmx. I cannot even look at the express configurations.

You only take one measurement, so why do you even have an array?

 

You give it a boolean array with as many elements as in the daq output, which is probably wrong.

(your "equal FALSE" still looks ridicuous. See also this very long thread)

0 Kudos
Message 5 of 8
(4,136 Views)

Like I said, I have very little experience with LabVIEW.  I have an array so that the data types match.  How do I avoid express VIs and dynamic data?

0 Kudos
Message 6 of 8
(4,131 Views)
Solution
Accepted by topic author BKingNotreDame

The array needs to have the required number of elements, so you need to either trim it or pad it with additional FALSE values (e.g. using "reshape array").

Can you show how the output express VI is configured (screenshot of the express panel)?

 

Sorry, I am not a DAQ guy, so somebody with daqmx installed could give you better advice. It should be quite trivial to use plain IO functions from the palette.

0 Kudos
Message 7 of 8
(4,128 Views)

I got it!  By using reshape array it was able to compile and all of the data types agree.  Thanks for your help, I really appreciate it.  Smiley LOL

0 Kudos
Message 8 of 8
(4,121 Views)