LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Channel Arrays under DAQmx -and seperately- build array vs. insert into array

Hi All,
 
1) Under legacy I can wire a physical channel array to AI Config.  What is the DAQmx analogy?  I cannot not wire an array to DAQmx Create Channel.  The onlt way I know is to create a seperate create channel vi for each channel I want.  There must be an easierway to do this.
 
2) Which opperation uses more memory: build array or insert into array?  I have a very large packet of data in a 2-d array (call these columns y-data).  The corresponding time data is in a seperate 1-d array.  I need to tack this column to the y-matrix using minimal RAM.
 
Thanks for all the help,
Ab
Ab at Sporian dot com
0 Kudos
Message 1 of 3
(2,770 Views)

Got the first part!!!

Shift register and a for loop to build up the channels.

Anyone know the answer to the memory question?

 

Thanks,

Ab

0 Kudos
Message 2 of 3
(2,755 Views)
Ab,
 
Are you interested in memory allocation since you plan on working with large arrays, or just want to be efficient?  Smiley Happy  In any case both the Build Array and Insert into Array functions will allocate extra memory since they are creating a new array.  The most efficient method should be to allocate a three column 2-D array and replace a column of with your 1-D instead of building. 
 
There is a tool that will give you some guildlines when there is memory being allocated.  If you select Tools >> Advanced >> Show Buffer Allocations... (Tools >> Profile >> Show Buffer Allocations for LabVIEW 8), the buffer allocation is shown by little black dots.  If you would like some help about this function there is some very good documentation in the help file. 
 
Hope this helps!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 3 of 3
(2,740 Views)