L
I try to make a presentation for students titled "Measurement in Linux". In this presentation I try to adjust fan speed according to temperature. I have two problems, one is unstable input data and the other is linux compiling of C++ code.
The first problem is due to data aquisition.When using standard IO card (Keithley DAS1600), I have problems with sequential operation.First i read data from Analog input channel and after calculating proper value, I am sending data to Analog output.It is a simple C++ code for presentation.But problem is that analog input is changing in quite wide range(for ~23 °C range is 18 to 50) when analog output part of the programme is sequentially running after input part and it`s not changing so much (for 23 °C 22 to 24) when analog input programme is running itself.I really don`t know what to do to stabilize data.
For linux problem is compiling header files and commands."conio.h and dos.h,inportb,delay" are only valid in DOS not in unix and there is no information about linux.But I have also read about "asm/io.h" file which supplies commands like "outb".
I will be pleased to have your help.
The first problem is due to data aquisition.When using standard IO card (Keithley DAS1600), I have problems with sequential operation.First i read data from Analog input channel and after calculating proper value, I am sending data to Analog output.It is a simple C++ code for presentation.But problem is that analog input is changing in quite wide range(for ~23 °C range is 18 to 50) when analog output part of the programme is sequentially running after input part and it`s not changing so much (for 23 °C 22 to 24) when analog input programme is running itself.I really don`t know what to do to stabilize data.
For linux problem is compiling header files and commands."conio.h and dos.h,inportb,delay" are only valid in DOS not in unix and there is no information about linux.But I have also read about "asm/io.h" file which supplies commands like "outb".
I will be pleased to have your help.