Check out our General Code Repository Files. Also, before posting here, check to see if your post doesn't fit into another subforum by category.
Tags |
(This content has not been tagged yet)
|
![]() |
Aug 18 2008, 11:49 AM
Post
#1
|
|||
![]() Active Premium Member ![]() Posts: 24 Joined: 7-June 04 From: Milton, Ontario Member No.: 452 Using LabVIEW Since:1994 LV:8.5.1 ,. ,.
|
In my 14 years of LabVIEW programming, I think I've only twice needed to use a 3D Array.
I wanted to brag about the latest one, and see how others have used them. In this case, I was working on a LabVIEW driver for a company which makes custom DAQ equipment. This particular device has an oversample mode, so that their DLL spits out data in a 1-D stream as follows: 1a 1b 1c 2a 2b 2c 1a 1b 1c 2a 2b 2c ... where in this case: Xa, Xb, Xc are oversamples of channel X. After fighting with some very complicated preinitialization and insert/replace ideas, I realized that this was a 3D array of data. M = # repeats N = # of channels O = # of oversamples I reshaped the 1D array to a 3D with inputs: M, N, O, then did a double nested indexing for loop with a Mean function at the centre. Worked like a charm! Anyone else regularly using 3+ dimension arrays? Ben -------------------- Ben Zimmer
Enable Training and Consulting, Inc. Providers of www.lvmastery.com online training and consulting.
|
||
|
|
|||
| Ad |
Aug 18 2008, 11:49 AM
Post
#
|
||
|
|
|
||
|
|
|||
Aug 18 2008, 03:19 PM
Post
#2
|
|||
|
Extremely Active Premium Member ![]() Posts: 265 Joined: 1-December 04 Member No.: 1144 Using LabVIEW Since:1992 LV:8.5 ,7.1.1 ,.
|
Anyone else regularly using 3+ dimension arrays? Ben Not recently, but in years past I quite commonly used four and five dimensional arrays as the test case matrices for automatic storage triggering for data acquisition in wind turbine test projects. (For each bin of wind speed, For each bin of wind direction, For each bin of windspeed turbulence, For each bin of wind direction turbulence, For each of a number of possible turbine controller states, store up to so many ten minute samples of high bandwidth structural loading data.-- One five dimensional array for the number of samples desired, another for the number of samples obtained.) But recently, I've been able to handle everything with two or less dimensions. Best Regards, Louis.
|
||
|
|
|||
Aug 18 2008, 05:14 PM
Post
#3
|
|||
![]() Extwemely Active Premium Member ![]() Posts: 1632 Joined: 23-January 05 From: Here Member No.: 1431 Using LabVIEW Since:2003 LV:8.6 ,7.0 ,.
|
I remember using a 4D one once (it had a changing parameter and each time it was changed it had several runs with each run recording more than one value). My boss also did a 5D once, but I don't remember the details.
-------------------- More than meets the eye...
|
||
|
|
|||
Aug 19 2008, 06:37 AM
Post
#4
|
|||
|
More Active Member Posts: 42 Joined: 3-December 04 From: Bangalore, India Member No.: 1168 Using LabVIEW Since:2002 LV:8.20 ,8.0 ,7.1
|
Multi dimensional arrays works fantastic most of the occasion. I never tried using 4D or 5D but have used 3D for generating simultaneous outputs using a AO card.
-------------------- Regards
Guru Certified Labview Developer
|
||
|
|
|||
Aug 24 2008, 01:35 AM
Post
#5
|
|||
|
Active Member Posts: 15 Joined: 12-October 05 Member No.: 3209 Using LabVIEW Since:1997 LV:8.20 ,8.0 ,7.1
|
... Anyone else regularly using 3+ dimension arrays? Ben In one of my DAQ systems I transfer data packages from the DAQ loop to a TCP-server loop via a functional global used as FIFO buffer. Each data package is a 2D array, AI channels x samples, therefore the buffer uses a 3D array where the third dimension is the position of the 2D package in the buffer. Simple and efficient. G
|
||
|
|
|||
![]() ![]() |
| Time is now: 1st December 2008 - 09:53 PM |