(Problem 1)
The 5122 is not really supported under the DAQmx API. The NI High-Speed Digitizers have their own IVI-compliant API called NI-SCOPE. You can download the driver here:
http://digital.ni.com/softlib.nsf/websearch/AA7C0BA6562218E9862571CA005CB571?opendocument&node=132060_US
Also, it should have come on CDs packaged with your hardware.
There is an NI-SCOPE example, called ConfiguredAcquisition, that demonstrates exactly what you want to do. NI-SCOPE also contains comprehensive documentation for the 5122, from both a hardware and software perspective, which you will not find in the DAQmx API.
(Problem 2)
The problem here is that you are configuring the Start Trigger, but what you really want to configure is the Reference Trigger. The 5122 does not support an Analog Edge Start Trigger, only a Digital Edge or Immediate Start Trigger. The 5122 DOES support an Analog Edge Reference Trigger. The reference trigger is the one you want anyway.
You would run into the same problem using NI-SCOPE if you tried to configure an Analog Edge Start Trigger. The NI-SCOPE function
niScope_ConfigureTriggerEdge configures the Reference, rather than the Start Trigger by default.
(Problem 3)
To use the external trigger input as the source of the Analog Edge Trigger, the terminal string you want to use is "VAL_EXTERNAL". That's the name that NI-SCOPE will accept (I'm not sure what the DAQmx name is).
Patrick
Message Edited by psisterhen on 02-02-2007 11:12 AM