LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to realize a matrix

Dear All,
 
I´m student in Vienna and am first time using LabView.
Can anybody help me realizing a matrix?
 
this would help me fulfilling my program.
 
thanks,
Predrag
0 Kudos
Message 1 of 8
(3,283 Views)
You're going to need to be more specific if you want some relevant help. A matrix is just a 2D array. Do you want to know how to create a 2D array? If so, you should check out the LabVIEW documentation

If tst is listening he's got a nice little paragraph he sometimes appends for newbies. tst, want to do the honors...?
0 Kudos
Message 2 of 8
(3,266 Views)
LabVIEW 8.0 has a new matrix data type. Is that what you mean?
 
You can create it as a simple 2D DBL array, then use the array-to-matrix tool to convert. The "mathematics...linear algebra" palette also contains a tool to create special matrices (e.g. Identiy, diagonal, etc.).
 
Tell us a little more about what you want to do and we will be able to help you better.
0 Kudos
Message 3 of 8
(3,256 Views)
To build a 2D array use one for loop within another for loop with auto-indexing enabled...check the "Build Array.vi" example shipped with LabVIEW.
0 Kudos
Message 4 of 8
(3,238 Views)

Dear Altenbach,

(by the way, do you speak German? )

 

sorry for late reply.  What you´re proposing sounds good, but I´m using the students edition of LabView 7.1. Is it possible in "my" LAbView Version also?

The task is to realize something like an "observer". Sending an input to a PT2 produces an output.

With 3 matrixes I shall be able to compute the result of this PT2.

 

Is it possible to send pictures through this forum? Then I can send a drawing.

 

with best regards,

Predrag

0 Kudos
Message 5 of 8
(3,195 Views)


@Predrag wrote:
(by the way, do you speak German? )
I understand german and speak swiss-german. 🙂


@Predrag wrote:
What you´re proposing sounds good, but I´m using the students edition of LabView 7.1. Is it possible in "my" LAbView Version also?

The task is to realize something like an "observer". Sending an input to a PT2 produces an output.

With 3 matrixes I shall be able to compute the result of this PT2.


Yes, the matrix datatype is really nothing special, you don't really need it. In Labview 7.1 You can do everything you need with simple 2D arrays instead. However, I don't know what a "PT2" is. Can you explain?


@Predrag wrote:
Is it possible to send pictures through this forum? Then I can send a drawing.

Yes, simply attach your picture using the attachment box below the message window. You can also attach your VI if you want.

0 Kudos
Message 6 of 8
(3,190 Views)

hello altenbach,

with the 2D arrays you mean the "Transpose 2D Array" in the Array-Functions or any other Function? Unfortunately I have only the getting started manual, can you send me any documentation to see how to use 2D Arrays?

In the attached picture you can see that I need more matrix and therefore need to now how to work with them.

I´m working on the VI right now, will send it later, thanks.

 

with best regards,

Predrag

0 Kudos
Message 7 of 8
(3,171 Views)
2D arrays aren't really all that complicated. You can implement your state space with 2D arrays, otherwise known as matrices.

The manuals for LabVIEW are installed as PDF files in the installation directory. Look for a "manuals" directory. If you installed it in the default location this would be at "C:\Program Files\National Instruments\LabVIEW (version)\manuals". They are also on the NI website:

7.1
8.0

0 Kudos
Message 8 of 8
(3,144 Views)