X-man008
2006-09-05 03:40:07 UTC
Hi all, I don't have labview in hand, and I want to use pci6534 to do continous pattern input and stream to disk by DAQmx, 32bits and using ext clock about 178.6KHz.I modified the example in DAQmx, the program works good, I can write the data to binary file, no error is given. but I am not sure it is 100% correct. I hope kind man give me suggestions. I was not able to find a DAQmx C example on this forum. Thanks! I really need this help, if some kind man will post the state of the art C code for this work!I paste the source code in attachment.it seems that after I press "ctrl c" , I am not sure if the code outside the loop will be execute,
the cmd screen disappear immediately after I press "ctrl c" printf("\nAcquired %d total samples.\n",totalRead);
if( fclose(fp))
{
printf("the file 'data.bin' was not closed\n" ) ;
}so I cannot see the output from the above code. Best Regards,Ettore
continous patten input streaming to disk PCI6534.c:
http://forums.ni.com/attachments/ni/70/5425/1/continous patten input streaming to disk PCI6534.c
the cmd screen disappear immediately after I press "ctrl c" printf("\nAcquired %d total samples.\n",totalRead);
if( fclose(fp))
{
printf("the file 'data.bin' was not closed\n" ) ;
}so I cannot see the output from the above code. Best Regards,Ettore
continous patten input streaming to disk PCI6534.c:
http://forums.ni.com/attachments/ni/70/5425/1/continous patten input streaming to disk PCI6534.c