LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to solve this matrix

hello every body 

I am mechanical enginner 

I want to solve the matrix that is defined in attachment.

the input for that is matrixes 

L(11,1) R(11,1) ,[uL,vL],[uR,vR] 

these matrix are real matrix

Q,q are matrixes should be calculated as expressed in attachment,

finally x,y,z are calculated by Q,q

thanks a lot

0 Kudos
Message 1 of 10
(3,943 Views)

Hi Andi,

the input for that is matrixes L(11,1) R(11,1) ,[uL,vL],[uR,vR]

Please attach a VI containing these "matrixes" (or just 1D/2D arrays!?). I'm not familiar with the terms (like "L1-L9ul") in your image…

LabVIEW also has math functions capable of vector/matrix calculations. You only need to use them…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(3,928 Views)

Matrix functionality is supported in LabVIEW. You can use 2-dimensional arrays.

Dot Product, A x B, Determinant, Transpose, Inverse etc. are all provided in the Linear Algebra Palette.

 

There's also a subset of functions specific to 2D arrays called Matrices, but I have less familiarity with these and they don't provide any unique functionality.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 3 of 10
(3,918 Views)

L,R are column vector

L=[-3.48845028529554
-0.282703685562299
-0.520489231065327
218.146752122647
-0.530792161138298
 2.43890392037980
-1.95433945714427
345.273760498868
-0.00201361097549307
-0.00186271332995921
-0.00541571356436761]

R=[ -1.93508012706909
-0.320457302730251
-2.98663896810971
459.985612877504
0.842803158697418
2.60825502958951
-1.61654709436979
316.975364422031
0.00219735984876813
-0.00111025990919384
-0.00518754314526754]

[uL,vL]=[290,300]

[uR,vR]=[200,376]

0 Kudos
Message 4 of 10
(3,903 Views)

hello every body

I am new to labview so would you please to write the code for the matrix:

I want to solve the matrix that is defined in attachment.

the input for that is matrixes 

L(11,1) R(11,1) ,[uL,vL],[uR,vR] 

these matrix are real matrix

Q,q are matrixes should be calculated as expressed in attachment,

finally x,y,z are calculated by Q,q

thanks a lot

L,R are column vector

L=[-3.48845028529554
-0.282703685562299
-0.520489231065327
218.146752122647
-0.530792161138298
 2.43890392037980
-1.95433945714427
345.273760498868
-0.00201361097549307
-0.00186271332995921
-0.00541571356436761]

R=[ -1.93508012706909
-0.320457302730251
-2.98663896810971
459.985612877504
0.842803158697418
2.60825502958951
-1.61654709436979
316.975364422031
0.00219735984876813
-0.00111025990919384
-0.00518754314526754]

[uL,vL]=[290,300]

[uR,vR]=[200,376]

0 Kudos
Message 5 of 10
(3,871 Views)

Unless you hire someone, no one will write your code.

-If you write your code and if you are stuck at some point then the community people will definitely help free of cost.

-Don't post duplicate posts.

-There are plenty of labview tutorials available you can refer to:

http://www.ni.com/getting-started/

http://www.learnni.com/

 

Edit: I am sorry if i am rude. I want you to try something and then ask.

Thanks
uday
0 Kudos
Message 6 of 10
(3,856 Views)

i have read them

but i can not

0 Kudos
Message 7 of 10
(3,850 Views)

Here you can start for matrices : https://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/using_matrices/

Here you can learn how to solove linear equatinos : https://zone.ni.com/reference/en-XX/help/371361H-01/gmath/solve_linear_equations/#details

There is some tutorial on matrices in LabVIEW : http://home.hit.no/~hansha/documents/labview/training/Linear%20Algebra%20in%20LabVIEW/Linear%20Algeb...

-So you start with something then you can build upon it.

Thanks
uday
0 Kudos
Message 8 of 10
(3,848 Views)

i have wrote it but there are too many wires and so confusing

0 Kudos
Message 9 of 10
(3,843 Views)

Hi Andi,

 

L,R are column vector

So they are simple 1D arrays in LabVIEW, aren't they? (Using correct wording also helps to solve tasks with LabVIEW!)

Do you want us to type all those values into numeric controls in FP elements?

Please attach a VI with all relevant data. It's your homework so please do as much work as possible to solve your task…

 

Edit 1: PLEASE DON'T send PMs on the very same problem! Stick with your thread!

Edit 2: NEVER create double posts on the very same topic! Stick with your thread! (I just merged both threads…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 10
(3,841 Views)