LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Integer Factors

Im new to labview and i need help with P6.10

 

Create a vi that determines all the factors of an integer that is input by the user. The results should  be displayed in an array. display only the factors on the front panel (no zeros) .

 

0 Kudos
Message 1 of 18
(4,771 Views)

What does "P6.1" mean?

 

The quotient remainder function would be a good function to use to determine if a value is a factor of another number.  (hint: remainder = 0).

0 Kudos
Message 2 of 18
(4,760 Views)

@RavensFan wrote:

What does "P6.1" mean?

 


homework.........

0 Kudos
Message 3 of 18
(4,758 Views)

@apok wrote:

@RavensFan wrote:

What does "P6.1" mean?

 


homework.........


Yep, this person is just looking for someone to do their homework...


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 18
(4,739 Views)

Im not looking for someone to do my homework. I just would like some help. To give me like a hint or a small push in the right direction. Or even link to sites or video anything will help

0 Kudos
Message 5 of 18
(4,726 Views)

Links

:

LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

 

Plus the tip about Quotient and Remainder.  You should be able to figure out the rest.

 

Figure out how you would do it without LabVIEW.  Then you can figure out how to code it in LabVIEW.

0 Kudos
Message 6 of 18
(4,718 Views)

Ok i got my vi to find the factors of the number i input. But now my question is how can i get the array to show just the factors. Right now it checks all the number up to the number i inputed but if a number isnt a factor then it shows a 0. is there anyway to just show the factor number

 

 

0 Kudos
Message 7 of 18
(4,679 Views)

Use Build Array inside the For Loop.  If you have a factor build it into the array.  If you don't, just pass the array through.  Maintain the array from one iteration to the next using a shift register.

 

Or, if you have LabVIEW 2012, you can use the Conditional Auto-indexing tunnel to determine whether the factor gets indexed in or not.

0 Kudos
Message 8 of 18
(4,677 Views)

Use Build Array inside the For Loop.  If you have a factor build it into the array.  If you don't, just pass the array through.  Maintain the array from one iteration to the next using a shift register.

 

Or, if you have LabVIEW 2012, you can use the Conditional Auto-indexing tunnel to determine whether the factor gets indexed in or not.

0 Kudos
Message 9 of 18
(4,677 Views)

Since it looks like you are using LabVIEW 2009, you are going to have to use the shift register and build array method.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 18
(4,674 Views)