LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scaling on cRIO and C-Serie card

Solved!
Go to solution

Hello,

 

I'm trying to configure the scale of a measurement channel on a NI-9203 board installed on a cRIO-9056.

 

My input is a PT100 probe wired in 4-20 mA.

I'm configuring my board via Shared Variable Propertie, on the desired measurement channel.

 

And I get the following error (I admit it sounds counter-intuitive...): 

 

6cb02733-1bd5-49f5-82be-956b14453f34.png

 

However, I put the data in the right place and in the "right way". 0.02 A is well > 0.004 A ....

I can put 20 (instead of 0.02) and 4 (instead of 0.004), but of course, the value returned by the board is in A and not in mA. So it doesn't match.

 

Does anyone have an idea of my error?


Thanks in advance!

0 Kudos
Message 1 of 14
(997 Views)

Hi,

 

Is there a reason you are using commas instead of periods for the scaling? That may be the issue.

 

-Jonathan

0 Kudos
Message 2 of 14
(969 Views)

@jwright30 wrote:

Is there a reason you are using commas instead of periods for the scaling? That may be the issue.


The formatting of numeric is location specific and some countries use comma as decimal delimiter. This is a cosmetic issue, not related to the problem. (these are not string controls where anything goes 😄 ).

0 Kudos
Message 3 of 14
(935 Views)

Indeed, commas work perfectly!
I did try it with dots, though, and it replaced them with commas.

 

Do you have any idea what could be causing this error?

0 Kudos
Message 4 of 14
(896 Views)

Can you add your project file? I tried the same steps and did not get an error:

 

jwright30_0-1721139368006.png

 

0 Kudos
Message 5 of 14
(855 Views)

Wild guess: Under the hood everything is of course just bits from the digitizer and at one point behind the scenes your values are mapped to a raw integer. Maybe some wrapping can happen in edge cases.

0 Kudos
Message 6 of 14
(848 Views)

Hello jwright30 and altenbach,

 

Here is the Project attached.

 

Indeed, when I look at the control panel of the card I see that you always several zeros after your numbers. I don't have anything.

 

altenbach, to be honest I didn't quite understand your comment... ^^

 

Thanks

0 Kudos
Message 7 of 14
(607 Views)

I've created a new project with a cRIO-9056 and a 9203 board, and I'm getting the same error: I can't set the right values (0.02 and 0.004).

0 Kudos
Message 8 of 14
(585 Views)

Hi,

 

Did you figure this out? I wasn't able to open the project since I use Labview 2020 and the project is in a newer version. You'll have to save it for a later version for me to open it.

 

-Jonathan

0 Kudos
Message 9 of 14
(545 Views)

Hello,

 

I still haven't found the solution. I've tried scaling manually in the code (only 2 measurements to adjust, so it's fine ...). But I'm still struggling to find it, knowing that I'm starting a new project today and the error is still there ... 🙁

 

You'll find the project in labview 2020 attached.

 

Thank you very much ...

0 Kudos
Message 10 of 14
(436 Views)