LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NEW USER : Using MATRICES

Hi,

I have downloaded the LabView 6.1 and first time in my life I am using it.

First of all I am looking for online tutorial with examples, if you point me
a site that would be great.

Now here is my question. I have transfer matrix in my code. So 1 angel data
is input to the FUNCTION and I want to get output as a matrix and after I
get it I wanto make matrices operations like multiply.

I check out the array code and if I have to use 3x3 matrix I have to give
the values like that

int16 a[3][3];
a[1][1]=0;
a[1][2]=sin(theta);
a[1][3]=cos(theta);
.... (and so on)

Can you please advice me steps to do this operation?

If it is a too easy question please just point me a book or a website.

TIA


regards,
0 Kudos
Message 1 of 6
(3,354 Views)
For matrix math, look at the linear algebra VIs.

To create an array use "initialize array". To replace elements in an array, use "replace array subset". You can save a step by using "build array", to construct it out of all the values you want.

Good luck,

Jim
0 Kudos
Message 2 of 6
(3,354 Views)
I have a simple VI that demonstrates some of the methods for generating arrays in LabVIEW. It is a simple example but it illustrates 3 different methods for generating arrays.
0 Kudos
Message 3 of 6
(3,353 Views)
Hello:

I have ECG recordings that last from few minutes to hours all of them are digitized in some binary format each data point in corresponding time of acquisition (msec). Now, if I read them into an array from a binary file reader VI they span several hundred columns (a row vector) of data points each is like in the 10e9 magnitude (from direct reading) now I would like to rescale them back to mV level by multiplying each of the data points by some constant factor. I know that  I have to create an equivalent order vector to have a point by point multiplication I would like to ask for suggestion on how to efficiently handle this?

Thanks,

Berns B.
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 4 of 6
(3,273 Views)


@Dr.Berns wrote:
Hello:

I have ECG recordings that last from few minutes to hours all of them are digitized in some binary format each data point in corresponding time of acquisition (msec). Now, if I read them into an array from a binary file reader VI they span several hundred columns (a row vector) of data points each is like in the 10e9 magnitude (from direct reading) now I would like to rescale them back to mV level by multiplying each of the data points by some constant factor. I know that  I have to create an equivalent order vector to have a point by point multiplication I would like to ask for suggestion on how to efficiently handle this?

Thanks,

Berns B.


Use the multiply node from the numeric pallette. If you wire a scalar constant to the second input it multiplies an  n-dimensional array elementwise with that constant. See attached example.


-Franz


0 Kudos
Message 5 of 6
(3,270 Views)
Franz thank you! Now how could I possibly missed that and actually did. I was clicking my wiring tool so that my multiplier was requiring an array and NOT a constant!
Here is the code snippet diagram. You might guess it right I was converting an ECG record to a DAC output for injecting it to my analog input channel.

Thanks again.

Berns B.
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 6 of 6
(3,259 Views)