LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW

Do you have the formula but problems creating a graph?

 

See if this can give you some ideas (make sure you fully understand every part and can explain it to the teacher!)

 

altenbach_0-1762281470704.png

 

Again:

 

  • Don't use a subject of LabView in a LabVIEW forum (and use the correct lettercase!)
  • Don't put your question inside code tags.
  • You can embed images directly into posts, but please use filenames with the Latin alphabet for attachments.
  • Talk to your classmates.

 

Message 21 of 31
(134 Views)

Darkhann_0-1762281858900.png

Darkhann_1-1762281884806.png

Sorry to bother you, you can make 2 more schemes if it doesn't bother you, if you have time, if not, just refuse, I'll understand everything.You need to make a graph of a given area.

0 Kudos
Message 22 of 31
(113 Views)

foreverxyoung_0-1762282886074.pngforeverxyoung_1-1762282902268.pngforeverxyoung_2-1762283045606.png

Привет, ребята! Подскажите, пожалуйста, где я ошибаюсь в формуле? Мне нужно построить график, как на первом фото. Не могли бы вы прислать мне правильную формулу?

0 Kudos
Message 23 of 31
(153 Views)

You won't learn LabVIEW by having us do your class exercises for you.  Do them yourself, and when if they don't work, post them (we prefer that you post VIs, but many of us, myself included, aren't running LabVIEW 2025, so you should "Save for Previous Version" and specify 2019 or 2021 for reaching more of us "old-timers") and we'll criticize your efforts so that you can "learn from your mistakes"..

 

Bob Schor

Message 24 of 31
(89 Views)
  • I recommend to post in English.
  • All you probably need is one more condition, right?

 

(There has been a flurry of posts from your classmates about this and similar problems. Maybe sit together and discuss.)

Message 25 of 31
(135 Views)

@altenbach wrote:

(There has been a flurry of posts from your classmates about this and similar problems. Maybe sit together and discuss.)



This cracked me up! haha. Thanks!

0 Kudos
Message 26 of 31
(126 Views)

Sorry, I thought I wrote it in English, but it immediately translated into Russian. I don't know the people who posted the problem; maybe we all follow the same curriculum. If it's not too much trouble, could you tell me what's wrong with the formula?

0 Kudos
Message 27 of 31
(115 Views)

@foreverxyoung wrote:

If it's not too much trouble, could you tell me what's wrong with the formula?


You are missing the condition that a point also needs to be above the line going through points [-3,0] and [0,-3].

 

Can we assume you fully understand the rest of the code that you apparently mostly copied from here?

0 Kudos
Message 28 of 31
(61 Views)

What kind of graph?

 

To reproduce the shaded areas, continue where we started and just modify the logic.

 

First graph:

A point needs to be below the parabola AND above that straight line if x is negative and above overwise.

(I assume you now the formula for the two curves, right? Simple math!)

 

Second graph:

For each circle: points are inside if their distance to the center is less that the radius.

For the square, points are inside if x and y are in the correct range.

The rest are simple boolean operations:

  • upper left area: inside that circle AND inside square
  • Lower right area: inside that circle AND NOT inside square.

We gave you all the tools, now just assemble it into code!

0 Kudos
Message 29 of 31
(57 Views)

Admin111_0-1762322042810.png

 

0 Kudos
Message 30 of 31
(63 Views)