LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I receive Error 200378 "Custom scale specified does not exist"?

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

0 Kudos
Message 1 of 16
(5,466 Views)

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

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 2 of 16
(5,463 Views)

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

0 Kudos
Message 3 of 16
(5,457 Views)

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.

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 4 of 16
(5,441 Views)

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

0 Kudos
Message 5 of 16
(5,437 Views)
OK, another question -- does it always work the first time you run it (after you close everything or reboot)?  I am thinking that maybe you have to clean up the task when you are done.
-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 6 of 16
(5,435 Views)

It doens't always work the first time and I am usign the ClearTask.vi

 

D

0 Kudos
Message 7 of 16
(5,429 Views)

Dan,

 

I didn't forget about you -- but I can't get back to it until tomorrow (Wednesday).

 

-Matt

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 8 of 16
(5,410 Views)

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?

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 9 of 16
(5,383 Views)

I couldn't make it fail either.

 

 

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 10 of 16
(5,380 Views)