LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Speed issue/ messy code

Here's what I have done so far... but I do have more questions.
1)Where can I find those "typedefed cluster" to bundle/unbundle? because anything I tried doesnt work
2)What's wrong with trying to get my matrix elements!?


0 Kudos
Message 11 of 15
(733 Views)

@tonh wrote:
Here's what I have done so far... but I do have more questions.
1)Where can I find those "typedefed cluster" to bundle/unbundle? because anything I tried doesnt work

There's nothing to find. You have to create a custom control that is a typedef. Please see the LabVIEW Help on how to create custom controls.


2)What's wrong with trying to get my matrix elements!?

I'm sorry, but I don't understand this question. What are you referring to?
0 Kudos
Message 12 of 15
(725 Views)
I took this screenshot out of coefficients.vi
The vi circled in purple is giving me a 4x4 matrix then with the vi circuled in green I ask for one element (which position is first row, first colum) of that matrix, and it works just fine. The problem is when I want any other element (as in the vi circled in red) it doesnt work.
As for the typedef, I'm gonna try to read more on that...thanks 🙂
tonh
0 Kudos
Message 13 of 15
(722 Views)
Array indexing in LabVIEW starts at 0, not 1. So, if your green part is supposed to be the first row, first column, then those constants need to be both zero.

Note that the Index Array is expandable:


Also, the indexing values are automatically incremented, starting at 0. Thus, the following for a 1D array returns the elements in sequence.

You can read more in the LabVIEW Help.


Message Edited by smercurio_fc on 07-15-2008 04:18 PM
Download All
Message 14 of 15
(715 Views)
merci beaucoup!
tonh
0 Kudos
Message 15 of 15
(690 Views)