Hi lo byte with nxt toolkit

Sorry if this seems a simple question but I'm limited in my exp. labview I try to get a value of byte hi.lo but can't seem to figure this simple thing. I know that labview has a feature, but I am limited to the functions of the NXT toolkit which supports this feature.

Thank you for you advice



If you deal with 16-bit integers, couldn't divide you by 256, then use respectively the integrate of the result as salvation bytes and the decimal part x 256 lo bytes?

With 32-bit integers, same solution with 65536.

Tags: NI Software

Similar Questions

  • NXT Toolkit Programming Guide supplement

    I start this thread as a place to consolidate useful information in the use of the NXT Toolkit, but is not mentioned in the Program Guide or is not as clear as it could be.  My hope is that this thread contains information, NOT questions or comments.  In this way, it is made easier for users to find what they need

    If you want to send information about this thread, please use the tags so it will be easy to find.

    If you have a question, please continue to do so by creating a new thread.

    The vi of audio file allows you to enter the filename of a file audio .rso to play.  On page 59 of the Program Guide, it is said that the name of file is a maximum of 19 characters (15.3 filename).  The name of the file SHOULD be 19 characters, otherwise, it will not play the file.

    See the attached screenshot for a way to convert a 'regular' file name to what needs to be submitted.  It makes the NXT, "error".

    The two functions are in the palette of the chain.  The first is the subset of the string, and the second is concatenate strings.

  • Create a procedure SQL with SQL toolkit


    I use the SQL Toolbox to get data from a MySQL database (using ODBC connectors).

    I would like to automatically create a procedure on my DB when lauching my application software, so that I do not know there is when I use it.

    But I can't figure out how to do with the SQL Toolbox.

    Indeed, you try to run this script (which works by operating on MySQL workbench) returns the following error:


    CREATE a temporary table ListingUUT
    DateTime TEST_TIME,

    CREATE a temporary table Stat_FPY

    INSERT INTO Stat_FPY VALUES (0,0,0).
    OF booster_results.uut_result


    -Online error-2147217900 took place at NI_Database_API.lvlib:Conn Execute.vi-> Untitled 1

    Possible reasons:
    ADO error: 0x80040E14
    Exception occurred in the Microsoft OLE DB provider for ODBC drivers: [MySQL] [ODBC 5.2.a Driver] [mysqld - 5.6.10 - log] you have an error in your syntax SQL; consult the manual for your version of the MySQL server for the right syntax to use near ' DELIMITER $$

    CREATE DEFINER='indus'@'%' PROCEDURE ' FPY '(IN START_DATETIME datet' à la ligne 1 en NI_Database_API.lvlib:Conn Execute.vi-> sans titre 1)

    An idea so that I can create the procedure?

    Finally, give up on the creation of the procedure with SQL Toolkit functions.

    In fact using exec.vi system to address directly the command-line mysql server...

  • Read byte with a value up to 127 lire byte with an ASCII value greater than 7F (127 dec)


    I have to read a byte with a value greater than 127, Labview turn 27.

    In help I saw that Labview provides a description of ASCII that pour values ranging up to ' 127.

    What do I need to do?

    LabVIEW 6.1

    Windows XP


    I want to read a byte with a maximum value of 127, but Labiew reurn arround 27 value

    How do I do?

    Rigid wrote:

    Thanks for your help. I'm not changing lyke I understand (my English is poor quiet...)

    I have another program that communicate with the instrument. I know byte (6) must be greater than 18 (greater than 7F actually).

    But with Labview, I'm only 18.

    While it might be higher than 18 x, an I8 is signed, and therefore it cannot be greater than x7F - it has a range of-128 to 127. A U8 is not signed, and it's why he has a range from 0 to xFF. However, x 18 is the same if you treat as signed or not signed. I don't see how LabVIEW can read a wrong value on the serial port. Are you sure you're looking at the correct byte? Your code shows that you split the chain twice. Are you sure that you do this properly?

    Given that you use on Windows you can recheck the chain received using PortMon. Allows you to see what is actually received by the driver for the serial port on Windows.

    P.S. I actually meant the whole byte function.

  • CC gives me a white screen. Uninstalled and reinstalled app on any screen available white only. What to do with nxt?

    CC gives me a white screen. Uninstalled and reinstalled app on any screen available white only. What to do with nxt?

    Hi Wolfgang,.

    Please refer to the threads below where this issue has been addressed:

    New application Cloud Creative unusable: it is empty!

    Creative cloud is empty window why?

    Cloud Desktop App is empty?

    Re: Empty opening creative cloud app

    Kind regards


  • Install with VI Toolki HP Management Agents

    Is it possible to install HP with VI Toolkit Management Agents?

    If it is Yes, here's my plan:

    Get all servers ESX in Cluster/Datacenter

    Get the Version of the HP Management Agent

    If management agent version HP & lt; x and then upgrade

    Start the upgrade

    Download HP Management agent Installer to FTP/NFS

    Uninstall HP management agent

    Install the new HP management agent

    I need help to get started.

    Here's a sample:

    $ErrorActionPreference = "Continue"
    $PLINK = ".\plink.exe -l"
    $USER = Read-Host "Enter Username"
    $PASSWD = Read-Host "Enter Password" -AsSecureString
    $ESXHOST = Read-Host "Enter ESX HOST FQDN"
    $SYSLOGSRV = Read-Host "Enter SyslogServer"
    $CONVERT_PASSWORD = [http://System.Runtime.InteropServices.Marshal|http://System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($PASSWD)
    $PASSWORD = [http://System.Runtime.InteropServices.Marshal|http://System.Runtime.InteropServices.Marshal]::PtrToStringAuto($CONVERT_PASSWORD)
    $SYSLOGSTRING = [char]39 +  "`n" + "#NWORKS SYSLOG SERVER" +  "`n" + "*.*" + "`t`t`t`t`t" + '@' + $SYSLOGSRV + [char]39
    $STRCMD1 = "echo Y | " + $PLINK + " " + $USER + " " + "-pw" + " " + $PASSWORD + " " + $ESXHOST + " exit"
    $STRCMD2 = $PLINK + " " + $USER + " " + "-pw" + " " + $PASSWORD + " " + $ESXHOST + " " + "sudo /sbin/service ntpd restart"
    write-output "Updating syslog for host: $ESXHOST"
    invoke-expression $STRCMD1
    invoke-expression $STRCMD2

    I don't have a linux management system, because the operations team does not include the console.

  • NXT ToolKit

    Hello I am writing a program to my NXT, and I want to run certain software on the NXT with labVIEW. How would I do that?

    rockshot2 wrote:

    Hello I am writing a program to my NXT, and I want to run certain software on the NXT with labVIEW. How would I do that?

    Hey Rockshot2,

    You can download a toolkit for LabVIEW that allows to drive brick LEGO NXT to this URL. This add-on allows you to interface with the brick as you would with the MINDSTORMS program but with all the power of LabVIEW.

    In addition, just a heads up, I saw that you posted this question under several headings. Please try to not do that, because your questions will always be answered with just one!

  • NXT Toolkit installation problem

    In the execution of setup.exe that is not compressed file zip toolkit, errors occurred as follows.

    \MetaUninstaller\MU\MetaUninstallerR1.cab. Check that the file exists and that you can access. >
    The same mistakes happening to package.cab and MDFSupport1.cab.

    I could not find above the cab files in uncompressed files, however there was same name files

    as... \MU\MetaUninstallerR1.
    It can be assumed that the cab files are not compressed.

    Anyway, I can't continue with installation. I appreciate if you inform me a hint. Thank you.

    State of PC: Windows XP Professional SP3, LabView 7.1 installed.

    I could find the answer.
    Dezippee applicability has been established it works until all the compressed files are melted. Not only the zip files.  So, the cab files were also not compressed.  It was very simple, but it took four days.  Good bye.

  • Adding data to access DB with connectivity toolkit?

    I'm trying a new way to add data access instead of AciveX due to not knowing the commands necessary to interact with him.  Instead, I try to use the database connectivity toolkit and learn new techniques.  It is also an introduction to the variants that can ask me that question.

    Problem: Try to add data to multiple columns in the database in the same registration line.  I can add a data element to a fine column but cannot find out how to add data to multiple columns with different names.

    The approach I use is to open a new line and add the first element.  I then try to stay in the same record by using the thumb to the previous record vi but it isn't create one record for each item.  I'm sure this has to do with the way I'm configuration data tables and how to insert it vi data managing.

    The vi is attached.

    Thank you

    I don't have the data to test this, but I think you need to keep the data in a cluster, and then you should be able to add all columns at the same time without having to add each column at a time.

  • With Fuzzy Toolkit App Builder problem


    Today, I wanted to build an application (via LV2009) with functions of 'PID and Fuzzy Control Toolkit'.

    Now the app Builder is looking for a type definition in vi.lib (as shown in the photo), but it does not find the CTL file - but the path used for research is correct! Then I do the search manually, tap the CTL asked in the right place (and with the name correct, of course), and the build will succeed.

    What is happening here?


    There seems to be a problem with the lvlib of fuzzy logic tool. I filed the #348498 against her CAR.

    This issue is obviously for 2009 has been and remains in the LV 2011 SP1.

    hope this helps,


  • Database MySQL with SQL Toolkit


    We use CVI 2012 and the SQL Toolkit 2.2 and we want to connect to a MySQL database.

    The MySQL database has been created with MySQLServer. When we try to connect with the BD connection, we get an error.

    How can connect us to the MySQL database?

    What do we have to type in the connection string to the DB? What is the name of the database, the path to the database or anything else?

    Have experience with the SQL toolkit?

    Thanks in advance


    You must install the mysql odbc connector and then create an ODBC dns for your database.

    Control Panel, administration, odbc

  • How to send a single code of hexa from 1 byte with sending VISA for every 500 ms?


    I would like to send only a 1-byte hex code in LabVIEW to an external device using RS - 232 (300 bps, 8 data bits, no parity bit, no flow control) every 500 ms.

    The TX pin on the computer should stay at the logical level 1 once he finished transmitting the 1 byte of data and wait before transmitting again 500 ms.

    I'm building a test below code:

    The output of "Channel 1" will connect in the sending VISA write buffer. (Please note that the code above does not include the 500 ms delay I mentioned. Just ignore for a moment.)

    This code will work like what I described above? I tried on my project, but I was getting weird things on the device.

    Convert the code hex correctly?

    And how to send it VISA pass in the string? Does include the other 'useless' strings with the hex code that I want to send?

    Any help will be appreciated.

    Thank you.

    Hi eddiechai...

    you will get a string of length 2, so you have 2 bytes. You must use the U8 and the cast function type. (see attached photo). You have to disable the stop character to get what you want.


  • Use ContinousPDF.vi with NXT blocks

    Hi all

    I'm programming an alogrithm location, which uses the ContinousPDF.vi to trace the current location of the robot that follows a Gaussian distribution. The problem is that the VI that uses the ContinousPDF.vi is developed in order to make a NXT Robot. This VI uses NXT bloks. The combination of this block with the PDF it does not work.

    Is it possible to fix this?

    Thank you!

    Sorry, the link to the Forum does not work. I enclose a photo

  • VMnet bridge cannot not labeled past 1500 byte frames (1504 bytes with tag) - is there a solution?


    I set up a Windows 7 with VMware Workstation 10 host.  I am running 3 guests: 2 Linux and Windows XP 1.  These individuals are bound by local network segments.  A Linux host (let's call it 'A') brudges network interface 1 to an Ethernet USB adapter attached to the host.

    The other invited Linux (let's call it 'B') bridges 4 network interfaces on the host of Win 7.  I do this Setup VLAN b (eth2.30, eth2.60, eth2.29, eth2.220) and bypass eth2 interface integrated on the host of Win 7.  I had to create a registry entry "MonitorMode" (http://www.intel.com/support/network/sb/CS-005897.htm) on the Windows 7 host in order to move the frames marked between the guest and the outside world (Win 7 strips incoming tags by default).  NIC integrated on the Win 7 host is connected to a Cisco switch as a 802. 1 q trunk.  Other hosts are connected to the switch via these VLANs on the trunk.  Applications on these hosts communicate with guests on the host of Win 7 on the VLAN, it is necessary.

    It works fine until I have try to get through the VMnet bridge frames that have an MTU greater than 1496.  These frameworks are interrupted whehter they are incoming or outgoing.  I suspect that the reason is an acceptable framework normally 1500 bytes is, when the tag, 1504 bytes and is therefore stripped on the VMNet bridge.  I tried to adjust the MTU on the NIC host and eth2 comments to 1496 and 1504.  No effect, as I expected.  Packet Capture one side of the bridge as these large frames MTU vmnet show are ignored at the bridge.

    I have control over some of the external systems (and of course all the guests) and I adjusted the MTU on these systems at 1496 bytes.  This works very well for these systems.  But for traffic from external guests that I can't change it, 1500 (1504 with tag) frames is ignored at the vmnet bridge.

    I have read that I need jumbo frames support so that it works.  I found documentation indicating extended frames are not supported in workstation 7.  I guess that has not changed in 10 WS.

    I tried an alternative approach: Create VLANs on the host of Win 7 using Intel PROset, remove the VLAN eth2 the Linux prompt and instead create multiple virtual NICs (eth2, 3, 4, 5) and fill each virtual NETWORK adapter to a host of Win 7 VLAN.  Although VMWare network Editor allows me to create these bridges, I can't pass any traffic through them regardless of the MTU.

    So, my questions:

    (1) are extended frames supported in 10 Workstation?  If so, how can I activate them?

    (2) I would be able to bridge a guest virtual NETWORK adapter to a VIRTUAL host LAN interface?

    (3) is there another way to do this?

    Thank you and best regards,



    The other approach, I described in the previous post (creation of VLANs on the host of Win 7 using Intel PROset, remove the VLAN eth2 the Linux prompt and instead create multiple virtual NICs (eth2, 3, 4, 5) and fill each virtual NETWORK adapter to a host of Win 7 VLAN) works if I REMOVE the setting of registry MonitorMode I also described in the previous post.

    Wireshark showed that with the Win 7 host VLAN enabled and the value of MonitorMode tags VLAN were being stripped.  Eliminating MonitorMode allows the NIC to tag/UNTAG as needed by the configuration of VLAN PROset.  Since the frames are not marked as they are bridge to/from the comments, all the interfaces of my spend management full size in both feel.

  • Wrong time current GPS receiver while generating signal GPS with GNSS Toolkit

    Hi all!

    I have a problem with the generation of GPS signal. As he has shown in the current schedule to the receiver time differs from time current GPS week on niGPS Live Streaming Generation.vi

    Time initial GPS set to 0, so I expect the current, while production should start at 0:00 December 6, 2015. But the receiver poster 23:59:40 12.06.2015 start

    Could someone explain to me what can be wrong?

    That's what I was talking about yesterday.

    Time of receiver watch hour UTC

    Is time on GPS Live Streaming VI GPS.

    GPS Time - time UTC = 16 seconds (Leap).

Maybe you are looking for