Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted

09-17-2013 09:17 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

I have a lab that I have been working on and just cannot figure out. If anyone had any input it would be greatly appreciated.

The lab is to: Develop a VI that computes the value of sin(x) at a given x using n terms of the series expansion of the sine function.

-Create a control which represents the value of n in the sin(x) equation

-Create an indicator to show the result of sin(x)

I have been playing around with loops and cannot figure it out.

Thanks

Highlighted
Options

09-17-2013 09:30 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

The series expansion is a number of x-exponents and factors, right? According to your instruction you should use N of those.

So, make a list of the exponents and factors (actually you only need the factors), loop through them with N as loop counter and x^i * factor, sum up the result.

/Y

Highlighted
Options
**Putnam**

Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.

Currently using LV 2012-LabVIEW 2018, RT8.5

LabVIEW Champion

09-17-2013 09:47 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Also, post the code you have. We will guide you, but not do the work entirely. 😉

Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.

Currently using LV 2012-LabVIEW 2018, RT8.5

Highlighted
Options

** LabVIEW Champion. It all comes together in GCentral **

**What does "Engineering Redefined" mean??**

09-17-2013 10:36 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

As a first step, find the taylor series expansion for sin(x). Do you have that?

@waltonj1 wrote:

I have been playing around with loops and cannot figure it out.

All you probably need is a single loop, not loops. Show us what you have and we can probably point you in the right direction.

(If you would have searched the forum, you probably would have found some interesting discussions, such as this one.)

Highlighted
Options

09-17-2013 11:34 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

I read that but it did not help too much. Heres the series expansion

Here is the problem (#2)

Here's what I have now. Please ignore the formula I have in the loop, I believe it is wrong...

Highlighted
Options

09-17-2013 11:39 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

I see that the proper capitalization of LabVIEW is not being taught these days....

Highlighted
Options

09-17-2013 11:44 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

I always do the proper capitlization myself! You can see by the name of the file 🙂

Highlighted
Options

** LabVIEW Champion. It all comes together in GCentral **

**What does "Engineering Redefined" mean??**

09-17-2013 11:57 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

@waltonj1 wrote:

I read

thatbut it did not help too much.

What is "that"?

Highlighted
Options

09-17-2013 12:02 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Highlighted
Options

09-17-2013 12:09 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

How exactly do I go about that? Sorry...new

Thanks