LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

urgent urgent

Create a VI that graphs the function sin x where x = 0…nπ and the integral
     nπ
y = ∫sin x dx.
     0
 The value of n should be an input on the front panel?

can any one do this for me????
0 Kudos
Message 1 of 16
(6,041 Views)
(Yes, but we are not a service for homework problems.)
 
What do you have so far? What specific problem is holding you up?
0 Kudos
Message 2 of 16
(6,033 Views)
this wat i have

i dont think i am getting a right out put
0 Kudos
Message 3 of 16
(6,028 Views)

I think you want a graph with two plots (sin(x) and the integral) vs. x. Use a waveform graph and plot the two functions. Adjust the x-axis multiplier to conform to your x array. (You can also use a tool from the signal generation palette to make your sine function.)

Right now you graph the sine function vs. its integral, something I cannot find in the problem description. Instead if doing a numeric intergration, you could also solve the integral and generate the intergral function explicitely.

You don't have a control for N as required

You have a control for the "initial condition" which is not needed.

You probably want more than 15 points for a nice curve representation.

0 Kudos
Message 4 of 16
(6,017 Views)
thank you very  much
i got the results for both the questions.

i appreciate your help.

have a good one.
0 Kudos
Message 5 of 16
(5,978 Views)

Can you please share the vi 

0 Kudos
Message 6 of 16
(2,803 Views)

Hi spoddar,

 

do you really expect that VI which was created 15 years ago?

 

Who are you asking when you write "you"?

What is your specific problem?

Did you read the other messages in this thread?

Did you try to recreate the VI on your own?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 16
(2,799 Views)

I tried to create vi but failing for integral part how to set limits from 0 to npi. If spasu can share it will be helpful.

 

0 Kudos
Message 8 of 16
(2,734 Views)

Hi spoddar,

 


@spoddar94 wrote:

I tried to create vi but failing for integral part how to set limits from 0 to npi. If spasu can share it will be helpful.


spasu visited this forum the last time 15 years ago.

I guess (s)he will not receive your request, and I also guess (s)he will not even have that VI available anymore…

 

 

When you have problems with your code then you should attach your code and ask for specific help for your code!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 16
(2,725 Views)

@spoddar94 wrote:

I tried to create vi but failing for integral part how to set limits from 0 to npi. If spasu can share it will be helpful.

 


@spasu originated this Post in 2007, and hasn't posted since.  Like you, he (or she) was probably "learning LabVIEW", and made the effort to understand the advice.  For us to help you "cheat" and provide the answers to you will not help you to learn LabVIEW.  However, if you make a real effort, and post your code (which means "attach the VI or VIs that you've created and explain where you are stuck"), we might be able to give you some guidance so you can learn to "do it yourself".

Bob Schor

0 Kudos
Message 10 of 16
(2,721 Views)