Hello Cirrus,
I would like to verify your setup quickly just to make sure I am correctly thinking about what you are doing. If your setup differs from my description please let me know.
You have a signal A which you are feeding into the external trigger BNC on your 5122 and a Signal B which you are feeding into either channel 0 or channel 1. You are trying to do an analog edge trigger on signal A and acquire 100 pre-trigger samples of Signal B with a total record length of 2500 samples at 100 MS/s.
I am assuming that since you are using the external trigger for signal A, Signal B does not have an event you can trigger on directly but contains the information you want to digitize. I am also assuming that since you have said you are only getting 30 pre trigger samples when you fetch your record that you must have a guess about where the trigger event should have occured in your fetched waveform of signal B.
If this is true then your problem could be related to cable delays. Basically since the paths taken by signal A and B are completely separate any extra delay added by a longer cable in one of the paths would translate to an offset in the trigger time. There is a simple check you can do to see if your board and software are working correctly.
Put A BNC splitter on signal A and run it to both the External trigger and Channel 0 inputs. Try to keep the cable lengths of each path the same. Next run your VI and check to see if your waveform shows the trigger edge occurring at the specified point in your record. If it does then your board and software are fine and there is some extra delay in your system that you will need to calibrate out. If the edge does not occur in the correct part of the record with this setup then disconnect all signals and run self calibration from MAX.
If this does not work repeate the same setup using the configured acquisition VI from the NI scope examples just to rule out a software problem.
If the setup I described above does not correctly describe your situation please let me know.
Regards,
-Matt
Message Edited by Matt E. on
01-10-2008 09:54 AM