Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Error message " nidaq32.dll no found "

Rajaram,

I do not see a reason to use RTSI if all of this routing will be done on your one pci-6602. You can put a digital signal to a PFI line, and use that as a pause trigger (gate) for the rest of your counters. I would suggest looking at the NI-DAQmx C Reference Help (Start >> Programs >> National Instruments >> NI-DAQ), under ‘NI-DAQmx C Properties >> List of Property Triggers >> Pause. Set the type, digital source, and pause when properties to have a gate.

David L.
Systems Engineering
National Instruments
0 Kudos
Message 11 of 14
(1,506 Views)
Hi David,
 
Thanks for your response. I had a look at Pause trigger property, but there is not function to set the source for pause trigger. I can see some list of function to set the source for trigger
 
Is it possible to use this function to set the source?
 
I have found an example  for Counting digital events using Pause trigger in C#, program seems to work fine, but I dont know how the trigger function works in it. 
 
functions used in that program is:
 
my task = new task ( "Counter task")
 
my task.CIchannels.createCountEdgesChannel ( )
 
mytask. triggers.Pausetrigger.DigitalLevelTrigger (Source, Level)
 
Trigger souce been set to PFI10 as default in the program, when i connect the source to PFI10 and run the program, I m getting some counts when the pause trigger is High and no counts when the trigger is Low. So thats fine. But when i disconnect the source PFI10 and run the program, still I m getting counts when the trigger is set to High and no counts when it s Low. It behaves same without any change when I connect the source and also when no source been connected. I have attached the program for your reference. Once I have understood the base of this program then it will be easy for me to implement the same function VB. So I would like to get the Basic understanding of the pause trigger and especially in this program. If you need any clarification in my post, I m happy to describe my problem clearly.
 
Thanks
 
 
0 Kudos
Message 12 of 14
(1,493 Views)
Example Program attached.
0 Kudos
Message 13 of 14
(1,488 Views)
Hi,
 
All the functions are in VB
 
I tried to set the pause trigger (Gate) and had a look at the properties and functions of pause trigger. Properties related to pause trigger are
 
DAQmxGetPauseTrigType ( taskHandle as Long, data as DAQmx TriggerType6) as Long
DAQmxSetPauseTrigType ( taskHandle as Long, data as DAQmx TriggerType6) as Long
DAQmxResetPauseTrigType ( taskHandle as Long) as Long
 
these are to set the trigger type , but first i need to set the trigger source and the function for setting trigger source been given as
 
DAQmxSetDigLvlPauseTrigSrc (taskHandle as Long, data as String)
 
is the data parameter corresponds to Source name ?
 
Thanks
0 Kudos
Message 14 of 14
(1,481 Views)