07-06-2006 02:01 PM
07-07-2006 12:07 PM
07-09-2006 12:09 PM
07-10-2006 09:09 AM
Markus,
I copied and pasted your code into one of our example programs and it seemed to work fine for me. Just for the heck of it could you try and run my code to see if it works for your system. It's probably the same as your code but it might be worth it to give it a shot. The only thing that I had to change once I copied and pasted your code over the example code was to change the "EveryNCallback" function to read in more samples and have a bigger buffer. Also, to make this example a little simpler you could use the counter I/O test panels in MAX to generate an external clock instead of using your internal clock. This is what I did when I ran your code.
If this example will not work for you then this narrows down your problem to either something in the hardware or something in an external signal connection. Just for the sake of debugging, could you move around your triggering and external clock lines to see if any other lines work for these purposes? It seems really odd that the external clocks and triggering would be working separately but not at the same time. Maybe one of those PFI lines is damaged in some way.
Hope this helps you,
Justin D.
Applications Engineer
National Instruments