Jump to content

creating a graph and reading from it


shashank

Recommended Posts

Dear People,

i am very new to labview and i am using version 8.2. I wnt to create a graph with a data set with values as given below.

-6 --> 0,002472623

-5 --> 0,006692851

-4 --> 0,01798621

-3 --> 0,047425873

-2 --> 0,119202922

-1 --> 0,268941421

0 --> 0,5

1 --> 0,731058579

2 --> 0,880797078

3 --> 0,952574127

4 --> 0,98201379

5 --> 0,993307149

6 --> 0,997527377

i want to plot this values on a graph and then when i give a inpout asking for the value of 5,5, it shud return the value on the y axis. can anyone please help me with this VI. i will be highly obliged.

Link to comment

QUOTE(shashank @ Sep 12 2007, 01:20 AM)

In the menubar in LabVIEW, go to Help >> Find Examples... >> (Search Tab) and search for "XY graphs". That should get you some examples on how to use the XY Graph indicator.

QUOTE(shashank @ Sep 12 2007, 01:20 AM)

i want to plot this values on a graph and then when i give a inpout asking for the value of 5,5, it shud return the value on the y axis. can anyone please help me with this VI. i will be highly obliged.

Look in your function palettes under Mathematics >> Interpolation & Extrapolation.

Browsing the palettes and wandering around in LabVIEW's Help facilities are the first things I do when facing a problem I don't know the answer to. :thumbup:

Link to comment

You will need to use the XY Graph function. This will be found in the palettes. If you turn on the context help (Ctrl-H) when you pass your cursor over the XY graph icon you will see in the context help the data formats needed to serve the numbers to the graph. Create and fill out this datatype with your data, wire it to the graph and run the VI, the data will be displayed in graph form.

The normal first step is to try and find the answer yourself by looking in the Help section, finding VI Examples, and querying the knowledge base at www.ni.com and other places you will learn about, after you have tried these things ask for help in the forums. It is generally felt that you should expend similar or more effort than the person answering your question will have to expend.

This request has the sound of someone asking for help with their school work which always raises the ire of someone like...me!

Also, this question is inappropriate for the Application Design & Architecture forum.

A basic question such as this one should be placed in the LabVIEW general forum.

Mike

QUOTE(shashank @ Sep 12 2007, 04:20 AM)

Dear People,

i am very new to labview and i am using version 8.2. I wnt to create a graph with a data set with values as given below.

-6 --> 0,002472623

-5 --> 0,006692851

-4 --> 0,01798621

-3 --> 0,047425873

-2 --> 0,119202922

-1 --> 0,268941421

0 --> 0,5

1 --> 0,731058579

2 --> 0,880797078

3 --> 0,952574127

4 --> 0,98201379

5 --> 0,993307149

6 --> 0,997527377

i want to plot this values on a graph and then when i give a inpout asking for the value of 5,5, it shud return the value on the y axis. can anyone please help me with this VI. i will be highly obliged.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.