ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview

Hi,guys!Can you help for this task?

1. Develop a virtual instrument that:
− generates a two-dimensional array of size M× N from random numbers
in the range [-100: 100] according to the individual task option. The matrix size parameters M and N are entered from the keyboard.
− displays the original matrix on the front panel.
− additional parameters, if present in the individual task option, are entered using the controls on the front panel.
− performs actions according to the individual task using nested
loops or built-in functions
LabVIEW for working with arrays.
− displays the program's results on the front panel, explaining each
value using the individual task's wording.
2. The program should have at least two sub-instruments.

I. Form matrix B from the elements of matrix A. Each element b ik should be equal to the maximum element of matrix A from the area defined by the indices i k, according to the picture. Output the resulting matrix. II. Make and output a one-dimensional array of the minimum modules of non-zero elements of each row of matrix A. If all elements in a row are 0, the corresponding element of the one-dimensional array should be 0.

zhako_0-1759773857456.png

 

0 Kudos
Message 1 of 16
(289 Views)

Seems like a beginner homework that most here can complete in minutes. What have you tried? Where did you get stuck?

 

About terminology:

 

  • Every post here is about LabVIEW, so a subject of LabVIEW is redundant and uninformative. Next time come up with a better subject. Also note the correct letter-case of the word.
  • In LabVIEW, a "matrix" is a special data type for linear algebra. I am sure you just need a 2D array.
  • Inputs are entered via front panel controls.
  • The correct term is subVI, not "sub-instrument".
  • What are "minimum modules"?
  • How are you supposed to "explain" the outputs? (free labels?)
0 Kudos
Message 2 of 16
(281 Views)

i couldn^t do

0 Kudos
Message 3 of 16
(275 Views)

Understood.

 

What was the problem and how far did you get:

 

  • Installing LabVIEW?
  • creating a new VI?
  • Creating controls and indicators?
  • Implementing the diagram logic?

 

Have you done any basic tutorials? Looked at your class notes?

0 Kudos
Message 4 of 16
(271 Views)

Yes I have a labview version 2012 and i made a new vi then  create num.controls,array,cluster,for loop.fartheri dont understand

 

0 Kudos
Message 5 of 16
(261 Views)

This seems like obvious homework to learn array handling, because these are not typical scenarios found in the wild. If programming is not your thing, why do you even want to do this?

 

I would recommend to Start here

 

We will be happy to point you in the right direction once you shows us what you tried and ask specific questions. What exact part don't you understand?

0 Kudos
Message 6 of 16
(246 Views)

Just trying to follow up if you made any progress.

 

Are these random number (-100 ...100) integers?

Have you ever found out what "additional parameters" are?

0 Kudos
Message 7 of 16
(157 Views)

Here is a simplified draft for the main tasks. See if you understand the main ideas and adjust to your needs.

 

Each of the second loops can be turned into a subVI. I assume you know how to do that.

 

altenbach_0-1759856796262.png

 

altenbach_1-1759856862617.png

 

 

Message 8 of 16
(144 Views)

thank you somuch

0 Kudos
Message 9 of 16
(84 Views)

zhako_0-1760026455178.png

can you share your block,because mine is with errors

0 Kudos
Message 10 of 16
(72 Views)