Jump to content

MUSA

Members
  • Posts

    1
  • Joined

  • Last visited

LabVIEW Information

  • Version
    LabVIEW 2009
  • Since
    2009

MUSA's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello every one. I want to do the following procedure in LabView, and I shall be thanks full if some one can help me to do that . I am new user of LabView. Steps: I am receiving a two byte data in LabView from the hardware I am using (the data is the input voltage to the board). I want to 1. Switch the positions of the data bytes and then convert the decimal value in these two bytes in to hexadecimal value individually. 2. Then add these two hexadecimal values and convert it in to decimal again as shown in example below. 3. The decimal value I will get i will want to divide that value with the number "8241.5" and after that the answer I will get I want to plot that floating number into the graph.<br style=""> <br style=""> <b style="">I want to do the following steps in the LabView<br style=""> <br style=""> </b> Example: Step 1: (The actual data i received). byte [0] = 251 byte [1] = 202 Step 2: I want to switch these two bytes as byte [0] = 202 byte [1] = 251 Step 3: then convert each byte into the hexadecimal individually. byte [0] = 202 = 0xCA byte [1] = 251 = 0XFB Step 4: Combine these two hexadecimal values and convert it into the decimal again CAFB = 51963 Step 5: Divide this value from the decimal number "8241.5" 51963/8241.5 = 6.3 Step 6: in the last step plot this number “6.3” in to the graph as a voltage. I mean how can I draw this voltage of 6.3 in a graph. I shall be very thanks full if some one can make this VI for me or guide me how to make this in LabView. Best Regards.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.