Discussion:
maximum sample size pxi 6561
(too old to reply)
Timothy 123
2006-11-30 20:40:11 UTC
Permalink
Hi,

For the pxi 6561, the maximum number of samples that can be acquired
set by the nihsdio configure acquisition size is depedent upon the
number of records for multirecord acquisition. For 1 record, this
maximum number of samples is 16777040. It 2 records, it is 
8388432. These values do not divide evenly, 16777040/2 = 838520 which
is greater than 8388432. I assume the extra space is taken because of
the extra memory required to make an empty record. Is there a formula
for determining the maximum sample size as a function of the records or
is this information tabulated somewhere.

Thank you,

-Tim
Nicholas B
2006-12-01 21:10:19 UTC
Permalink
Hi Tim,
I believe I found out where you got those numbers from...about 10 minutes after my post!  Please take a look at the attached VI...the number of samples per record is determined by the number of records and your data width.  Please let me know what data width you are using.  You can use this VI and read from the data width property instead of writing to it.  The different data widths correspond to SDR and DDR.  Also please let me know what memory size card you have: 2, 16, or 128MB.  Thanks!


6561 Record Sizes.vi:
http://forums.ni.com/attachments/ni/70/5967/1/6561 Record Sizes.vi
Nicholas B
2006-12-05 00:10:14 UTC
Permalink
Hi Tim,
Attached you will find the VI saved for version 8.0.  I was unable to save for version 7.1.  Please run the VI and investigate the effects of changing the data width and number of records.  By inserting larger numbers in the "samples per record" control, you can get those error messages to show up.  The maximum value seems to rely on factors other than data width and number of records. One thing to notice is that by setting the data width to 2 bytes, the max number of samples per record actually doubles to 33,554,256 (for one record).  This is explained in the KB I link to in the next paragraph.
With a fixed data width, the maximum number of samples per record does not seem to follow a specific pattern or formula strictly based on the number of records.&nbsp; There will be a certain amount of overhead used by the device, but that amount of overhead fluctuates by different amounts depending on the number of records.&nbsp; It also does not seem to follow an even/odd pattern either.&nbsp; I will continue to investigate to try and determine the formula/pattern. Feel free to take a look at <a href="http://digital.ni.com/public.nsf/websearch/B57E89B1754BE64386256FF2006AEED1?OpenDocument" target="_blank">this KB</a> for more information on data width.&nbsp;
With regard to your other question, it is not possible to configure an acquisition larger than the maximum, even if you are fetching fast enough to ensure the memory does not fill up.&nbsp; The advantage of fetching the waveform before acquisition is complete is to (a) view the data quicker (ie not have to wait until the entire waveform has been acquired) and (b) to ensure no data is overwritten if you are acquiring within a loop.&nbsp;


6561 Record Sizes_v80.vi:
http://forums.ni.com/attachments/ni/70/5987/1/6561 Record Sizes_v80.vi
Nicholas B
2006-12-01 21:10:16 UTC
Permalink
Greetings Tim,
I am wondering where you got those numbers from...the 16777040 and 8388432.&nbsp; According to the specification sheet and using a property node in LabVIEW, the total acquisition memory size for the 6561 is 16777216 samples.&nbsp; Also, most HSDIO devices have an acquisition record quantum and an acquisition minimum record size.&nbsp; For this board the minimum size and quantum&nbsp;are both&nbsp;one sample, but HSDIO allocates at least 128 bytes per record.&nbsp; Are you using this board in single data rate (SDR) or double data rate (DDR) mode?&nbsp; SDR would mean 16 bits per sample and DDR would mean 8 bits per sample.&nbsp; So the mode you are using would determine the record sizes.&nbsp; Please let me know, and I will continue to look into your question.&nbsp;
Regards,
Nicholas B, National Instruments
Loading...