B&R automation studio Programming Load cell with C

Hi I am programming a Loadcell using B&R Automation Studio in C. I have found out the builtin function which is WghScale. I have included the library and created a local structure so that i can use the variables. Assigned my analog Output to the raw Value and called the function. But I am not getting the corresponding weight.

What should i do? Can anyone help me please?