Communicat​ing between LabVIEW and Basic Stamp 2.0

Hello,
We are trying to control the movement of a Parallax Boe-Bot (robot with
Board of Education) via LabView programming.  The BOE operates on
Basic Stamp programming to control the pulse width sent to two servo
motors.
Is there a way to establish communication between LabVIEW and Basic
Stamp 2.0?   We need to send commands from LabVIEW to the
Basic Stamp to control the pulse width and therefore the rotation of
the two servo motors.  We also need to send a signal from an
accelerometer based on the robot to the LabVIEW ADC. 
The ultimate goal is to do this with wireless communication, but for
right now we are simply trying to figure out any way to send the data
between LabVIEW and the Basic Stamp.
Any ideas?
Thank you,
Adam

Hi Adam,
You can communicate with a BASIC Stamp microcontroller over GPIB using VISA.  To see some LabVIEW example code, just search for GPIB in the NI Example Finder (Help>>Find Examples). This will show you the basics of GPIB communication in LabVIEW.  I also found this link by searching the NI discussion forums for "basic stamp"
http://www.parallax.com/html_pages/downloads/softw​are/software_basic_stamp.asp
Here you can download an example using LabVIEW 7.0 or higher to communicate with a BASIC Stamp 2.
I hope this is helpful!  Let us know if you have further questions.
Megan B.
National Instruments

Similar Messages

  • Fpga: Communicat​ing between fpga and third party program running on pc

    I am using a C-Rio to control a planar robotic joystick. The goal is to use the joystick as a force feedback controller for a computer game running on a pc.
    My program as is for now runs a program on the fpga to read the encoder values and run the pwm for the motors. An RT program reads those values and performs the control as well as it calculates the fwd and inverse kinematics of the robot.
    What I would like to do now is to pass the x-y values of the joystick on a third program (computer game) that runs on a PC.Currently  the game runs on LabVIEW but I would the system to be combatible with other programs written in different programming languages. I have been told that the best way of doing this is to setup a server. Is this the only/best way of doing this?
    I would like to know what is the best way to communicate between a program running on a pc and a program running on the fpga for this type of application. What is the best way to pass along information from fpga to third party app running on pc and vice versa?
    I am sorry if this has been asked before but I couldn't  find a relevant thread. Thank you for reading this!
    Ares

    If you need every command to make it, then you should use TCP.  I would recommend taking a look at the STM library that is floating around somewhere on the LabVIEW Tools Network.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Transfert between Labview and HTML page

    Is it possible to transfert data between LABVIEW and a HTML page without using a java applet?
    Is Labview including this possibility?
    The aim is to pilot a system via internet with a html page.

    Hi Mat,
    LabVIEW CGI is the best solution for that. I know that you can build ActiveX controls (in Visual Basic) that talk to labVIEW. But LabVIEW CGI is the easiest way of doing that. You should have some knowledge of HTML inorder to work with LabVIEW CGI.
    Also note that in order to have the LabVIEW CGI capability you should have Internet Toolkit for LabVIEW (available from NI). For more information
    http://www.ni.com/labview/internet/
    The examples that ship with the toolkit should get you started on it. LabVIEW CGI VIs would allow you to execute VI from web browser and get results back in web browser in form of HTML page.
    Hope this helps,
    A Rafiq
    National Instruments
    Hope this help.

  • Reference Library for Converting Between LabVIEW and XML Data (GXML)

    Please provide feedback, comments and questions on the Reference Library for Converting Between LabVIEW and XML Data (GXML) in this thread.
    The latest version of the NI GXML Library is availble in VIPM on the NI LabVIEW  Tools Network repository.

    Francesco, Thank you for the feedback.  With this component it was my intention to make a more "terse" version of the LabVIEW Flatten to XML VI that was also supported on RT and that gave the user more flexbility regarding the structure of the parsing type definition. I think you are right that the XML parser is not compliant to section 2.11 of the XML spec.  The parser does specifically looking for a #D#A and this appears to be an oversight on my part.  Please confirm for me, the specifcation is saying that the XML parser should be able to recognize three possibilities as an "end of line" character: #D#A, #D, or #A.  Am I reading this right?There are more efficient (and in some cases much more efficient) ways of sharing data between LabVIEW and LabVIEW: some examples are flattened binary strings and the datalog binary format.  XML is slower than these optons but the upside is that it is human readable.  Furthermore XML is inherently hierarchical which is convenient for complex data structures like clusters of arrays of clusters, etc.  If you don't care about human readability then you are correct XML doesn't make as much sense.I will return to the GXML source code and try to fix this in the near future but I would hope that instead of creating yet another custom VI from scratch that you could reuse what I have provided for you.  I included enough documentation in the source code so that users could make some modificiations themselves. The target application for this reference library was LabVIEW to LabVIEW communication.  As such I documented the schema on the dev zone document from a LabVIEW perspective.  It includes all the supported datatypes and all the supported data structures (cluters, arrays, multidimensional arrays, clusters of multidimensional arrays, etc.)  I do see some value in making a more conventional XML spec but the time investment required didn't really line up with my intended use case. Were there any other downsides to GXML that I have missed?  Best Regards, Jeff TippsSystems Engineer - Sound and VibrationMessage Edited by Jeff T. on 04-21-2010 10:09 AM

  • Connecting between labVIEW and PLC S7-1200 using EPICS

    Hello everyone,
    I'm trying to connect between LabVIEW and PLC S7-1200 using EPICS. I did it using OPC and it succeeded and the communication was done, so right now i'm trying to do it using EPICS. so Can anyone help me with that?
    Thanks in advance.
    Ahmed

    Hello,Ahmed:
    Now I'm trying to conect S7-1200 to Labview by OPC server 2012, I'm newer for both PLC S7-1200 and OPC server. by the help file of NI's OPC I tested many times, but lost totally.
    You mentioned that you have succeeded making the connection between them, could you please help me :
    1) How to set in Simense TIA software? I can set the PLC's IP address now, that's all;
    2) OPC server setting.
    if there is a video, that will be great.
    thanks a lot.
    Delphi77.

  • LabVIEW Output, BASIC STAMP II

    How can I output the LabVIEW program that does the following (see
    below) to interface with Basic Stamp II.
    From a graph, I could retrieve X-Values (X1 and X2) and Y-Values (Y1
    and Y2).
    Target (X1, Y1)
    Laser (X2, Y2)
    Change in X (X2 - X1)
    Change in Y (Y2 - Y1)
    If ChangeX >= 5 If ChangeY >=5;
    Move ChangeX==Right; Move ChangeY==Down;
    else if ChangeX <= -5 else if ChangeY <= -5
    Move ChangeX ==Left; Move ChangeY==Up;
    else Move ChangeX==0 else Move ChangeY==0
    | increasing Y
    |
    |
    |
    V ----------- > increasing X
    If the change in X is positive (greater than zero), move change in X
    to th
    e right. If it was negative (less than zero), move change in X to
    left. If the change in Y is positive (greater than zero), move change
    in Y down. If it was negative (less than zero), move change in Y up. I
    used 5 instead of 0 to give room for error.
    Please e-mail me at if you can help, have
    information or any question.
    Thanks,
    Paul

    The example code that was provided with parallax is attached.  As far as the driver for the serial to USB, I downloaded that and I can see the BS2 in my Device Manager (COM5).  When I ran both the example code from Parallax and an example code through LabVIEW for a basic serial write and read, I was unable to get communication between my laptop and the BS2.  If you have code that you developed before, it would be really helpful if I could test that out with my microcontroller. Thanks for all your help guys!
    Attachments:
    StampSerial.llb ‏63 KB

  • Which protocol is recommende​d to communicat​e between LabVIEW an the S7-300 PLC?

    Hello,
    I'd like to communicate between LabVIEW (CompactRIO) and the S7-300 PLC.
    Which is the protocol NI recommend to use?
    I read, that TCP/IP over OPC and profibus work fine. Maybe MPI or Modbus, too.
    But I would favor a cheaper solution like the communication directly over TCP/IP. The problem is in my opinion, that Siemens modified the TCP/IP protocol and the protocol itself is not public. I found an example library at ni.com but this was build by using reverse engineering. And I'm not sure, if such a library would work reliable.
    I know this topic is interesting for many people, but I could not find a general recommendation here in the forums.
    Regards

    I have direct experience using the NI OPC servers to talk to Siemens S7-300 PLCs, and it's by far the easiest way I've found to communicate.  There may be 'less expensive' options out of the box, but from purely a development standpoint, it's very fast and easy to get working.

  • Establish connection between labview and Lantronix XPort Pro

    Hi:
    I am pretty new in this field. I just got into grad program, and I have been asked to establish a TCP/IP connection between Lantronix XPort Pro and labview 8.5. The goal is to get data from the server (Lantronix XPort Pro) and put them into labview and modify them, then I need to send modified data back into   server.
    The server has registered into local network wirelessly, it has IP 192.168.5.117 in port 26.
    I would really appreciate your help and comments.
    cheers!
    Kian.

    Which field are you "new" to? Programming in general? Programming in LabVIEW? TCP/IP?
    Have you taken a look at the TCP/IP examples that ship with LabVIEW? There are simple Data Client/Data Server examples that show transfer of data over TCP/IP. You will likely need to do something very similar. Does the XPort Pro have a TCP/IP listener running? Do you have a communication protocol defined?
    Also, if you are new the LabVIEW, have you gone through any of the tutorials? To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

  • Interfacin​g between labview and microcontr​oller using rs 232

    hi my task is to generate a wavefrom of certain frequency and certain duty cycle in labview and feed it to pic18f452 microcontroller and the o/p of microcontroller when connected to CRO should display the same frequency and duty cycle which was fed from labview.
    for that when i am sending decimal data from labview microcontrolle is receiving ascii data for eg 62(decimal) gives 36 and 32 respectively in microcontroller registers and when i use type cast function and convert the decimal data into ascii data and then sending it to uc it gives hex o/p so i am confused that how to solve this problem
    pls guide me
    thanks
    satish

    So your display from the uc is giving you a hex display instead of the ASCII representation? Are you using VISA to send a string to the uc? Is that string being represented as hex instead of ASCII by the microcontroller? I'm confused about what exactly your setup and problem is...

  • Interfacing between labview and microcontroller using rs 232

    hi my task is to generate a wavefrom of certain frequency and certain duty cycle in labview and feed it to pic18f452 microcontroller and the o/p of microcontroller when connected to CRO should display the same frequency and duty cycle which was fed from labview.
    for that when i am sending decimal data from labview microcontrolle is receiving ascii data for eg 62(decimal) gives 36 and 32 respectively in microcontroller registers and when i use type cast function and convert the decimal data into ascii data and then sending it to uc it gives hex o/p so i am confused that how to solve this problem
    pls guide me
    thanks
    satish

    Double post

  • Communications between LabVIEW and spectrum analyzer

    hi, im a beginner in LabVIEW and spectrum analyzer, and im now trying to let LabVIEW captures signal coming from spectrum analyzer. i have all the required components needed but i have totally no idea how to get started, is there any exercises or labs available here?

    It will depend on your method of communication with the device.  If it is RS232 you can go to the example finder (Help > Find Examples) and search for RS232 or however you plan on communicating with the device.  Or you can browse the catagories for examples on various topics. 
    Depending on the device the manufacturer may have LabVIEW drivers on their web site.  But anybody will need more information on the analyzer and the signals before you can be helped. 

  • Driver to communicate between LabVIEW and Omron CJ1G PLC

    I am trying to communicate between my Omron PLC (Model CJ1G) and LabVIEW.  I want to be able to read specific registers and be able to display and save the data in LabVIEW.
    I have the "Idustrial Automation Servers for OPC" CD but my PLC model no. doesn't appear under the Omron options.
    What other options do I have?
    Thanks, in advance,
    Felipe

    Hi Felipe:
    I checked in our PLC compatibility database and the only Omrom PLCs that are supported are the following: C20, C200, C500, C1000, C2000, CQM, and CPM1.
    The PLCs that are suppored in the IA OPC server is based on the driver dll that was supplied to us by Omron. When newer PLCs are released, they are not included in this dll and are thus not supported. You might want to contact Omron to see which OPC Server supports that PLC. You should be able to use any 3rd party OPC Server to work with DSC which will then be the OPC Client.
    Hope this helps.
    Best Regards,
    Jaideep

  • What is the difference between LABVIEW and LABWIN/CVI?

    I want to take a course about one of these two softwares.
    I know a little bit about LABVIEW but I know nothing about LABWIN/CVI.
    What is the difference between them?
    Do they have different aplications?
    thanks
    Tzviel

    LabVIEW is a graphical programming language. It is made up of a user interface which is called the front panel and a block diagram where all the coding is done. CVI is National Instrument's C interface for virtual instrumentation. CVI includes a user interface complete with graphs, buttons, and other interface objects. However, the code is done in ANSI C. Some great features of CVI include the function panels, which provide a wizard interface for CVI functions, and code generation. CVI also easily integrates with National Instruments DAQ & GPIB devices as well as other intrument drivers.

  • TCP/IP communication between labview and microchip board

    Hi
    I have a microchip board which sends out data over the Ethernet. I have to read this data and use for further mathematical computations on it. So I decided to use some available examples on Labview. I find that all examples come as a pair, client-server. But in my case the board will be the server ( providing data continuously) and Computer with Labview will act as a client (Continuous receiving). Is there any readily available example on Labview for this purpose. If not, can you please suggest which example I need to modify for my purpose? Thanks
    Arvind

    arvind3tthiru wrote:
    Hi Greg, thanks for the reply. I am connecting to a PICDEM.NET2 board which is sending data through its ethernet port. I know the port number and the IP address of the board. I want labview to listen to this port and store the incoming packets. I am not sure how LABVIEW disintegrates the TCP packets and takes only the data out. Since I am not seeing anything on the LABVIEW client, so I am starting to think that TCP Client on LABVIEW may have some prescribed packet format which is not the format in which I am sending my data in. Please enlighten me if I am wrong. If you need more information, please tell me what you will need, I will provide you immediately.
    Thanks
    Arvind
    LabVIEW has no "predesribed" packet format, and it doesn't take packets apart. LabVIEW operates at the application level, so the OS is responsible for providing the data that's contained in the packet to LabVIEW. LabVIEW just sees the data in the packets.
    Have you verified that a connection is actually being made? You said that the LabVIEW should listen to this port. Did you create a listener on the LabVIEW side? Does the microchip code indicate a connection? You may want to use Wireshark to capture the packets to see exactly what is going on.

  • Active X between LabView and Lotus 1-2-3

    I want to controll Lotus 1-2-3 with LabView using Active X.
    I have tried the example: "Write table to Excel.vi", and it works.
    But When I try to do a simular opperation against Lotus it fails.
    When i select the ActiveX library: "Lotus 1-2-3 Versin 1.0" there are no creatable objects. When i remove the selection on :"Show creatable objects only" are the objects simular to the objects when Excel-Library are selected. But when used they don't work.

    Try selecting "browse" when you are prompted for an activeX object, and select the Lotus 1-2-3 activeX library from it's directory. If 1-2-3 is properly installed on your system, you should be able to create objects using it's activeX capabilities. If browsing does not work, I'd try installing Lotus again. I'd be glad to help you, but don't have Lotus 1-2-3 so... Good luck.

Maybe you are looking for

  • Not able to get the value in ADF taskflow on load

    Hi, I have created an ADF task flow. I have created a ViewObject in this ADF taskflow and I am setting the value of this ViewObject using the java API. The issue is that i need to show the data when this ADF task flow executes first time. Currently I

  • HT3529 Do all of my devices have to be linked to the same apple ID for imessages?

    I have an iPad, my wife has an iPod touch and my son has an iPod touch. We all use the same apple ID so we can access all purchases and apps. Is it possible to have different accounts for imessages so we can use them for this pupose individually. If

  • Looking for a certain app for unwanted caller

    I am trying to find an app that when a particular caller is calling, it will inform them "I have a new number" or "this number is changed." Or something similar to rid of these unwanted calls. Any information would be helpful.

  • Iphone 6 didn't sync my icloud back up

    bought a new iphone 6 today, I backed up my data before purchase. Turned on my new phone and no icloud back up, only one from 2 years ago. i back up my phone every 2 weeks. extremely upset because i lost so much information....necessary info for my j

  • Sync iphone 4s and Outlook contacts

    i often get new contacts on my phone, and sometimes i get them on my desktop.  I would like to sync the 2 platforms so that new contacts created on my phone will be updated on my desktop and vica-versa? For example, i just created a new contact on my