06-09-2016 10:34 AM - edited 06-09-2016 10:45 AM
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
Solved! Go to Solution.
06-09-2016 10:46 AM
@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.
06-09-2016 11:12 AM
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.
06-09-2016 12:33 PM
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.
06-09-2016 01:12 PM
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)
06-09-2016 01:32 PM
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?
06-09-2016 01:36 PM
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.
06-09-2016 02:17 PM
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.