Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

software trigger

Hello,

i intend to start and stop my software( cpp or Basic or Delphi)  over a Digital tigger, and using NI Compact DAQ with
1 : NI - 9215
2 : NI - 9263
3 : NI - 9472
4 : NI - 9421
5 : NI - 9401

How will Software will be get informed that a trigger is activated?
The trigger signal should not start any Task but the Software will start the whole process,
 as soon as a trigger signal is detected.

Is there a "event" or "message " which will be generated or should a thread observe the Digital Input whole the time?



with Regards

Hassan Majedi


0 Kudos
Message 1 of 2
(6,416 Views)
hello hassan majedi,

you could try 2 ways to detect your trigger.
one way would be to create a digital task, which uses change detection, see the manual and see the DAQmx examples for change detection, which are usually located at:
"C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Digital\Read Values\"

if you don't want to create a task, you must poll your signal within your software, as you mentioned.

regards,

robert h
NI germany
0 Kudos
Message 2 of 2
(6,403 Views)