Jump to content

feri79

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by feri79

  1. Hi njkirchner,

    Thank you for your help.

    I'm trying to comm. with an inertial sensor. in the documentation is written "Each sensor

    data value is represented in the data packet as a 16bit signed short (the MSB-most

    significant byte and LSB - least significant byte)".

    and in the table that describes the packets shows for example

    Temperature (MSB) 19

    Temperature (LSB) 20

    "numbers relate to the byte number in the packet"

    these are raw data and if i want to convert them I've to do some operations on them.

    ====

    In order to do that I've to marge the bytes to become 16bit signed.

    ====

    my approach was to read the data using Read Visa. that returns a string of byte. Convert the string to unsigned byte array. and using Join Numbers (under ADVANCED-->DATA MANIPULATION --> joing number) I connected the MSB and LSB to HI and LO input of Joing number.

    ===

    Is this a right way ?

    Thank you.

  2. Hi,

    I'm using Visa to read the packet from my hardware (sensor).

    And as you know in Read Serial returns a string. I can convert the string to unsigned byte using

    ( Sring to unsigned byte array operator).

    But I need to read them as a signed byte.

    Any idea ?

    Thank you.

  3. Hi All,

    I'm communicating with hardware that sends different response according to the commands that I send (character). While its case sensitive, in order to determine the response I firstly need to understand if it's upper case or lower case.

    how can I check the case of the command and response ?

    Thank you.

×
×
  • Create New...

Important Information

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