05-04-2015 04:30 PM
How can a solve the error Code 41? Device call aborted.
05-04-2015 05:23 PM
@diana777 wrote:
How can a solve the error Code 41? Device call aborted.
The question is about as clear as mud.
05-04-2015 06:22 PM
We need to see the context in which this error occurred. Attach the code that caused the error.
Bob Schor
05-04-2015 06:35 PM
I need to set a read analog signal, but in this port configuration the error occurs 41.
Maybe it's the memory configuration of the PCI in 2511, but do not know how to configure it otherwise.
Follows the current configuration of the image.
Thank you.
05-04-2015 06:40 PM
I'm not sure what device you are using, but before trying to code a device in LabVIEW, try "manually" gathering data from the device using MAX. When you do so, pay attention to the parameters that MAX asks you to specify. Indeed, if you get a configuration that gives you the data that you want, save it (in MAX) as a Task and wire that Task to DAQmx calls.
Bob Schor
05-04-2015 06:49 PM
I'm using as device a PCI 2511 of Adventch, implementing the Labview. I do not know what would this MAX setting. But either way thank you, I'll keep trying.
diana777.
05-04-2015 07:04 PM - edited 05-04-2015 07:05 PM
You'll have to contact Advantech to find out what error code 41 means. MAX won't help you since this is not an NI product.
Why are you writing to an indicator and a local variable of that indicator at the same time at the end of your loop?
05-04-2015 07:24 PM - edited 05-04-2015 07:25 PM
I understood, I will contact the Adventch then. I'm using this local variable in another program loop. This variable is read in another loop, following the program, so it's there at the end of the cycle. This cycle is later than that of reading, is it ok? or not? I do not have much experience with Labview.
05-04-2015 07:26 PM
You don't need to write to the local variable. You are likely duplicating that value in the chart as a result. (Unless that local variable is actually pointing to a different control than the chart, and you happened to give them the same name, which is a bad idea because it is confusing.)
05-04-2015 07:33 PM - edited 05-04-2015 07:34 PM
Oh thank you, fix it here now.
But still the problem of error 41, accusing perssite of memory error, I believe that should be the interaction of the loops.