LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI Construct HELP

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
 
 
0 Kudos
Message 1 of 4
(2,076 Views)

 this sounds like homework.   And very poorly constructed homework at that!

 

Just use a numeric with an integer type!  Set the display format with the right click options that are built in and use the text.text property to write to file.  All the requirements are met!


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 4
(2,055 Views)

Your assignment looks pretty straightforward.  What seems to be your issue?


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 3 of 4
(2,052 Views)

@JÞB wrote:

 this sounds like homework.   And very poorly constructed homework at that!

 

Just use a numeric with an integer type!  Set the display format with the right click options that are built in and use the text.text property to write to file.  All the requirements are met!


I was thinking you should just use Format Into File and you can set the format for the integer however you need.


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 4
(2,051 Views)