Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog Waveform Read on Digital Trigger

I have a NI PCIe-6320. I'm trying to set up a simple digital trigger for an analog input task. I've realised that StartTrigger.ConfigureDigitalEdgeTrigger takes a terminal rather than a channel name as the source. So I am configuring the trigger with StartTrigger.ConfigureDigitalEdgeTrigger("/Dev1/PFI0", Rising). I am trying to then programmatically fire the trigger with a DO write to p1.0. This doesn't seem to be working - I only enter my callback function after the read timeout of 10 seconds, and then cannot collect the waveform.

 

If I use StartTrigger.ConfigureDigitalTrigger("Dev1/port1/line0", Rising) and write true to p1.0 I enter the callback function, but then EndReadWaveform fails because the source terminal is invalid.

 

What am I doing wrong? I've been through the C# examples several times but none of them actually try to fire the triggers.

0 Kudos
Message 1 of 1
(649 Views)