Have this problem. Any help would be appreciated. thanks!
Construct a VI that performs number base conversions and then writes the resulting conversion
to a text file. The front panel should have the following components:
a.
A numeric control into which the user will enter the decimal value to be converted.
Change the representation of this control to
Unsigned Integer
(U64) so that the user will
not enter any negative or non-integer numbers.
b.
A menu ring to select from
Binary
,
Octal
, or
Hexadecimal
conversion.
c.
A string indicator to display the result of the conversion.
d.
A file path control to enter the name of the text file to which the results are to be saved.
e.
A Boolean button which causes the VI to write the results of the most recent conversion
to the designated file when TRUE. You will need to change the mechanical action of this
button so that it does not remain depressed after the write request is read by the VI.
f.
A STOP button which ends the VI execution. The program should perform as many
conversions and file writes as the user requests, until the stop button is pressed.
Each time a new file write is requested, concatenate a sentence to the end of the text file
conveying the most recent result. For example, the sentence “Decimal 7 is 111 in binary” would
be added to the file that converted the number 7 to binary. Be sure that you VI opens the text
file once at the beginning of the VI and closes it once just before stopping. You should not open
and close the file with each loop iteration.
To convert a decimal number to a different base, use a WHILE Loop that performs successive
division by 2, 8, or 16 for binary, octal, and hexadecimal, respectively and outputs the