LABVIEW interface with OOPIC microcontroller

Hiya,
I have problem received data from OOPIC microcontroller (www.oopic.com)to LABVIEW.But, I had tried on hyper terminal and it's work fine. Please advice as well do I need to use any associated files when communicate OOPIC with labview?

Hi,
This is also device specific. The serial port returns a string. More than a string, this is a byte array of whatever the serial port receives. It is convenient to represent the data as a string since most of the time the data sent is ASCII.
You need to parse and format the string data. Parsing means getting the information you are looking for. You need to know how the device sends you the data and look for common elements. Formating means taking the ASCII data and passing it to numeric format. This depends on whether the device sends data in binary or ASCII format.
Here are some links Keyword Search: Parse String VI.
The important thing is having good documentation on how the device formats and packages the data send to the PC. This will allow you to decide what you can do with the data.
This is more of a programming issue. you might get more answers in the LabVIEW forum for parsing and formating questions.
DiegoF
National Instruments,Message Edited by Molly K on 02-18-2005 11:07 PM

Similar Messages

  • How LV interfaces with a microcontroller (serial communication).

    I am starting to design a system that uses an RFIC, a microcontroller and a VI to act as a user interface.  The microcontroller outputs in RS232 to a Lantronix device which packages up the information and sends it over a network. I plan on using LV's VISA to locate the device.  I have not worked with a system like this before and I would like to know how LV sees the data that is being sent over the network and how I can unpackage the data and make sense of it in LV, then output data to be sent to the uC.  I would appreciate any suggestions anyone may have.

    The Lantronix device will install a device driver to the PC that creates a virtual com port.  LabVIEW will communicate with that com port (Let's say Com8) through VISA.  The device driver will handle the communication with the Lantronix device over the network.
    The Lantronix device I used is pretty sophisticated, and was not that easy to set up.  It may also have other methods of communication such as talking to it TCP/IP.  If I remember correctly, it also had a local terminal mode and a remote terminal mode.
    In the end, once I figured out the trick to getting the device driver to work (the instructions were just not that obvious on how you had to set up the ports and open up the firewall to make it work), I was able to use it just like I said at the beginning as a Virtual com port.  I've used other remote serial devices that were truly much more plug and play.

  • Labview interface with micro contoller

    i am new to labview. I need to know whether DAQ card is needed to interface with micro controller? if no need then any one can you explain how to inter face microcontroller 89c51 with Labview...... if needed then explain how to interface?
    JAGADESAN ASOKAN
    J@G@De5@N
    Solved!
    Go to Solution.

    In general, no, you don't need a DAQ, because in your case, the uC is the DAQ. Your challenge is to set up an interface between the computer and the uC (whether using LabVIEW or anything else).
    In my opinion, the easiest way to accomplish that is to set up a serial interface with the uC, and use LabVIEW to control / read the uC serially using VISA. This would require the least amount of hardware and least cost. I2C, if available, is also a way to go if you have the interface.
    Richard

  • Labview interfacing with a multiplexer

    Hello,
    I would just like some help with figuring out how to set-up Labview to interface with a multiplexer. On my  ciruit board, I have an eight channel multiplexer which is connected to eight different-value resistors. What I would like is that on my front panel, there should be an drop-down control that allows the user to select any resistor that is connected to the multiplexer. So basically, Labview should be able to send binary information to the multiplexer, which would then select the appropriate resistor. I am fairly new with Labview and don't know how to go about this problem. Any suggestions will be appreciated.
    Thanks

    Hi,
    All the adress and enable inputs are TTL compatible  (the multiplexer that I'm using is the ADG608 from Analog Devices) and I am currently using the NI PCI-6036E/BNC-2110 starter kit. So, is there a way to implement the interface using this DAQ device? Can I use DAQmx to create a channel just as I would for a normal voltage signal? But I'm not sure how the interface will communicate with the multiplexer.
    Thanks

  • Labview interface with wireless camera

    Has anyone interfaced labview with a wireless webcamera? I have an application that needs to interface my existing labview program with a wireless webcam (802.11b) to monitor a certain space and display live video on the main labview screen.
    Thanks in advance.

    kmoorthy76107 wrote:
    > Has anyone interfaced labview with a wireless webcamera? I have an
    > application that needs to interface my existing labview program with a
    > wireless webcam (802.11b) to monitor a certain space and display live
    > video on the main labview screen.
    > Thanks in advance.
    Most probably your webcam comes with drivers for Video for Windows (VfW)
    or DirectX. In that case you can just use:
    Irene He's IVision Toolkit:
    http://www.hytekautomation.com/Products/ IVision.html
    or
    Pete Parentes WebCam library:
    http://www.cs.unc.edu/~parente/labview/ index.shtml
    The first is a rather impressive Video Manipulation library with a
    nice video capture interface to DirectX/VfW too, and the second is a
    simple video capture library to access any VfW compliant
    device.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Is to possible to control a motor by using fuzzy logic toolbox in Labview and motor interfaced with PIC microcontroller

    sir
     I am doing a  PG project on fuzy logic control of robotic arm,In this first i need to write a code in LABVIEW fuzzy toolbox and interface that that code with PIC where motor is connected and a tachogenerator should be connected to motor to send speed to LABVIEW through PIC microcontroller where ADC is inbuilt in it.
    Please help sir me whether  it is possible to do that ,if not tell me do i require any interfacing device  ,I am very new to labview 

    Now for this problem, Fuzzy can be easily used to control the plant. Here is the softwares that would help in this task:
    - LabVIEW Full Development System (FDS) 2009 or later - The is the LV version that allow you accessing the latest Fuzzy Logic develoment
    - LabVIEW PID and Fuzzy Logic Toolkit 2009 - This has PID and Fuzzy Logic functions available for you to develop your controller
    - LabVIEW Control Design and Simulation Module 2009 - This is a complete set of functions that allow you to simulate and develop advanced control applications. In your case, you probably will be using this module for simulation of the DC motor.
    Now, you also will need a way to read the encoder and control the voltage applied to the motor. You have several options from NI for that process. Probably a multi-function Board could help since they have digital counters and Analog Output signals. However, I can't recommend what would be best for this application, but the ideal platform is the CompactRIO platform for your application. They have a Real-Time controller and integrated Input/Output modules with signal conditioning that could allow you to directly drive the DC motor. I would advice to go to our webside (http://www.ni.com/compactrio/) and verify what this platform does. For this platform, you will also need the following sofrware:
    - LabVIEW Real-Time Module 2009 - Allow you to develop you application in Real-Time for deployment.
    Hope this helps.
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Step by step Labview interface with XBee

    Hey,
    Im currently trying to interface my XBee modules with Labview. I have read the other posts on this subject and have not been able to link my XBee and Labview. I am very new to Labview and would be great to recieve more detailed and descriptive steps on this. Eventually I am going to connect Labview to an Arduino Fio, using two XBee. However for now all I need is successfull interface between labview and XBee. I need to send a signal, recieve it in labview, and send something back. 
    I am using USB explorer boards for connecting XBee's to my computer. I have alraedy configured XBee's using moltosenso network manager (same as XCTU). I cant get VISA wizard to see the USB port. 
    If anyone can explain thoroughly how to interface XBee to labview it would be great! thanks.

    Hello Theguat,
    Thanks for posting at NI forums! I’m linking some discussion forums and information on interfacing Xbee with LabVIEW.
    http://forums.ni.com/t5/LabVIEW/Xbee-using-labview/m-p/739214?requireLogin=False
    http://forums.ni.com/t5/LabVIEW/How-to-send-signals-through-XBee-connected-in-USB-port/m-p/2135382
    http://forums.ni.com/t5/LabVIEW/Connecting-labview-to-xbee/m-p/1070547?requireLogin=False
    https://decibel.ni.com/content/thread/15238
    https://decibel.ni.com/content/thread/10814
    Best Regards,
    Alina M
    Applications Engineering
    National Instruments

  • Labview interfacing with NI cDAQ-9172

    I currently have access to a NI cDAQ-9172 with a NI-9205 AI input
    board and a NI-9481 relay control board. I basically have the DAQ
    Assist tools for the analog inputs and the relay outputs, however, I'm
    having trouble interfacing them together, such as if the two analog
    outputs are above x Volts, turn on the relay control; otherwise, turn
    it off. Do I need to create a task for a specific DAQ Assist tool in
    order to control the behaviour of the relay outputs based on the
    analog inputs?

    Hello Stanley,
    Let me try to address your questions in order:
    1. LabVIEW gives you the ability to program several design patterns
    including Finite State Machine, Master/Slave and Producer Consumer.
    LabVIEW even provides templates for these design patterns, which you
    can create by going to the File menu and selecting New.... The image below shows where you can select from the different design pattern templates.
    For more information about the state machine design pattern specifically, I would recommend that you examine this tutorial.
    2. I believe the "DAQmx Tools" you referred to are the DAQmx sub-VIs in
    the DAQmx sub-palette. You must use the inputs (controls) and outputs
    (indicators) to configure these VIs, there is no pop-up menu like there
    is for the DAQ Assistant. However, you are able to generate the sub-VIs
    from a configured DAQ assistant using the right-click menu, as shown in
    the diagram below. This would allow you to configure your NI-DAQmx operation with the pop-up window, and then optimize performance using the DAQmx sub-VIs.
    3. Based on the description of your application, I would strongly
    suggest that you consider either the state machine template discussed
    above or the NI LabVIEW Statechart Module. This module is designed to
    give you a higher level of abstraction for complex systems. Since you
    already have a flow chart, it seems that it would be pretty easy to
    convert that to a statechart to programmatically implement it. You can
    see a video here on how to implement state machines in the LabVIEW Statechart Module.
    If you have questions about how to architect your program specifically,
    I would recommend that you post to a new forum. You are more likely to
    get better insight and more relevant information on that topic if you
    post a new question that reflects the appropriate topic.
    Message Edited by Matt A on 09-17-2007 07:37 PM
    Matt Anderson
    Hardware Services Marketing Manager
    National Instruments
    Attachments:
    Generate NI-DAQmx Code.JPG ‏16 KB
    Design Patterns.JPG ‏73 KB

  • Labview interface with MongoDb or similar NoSql database

    Hello everyone. I was wondering if anyone has tried interfacing labview with MongoDb or another similair NoSql database? If so what are you experiences and how did you go about doing so?

    Hi landlord,
    Glad you found it useful so far!  In general, I use the MongoDB documentation C# examples and then try to 'match' them in the LabVIEW code.
    For queries it shows the following code:
    var query = Query<Entity>.EQ(e => e.Id, id);
    So I went looking for Query, which exists (MongoDB.Driver.Builders.Query) - but with no public constructor.  For fun, I tried placing a reference to this class and using an invoke node - this lists all the comparison types supported by MongoDB - some of which return a MongoDB.Driver.IMongoQuery.
    I've setup a "AND" query which takes an argument of an array of 'queries' - I've then modified the BSON document code to also return an array of it's BSON elements - you can then create a EQ query for each element and wire them through to the AND query builder.  Probably not optimal but hey, it works
    Regards,
    Peter D
    Attachments:
    MongoDB_LV_Remove.zip ‏525 KB

  • Labview Interface with Cognex

    Hello,
    We want to use Labview as interface visualization of data from an image processing done in Insight environment with a color camera from Cognex.
    What are the ways to recover data in Labview from Insight ?
    Thank you for your responses.

    Christian,
    Cognex In-Sight has nothing related to NI Insight except the name!
    Just two ideas: 
    For communication with Cognex as far as I know, you can use In-Sight OPC server. So, you should be able to get data from Cognex through LabVIEW DataSocket.
    For more deep communication you can use (probably) In-Sight Explorer SDK (but I don't know what is inside exactly).
    And this link may be useful for you:
    http://morethanfunctional.org/index.php?/archives/12-Running-Cognex-In-Sight-1721-in-LabView.html
    Andrey.
    Message Edited by Andrey Dmitriev on 05-19-2010 03:16 PM

  • Labview interface with Instron 3360 Series (for compressive test)

    Hello Forums!
    I have to write a LabVIEW code to read the Instron 3360 to compress a thin-walled cylinder. The cylinder is expected to withstand about 500lb. How do I go about doing this?
    - Thanks! 
    - gibiv (high school student)

    Can you tell me a little more about your application? More specifically:
    1. What is the input/output of the instrument you are using to measure force?
    2. Are you using NI Hardware to communicate with this device?
    3. What drivers are you using?
    4. What version of LabVIEW are you using?
    I have included some general information below about configuring a data acquisition system in LabVIEW. 
    Introduction to Data Acquisition: http://www.ni.com/white-paper/3536/en/
    R. Brill
    Applications Engineer
    National Instruments

  • LabView interface with DLL that uses ActiveX

    I've written a DLL using Microsoft Visual Studio 2005. This DLL uses ActiveX (MSXML4.0). It works fine being called from other applications created in Microsoft Visual Studio. It crashes being called from LabView 7.1. By commenting out everything, I've figured out that it crashes on the call to ActiveX (no problems if this call is commented out). What should I do to make it work?
    I've tried using CoInitialize at the initialization of DLL; it didn't solve the problem.
    Additional information: DLL is using MFC in a Static Library, not using ATL, Character set = Not Set.
    The functions are defined in C calling convention (not __stdcall).
    Please help.
    Thank you.
    Irina Kaliniouk

    Thank you for your answer, but that is not the case. There is no UI in this DLL, but it is using some convinenient MFC classes, like threads, CString, etc. The threading really was not even involved in the example that crashed. The function that crashed was
    selectNodes on MSXML2::IXMLDOMNodePtr. Here is the code:
    MSXML2::IXMLDOMNodeListPtr selectNodes (LPCTSTR expression, MSXML2::IXMLDOMNodePtr pStartNode)
    CComBSTR quesryBstr (expression);
    return pStartNode->selectNodes (quesryBstr.m_str); //_bstr_t(expression));
    where the pStartNode was a root node of
    MSXML2::IXMLDOMDocument2Ptr m_pXMLDoc;
    hr = m_pXMLDoc.CreateInstance ("Msxml2.DOMDocument.4.0", NULL, CLSCTX_INPROC_SERVER);
    I commented out really everything except this function, so there was nothing to corrupt the memory or any other problems.  
    What can be of a problem?
    Thanks.

  • Arduino interface with labview: not able to upload lvifa base file

    guys, you have to really help me out on this one i have been at it for days. i am new to this so please help me out. i have an arduino uno with atmega8 on it and i m trying to interface it with labview but everytime i tried to upload the lvifa base file it shows and error, and it reads "XYZ is not declared in this scope".
    AFMotor.cpp: In function 'void initPWM1(uint8_t)':
    AFMotor.cpp:87: error: 'TCCR2A' was not declared in this scope
    AFMotor.cpp:87: error: 'COM2A1' was not declared in this scope
    AFMotor.cpp:88: error: 'TCCR2B' was not declared in this scope
    AFMotor.cpp:89: error: 'OCR2A' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM1(uint8_t)':
    AFMotor.cpp:108: error: 'OCR2A' was not declared in this scope
    AFMotor.cpp: In function 'void initPWM2(uint8_t)':
    AFMotor.cpp:124: error: 'TCCR2A' was not declared in this scope
    AFMotor.cpp:124: error: 'COM2B1' was not declared in this scope
    AFMotor.cpp:125: error: 'TCCR2B' was not declared in this scope
    AFMotor.cpp:126: error: 'OCR2B' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM2(uint8_t)':
    AFMotor.cpp:146: error: 'OCR2B' was not declared in this scope
    AFMotor.cpp: In function 'void initPWM3(uint8_t)':
    AFMotor.cpp:162: error: 'TCCR0A' was not declared in this scope
    AFMotor.cpp:162: error: 'COM0A1' was not declared in this scope
    AFMotor.cpp:162: error: 'WGM00' was not declared in this scope
    AFMotor.cpp:162: error: 'WGM01' was not declared in this scope
    AFMotor.cpp:164: error: 'OCR0A' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM3(uint8_t)':
    AFMotor.cpp:184: error: 'OCR0A' was not declared in this scope
    AFMotor.cpp: In function 'void initPWM4(uint8_t)':
    AFMotor.cpp:202: error: 'TCCR0A' was not declared in this scope
    AFMotor.cpp:202: error: 'COM0B1' was not declared in this scope
    AFMotor.cpp:202: error: 'WGM00' was not declared in this scope
    AFMotor.cpp:202: error: 'WGM01' was not declared in this scope
    AFMotor.cpp:204: error: 'OCR0B' was not declared in this scope
    AFMotor.cpp: In function 'void setPWM4(uint8_t)':
    AFMotor.cpp:224: error: 'OCR0B' was not declared in this scope
    I tried different arduino IDE versions as well, it not working out.
    Thanks!

    https://decibel.ni.com/content/groups/labview-interface-for-arduino?view=discussions

  • Interface labview program with real appliances

    How do i interface labview program with real life appliances. For example: interface with light bulb

    I suppose you could also find some kind of adapter to turn it into an IP based appliance and you could control it through the ethernet.  Or you could wait a few decades and interface LabVIEW 2059 with your cranial implant to directly control your light bulb. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Interface with LabView

    I am a very new to LabView--
    We are developing a board to interface with LabView devices- (ideally, the board would have a GPIB connector).  We would like to use LabView to simulate various conditions on the Interface board by controlling switching (board MOSFETs) and then use a GPIB controlled multimeter to read voltages coming out of the Interface Board). 
    Since the Interface Board we are working on does not have an "address", is it possible to use LabView to communicate with it (send output signals to the board and read signals from it)?  What is often done to have LabView controlled devices communicate with external circuitry ?
    Thanks,
    Alex  

    Alex00 wrote:
    What would be an advantage of an interface controller (such as 4823) over a DAQ card (such as PCI-6013)?  If we only need about 6-8 inputs (Digital I/O) and maybe about 6 Analog outputs, wouldnt the 6013 be sufficient to interface with our PCBA?
    In your original post, you indicated that a GPIB interface would be ideal. ICS Electronics makes various models of controllers that provide a GPIB SCPI command interface to digital and or analog I/O. This controller can be placed inside the instrument rather than inside a PC and would use GPIB to connect (as you requested).
    I have personal experience with the 4823, which can be used to control/monitor TTL devices on a byte-wise basis. Since you have digital and analog requirements, you could look at the ICS 4807 DAQ board. It may not have enough analog outputs though...
    The only reason I originally responded was your GPIB requirement.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

Maybe you are looking for

  • Error in SAP console - SapSSLInit failed = https support disabled

    Hi, I am using windows 2003 server when logged in to start the SAP console i have the below error. Please note, i have only a user level of knowledge so please help me with the resolution with a clear steps. Thanks in advance for your help Startup Pr

  • File IO operation in EJB (Session Bean)

    Hi all, Requirement : Read contents of a text file and upload the same to Oracle database (table). I have created a Java class (application kind of) which opens, reads a file and transfers its data to a Oracle table. Can I instantiate the same class

  • File problems with Windows 7 and PS Touch on a GS4.

    I'm using a Samsung GS4 and when I export a completed file from PS touch to my gallery in PNG format and then upload to my Windows 7 computer via dropbox they sometimes cannot be opened, does anyone know why? I'd be extremely grateful if anyone could

  • How do you clean the mighty mouse

    The scroll ball is getting stuck. Every once in a while I can get a little gunk (technical term) to roll out. This used to be the case with the old hockey puck mice too. How does one get into the mighty mouse to clean it out?

  • Incorrect update in MD04

    Hi All, I am facing a problem where in i have deleted a delivery but it is still blocking the stock in MD04,it seems there is a OSS note for the same,If so please provide me the Note number if not can anyone help with the solution. Thanks in anticipa