LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview

Solved!
Go to solution

how do i design a VI Which takes in a user input integer between 0 to 512 and displays the conversion to binary, octet and hexadecimal

and how do i developed a VI program functions like a stop-watch with these 

Requirement

  • User can start the stop – watch with push of the “Start” button
  • User can stop the stop – watch with push of the “Stop” button
  • “Reset” brings the clock counter to zero
0 Kudos
Message 1 of 3
(273 Views)

Hi Jaydn,

 


@Jaydn wrote:

how do i design a VI Which takes in a user input integer between 0 to 512 and displays the conversion to binary, octet and hexadecimal


By using an integer control and 3 integer indicators. (LabVIEW allows different display moodes/radixes to be used with numeric elements.)

 


@Jaydn wrote:

how do i developed a VI program functions like a stop-watch with these 

Requirement

  • User can start the stop – watch with push of the “Start” button
  • User can stop the stop – watch with push of the “Stop” button
  • “Reset” brings the clock counter to zero

By learning LabVIEW and studying all those example VIs.

You may also search for relevant threads in this board as you asked a very generic and often asked question for this beginner homework!

 

(You need a loop, 3 buttons on a frontpanel, a shift register at the loop and one or more case structures. Look up those keywords in the LabVIEW help!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(267 Views)
Solution
Accepted by topic author Jaydn

@Jaydn wrote:

how do i design a VI Which takes in a user input integer between 0 to 512 and displays the conversion to binary, octet and hexadecimal

and how do i developed a VI program functions like a stop-watch with these 

Requirement

  • User can start the stop – watch with push of the “Start” button
  • User can stop the stop – watch with push of the “Stop” button
  • “Reset” brings the clock counter to zero

In addition, it is important to define the problem fully. Even a master programmer cannot tell what should be done.

 

  • What is the datatype and display format of the integer? (I guess it is a blue numeric datatype, but it could even be a string containing characters 0..9 exclusively.
  • What should happen if the input is >512 or negative?
  • What is the datatype of the displays for the conversion (numeric with appropriate display format? A formatted string?)

A trivial stop watch implementation seems to be a different problem and all you need is decide on a suitable code architecture (e.g. state machine!), mechanical action setting of the buttons, and a time display with the required resolution (seconds? milliseconds?). A stop watch is a typical beginner problem and you should have learned all required parts, so look at your course notes. A useful skill is also how to search the forum (or even Google!) for existing examples. Have you tried? (Note that your teacher knows what examples exists, so make sure to  personalize the code and be prepared to explain the purpose and function of every single code element used!)

0 Kudos
Message 3 of 3
(218 Views)