can anyone help to remove this error.

#include <stdio.h>

#ifndef ___osiBus_h___
#include "osiBus.h"
#endif


/*void fun(int CTRread[6]);
void fun2(int CTRwrite[6]);
static int a=0,b=0,c=0,d=0,e=0,f=0;
static int CTRread[6];
static int CTRwrite[6];*/

void hooter();
void JoyStickToSensorCutOffLoadCell(int LoadCell,int JoystickInput);
void TempRelayHeaterOnOff(int value);
void TempRelayChillerOnOff(int value);
void joystickOnOff(int JoyStick, int condition, int cond);
void JoyStickToSensorCutOffTPOL(int TPOL,int JoystickInput);


int i;
int TPOL1,TPOL2,TPOL3,TPOL4,TPOL5,TPOL6;
int joystickInput=0,joystickOutput=0,joystickOutput0=0;
int NotinRange1=0,ControlledOutput1=0,NotinRange2=0,ControlledOutput2=0;
int joystickOutput1=0,joystickOutput2=0,joystickOutput3=0,joystickOutput4=0,joystickOutput5=0;
int joystickOutputTPOL1=0,joystickOutputTPOL2=0,joystickOutputTPOL3=0,joystickOutputTPOL4=0,joystickOutputTPOL5=0,joystickOutputTPOL6=0;

void algo(int arr[],int arr1[],int arr2[],int arr3[],int arr4[],int arr5[]);

algo(DI1,DI2,DO2,AI2,AO1,AO2)(is this line correct)
Last edited on
can anyone help to remove this error.


Could you perhaps give us the error?

Please Edit your post and use code-tags for all of your code, it's hard to read otherwise. It's <> under the format section - http://www.cplusplus.com/articles/jEywvCM9/
Last edited on
algo(DI1,DI2,DO2,AI2,AO1,AO2)(is this line correct)


We can't tell, you need to tell us how DI1,DI2,DO2,AI2,AO1,AO2 are declared. if they are int arrays then yes the call looks correct, if they are anything else, then no, it looks incorrect.
hello ,
thanks for your response.

Actually I'm a beginner in C , but have basic knowledge.

DI1=digital input
DO =digital output
similarly AI=analog input

actually these are pins used in NI_PXI-6602.

can you please tell me how and where to declare them.
can you please tell me how and where to declare them.

Are those symbols ones you've created? Or are they part of some third-party API?
Topic archived. No new replies allowed.