キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/6
3,698件の閲覧回数
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 件の賞賛
メッセージ2/6
3,698件の閲覧回数
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 件の賞賛
メッセージ3/6
3,697件の閲覧回数
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 件の賞賛
メッセージ4/6
3,617件の閲覧回数


@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 件の賞賛
メッセージ5/6
3,614件の閲覧回数
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 件の賞賛
メッセージ6/6
3,603件の閲覧回数