Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I programatically force a reference trigger?

Hi,
 
I am using the DAQmx Task object in .net.  I have a task with a reference trigger working with PFI0 and so far everything is working.  The card is a PCI-6034E.
 
I would like to provide a force button that acts as if the trigger went high, but I can't find any information on how to do this.  I would imagine that it is possible; even the NI-SCOPE wrapper provides this as a fuction.
 
Any help would be greatly appreciated.
 
Thanks,
 
Kyle
0 Kudos
Message 1 of 2
(2,860 Views)
Kyle,

>> I would like to provide a force button that acts as if the trigger went high

It seems as if you need a software button that will act as a trigger and acquire data each time you press the button.  Please correct me if I am wrong.  If that is indeed the case then you would have to programmatically acquire samples only when the button is pressed, which would be pretty easy to implement using something like an if statement.  Like the niScope Send Software Trigger Edge, there is something called DAQmx Send Software Trigger, but that is only for our switch products.

Hope that helps.

Regards,
Raajit L
National Instruments
0 Kudos
Message 2 of 2
(2,834 Views)