ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to program Bias function

Dear all,

 

i try to programm a bias function for my force/torque sensor, but my bias funktion doen't work in a good way. Is there some how get why?

I try to read in the first data an make offest with them as a array function. Is that wrong ?

 

Best Melina

0 Kudos
Message 1 of 2
(3,089 Views)

Hi Melina,

 

but my bias funktion doen't work in a good way. Is there some how get why?

Because of using too many local variables: use shift registers instead!

Because you are mixing different array sizes: your bias vector contains just one element per channel, but you read more samples per channel - and try to do math with those differently sized arrays…

 

I try to read in the first data an make offest with them as a array function. Is that wrong ?

That is quite ok.

But you implemented it in a wrong way…

 

You really should learn about array handling in LabVIEW.

You should learn about polymorphic functions in LabVIEW: you don't need provide a "Gain" as 2D array, when you need just a scalar value!

(Cleaning up the VI might help too…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(3,035 Views)