09-15-2005 10:56 PM
09-19-2005 11:52 AM
09-20-2005 12:27 AM
Hi Kalyan,
Around 8.33 ms between two trigger, my setup is trigger continuous and data will be take at first trigger after 8.33ms stop it, wait 8.33ms or 16.99 ms read data again.
Thanks
09-21-2005 11:44 AM
Hi,
I looked more into your issue. Couple of questions. What are you using the counter for? Are generating sample clock for digitizer using counter?
I am not sure why you need start trigger your application. But here is a solution I propose.
Use reference trigger as triggering option and then set reference position as 0% (this will set pre-trigger samples to zero).
Then perform multiple record acquisition. The advantage of using multi-record acquisition is that for every trigger, digitizer will acquire a record. Then you can fetch this data.
So, whenever there is a trigger ... you acquire a record which can hold data for 8.3ms.
If you have number of records greater than memory size of the digitizer, then there is an attribute NISCOPE_ATTR_ALLOW_MORE_RECORDS_THAN_MEMORY, setting this to true will allow you to have number of records greater than the memory size of the digitizer.
You can specify number of number of records using NISCOPE_ATTR_HORZ_NUM_RECORDS
Use NISCOPE_ATTR_FETCH_RECORD_NUMBER to acquire current record by linking it to index i of for loop.
Use NISCOPE_ATTR_FETCH_NUM_RECORDS to acquire only one record when trigger occurs.
So,
1) Set the program for multi-record acquisition
2) Once trigger occurs, acquire current record using NISCOPE_ATTR_FETCH_RECORD_NUMBER and acquire only one record per trigger using NISCOPE_ATTR_FETCH_NUM_RECORDS.
If not, you are not sampling at higher rates and you can also use a DAQ card with counter to acquire data using retriggerable acquisition.
Let me know if this helps you.
Kalyan
09-22-2005 07:15 AM
Hi Kalyan,
Sorry for my confuse.
I would like to take the waveform ampitude at each interval, like the attach file.
First rising edge start and raw data (sine wave ampitude) is saved then it continuous save raw data until second rising edge occure.
Now I am using CWiviScope to capture waveform, seem such function can't do that. Pulse and counter is not support for my device Ni5102.
Thanks for you reply.
09-28-2005 04:05 PM
10-26-2005 04:34 AM
Possible Reasons:
Invalid value for parameter or property.
Illegal relativeTo parameter. Only pretrigger and trigger are supported by this device."
The error is from trigger source or from niScope_Fetch??
Thanks
10-27-2005 01:53 PM