05-15-2008 05:12 AM
05-20-2008 07:01 AM
05-23-2008 05:31 AM - edited 05-23-2008 05:35 AM
Thank you for the link!
I tried to run the exampleVC_Acq_IntClk_AnlgStart and at the point DAQmxCfgAnlgEdgeStartTrig . The following errormessage occurs on the console:
Measurements: Requested value is not a supported value for this property.
Property: DAQmx_StartTrig_Type
You Have Requested: DAQmx_Val_AnlgEdge
You Can Select: DAQmx_Val_DigEdge, DAQmx_Val_None
Task Name: MyTask
Status Code: -200077
I tried to follow the method with the debugger but he jumps directly to the errorhandling.
How can i change the DAQmx_StartTrig_Type ?
DAQmxErrChk (DAQmxCreateTask("MyTask",&taskHandle));
DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai1","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",10000.0,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,1000));
DAQmxErrChk (DAQmxCfgAnlgEdgeStartTrig(taskHandle,"ai1",DAQmx_Val_Rising,1.0)); // => above Error occurs
DAQmxErrChk (DAQmxSetAnlgEdgeStartTrigHyst(taskHandle, 1.0));
05-23-2008 05:31 AM - edited 05-23-2008 05:34 AM
Sorry Multible Post
05-23-2008 05:31 AM - edited 05-23-2008 05:33 AM
05-26-2008 01:31 AM
05-29-2008 04:21 AM
you are right. Analog triggering is not supported at NI-USB 621x . I made it with a digital trigger (for test aplication).
For our app we want to use something like a ring buffer: We want continuously read datas from 3 AIs and check the samples at the same time (or a little bit later ;-). There is an example "Software Circular Buffer Component" but its for LabVIEW Base Package 8.5. (I don't have that software)
Is it possible to make such an example for C or is there a special funktion witch i can use for it?
Michael
05-29-2008 04:27 AM
05-29-2008 04:59 AM
wow! what a fast answer!
i wana read a pulse which is just some milliseconds long. Most time, the value is something around zero. I want to read continously the samples and if the mean of the value in a timespan is diffrent from zero i wana have e.g the last 1000 samples from the beginning of the increasing value and, of course, the samples from the pulse.
Regards
Michael