07-24-2008 07:16 PM
07-24-2008 08:36 PM
Hi,
It will be helpful if you could attach your VI. I can not know the values of those variables from the snapshot.
07-25-2008 07:52 AM
Yes please post some code showing waht you are doing (real data plus the 3d plot would be way-cool!).
With a 5-d array it may be hard to find the data.
Ben
07-25-2008 08:58 AM
07-25-2008 10:32 AM
hey guys,
i will try to make an example code of the program, hopefully by later tonight. It is a bit hard because I'll have to simulate the instrument results 🙂
thanks,
Marko
07-25-2008 12:40 PM
until then i will explain what exactly is going on...
I have 3 vectors (x, y and z) which create a 3d space, where i can move a 3 axis motor to. The program takes the three indexes of the current location (values of X, Y and Z) and then takes a capacitance measurement at different frequencies. This means each point in the 3d space has a vector of capacitances. What i was trying to show in the screenshot was modified from what i had working already, which was selecting just single capacitance from the capacitance vector and passing that into the 3D plot.
What I changed that to was to pass in the whole vector, add another dimension to the CapArray and then filter out in the next step the z-axis slice i want to see and the frequency i want to see (this way i can take measurements of different frequencies and see them at the same time). The 3D surface then gets the X-vector and Y-vector for the X and Y axis' and the Z-matrix gets the capacitance values at the X and Y vectors in the capacitance array.
07-25-2008 02:02 PM
07-25-2008 02:43 PM
Okay. I've got to ask. Where is the 5D array in your code? Your subject line mentions a 5D array, but your original screenshot and your posted code only shows a 4D array. Not that it may affect your questions much. But when you are talking about 4 or 5-D arrays, they are so complicated, it is hard to visual something like that in reality. You really have to have a clear idea as to what is the meaning of each of the dimensions.
By the way, your code is going to kill you in trying to debug with all of the stacked sequences it has. In this screen shot a see a single outer frame that does nothing but give decoration. Then a 4, 2, 8, 17 frame sequences all embedded one inside the other with some For loops tossed in in between. Then 2 more layers of embedded case structures. I see about 12 layers of structures which means the use of a lot of local variables. Some of the code is duplicated and would be good choices to turn in to subVI's.
07-25-2008 03:30 PM
yeah i know this is a deep piece of code, but if we can just ignore that for now that would be cool 🙂 I am not too experienced with labview yet and subvi's confuse me 🙂
I guess I mis-stated when i said 5D array, you are right I am using a 4 D array, but i thought i should call it 5 D because i have 5 variables - x,y,z, capacitance, frequency.
The frame (2/4) you have in the screenshot is the measurement frame, and that part i didnt write and am not modifying. the array generation comes after that, and thats where my array is.
07-26-2008 04:14 AM - edited 07-26-2008 04:17 AM