06-17-2013 04:01 PM
Of course you should always have one of these on the thumb drive on your keychain.
06-17-2013 06:24 PM
fxgbhsfh wrote: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) .
Are you looking for all possible integer factors or for all prime factors (a more typical problem).
06-19-2013 12:56 PM
Not sure what this is
06-19-2013 01:01 PM
That is an empty array constant. Put an array constant down on your block diagram. Do the same for a numeric constant. Now drag the numeric constant into the array constant. You will need to set the numeric representation to I32 to make all of the data types correct.
06-20-2013 03:34 AM
@crossrulz wrote:
That is an empty array constant. Put an array constant down on your block diagram. Do the same for a numeric constant. Now drag the numeric constant into the array constant. You will need to set the numeric representation to I32 to make all of the data types correct.
Of you could just wire up everything else first, then right-click the left shift register and select "create constant". One step! 😄
12-04-2013 04:43 PM
What is the 1, for the first case, and the false for the second case.
12-05-2013 04:28 PM
Hi HylerTeck,
Here are the screenshots of the two cases.
The example is a VI Snippet. VI Snippets, as a png file, can be saved to your computer and then dragged to an empty VI. A VI Snippet is a special png file that contains the LabVIEW code.
True Case:
"1" Case
Regards,
Jordan G.
12-05-2013 04:46 PM
HylerTeck wrote:
What is the 1, for the first case, and the false for the second case.
1, Default So the remainder of Number and "i"+2 is something other than zero. (So multiplying "I+2 by any number will not = number- it is not an integer factor - toss it out!)
2. i+2 = Q we don't need to duplicate the square factor. e.g if Number is 25 and i is 3 Quotient and i+2 are both 5
(Wow that was a long time between bumps)