06-15-2013 02:09 PM
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) .
06-15-2013 03:58 PM
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).
06-15-2013 04:01 PM
@RavensFan wrote:
What does "P6.1" mean?
homework.........
06-15-2013 07:39 PM
@apok wrote:
@RavensFan wrote:
What does "P6.1" mean?
homework.........
Yep, this person is just looking for someone to do their homework...
06-15-2013 09:22 PM
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
06-15-2013 10:32 PM
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.
06-17-2013 03:37 PM
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
06-17-2013 03:41 PM
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.
06-17-2013 03:41 PM
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.
06-17-2013 03:56 PM - edited 06-17-2013 03:57 PM
Since it looks like you are using LabVIEW 2009, you are going to have to use the shift register and build array method.