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...

Similar Messages

  • 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.

  • 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

  • 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

  • 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.

  • Connect as sysdba between Linux and Windows without using password

    hello
    Hello
    I need to connect as sysdba between Linux and Windows without using password for the sys user
    Sqlplus /@string_connection
    Plz help me

    Duplicate post:
    Connect as sysdba between Windows and Linux
    Actually you have been given the answer in your above thread. You need to read the Oracle documentation. Search password file at tahiti.oracle.com
    regards

  • 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

  • Speed between server and client when using FML

    I using FML between server and client, the server access oracle using only 5 ms, but when tranfer back to client, it about 100ms long. I tuned my hp-ux 11 kernel and tuxedo config file, but useless, Why?

    Hi Tumecan,
    Your expected information available here, check.
    Frontend Network Load - Network Integration Guide (BC-NET) - SAP Library
    few related SAP Notes:
    164102 - Network load between application server and front end
    500235 - Network Diagnosis with NIPING
    62418 - Network Load of SAPGUI Frontend Communication
    679918 - The front-end network time
    578118 - Long response times on the SAP GUI
    161053 - Using SAP GUI in WAN
    Regards,
    V Srinivasan

  • Achieving Autofailover between Branches and HQ site using OSPF

    Hi there,
    I have a number of Branches and ATMs which connect to the HQ via GRE tunnels through L2MPLS of the service provdiers network.
    Recently I commisioned a DR site that I would like all the branches and ATMs to point to incase of disaster.
    Most importantly I am supposed to achieve an auto-failover solution between Branches and ATMs towards HQ, @ATM and branch has duo links from different providers for resiliency.
    The standard I am supposed to use is OSPF between branches and HQ, where we have GRE tunnels running in between, is there anyone who can assist me on how to achieve auto-failover solution between the Branches and HQ using OSPF on the existing GRE tunnels.
    Sample configuration would really help
    Thanks.

    What you are asking for here is a full blown network design. It is more than just a few configuration commands.
    We can point you in the right direction but we cannot do the entire thing for you.
    We would need to know things like is there a direct link between HQ and DR, how many branches, is OSPF already in use, if so what areas do you have, are you proposing to use the same IPs at the DR site  etc etc.
    But before all that have you thought about how the applications would work ?
    Presumably you have applications that run on servers at HQ. How do you sync this information to the DR site servers ?
    So a couple of scenarios -
    1) the link at HQ fails and all sites automatically switch to DR. Then 10 minutes later the link comes back up so all sites switch back to HQ.
    How are you going to make sure that any data written to servers in DR is now replicated to the HQ servers in real time.
    2) a branch primary link fails. It switches to DR but all the other branches are still going to HQ.
    Again how you are going to ensure the data remains consistent between the HQ and DR servers as you now have two active sites.
    Routing protocols are very good at automatically providing failover but they don't understand the applications.
    The hard part with DR is not the network, although that in itself can be challenging, but how the applications are going to work.
    So if you only want to invoke DR if there is a major outage at your HQ sites which could last for days for example then using a dynamic routing protocol could create more problems than it would solve.
    You may not have applications that need to be kept in sync so it may not be an issue for you.
    But even then what you are asking for is not trivial, DR never is.
    Perhaps you can clarify exactly how it is meant to work otherwise we cannot really point you in the right direction.
    Jon

  • 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 wsn with pic microcontr​oller

    Hi,
    Since I am new to labview and I want to interface wireless sensor module pioneer with pic Microcontroller using USB is it possible to do so??
    If yes then pls give me some hint
    Thnks in advance

    Hello Asper,
    Thanks for the post!
    I would be happy to post my code. See the attached LV 2010 project. 
    I used a serial SPI capable LCD screen from Crystalfontz to show locally what the temperature (using a thermocouple) and set point (using a potentiometer) are coming into the AI lines of the NI WSN-3212 node. Using just 2 digital lines, one for my SPI software timed clock and another for the data, I was able to update the screen with this information. I just pulled low the chip select line since the only thing I was communicating with was the LCD screen. I used the LabVIEW WSN Module to program LabVIEW directly on the WSN nodes. This is what allowed me to have control of the digital lines to make a CLK and DATA line.  
    Requirements for the project:
    LabVIEW 2010 or later
    LabVIEW 2010 WSN Module (for programming on the node)
    NI-WSN 1.2.1 or later.  
    Best of luck to you on your projects!
    Corby
    WSN R & D Product Support Engineer
    Attachments:
    LCD SPI WSN Project (LV 2010).zip ‏3194 KB

  • Integration between PS and MS project using open PS

    Hello all
    We have a requirement to interface MS Project with SAP PS using open PS that is a standard SAP provided interface.Since i dint work on this before please help me in answering the below questions:These are the clients requirement.
    1. Methodology of installing this interface.
    2. Projects created in MS Project should create a project in SAP R3 and vice versa.
    3. Projects changed in MS Projects should go and update projects in SAP R3 and vice versa.
    4. Selective data transfer from MS project to SAP R3, for example we want to update only a portion of the project.
    5. How easy it is to download MS Project, project to SAP and vice versa. I remember in olden days
    downloading from SAP R3 was easy where-as uploading was pain. I am sure SAP would have addressed it.
    6 Any other information that you think would help us understand this interface better from installation,
    usability and maintenance, BAPI perspective.
    Thanks

    hi,
    kindly go through the link..it was and is still useful in regard to open ps :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5037d0e8-8bc2-2a10-6fb3-c4833289bb66
    Regards,
    Ajit

  • 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

  • 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.

Maybe you are looking for