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.

Similar Messages

  • How to interface with ROWID column in DB2?

    I'm using DB2 version 7.1.
    I have a column in a table called ROWID, and the Data Type is ROWID. However, I don't know how to interface with it in Java. For example, for CHAR and VARCHAR, I use the String class. For SMALLINT, I use int, etc. But what do I use for ROWID? It's not in the java.sql.Types list. The DB2 manual says it is stored as a VARCHAR(17), but I didn't just want to assume I could use String.
    Any thoughts?

    try getObject() and see what kind of object you get:
    ResultSet rs = statement.executeQuery("...");
    while(rs.next()) {
      Object o = rs.getObject(1); // the rowid column
      System.out.println(o + " class: " + o.getClass().getName());
    }

  • LabVIEW 3.1 SE: how to interface with Centronics

    I would to interface my serial ADC (ADS7822) via
    Centronics so I was wondering how I can do it
    by usinf LabVIEW 3.1 Student Version.
    Thanks in advance.

    The printer port (Centronics) is parallel communication and you'll need a converter. The ones in my Black Box catalog (www.blackbox.com) are not cheap - ~U$100. Cheaper to buy another serial port card for the computer. You'd then have the problem of how to communicate with the parallel port. Version 3.1 is extremely old. With a newer LabVIEW version you'd have more options.

  • TrueTime Card and how to interface with dll file!?

    I am trying to interface with a PCI-SG 2U (IRIG) timing card (Used to made by TrueTime, now Symmetricom).  Does anyone have a solution for this card in LV 2009?  
    If not, can anyone give advice on writing code to interface with .dll file?  I am not sure how to pass through the "GENERIC_READ | GENERIC_WRITE" into the function to open the device. The function says to open it is: 
    TT_OpenDevice(boardID, GENERIC_READ | GENERIC_WRITE, &hDevice)
    No clue on how to pass this in.  Can anyone help?
    Thanks - 
    Tom

    Thanks Mike.  I do have the .h file and the sdk information.  I went through and used the Import>Shared Library Tool and was able to find all the header information that way.  I guess that my problem/question is, the documentation says that it is a DWORD to pass as an input, but LabVIEW says it is a uint32.  I guess the real question is, what the heck do I pass in to the dll function?  Should it be the string "GENERIC_READ | GENERIC_WRITE" or something else?
    Thanks - 
    Tom

  • 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

  • Buffer overrun with rxtx API (serial communication)

    Hi,
    I've succesfully installed the rxtx API (http://www.rxtx.org) and I really love it. I do however experience a problem. When I connect my serial device (a USB device which enumerates as a virtual COM port) and communicate with it, then there's no problem at all. But when I disconnect the device when the COM port is still opened and then shut down my Java application, then I get an error:
    Microsoft Visual C++ Runtime Library
    Program: C:\Program Files\Java\jre1.6.0_03\bin\javaw.exe
    A buffer overrun state has been detected which has corrupted the program's internal state. The program cannot safely continue execution and must now terminate.
    Any idea on how I can prevent this error from appearing?
    Best regards,
    RoDeNtJe

    Yeah, I know that's what you 'should' do, but a user doesn't always do what you expect they 'should' do. So if a user does pull out the USB cable before the application is shut down and the COM port is closed, then the error appears. Isn't there a way to catch that exception?
    Best regards,
    RoDeNtJe

  • 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

  • How to interface with NI PCI-7344

    Hi,
    First off,i have to say im a newbie with labview so if tis is some stupid qns,my apologies.I nid to work out a program using LabView 8.0 to control a stepper motor thru NI PXI-7344 and the NI UMI-7764. The program is ready with the output as a 32-bit integer, However i am clueless to wad should i connect it to. can some1 kindly plz help me thanks
    ~Nova
    Attachments:
    Example.vi ‏18 KB

    Nova,
    Since you have a PXI-7344, it should have come with the NI-Motion
    driver. Is that something that you have installed currently? If not,
    you can find the latest version here.
    To learn how to programmatically control a stepper motor, you might
    want to start off by taking a look at some of the examples that come
    with LabVIEW. To access them, open up LabVIEW, then go to Help >>
    Find Examples...
    Using the Browse by Task option, expand the Hardware Input and Output
    folder, and then the Motion Control folder. Here you will find many
    examples that you can examine to learn her to program your motion
    control application.

  • How to interface with Chameleon camera

    Hi everyone,
    I am trying to use Labview to control Chameleon camera, which is from Point Grey Research. I am using the ActiveX control interface and I have encounter a problem of using "Call Library Function" node. I am using that node to get the image array from a pointer and trying to display. However, the "Call Library Function" node doen't work.
    I am wondering how can I get the  image array from a pointer that is used by the FlyCapture?
    Was there anyone experience the same thing?
    Thanks.
    Carson

    CarsonZ,
    Please check to see if your camera is supported by the Industrial Camera Advisor. Also, when you say that the Call Library Function node does not work, does it return a specific error message or just not return any data?
    Lastly, is the FlyCapture application an ActiveX enabled application? If so you should be able to register for events and also pull the information from the application by running through this help document.
    Logan H
    National Instruments
    Applications Engineer

  • How to Interface with IP in Kernel

    I have a unique problem regd solaris network stack.
    I want to add a new protocol over solaris IP, say RIP.
    How can it be done ?? Does Solaris IP use the published NPI interface ??
    or does it use some other published interface ??
    Can we write a streams module and push it over IP driver to get particular protocols packets from IP??
    If i want to replace IPSec module of Solaris because of some proprietary feature enhancement, is it possible to do that ??
    Regards
    Girija

    try getObject() and see what kind of object you get:
    ResultSet rs = statement.executeQuery("...");
    while(rs.next()) {
      Object o = rs.getObject(1); // the rowid column
      System.out.println(o + " class: " + o.getClass().getName());
    }

  • How 7921 interface with 3rd party; guest service contact center?

    I want to use 7921 for staff in hotel to get sms from "guest service contact center", how to do the interface?

    You can write an application to push text to 7921, using CiscoIPPhoneExecute and CiscoIPPhoneText object. Check out Cisco's SDK for more information about using these objects.
    There are 3rd party products, like PhoneTop Messenger, which allow you to push text/audio to Cisco IP phones.

  • How to interface with Trial Version of Netweaver 7.01

    Is there a way for an external ,NET program to communicate with the Trial Verson of Netweaver 7.01?
    I've tried the .NET Connector version 2.   However when I try to expand the BAPI or RFC folder in VS 2003 I get the message, "Unable to open c:\windows\sapmsg.ini
    I've tied creating a web service from a BAPI.  However it fails in the last step.   No real explanation.  It ust fails   Furthermore when I go into SOAADMINr, I receive the error URL http://"xxxx":8000/sap/bc/webdynpro/sap/appl_soap_management call was terminated because the corresponding service is not available.

    It was an installation problem

  • Interface with Yahoo Games?

    Hello:
    I would like to try to write an my own applet to interface with the game server at Yahoo. Is that possible? Can someone points me to the documentation of how to interface with Yahoo game servers, please?
    Thanks.

    Of course it's possible. However, they must first define an API or some interface for using their games. You need to get in touch with the people at Yahoo and find out what their interface is. You may use EJB, RMI, or who knows. You may have to use JNI, but it all depends on how Yahoo has their games setup. Without more information, I can't give you a specific answer.

  • Interface with SHBrowseForFolder Function (shell32.dll)

    Dear OTN members,
    Anyone there know how to interface with SHBrowseForFolder
    Function in "shell32.dll" Windows NT's library ?
    Regards
    Khoo
    null

    I am currently using oracle developer Forms4.5 (release 1.6).
    TQ
    Regards,
    Khoo
    null

  • Database design to support parameterised interface with MS Excel

    Hi, I am a novice user of SQL Server and would like some advice on how to solve a problem I have. (I hope I have chosen the correct forum to post this question)
    I have created a SQL Server 2012 database that comprises approx 10 base tables, with a further 40+ views that either summarise the base table data in various ways, or build upon other views to create more complex data sets (upto 4 levels of view).
    I then use EXCEL to create a dashboard that has multiple pivot table data connections to the various views.
    The users can then use standard excel features - slicers etc to interrogate the various metrics.
    The underlying database holds a single days worth of information, but I would like to extend this to cover multiple days worth of data, with the excel spreadsheet having a cell that defines the date for which information is to
    be retrieved.(The underlying data tables would need to be extended to have a date field)
    I can see how the excel connection string can be modified to filter the results such that a column value matches the date field,
    but how can this date value be passed down through all the views to ensure that information from base tables is restricted for the specied date, rather than the final results set being passed back to excel - I would rather not have the server resolve the views
    for the complete data set.
    I considered parameterisation of views, but I dont believe views support parameters, I also considered stored procedures, but I dont believe that stored procedures allow result sets to be used as pseudo tables.
    What other options do I have, or have I failed to grasp the way SQL server creates its execution plans and simply having the filter at the top level will ensure the result set is minimised at the lower level? (I dont really want the time taken for the dashboard
    refresh to increase - it currently takes approx 45 seconds following SQL Server Engine Tuning Advisor recommendations)
    As an example of 3 of the views, 
    Table A has a row per system event (30,000+ per day), each event having an identity, a TYPE eg Arrival or Departure, with a time of event, and a planned time for the event (a specified identity will have a sequence of Arrival and Departure events)
    View A compares seperate rows to determine how long between the Arrival and Departure events for an identity
    View B compares seperate rows to determine how long between planned Arrival and Departure events for an identity
    View C uses View A and view B to provide the variance between actual and planned
    Excel dashboard has graphs showing information retrieved from Views A, B and C. The dashboard is only likely to need to query a single days worth of information.
    Thanks for your time.

    You are posting in the database design forum but it seems to me that you have 2 separate but highly dependent issues - neither of which is really database design related at this point.  Rather you have an user interface issue and an database programmability
    issue.  Those I cannot really address since much of that discussion requires knowledge of your users, how they interface with the database, what they use the data for, etc.  In addition, it seems that Excel is the primary interface for your users
    - so it may be that you should post your question to an excel forum.
    However, I do have some comments.  First, views based on views is generally a bad approach.  Absent the intention of indexing (i.e., materializing) the views, the db engine does nothing different for a view than it does for any ad-hoc query. 
    Unfortunately, the additional layering of logic can impede the effectiveness of the optimizer.  The more complex your views become and the deeper the layering, the greater the chance that you befuddle the optimizer. 
    I would rather not have the server resolve the views for the complete data set
    I don't understand the above statement but it scares me.  IMO, you DO want the server to do as much work as possible since it is closest to the data and has (or should have) the resources to access and manipulate the data and generate the desired
    results.  You DON'T want to move all the raw data involved in a query over the network and into the client machine's storage (memory or disk) and then attempt to compute the desired values. 
    I considered parameterisation of views, but I dont believe views support parameters, I also considered stored procedures, but I dont believe that stored procedures allow result sets to be used as pseudo tables.
    Correct on the first point, though there is such a thing as a TVF which is similar in effect.  Before you go down that path, let's address the second statement.  I don't understand that last bit about "used as pseudo tables" but that sounds more
    like an Excel issue (or maybe an assumption).  You can execute a stored procedure and use/access the resultset of this procedure in Excel, so I'm not certain what your concern is.  User simplicity perhaps? Maybe just a terminology issue?  Stored
    procedures are something I would highly encourage for a number of reasons.  Since you refer to pivoting specifically, I'll point out that sql server natively supports that function (though perhaps not in the same way/degree Excel does).   It
    is rather complex tsql - and this is one reason to advocate for stored procedures.  Separate the structure of the raw data from the user.
    (I dont really want the time taken for the dashboard refresh to increase - it currently takes approx 45 seconds following SQL Server Engine Tuning Advisor recommendations)
    DTA has its limitations.  What it doesn't do is evaluate the "model" - which is where you might have more significant issues.  Tuning your queries and indexing your tables will only go so far to compensate for a poorly designed schema (not that
    yours is - just a generalization).  I did want to point out that your refresh process involves many factors - the time to generate a resultset in the server (including plan compilation, loading the data from disk, etc.), transmitting that data over the
    network, receiving and storing the resultset in the client application, manipulating the resultset into the desired form/format), and then updating the display.  Given that, you need to know how much time is spent in each part of that process - no sense
    wasting time optimizing the smallest time consumer. 
    So now to your sample table - Table A.  First, I'll give you my opinion of a flawed approach.  Your table records separate facts about an entity as multiple rows.  Such an approach is generally a schema issue for a number of reasons. 
    It requires that you outer join in some fashion to get all the information about one thing into a single row - that is why you have a view to compare rows and generate a time interval between arrival and departure.  I'll take this a step further and assume
    that your schema/code likely has an assumption built into it - specifically that a "thing" will have no more than 2 rows and that there will only be one row with type "arrival" and one row with type "departure". Violate that assumption and things begin to
    fall apart.  If you have control over this schema, then I suggest you consider changing it.  Store all the facts about a single entity in a single row.  Given the frequency that I see this pattern, I'll guess that you
    cannot.  So let's move on.
    30 thousand rows is tiny, so your current volume is negligible.  You still need to optimize your tables based on usage, so you need to address that first.  How is the data populated currently?  Is it done once as a batch?  Is it
    done throughout the day - and in what fashion (inserts vs updates vs deletes)?  You only store one day of data - so how do you accomplish that specifically?  Do you purge all data overnight and re-populate?   What indexes
    have you defined?  Do all tables have a clustered index or are some (most?) of them heaps?   OTOH, I'm going to guess that the database is at most a minimal issue now and that most of your concerns are better addressed at the user interface
    and how it accesses your database.  Perhaps now is a good time to step back and reconsider your approach to providing information to the users.  Perhaps there is a better solution - but that requires an understanding of your users, the skillset of
    everyone involved, what you have to work with, etc.  Maybe just some advanced excel training? I can't really say and it might be a better question for a different forum.   
    One last comment - "identity" has a special meaning in sql server (and most database engines I'm guessing).  So when you refer to identity, do you refer to an identity column or the logical identity (i.e., natural key) for the "thing" that Table A is
    attempting to model? 

Maybe you are looking for

  • Colors when exporting to PDF get all screwy

    This just started last Friday - all of the sudden I can no longer print to PDF, export as PDF, export as a JPEG, copy to Photoshop or anything like that without the colors "solarizing" - it's almost like a reverse image. Type, imported photos, vector

  • Configuration Component or Application Configuration in PCD?

    Hi, If I develop a self-service application based on FPM, do I have a choice between implementing a Configuration Component and implementing an application configuration in PCD? Or, both of them should exist/be created? I'm confused between the both.

  • Export a final cut clip to motion

    i need help? the steps 1- click the cilp 2-sent to motion 3-save as 4-working the clip 5-save the clip 6-quit motion the clip appear in final cut with a red bar (it suppose to be render) here is the problem when i check the clip appears with all the

  • Robert Crooks tutorial problem

    The compiler complains about the DataController class not being in a package: "A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a pac

  • Stock ageing in MM

    Did any have stock ageing report in MM. Would you plz send code if available.