NI Home > Community > NI Discussion Forums

FieldPoint Family

Reply
Member
the_sun
Posts: 6
0 Kudos

Field point scale?

Hello all,

 

I need to make a *.vi where a user can edit the scale of the Field Point Channels easily.

That means read the current scale, edit and then save it.

MAX should not be used.

HW used: FP 112, Ethernet

 

Thanks

Active Participant
Justin_P
Posts: 299
0 Kudos

Re: Field point scale?

By scale, I assume that you mean range.  And while I'm not sure if you will be able to read the current range you can set the range using the Configure Range.vi from the FieldPoint palette.

 

17377i43A2227A0DE074CA

 

Hope this helps.

Justin Parker
National Instruments
Product Support Engineer
Member
the_sun
Posts: 6
0 Kudos

Re: Field point scale?

Hello

 

Justin_P, thanks for the replay. But, this is not what I was looking for. I need to change the scaling (Slope and Y-Intercept).

For example: MAX->Data Neighborhood->FieldPoint Items->FP-AI-112@2->Channel 0->Scales.

I need that a non-experienced user can use my *.exe, and change the scaling. Then this change is remembered in the project *.iak file.

Can you help me?

 

Thanks

 

 

 

Trusted Enthusiast
AnalogKid2DigitalMan
Posts: 3,159
0 Kudos

Re: Field point scale?

Use the basic math operators of add and multiply, add your offset (b) and use multiply for slope (m).

 

Y=mX+b

 

Or I think there is a linear interpolation function in one of the pallettes.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Trusted Enthusiast
AnalogKid2DigitalMan
Posts: 3,159

Re: Field point scale?

the_sun:

 

See attached code I have used before.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Member
the_sun
Posts: 6
0 Kudos

Re: Field point scale?

Hello So, I have done something similar, but this solution does not solve my problem. I need that the changes are read/saved from/to the *.iak file. Something similar to DAQmx, where all the changes for each channel, task or scale, made in some *.vi, are saved in MAX Have a nice day
Active Participant
Justin_P
Posts: 299
0 Kudos

Re: Field point scale?

I would take AK2DM's suggestion and then save the m's and b's to another file that you make on your controller, called something like scales.ini. I wouldn't suggest trying to modify the .iak file to include your scales.

 

If you could explain to me why you need the scales to show up in MAX, maybe I would better understand your problem and be able to provide a different solution.

Justin Parker
National Instruments
Product Support Engineer