02-17-2009 06:54 PM
I am trying to perform offset nulling using an NI-9237. I receive and error in regards to the custom scale even though I programmatically create the scale prior to the task. I am experiencing the erro whne using LV8.2.1 but with LV8.6 the problem disappears (same code, just open in LV8.6 and run)
The error is the following:
Error 200378 "Custom scale specified does not exist"
Possible reason(s):
Measurements: Custom scale specified does not exist.Custom Scale: test
Channel Name: LoadCell_StrainGage_Sim/ai0
Task Name: _unnamedTask<F>
I have attached the code in LV8.2.1
Thanks
Dan
02-17-2009 07:12 PM
Dan,
I tried your VI and it worked for me after I changed the channel from "LoadCell_StrainGage_Sim/ai0" to something that was on my system. Before that, I got the same error. So...are you sure that there is LoadCell_StrainGage_Sim/ai0 configured in MAX? Stupid question, I know, but it was the only thing I changed.
-Matt
02-17-2009 07:40 PM
My problems seem to be intermittent, maybe not related to LV version.
If I open teh code I attached above, sometimes it runs and sometimes I get the error, without changing a thing.
Also, try changing the name of the scale from "test" to something else and see if it runs. In the cases that I have the code runnning, changing the scale name has produced an error as well.
Thanks
Dan
02-17-2009 08:23 PM
Dan,
Do you have MAX open? I could be wrong, but that might be interfering with what you are trying to do. Or if you have another something else open that is using the same resource.
02-17-2009 08:45 PM
Nothing else open, even tried rebooting but still have intermittent problems. My code works fine at all times if I remove the Offset Nulling or leave the Nulling VI but remove my scale.
Dan
02-17-2009 08:52 PM
02-17-2009 08:55 PM
It doens't always work the first time and I am usign the ClearTask.vi
D
02-18-2009 12:01 AM
Dan,
I didn't forget about you -- but I can't get back to it until tomorrow (Wednesday).
-Matt
02-18-2009 12:31 PM
Dberry,
Interesting issue, as the code worked great for me in multiple different versions of LabVIEW. You say there is nothing consistant about when this happens (first run, every other run, after reboot, not after reboot...etc)? Do you get the error in 8.6 now? Could we possibly check error out to see if your system is erroring at the Create scale VI?
You aren't by chance doing this in a .exe are you?
02-18-2009 12:38 PM
I couldn't make it fail either.