LabView Connection to NXT block Question

    Hi,
I am trying to connect a NXT block using bluetooth. I have paired the device with the bluetooth software and created a serial connection. Thus I can just send data from LabVIEW using VISA but its proving more dificalt than I thought.
All I have to do is send a string or integer to the NXT block.
 How can I create a simple sending function using LabVIEW -VISA for just an integer or string ??
Attachments:
Spike.vi ‏72 KB

A couple of comments:
1. I recommend that you invoke the Get Device Info VI after creating the NXT object to verify that you can communicate with the NXT.
2. I don't remember what the default of the require response input to the Send Direct Command VI, but you need to specify TRUE if TRUE is not the default.
3. You should wire the response buffer output to an indicator so you can examine the response from the NXT. I'm not sure how you are determining that you are not getting a response since you are checking for one.
JacoNI wrote:
Also I noticed you keep refering to spike.rtx. What is this? My VI running on the NXT block is named "Spike Remote"
Will this have an affect? The VI jpg has got this name in hex but still no response :/
4. "spike.rxe" was the name of the program on the NXT in my example. Programs on the NXT have an extension of rxe. I would recommend the use of the "String to Byte Array" VI rather than building the array by hand. The bytes you specify appear to be decimal rather than hex numbers and probably don't represent the string you expect. You also are missing the extension. Wire "Spike Remote.rxe" into the "String to Byte Array" VI and append a NULL byte.
geoff
Geoffrey Schmit
Fermi National Accelerator Laborary

Similar Messages

  • I2C NXT block modifications / new block supporting RS485 interface port 4

    Hello
    1. Has anyone tried to modify the published I2C  read and write NXT blocks so that they can support the full 16 byte buffers available in the NXT firmware.  Many I2C interface applications require more than reading or writing one byte at a time.
    Even the Ultrasonic sensor has some multi byte parameters that could be accessed.
    It would appear that one only has to provide access to the buffer element contained within the lower level VI's in the current solution, but being a newbie   i have not been able to successfully make these buffers available on the main front panel.
    2. Has anyone created a NXT block that allows access to the RS485  port 4 hardware.  I see that no one had responded to an earlier post concerning this solution. I have seen  example  NXC code,  but i was looking for an NXT block implementation.
    3. Is there a tutorial that explains technique's for developing and debugging a NXT block for use on the NXT ?
    I have read thru the pdf  tech docs and have followed the examples, but i still find it difficult to understand how one goes about createing, testing, debugging the application before creating a block for the NXT.
    I am obviously missing some important points about Labview development for NXT.  I have a lot of experience developing embedded applications with C, but this is the first time i have tried to do anything with Labview especially with the Lego NXT as the Target device.
    I want to create NXT blocks for some homebrew sensors that i have created. I need full access to the I2C and RS485 support in the NXT.
    Can anyone suggest ways one should go about createing, debugging, this type of sensor interface block for the NXT.
    Thanks
    KC

    Yes: there are so many questions in your post that it is difficult to build an answer...
    I surely can not help you with the problem of multiple bytes.
    This is an answer to your question about rs485 in NXT-G:
    http://forums.nxtasy.org/index.php?s=&showtopic=1676&view=findpost&p=13530
    I don't know if you have already studied the i2c-related pages in:
    http://www.tau.ac.il/~stoledo/lego/
    this too is an example which can be study both for i2c interfacing and NXT-G block preparation:
    http://www.extremenxt.com/tda8444.html
    finally the block from mindsensors' PCF8574-NX kit could be useful (I mean: look at the vi's):
    http://www.mindsensors.com/index.php?module=documents&JAS_DocumentManager_op=viewDocument&JAS_Document_id=37
    and maybe among the blocks they've prepared for their sensors:
    http://www.mindsensors.com/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=45&MMN_position=12:12
    you could learn something.
    I agree with you that the tutorial about building NXT-G blocks with Labview is too short;
    some lessons can be learnt from the NXT-G blocks done by others (spying the vi's they wrote): you find many of them in nxtasy.org repository.
    Some advanced techniques are reported in
    http://nxtasy.org/2007/04/12/advanced-nxt-g-block-techniques-part-iv/
    and other pages of nxtasy.org.

  • Why do "official" NXT blocks have to be password protected?

    Like everyone, I'm new to building NXT blocks with LabVIEW.  The projects we had in mind when we got LabVIEW were to combine and modify existing NXT-G blocks to make them more suitable for our purposes.  However, the first thing I learned was that the block diagrams to all of the existing blocks are password protected.  Therefore, instead of being able to take the easy approach of modify the work that has already been done, we have to start from scratch.  Does anyone know why NI won't let the public have access to the block diagrams?

    Hi Eagles Coach,
    The existing NXT blocks contain several different VIs with proprietary software. Like any other software company, it is in National Instruments' best interest to protect the original source code the NXT software was built upon.
    So, rather than leaving eager programmers such as yourself in the dark we created an NXT Toolkit which provides all NXT VIs not deemed proprietary. You have the means to create your own blocks while National Instruments keeps important software practices internal.
    If you're looking for examples so you don't have to start from scratch, simply peruse the examples included with the Toolkit! C:\Program Files\National Instruments\LabVIEW 7.1\examples\NXTToolkit contains several relevant examples for just about any application, and if you hit any bumps just post to the discussion forum.
    Cheers.
    | Michael K | Project Manager | LabVIEW R&D | National Instruments |

  • Download LabVIEW Code to NXT Module

    HI
    I want to know how to download a *.vi file to my NXT Lego Mindstorm Robot. I,ve tried to make a simple VI and it doesn't give me any errors but I can't find it on my NXT.
    Can someone take a look?
    There's three different kinds of people, those who can count, and those who can't.
    Attachments:
    Download.vi ‏15 KB

    Hi Klump The solution for your problem is very easy!  you only have to do this:
    1.  Open the LabVIEW VI you want to run on the NXT.
    2. Launch the NXT Terminal by selecting Tools»NXT Module»NXT Terminal. The VIs you currently have open automatically appear in the PC VI Files listbox.
    3. To connect the NXT Terminal to an NXT device, use one of the following options:
    • Plug in an NXT through USB and it will automatically connect.
    • Click the Find NXT button and choose an NXT connected through USB or scan for available NXTs using Bluetooth.
    4. After you connect the NXT Terminal to an NXT device, select the VI you want to run from the PC VI Files listbox, and use one of the following options.
    and that's all !!!!!  click in download and enjoy your program
    I don't know if you heve been tried to do this before but I have one problem with this.  when I download a program to the NXT the time is 5-8 minutes, I don't know what happend can anyone Help ME?
    thanks..   David

  • How to read and display a signal from my a miccrontroller (MCB1700) onto labview connected via a CAN port on a PXI machine

    How do you read and display a signal from my a miccrontroller (MCB1700) onto labview connected via a CAN port on a PXI machine?
    I tried using a DAQ Assistant but the CAN port is not included as one of the supported physical channels even though all its drivers are upto date.
    Please help..
    Thanks.
    Solved!
    Go to Solution.

    Attached herewith is a print screen of what is showing on MAX
    The CAN ports are on NI PXI-8461
    Hopefully that clarrifies something.
    Attachments:
    Untitled.png ‏212 KB
    Untitled.png ‏212 KB

  • Publishing to the Adobe Acrobat Connect Pro server - two questions:

    I publish Captivate output to the Adobe Acrobat Connect Pro server.  I have two questions:
    How do I publish content so that users open up the output in full screen mode?
    How do I publish content so that users open up the output in their flash players instead of their browsers?
    As is well know, varying browser toolbar setups can make or break if your content fits on to the screen.
    Thanks!

    Hi there
    I'm unsure if you are asking about this as it relates to Connect Pro server or not?
    If you are asking if there is a way to open a Captivate presentation in Full Screen from Connect Pro, I do note that during Publishing, in the dialog the option for full screen mode is disabled. (which is odd because the first time I checked, the option was actually enabled!)
    Again, speaking in terms of deploying the content via Connect Pro server, I am unaware of a way to coax Connect Pro into presenting as a SWF only. At least, not if you are publishing to it from Captivate. I did test by publishing a SWF from Captivate to a local folder on my hard drive. Then from inside Connect, electing to upload only the SWF. That seems to work. But again, you really don't have any control over the size of the window that opens. At least as far as I can tell. (I'm somewhat of a Connect novice)
    Perhaps you might locate the forums for discussing Connect and ask the questions there?
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How to create a feedback control system in labview with an integration block?

    Hallo,
    I design a model of a simple mechanic system composed by one damper, one mass and one spring.
    I would simulate a free response of this mechanic system, but I don't be able to integrate the mechanic state in Labview.
    Seeming that the integration block in LabView produce a wrong answer.
    I've attached this model create in Labview 8.2.1.
    Thanks in Advance
    Michele
    Attachments:
    Sistema dinamico6.vi ‏462 KB

    Michele,
    First of all, when you are trying to develop a Dynamic Simulation, I strongly recommend that you use the LabVIEW Control Design and Simulation Module (http://sine.ni.com/nips/cds/view/p/lang/en/nid/203826), or, for LabVIEW 8.2.1, the LabVIEW Simulation Module. They allow you to develop your dynamic simulation natively in LabVIEW, specially in the case that you have feedback loop in your code (which is your case).
    Now, looking at your program, I have several recommendations that would help you to better control your simulation. First, avoid using the Dynamic Datatype (Blue wire) in you simulation. For example, you are generating a Waveform inside the loop and you are just getting one element of the first batch. Probably, you want to generate only one element per iteration of the while loop and apply that to your equation. If that is the case, you should remove the "Simulation Signal" express VI and use the Point-by-point VI (located at Signal Processing Pallette). There you can also find an integration VI that allow you to define the sampling time for your application.
    Also, the feedback node that you are using will introduce one sampling time to your simulation, which mean that, if your simulation and equations are not correctly setup to take that into account, your simulation will be incorrect. If you were using the Simulation Module, it would take care for your to do the correct integration, additional to allow using different solvers (like RK 4-5) to reduce the error on the integration.
    Hope this helps. Let me know if you have more questions.
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Adding a VI with NXT block to a project and create an executable file

    Dear all,
    I have a serious problem with the Lego NXT module for LabVIEW. I'm wrote a software for electrochemical measurements that has to inferface with a custom made potentiostat that is integrated with a microfluidic system, whose peristaltic pumps are moved by Lego NXT motors. Since the motors add mechanical and electrical noise to the measurements, I wanted to create a simple VI that could synchronize the motors with the measurements. I managed to do it, but when I create the executable file (the software has to run on computers that do not have LabVIEW installed, so I need to create a stand alone application to distribute it among the partners of this project) the VI that controls the motors do not work anymore and returns me an empty error message. 
    I hope that the problem is clear.
    Now, my question is the following: Can I insert a VI that controls NXT motors in a compiled application that has to run on any PC that hasn't LabVIEW installed?
    Thank you very much in advance
    Lando

    Hi Lando,
    I expect you wont be able to use the dual mode NXT API in a labview built executable because that API makes calls into private labview application instances that wont exist in the context of an executable.
    However, you should be able to use the older NXT Direct I/O API (these are the VIs with grey icons). This API can not be deployed to the NXT, but it sounds like you aren't interested in that anyway.
    The Direct I/O palette can be found at NXT Robotics:NXT I/O: NXT Direct I/O .
    Note that with this API you will be responsible for creating and destroying handles(NXT Objects) to the brick.
    Good luck and let me know if you have more questions.

  • Alt-Click to move connected items on block diagram

    Often, in block diagrams, I'd like to be able to slide all connected items together so they stay in the same relative position to each other.  Currently, to move multiple items, you have to select them (rubberband), then click and hold to move them.  It would be convenient if you could just hold Alt, then click, and have Labview automatically select all the items connected to the point you clicked.
    Solved!
    Go to Solution.

    You can't. If you really want to delete a thread you need to send a note to the moderator. Simply select "Report to Moderator" from the Options menu (above and to the right of the message). I'm assuming you intended this to go into the LabVIEW Idea Exchange.

  • LabVIEW connection to OMRON C200HS PLC with C200 LK202-V1 RS422 interface

    I have to make a connection with LabVIEW to an OMRON C200HS PLC. The OMRON PLC is equiped with an C00H-LK201-V1 Host Link Unit. On the NI website I saw some information on a Omron OPC Server Suite. What do I have to do to get things working. I have an evaluation version of LabVIEW 8.5 installed on my PC. Our target client uses LabVIEW 7.0. Where can I find the Omron OPC Server Suite is it on the evaluation CD? Is there any documentation about this Omron OPC Server Suite.

    Dear Sir,
    Thank you for your post on our discussion forum.
    You can find information about our OPC server by using the following link; http://sine.ni.com/nips/CD's/view/p/lang/en/nid/4584
    Under the tab 'overview' there is a link to all drivers on this CD. There is also a knowledge base about connecting Labview to a OPC server; http://digital.ni.com/public.nsf/allkb/EA15F53DB6FECCA5862567240064DF09
    Please find also the examples in Labview by using the example finder (search for OPC),
    If you have any questions, please don't hesitate to contact me.
    Martijn S
    National Instruments Netherlands
    Martijn S
    Applications Engineer
    NI Netherlands

  • Need to turn off "This Connection is Untrusted" blocking.

    I don't know what happened, but lately, Firefox has become unusable. I can't even get Google maps to work, and it's all because of the following warning:
    =======
    This Connection is Untrusted
    You have asked Firefox to connect securely to maps.google.com, but we can't confirm that your connection is secure.
    Normally, when you try to connect securely, sites will present trusted identification to prove that you are going to the right place. However, this site's identity can't be verified.
    What Should I Do?
    If you usually connect to this site without problems, this error could mean that someone is trying to impersonate the site, and you shouldn't continue.
    If you understand what's going on, you can tell Firefox to start trusting this site's identification. Even if you trust the site, this error could mean that someone is tampering with your connection.
    Don't add an exception unless you know there's a good reason why this site doesn't use trusted identification.
    =====
    Untrusted?? REALLY?? maps.google.com is untrusted!?! Oh, and support.mozilla.org is ALSO untrusted? I'm using Chrome to post this because in the case of support.mozilla.org, there IS no option that allows me onto the site.
    Pretty much every site I go to has this problem and Firefox is now all but unusable to me. And I'm on a corporate machine, so it's not like I have a lot of options here. And it's not our corporate network, because only a few of us have this problem.
    How do I Firefox to work again, and disable this 'feature'?
    Thanks

    unfortunately the fiddler2 issuer in certificates might be a sign of unwanted software present on your pc that is intercepting secure network traffic. please go into the system control panel and uninstall programs like BrowserSafeguard, BrowserSafe, SafeGuard or other software that sounds suspicious and didn't get installed by you intentionally.
    <br><sub>reference: https://support.mozilla.org/en-US/questions/982532#answer-520145</sub>
    afterwards, run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Troubleshoot Firefox issues caused by malware]]

  • A few short SD blocking questions...

    Hi all,
    i got a few questions which the most of you probably can answer rather easily:
    1. Is it possible in SD (5.0) to register that a customer has to be blocked on a future date?
    2. Is it possible in SD to block a customer only for ordering (read: not allowing for new orders, thus new open credits) and not for all other functions (so that the customer still is available for corrections like credit memos,etc.)?
    3. Is it possible to block vendors in batch (mass block)?
    Two more questions which are less important:
    4. My client doesnt do any archiving. The consequence of this is that there exist many customers in the system that are inactive. Is there a way to hide these customers (same for vendors) without deleting them or archiving them? Maybe i can give these customers the status "inactive"?
    5. Is it possible to give comment to all the changes that are in the customer master records so that an employee always can find back why certain customer information is modified?
    I really hope you guys can help me out in these question!
    Cheers,
    Wander

    Hi Wander,
    1. Changes to customer data are not time or date dependent. So it is not now possible to block customers on a future date.
    2. See transaction XD02 go to Extras -> Blocking data (or alternatively use transaction VD05) The blocking type determines what the customer is and is not allowed to do.
    3. Transaction MASS would spring to mind. field to change depends on the blocking type you want to set.
    4. I know you can mark a customer for deletion. I don't know what this does to the standard search helps.
    5. I guess a text field could help for this. But to my knowledge there is no standard solution for this.
    regards,
    Pim

  • Input and output arguments for NXT Block

    Hello,
    Is there a solution to passing arguments when, with direct command Start, we activate a program (block transfered on NXT) from LV ?
    (block created with the NXT library, with a command on a input).
    Idem in output, can we read the response of a sensor by example ?
    Thanks
    T.R.

    See the example in this recent posting. To get data from a subpanel, use Get Control Value or Get Control Value [Variant].

  • Posting block Question in How to handle inventory management scenarios

    Hi all - I have a question in document
    <b>"How to...Handle Inventory Management Scenarios in BW"</b>
    can anyone please tell me what a posting block is in this document...
    also I did not understood what a Validity table is?
    thanks,
    Sabrina.

    Hi Sabrina!
    A 'posting block' period is something that now you are facing in inventory management, but you have to consider it in ALL logistic cockpit flows (what you can see in LBWE).
    This requirement can be easily explained in this way: as you know, to fill a setup table you have to activate the extract structure of the datasource for which you want to run the setup job (otherwise the system says that no active extract structure exists, do you remember ?); but, by doing so with the posting operations open (in other words, users can create new document or change the existing ones), you run the risk that these records are automatically included in the extraction queue (or in SM13 if you are using unserialized method) AND also collected in setup table ! And you will have the same records with the initial load (from setup table) and then the same from delta load (from the queue): a nice data duplication.
    To avoid this situation, a "posting block" (or a "free-posting period" or a "downtime") is requested. No one can post new document during your setup job...
    Hope now is clearer...
    Bye,
    Roberto

  • IMac connection to PC wireless question

    Hello, so far my iMac setup has been a breeze but I am stuck at connecting to the Internet. I go through the process of wireless conecting and try to connect to the network found by the iMac helper but when prompted for the password I'm stumped. I realize this is more a PC question than anything else, but where on earth can I find out the password to my PC router?

    What kind of wireless router do you have? Did you set it up - if so, it sounds like you set it up with a password to access the wireless network. If you did, but you've forgotten it, you'll need to refer to your router's documentation to find out how to reset it.
    (For example, a Linksys router requires you to access http://192.168.1.1 for configuration.)
    Matt

Maybe you are looking for