Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI6534: continous pattern input and stream to disk by DAQmx?

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

0 Kudos
Message 1 of 2
(3,070 Views)
I used the example from 8.0, there is no double buffer examples in 8.0.
 
should I change to 7.4.1?
 
Best Regards,
 
Ettore
0 Kudos
Message 2 of 2
(3,054 Views)