11-03-2006 02:11 PM
Hi Kenn
I have given a thread sleep of few milliseconds in the Read thread so that it gives some more time for the callback to be called . This solves the Stop task problem. Thanks for your time and effort.
I have another quick question. For coninuous acquisition is it ok if we specify the number of samples as specified below
BeginReadMultiSampleInt32(4500, myCallBack,
null);But in the Timing I have specified
task[i].Timing.ConfigureImplicit(
SampleQuantityMode.ContinuousSamples);I have configured the buffer size ot be 10000
task[i].Stream.ConfigureInputBuffer(10000);
I assume it will acquire 4500 samples continuously.
Is my assumption correct? If we specify the number of samples and set the timing to be Continuous samples It soesnt mean its a finite acquisition right ?
Please confirm/explain.
Thanks
Murugan
11-03-2006 02:16 PM
11-07-2006 09:14 AM
Hi Kenn
I have another question. If I change my gate frquency to 30 KHZ I get a buffer overwrite error.
What will be the ideal buffer size and number of samples to acquire to get away from the buffer overwrite error?
Thank you
Murugan
11-07-2006 09:25 AM
11-07-2006 10:07 AM
Hi Kenn
If the user is going to vary the gate frequency how will the buffer size and the number of samples can be varied based on the gate frequency/sample rate? Is there a reference?
Any ideas/ suggestions
Thank you
Mururgan
11-08-2006 10:06 AM
11-13-2006 03:54 PM
_tasks[i].CIChannels.CreatePeriodChannel(inCtr,
"BufferedEventCounting" + i, 1.19/*.000000025*/, 10000000.0/*53.6*/, CIPeriodStartingEdge.Rising, CIPeriodMeasurementMethod.LowFrequencyOneCounter, _measurementTime, 4, CIPeriodUnits.Ticks);_tasks[i].CIChannels[0].CounterTimebaseSource =
"/Dev1/PFI39";(source)_tasks[i].CIChannels[0].PeriodTerminal =
"/Dev1/PFI12"; (gate)I'm also using a ArmsTrigger with "/Dev1/PFI0" to synchronize the counters fo the devices.
Please let me know if I'm missing something. I read in the discussion sites if I just specify the device name along with the pin the RTSI will internally communicate between the devices.
Any early help will be appreciated.
Thanks
Murugan
11-13-2006 04:26 PM
11-13-2006 05:21 PM
Hi Kenn
Thanks for the quick response.Can you please explain more. I'm not clear .
Q1) Do we have to export the trigger and the clocks ? Or is it ok if we just specify the Dev1/PFI0 terminal or DEV1/RTSI0 as terminal for the starttrigger?
Q2) I could see that if I just change the device name alone the available sample for the counters in the device 2 is always 0 . But when the call to EndReadMultiSample is made I get the data from all the 5 counters from Dev1 and Dev2. It sounds wierd.
Q3) If the ArmsStartTrigger source is "/Dev1/RTSI0" for all the 5 counters in Dev1 and Dev2 . What will be the digiatal line used to start the trigger ?
_firstTask.DOChannels.CreateChannel(
"/Dev1/port0/line0", "DigitalTrigger",ChannelLineGrouping.OneChannelForAllLines);
Waiting for the reply,
Murugan.
11-13-2006 05:55 PM