Hi,
I just try to implemente on my code a delay between the read function
and the continuation of my code and I have always the same Error
(Divide by zero).
TaskHandle InputAnalogHandle=0;
float64 value=0,ValTensMin,ValTensMax;
int32 ConfigPort;
DAQmxCreateTask("",&InputAnalogHandle);
DAQmxCreateAIVoltageChan(InputAnalogHandle,AIPort,"",ConfigPort,ValTensMin,ValTensMax,DAQmx_Val_Volts,NULL);
DAQmxStartTask(InputAnalogHandle);
Sleep(1000);
DAQmxReadAnalogScalarF64(InputAnalogHandle,10.0,&value,0);
Sleep(1000);
Edit1->Text = value;
If somebody had an idea to resolve this problem, Thank you to take time for help me,
Thank in advance,
Best regards