10-25-2014 03:43 AM
Hello !!
I am detecting rising and falling edge of a square wave in a loop.......but i am not able to do it.....kindly help........sample code is...
Case 1 :
do
{
Val = readhardware(channel number);
if (val >2) break;
}while(1)
10-25-2014 01:14 PM
It depends on how your read hardware ( ) function is designed. A tight loop like that is not processing events, so if you function relies in any way in event processing then that system won't work. Can you post a summany code of your function an some detail on how it interacts with the hardware? Does it use serial functions or GPIB or VISA or a third party dll or what?