Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

cannot do daq after trigger

I am doing a project and using PCI6071E and traditionanl DAQ  for data acquisition.

 

What I want to do is : When the input signal level is between some values, the trigger generate, and daq start, and then get some samples into buffer. The pesudecode is like following:

  Configure_HW_Analog_Trigger (1, ND_ON, 52, 54, ND_INSIDE_REGION, ND_THE_AI_CHANNEL); //12bit DAC

 

DAQ_Config (1, 0, 0);  

DAQ_Start (1, 0, 1, DaqBuffer, ---); //sample several samples to buffer

//display the data in buffer

PlotWaveform(-----);

DAQ_Clear(1); 

Configure_HW_Analog_Trigger (1, ND_OFF, 52, 54, ND_INSIDE_REGION, ND_THE_AI_CHANNEL);

 

There seems no response after I run this program with a analog sine input, I vary the voltage of the analog input. I don't know whether I am using "Configure_HW_Analog_Trigger" in right way and confusing about the result.

 

 

Message Edited by totally on 03-04-2009 03:33 PM
0 Kudos
Message 1 of 2
(2,853 Views)

Hello,

 

First of all, what is the development environment that you working in? Also, are you using NI-DAQmx driver? If so, you should definitely follow some of the example code that comes with that driver.  When you install the DAQmx driver, examples for C and .NET install to the following file location: C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\... There are also examples of how to use triggering for analog input using DAQmx in C and .NET on ni.com. Here is a link to get you started. I would use these as as guidance in developing a working application.

 

Also, a good resource to make sure that you are using the functions properly is the DAQmx C Reference Help that is installed with the DAQmx driver. You can find this in your start menu in Program Files>>National Instruments>>NI-DAQ>> NI-DAQmx C Reference Help.

 

Chris W.

0 Kudos
Message 2 of 2
(2,836 Views)