LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can i use matrix functions with fmod

Hi There
This is my first post.-
 I need to use matrix function with the fmod() fuction in LabWindows.
 
Currently i have    
 
time_ref_ch[p]=fmod((angle_red[number_of_probes_active] + angle_of_keyphasor[number_of_probes_active]), (360/number_of_blades));
 
That but it keeps on displaying 'operators of = have illegal types 'pointer to array 201' of long double and double
and also
 
Lvalue Required -----> have no idea what this is
. I have tried everything but i can get past it.
 
 Please help me out 
0 Kudos
Message 1 of 4
(3,318 Views)

Can you post your definitions of the identifiers used? It might help to see what's going wrong.

JR

0 Kudos
Message 2 of 4
(3,308 Views)
Definitions are
long double time_ref_ch[number_of_probes_active][max_nmb_blades]
double angle_red[number_of_probes_active]
long double angle_of_keyphasor[number_of_probes_active]
#define max_nmb_blades 201
int number_of_blades=1
 
0 Kudos
Message 3 of 4
(3,293 Views)
You need an additional de-reference of your time_ref_ch variable. Defined as it is, the left hand side of your assignment (time_ref_ch[p]=) is still referring to an array, not an LValue. Something along the lines of: time_ref_ch[p][q]= (with appropriate values for p and q) will keep the compiler happy.
 
JR
0 Kudos
Message 4 of 4
(3,287 Views)