Communicating with serial peripherals via cFP 2120

Hi, I'm using a cFP 2120 for taking measurements from RTD's and I connected the cFP to my PC using an ethernet cable. Since I have to read data also from a temperature controller which communicates using a serial port RS232, I want to know if I can plug it to the cFP, and how can I configure it with MAX or read from LW.
Thanks
sandrino82

I have several applications that do this very thing.
You can use the RS232 port on the cFP to talk to your instrument.   There are a couple of issues to consider.   The cFP does not have a VISA Server in it.  That means that the cFP can't make the COM port available to the network.  The cFP COM port must be accessed by a vi running on the cFP and the data passed on to the remote PC.  The COM port should always be fully configured by your vi.  There is no need to use MAX.
Can you describe your existing software?  Does it include a host and target?

Similar Messages

  • Communicating with Serial Port

    Hi,
    Hi I have an application that i have to communicate with serial port...
    Its working perfectly if am giving all the com settings as constants(pls hav a look @ codea).
    But i want to read the port number and baud reate from text file.When i changed the coding,in the serial
    setting i was not even able to find the port number and baud rate.it was displaying as buffer size.I think the way i connected the port number and baudrate to the clusture may be wrong(pls refer codeb).How do i fix this problem?
    Thanks in Advance....
    Solved!
    Go to Solution.
    Attachments:
    modemsetting.JPG ‏88 KB

    The problem I think is that you don't have a cluster tied to the center terminal of the bundler so most of the values don't have a name. Wire the cluster from above to the center terminal on the lower bundler. BTW, it doesn't matter what values are in the cluster you wire up because they will be overwritten.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Communicating With SQL Server via HTML

    Hello.
    I have recenty reintroduced myself to the Java world after having taken a class in college a few years back. I am trying to retrieve information from a SQL Server based on user input on an HTML form and display it back to HTML. From examples found online and an example from the class that connected to an access DB, I have put the following code together. I know it's not complete but I am stuck. I get a null pointer error on the line: stmt = con.createStatement(); I can't figure it out. I have verified that I can connect to the SQL Server through a command line program but I can't seem to apply it to this scenario. Can someone please help me?!
    package coreservlets;
    import java.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class exiTracking extends HttpServlet {
    public static final String url = "jdbc:microsoft:sqlserver://";
    public static final String serverName= "server4";
    public static final String portNumber = "1433";
    public static final String databaseName= "DB";
    public static final String userName = "user";
    public static final String password = "pass";
    public static final String selectMethod = "cursor";
    public static java.sql.Connection con;
    public static Statement stmt;
    public static String query = "select custid from tarcustomer";
    DOPOST - GATHERS AND POSTS
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String so = request.getParameter("sono"); //get info from html form
    String po = request.getParameter("custpono");
    String title = "Retrieval Result";
    String validationResult ="";
    String redirect = "";
    String headTag = "<HTML><HEAD><TITLE>"+title+"</TITLE>";
    String selectResult = "";
    String endHeadTag = "</HEAD>";
    String resultString = "invalid";
    try {
    con = this.getConnection();
    stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery(query);
    while (rs.next()) {
    String s = rs.getString("custid");
    if(s.equalsIgnoreCase(so)){
    resultString = "valid"; //password is found
    break; }
    rs.close();
    stmt.close();
    catch (SQLException e) {
    System.err.println(e.getMessage());
    if(selectResult == "valid")
    redirect = "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"1;URL=http://java.sun.com\">";
    validationResult = "Successful query. Well done chap. <br>You will be re-directed to our homepage momentarily.";
    else {
    validationResult = "Unsuccessful Search. " +so+ " " +po+ "<br><Br>" +selectResult;
    redirect = "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"2;URL=/sotracking/html/index.html\">";
    String outString = headTag + redirect + endHeadTag +
    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<H1 ALIGN=\"CENTER\">"+validationResult+ "</H1>\n"+
    "</BODY></HTML>";
    out.println(outString);
    try {
    con.close();
    catch (SQLException e) {
    System.err.println(e.getMessage());
    GET CONNECTION
    private java.sql.Connection getConnection(){
    try{
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    con = java.sql.DriverManager.getConnection(getConnectionUrl(),userName,password);
    //if(con!=null);
    }catch(Exception e){
    e.printStackTrace();
    System.out.println("Error Trace in getConnection() : " + e.getMessage());
    return con;
    CONNECTION URL
    private static String getConnectionUrl(){
    return url+serverName+";databaseName="+databaseName+";selectMethod="+selectMethod+";";
    }

    Thanks for the quick reply!
    As I mentioned originally, it's been a while since so please bear with me. I really appreciate your help.
    While I am doing some logging, it is purely by accident as I am copying some text from previous code. I don't remember where or how to view the logs.
    As far as the environment I am running, I am using an app called JEDPlus to edit and compile code for this program. After downloading and installing the Microsoft SQL 2000 Driver for JDBC (including SP3) I used a comand line compiler for a command line program that succesfully connected to a SQL Server to retrieve information based on a command line argument and am using the classpath setup (as well as the other code for connecting to SQL Server) from that and applying it here. I believe I am pointing to the mssqlserver.jar / msutil.jar / msbase.jar / as well as the serlvet.jar files.

  • Communicating with FLASH player via actionscript

    I was wondering of there's a way to control the FLASH player
    (if playing back a .swf directly from the harddrive) with
    Actionscript, so that
    1) the movie opens and plays in "full screen" mode
    automatically
    2) the application can "quit" on button-click (= the
    equivalent of the user hitting the esc key on the keyboard).
    Can I do that? Is there a way to communicate to the actual
    "Player" application in this way? Help would be greatly
    appreciated. Thanks...

    Sunil,
    Still no luck getting the SWF to run under 11.4.402.265 with any of my Mac browsers. The SWF runs fine on PC browsers with 11.4.402.265 installed.
    I confirmed that uninstalling 11.4.402.265 and downgrading to Flash Player 11.3.300.27, the one just prior to 11.4, allows the SWF to run fine again on all browsers.
    The iOS note you provided wouldn't have any direct applicability since we're talking about a web application failing to load. But maybe the "Secure socket connections fail | Mac OS 10.8" issue may have some correlation or side-effect??
    The debugging on this one is a challenge to say the least...
    Rod

  • Commands to FTDI virtual COM port via NI VISA interfere with communication with FTDI chip using D2XX drivers

    Hello!  
    I am trying to communicate with a DLP Design module DLP-USB1232H which uses an FTDI chip.  My program uses the D2XX drivers.  It works, but...
    In another program that runs at the same time, I'm communicating with another instrument via a virtual COM port (VCP) that uses an FTDI UART.  In this program, I use the VISA Serial Port functions.  It works, too, but...
    The first program has the capability of listing all the FTDI devices in the system prior to choosing the right one to communicate with.  When the VCP is plugged in, it lists it (FT232R USB UART) along with the DLP-USB1232H and communication with the latter device works.   But as soon as the second program sends a command through the VCP, the first program no longer "sees" any FTDI device.  It stops working.
    I have tried 2 different FTDI VCPs; one a standalone cable and the other built in to the instrument.
    I’m using Windows 7 32-bit.  My programs are both LabVIEW 8.5 executables. 
    Is VISA "taking over" the channel to the DLP-USB1232H?  Does someone who understands NI's implementation of VISA have any ideas on why VISA is doing this?  Or if something else is going on?
    I'm also interested in workaround ideas.  I've tried a "Prolific" VCP, but most drivers don't work and the one that doesn't give an error in Device Manager doesn't communicate with the instrument.  
    Cheers
    Halden
    Solved!
    Go to Solution.

    Halden,
    It really sounds like you have a resource conflict. That occurs when two programs or parts of programs try to use the same device or port at the same time.  Your Get Device Function probably tries to open a session with each port (as you increment the index). When it hits a port which is being used by the other driver, it cannot open the session and stops working? Have you examined the errors returned by each program? The VISA drivers will return an error when the port is in use.  I do not know about your program or drivers, but I would expect some kind of error.  Automatic error handling in LabVIEW will not catch errors from a driver if it does not translate them to LV error clusters. So do not count on automatic error handling, if you use it, to display all possible errors.
    Lynn

  • I'm having trouble communicating with a transducer (Keyence LS-3100 laser scan micrometer) via the serial port. It works in Hyperterminal. Any suggestions?

    Its not a simple baud-rate or parity error. If I issue the command to send data (X1) in hyperterminal I start to get data. If I then switch to Labview I still get data. However if I try to issue the send-data command via Labview I get nothing (i.e. I can read from the device, but not write to it).
    I am on a Windows 98 (version 2) PC, running Labview 5.1.1

    Try adding a carraige return to the end of your command.
    "djb" wrote in message news:[email protected]..
    > I'm having trouble communicating with a transducer (Keyence LS-3100
    > laser scan micrometer) via the serial port. It works in
    > Hyperterminal. Any suggestions?
    >
    > Its not a simple baud-rate or parity error. If I issue the command to
    > send data (X1) in hyperterminal I start to get data. If I then switch
    > to Labview I still get data. However if I try to issue the send-data
    > command via Labview I get nothing (i.e. I can read from the device,
    > but not write to it).
    > I am on a Windows 98 (version 2) PC, running Labview 5.1.1

  • Cannot connect to cFP-2120 via FTP

    I am using several cFP-2120 running LV RT 8.2.1 with the FieldPoint drivers version 5.0.1. for process control and data acquisition. All data are logged to a file and broadcasted via network-shared variables. The data files can be downloaded using an external ftp client. Lately, two of our units have been giving me some trouble as I sometimes can not access the cFP2120s via ftp. I can ping the unit on the network though, all programs are still running and I can still access the network-shared variables. Only a reset of the controller seems to solve the issue.
    Any pointers would be greatly appreciated.
    Volker 

    Kyle,
    Thanks again for contributing.
    > Can you only connect one time after you reset and it stops working if you try to reconnect shortly there after or does it work for awhile and then eventually it stops working?
    After we reset the controller it seems to always work for awhile before it stops working again.
    > Are you using the controller to perform any other tcp communications with an other servers, besides the network shared variables? 
    Our system is configured as a slave on a Modbus TCP network and is queried typically once a minute.
    > Whats your memory usage on the cFP? Do you have the System State Publisher software loaded? Try connecting with DSM and see how much CPU and Memory usage you are using.
    No, I havent done this yet. I think this was instroduced with LV8.6? I just upgraded to the latest LV version and will investigate. This will take a week though.
    > Can you check the timeouts in MAX to make sure they didn't get changed? Right click on the cFP and select Communication Timeout Settings. From stock they should be 15000 ms.
    The timeout in MAX is still 15000ms.
    > Are these cFP dedicated to just this one task or are they reconfigured from time to time?
    We only reconfigure these units when we upgrade the software. This has been less frequent lately and happens maybe once a year.
    All the best,
    Volker

  • Cfp-2120 serially trasmit IO module data

    We have a  cFP-2120 with AO, DO, DI, and AI modules connected.
    All work fine.  Using Ethernet communications.
    Can apply a voltage on the AI and do a FP Read ala the example Analog Input.vi
    Receive expected measurement.
    Curious if its possible to alternatively do this with a serial connection.
    Can I send an FP Read through serial connection and read back the resulting IO module channel value through the same serial connection?

    Wes_OH - the FP-100x (As well as the cFP-180x) are not "intellegent" controllers, meaning you cannot run LabVIEW RT on the controller.  You read data from the 100x to your PC over a serial connection.  The RT controllers (like your 2120) do not send data over the serial port, they publish their I/O over Ethernet.  The serial port on the 2120s are available so your embedded application can utilize the port for serial communication, it is not intended to be used the same way as a FP-1000 or cFP-180x serial port.
    You may still be able to use the FP-1000 application with your 2120, it depends on how the FP-1000 application was written.  Is it a LabVIEW application?  Is it using the Optomux VIs to communicate with the 1000?  Or is it using the FieldPoint Write and Read VIs?  If you are using the Optomux VIs, then you cannot reuse the application because the 2120 does not have a Optomux server running on it.  If you are using the FieldPoint Read and Write VIs, then there is a good chance you can reuse that application because those VIs support Optomux (over serial) and Ethernet communication (for the 2120) depending on the I/O Point you are trying to communicate with.
    -Tommy

  • Problem with slow execution on a cFP-2120

    I have an application that runs on a cFP-2120, using web interface for the user to interact with the program.
    I have noticed that in order to get the web interface to get updated I have to use property nodes and write to the value property, see this article:
    http://digital.ni.com/public.nsf/allkb/FC5024A5DD6344C886256C8C0054689B?OpenDocument
    However, this seems to give me a serious performance hit, as described here:
    http://forums.ni.com/ni/board/message?board.id=170&thread.id=153531&view=by_date_ascending&page=1
    I have tested with this code, and with my LV 8.2 a loop that uses 277ms to complete when writing directly to a indicator will use 203159ms when using a property node.
    So, I need to update several front panel objects using the value property, but can't afford the cpu time. Does anyone have a suggestion how to do this as efficiently as possible? The problem is apparantly that using the value property requires the front panel to be loaded - can I for instance avoid doing this once for each variable?

    I've changed the vi now so it only writes to value property when a value has changed. This has cut execution time in half, from 500ms to 250ms. I still think this is quite a lot...
    To give you an indication of "size", the executeable is 1210kb with 2 dll's of 872 and 168kb.
    I've not tried deploying a smaller (cut down?) version - what exactly do you mean?
    With regards to writing to value instead of locals or directly - I've had problems with the values not updating - but not always - and the first link does suggest a bugfix. I'd like to know why wiring to value property is sometimes needed and sometimes not.

  • Communication with XRAID via XRAID Admin frustration

    I have an XRAID that properly mounts and works flawlessly from a storage point of view. However, I can't seem to be able to communicate with the device via RAID Admin. I have hard reset the power (unplug for > 1hour) the RAID.
    To start the debug process, I downloaded RAID Admin onto my macbook pro and tried to find the XRAID. It worked perfectly. I can see both ethernet cards. It reports all is well with the device. I am spinning my wheels trying to find out what the difference between the two setups are.
    I tried to manually input the ip addresses of the RAID controller (that I received from my laptop. 169.xxx.xx.xx from both cards) on my xserve to establish the connection with no success.
    My xserve has a DNS without automatic client Bonjour browsing for domain enabled. My network input to my server comes from a comcast cable modem to an apple extreme then to the server.
    Any ideas to further debug are really appreciated.
    Much thanks
    darnelld

    What is the IP address of the computer your are trying to reach the 169.x machines? I'll assume you're talking about 169.254.x.x address - it must also be in the 169.254.x.x IP address range to talk to a network connection.
    Certain IP ranges are set aside as special (169.254.. is self-assigned, 192.168.. is local) and are unroutable from outside that space. If your computer is on a publicly addressable space you will not be able to establish communication with a computer in any of these special non-routable ranges.
    You either need to force a computer into the same space or make (at least) one of the network cards have a publicly reachable IP address via DHCP or whatever method you want.
    HTH,
    =Tod

  • I just got the iPhone 5S.  I am able to RECEIVE air drops from people, but I can't send anything via Air Drop.  I doesn't seem to be communicating with others.  I have Air Drop to communicate with my contacts, but it isn't working.  :(  Help!

    I just got the iPhone 5S.  I am able to RECEIVE air drops from people, but I can't send anything via Air Drop.  I doesn't seem to be communicating with others.  I have Air Drop to communicate with my contacts, but it isn't working.    Help!

    iOS: Use AirDrop to wirelessly share content

  • I have a problem with my i phone ,   My i phone 4 with serial no.  84040U7UA4S is closed to American communication network AT

    I have a problem with my i phone ,
    My i phone 4 with serial no.  84040U7UA4S is closed to American communication network AT&T  and now I live in Cairo Egypt so is there any way to convert it to be opened international to be able to use in Egypt
    kindly please if you are the key person of this problem please help and if not please forward this e-mail to the right person.
    Thanks in advance for your positive action , and we do appreciate your prompt reply.

    Sell that iPhone to someone going to US or already in US
    and buy one locally. AT&T does not unlock iPhones for any one
    for any reason. You cannot use that iPhone in Egypt. There is
    no problem with your iPhone - it is working as intended: it was
    locked to AT&T and still is.

  • LV8 upgrade for cFP-2120 with LVRT 7.1

    We need to update the embedded software for cFP-2120 units distributed to customers.  The units are shipped with LVRT 7.1 and the embedded programs are written in LV 7.1.   We have installed LV 8.  Can we update the LV 7.1 programs to LV 8 and then update the embedded programs on the cFP-2120?

    You need to do a couple things first.  You need to perform a Mass Compile on all of your VIs to update them to LabVIEW 8.0.  Also, you need to update your cFP-2120 to RT 8.  Once you have done this, you can update the VIs on the cFP with the 8.0 ones.  Here are a couple of links to help you out.
    Updating controller:
    http://digital.ni.com/public.nsf/websearch/788668A298E28DDD86256B46000BDAE6?OpenDocument
    Mass Compile:
    http://zone.ni.com/reference/en-XX/help/371361A-01/lvhowto/mass_compiling_vis/
    Regards,
    L. Allen

  • Serial communication with Omni Link

    Has any body had any success communication with an Omni Link 5000 using LabVIEW?
    Thanks.

    If you're using a serial connection can you talk to it using HyperTerminal, or equivalent serial communication program? You should check this first.
    More than likely the issue is with termination characters. Check the documentation to determine what termination characters need to be used when sending commands, and what termination characters are used to indicate the end fo a read. For commands it's usually just a carriage return, and for reading data it's usually a linefeed.

  • SAP- FIORI communication with peripherals ?

    Does SAP-Fiori can communicate with external peripherals like Bluetooth bar code scanner, RFID scanner etc .?
    Like instead of entering the serial numbers manually can SAP-Fiori provide an interface where we can get the serial numbers of the material directly from an external device.
    Regards
    Omar

    Hi Masa,
    in my first post I quoted :
    SAPUI5 Overview
    page 10 : "Internet Explorer 8 is supported with graceful degradation for CSS3 features
    like rounded corners, text-shadows, etc. "
    and also the same link as you :
    Browser support in SAPUI5
    "Browsers With Restricted Support
    Internet Explorer 8: There are degradations in visual design and over time also restricted functionality. So far, there is no functional restriction but when HTML5 features are added to SAPUI5 which are not available in IE8, there is not necessarily an alternative solution created by the SAPUI5 teams.
    and the degradations are described here :
    Documentation/AdvancedTopics/GracefulDegradation – SAPUI5 Wiki (TIP CORE User Interface)
    But the applications are not working at all ...
    Regards,
    Alexandre

Maybe you are looking for

  • My iPad cannot find my HP AirPrint printer HP 3050 .  We are on the same network

    I have recently converted all our family devices to Apple.  My Mini-Mac has found my printer as well as my Mac Air.  The only device that has not is my wife's iPAD.  She is on the same home network as my other systems, but no results.  Software updat

  • CDROM Mount Solaris 10 x86

    BACKGROUND: In support of the U.S Navy, I've developed an IETM in XML and distributed it as PDF documents (in the Windows XP environment) meeting the current Military standards. My new tasking; However, is to ensure that this project can run on both

  • Missing points, transaction was not recorded on my account but another.

    My father recently went in to buy a new HDTV and was assured by the represenative at the store that the points for the tv would be added to my account, the account we both do our shopping on. I do believe he in fact did purchase the HDTV with the Bes

  • Re: dualphone 4088 keeps saying network connection...

    OMG, I can't believe Chat and Vision - I have this problem on a unit received today - Worked for like 20 minutes then looses it's IP Address and will only work as a land line. So I phone them, get someone who know a bunch of english words, but unfort

  • Design Standard does not appear in the options

    I have downloaded the application manager from the Design Standard downloads on the website, but when it installs and runs, Design Standard is not in the applications available. Only Premium, Master and the individual applications. Where is and how d