Module 9870 for reading 4 serial devices...

Hello,
I want to use the 9870 Module with the cRIO 9022 to be able to read 4 diferent serial devices. Is this possible? If so, do you have a VI that can handle the 4 devices??  The example you have can handle only one port.
Thanks,
Hector.

Hello Hector,
I am sorry I pointed you to an example that wouldn't help you.  To configure the serial ports you can just drop an FPGA I/O point on the block diagram.  Each I/O point has a variety of properties to it as shown in the picture below.  You can place multiple loops down to talk and listen to each port on your 9870 independently.
Message Edited by ColeTrain on 05-11-2009 12:38 PM
ColeR
Field Engineer
Attachments:
9870 port config options.png ‏7 KB

Similar Messages

  • Function for reading from serial port

    Hi experts,
    We are trying to read data from the serial port with the following function we got from internet.
    The problem is when creating the object with the sentence CREATE OBJECT o_obj '"MSCOMMLib.MSComm.1"'.
    This returns a sy-subrc = 2 and shows the exception NO_CREATE_OBJECT.
    We already copied the file MSCOMM32.OCX in c:\windows\system32 and we successfuly registered it, with regsvr32.exe.
    We tried it with Windows XP and Vista.
    Anybody has any idea?
    Thanks in advance
    FUNCTION ZSERIALCOM.
    ""Interfase local
    *"  IMPORTING
    *"     REFERENCE(MODE) TYPE  I DEFAULT 0
    *"     REFERENCE(COMMPORT) TYPE  I DEFAULT 1
    *"     REFERENCE(SETTINGS) TYPE  C DEFAULT '2400,N,8,1'
    *"     REFERENCE(OUTPUT) TYPE  C OPTIONAL
    *"  EXPORTING
    *"     REFERENCE(INPUT) TYPE  C
    *"  EXCEPTIONS
    *"      NO_CREATE_OBJECT
      TYPE-POOLS: sabc.
      INCLUDE ole2incl.
      PERFORM init.
      PERFORM open_port USING commport settings.
      IF mode = 0.
        PERFORM read_port
        CHANGING input.
      ENDIF.
      IF mode = 1.
        PERFORM write_port
        USING output
        CHANGING input.
      ENDIF.
      PERFORM final.
    ENDFUNCTION.
    DATA: o_obj TYPE ole2_object.
    *& Form Init
    text
    --> p1 text
    <-- p2 text
    FORM init.
    DATA:
    wa_repid LIKE sy-repid.
    wa_repid = sy-repid.
    CALL FUNCTION 'AUTHORITY_CHECK_OLE'
    EXPORTING
    program = wa_repid
    activity = sabc_act_call
    application = 'MSCOMMLib.MSComm.1'
    EXCEPTIONS
    no_authority = 1
    activity_unknown = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CREATE OBJECT o_obj '"MSCOMMLib.MSComm.1"'.
    IF sy-subrc <> 0.
    RAISE no_create_object.
    ENDIF.
    ENDFORM. " Init
    FORM open_port *
    --> COMMPORT *
    --> SETTINGS *
    FORM open_port USING commport settings.
    SET PROPERTY OF o_obj 'CommPort' = commport.
    SET PROPERTY OF o_obj 'Settings' = settings.
    SET PROPERTY OF o_obj 'InputLen' = 0.
    SET PROPERTY OF o_obj 'PortOpen' = 1.
    ENDFORM. "open_port
    FORM read_port *
    --> INPUT *
    FORM read_port
    CHANGING input.
    DATA:
    wa_buffer TYPE i.
    DO 10 TIMES.
    GET PROPERTY OF o_obj 'InBufferCount' = wa_buffer.
    IF wa_buffer > 0.
    GET PROPERTY OF o_obj 'Input' = input.
    EXIT.
    ENDIF.
    ENDDO.
    ENDFORM. " read_port
    FORM write_port *
    --> OUTPUT *
    FORM write_port
    USING output
    CHANGING input.
    DATA:
    wa_buffer TYPE i.
    SET PROPERTY OF o_obj 'Output' = output.
    DO 10 TIMES.
    GET PROPERTY OF o_obj 'InBufferCount' = wa_buffer.
    IF wa_buffer > 0.
    GET PROPERTY OF o_obj 'Input' = input.
    EXIT.
    ENDIF.
    ENDDO.
    ENDFORM.
    *& Form final
    text
    --> p1 text
    <-- p2 text
    FORM final.
    SET PROPERTY OF o_obj 'PortOpen' = 0.
    FREE OBJECT o_obj.
    ENDFORM. " finalbligw

    Hi ,
    I want to read value form weigh bridge through COMM port. I have developed the FM and done the setting as mentioned in the below link
    Read COMM port using ABAP w/o third party software 
    but while executing the FM independently I am able to get the value from the COMM port,but when I call the FM from a program I am not able to get the output value from the FM.I am calling the FM from the report program.please find the code below.
    report test.
    data : lv_input TYPE c.
    CALL FUNCTION 'ZFM_WEIGHINTERFACE'
      EXPORTING
        MODE                         = 0
        COMMPORT               = 1
        SETTINGS                  = '1200,N,8,1'
        OUTPUT                     = ''
      IMPORTING
        INPUT                        = lv_input
      EXCEPTIONS
        NO_CREATE_OBJECT       = 1
        OTHERS                 = 2
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.
    if I execute the FM independently the output is getting perfectly.but while calling from a program i am facing the issue..
    any suggestion is appreciated.
    Thanks
    Vivek

  • Visa read object difference parity setting for PC and TPC2012 device

    Hello,
     we found some difference between application running in PC and runing in TPC2012 device.
    We tested modbus communication via RS485 (9600b/s, 8bits, parity even) between PLC(master) and TPC2012 (slave). We used Visa read object and set parity to Even via property node. From the PLC we sent request to device and in our application we only read the data from PLC and displayed it (8bytes) on sreen.
    If we tested the application on PC everything worked fine. But if we compiled application and ran it in TPC2012 device  the data was different (for example if I sent request from PLC to slave 05 03 00 01 00 01 crc crc on the TCP I saw 00 03 00 01 00 01 crc crc. The  crc on TPC wasn't equal to crc on PLC.
    We found that problem was in VISA read setiing for read data in TPC device. If we set parity to SPACE (instead of EVEN)  then we read data correctly.
    Modbus - Parity set for VISA read object:
    Master PLC (even) - PC (even) -> visa read - data are equal
    Master PLC (even) - TPC (even) -> visa read - data aren't equal
    Master PLC (even) - TPC (space)-> visa read - data are equal 
    PC: Win XP SP2, LabView 8.5 with LabView TP module 8.5.
    TPC2012: WinCE 5.0, NI visa 4.2, NI TPC Service 1.0.
    Best regards,
    Pavel Rucka.

    I just found out that the VI for the currentmeasurement with the keithley 6517a has the same error but still works fine. Now I also tried to adjust the serial data bit and parity settings via the VISA configure serial port function but still no improvements.

  • I plugged my iphone in for the first time to my itunes account and it now reads that this device is already  associated with an apple id.  what does that mean.  i only have one apple id. and do i chose cancel or transfer?

    i plugged my iphone in for the first time to my itunes account and it now reads that this device is already  associated with an apple id.  what does that mean.  i only have one apple id. and do i chose cancel or transfer?

    Hello there, Shellywms09.
    The following Knowledge Base article points out why you are receiving that message on your iPad:
    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro

  • Customised module for reading Excel files.

    Hi Gurus,
    I have to develop a customsed java module for reading Excel files from PI. I downloaded NWDS 7.31 from following location NWDS Download links - Java Development - SCN Wiki. I have installed it on my local laptop. For developing the module I need following Jar files.
    com.sap.aii.af.ms.svc_api
    com.sap.aii.proxy.svc_api.jar
    com.sap.aii.sec.svc_api.jar
    com.sap.aii.utilxi.server.jar
    com.sap.aii.utilxi.core.jar
    com.sap.xi.mapping.tool.lib_api.jar
    sap.com~tc~bl~txmanagerimpl~plb~impl.jar
    sap.com~tc~je~appcontect_api~API.jar
    com.sap.aii.af.cpa.svc.api
    com.sap.aii.af.lib.mod
    com.sap.aii.af.ms.ifc_api
    com.sap.aii.af.svc_api
    com.sap.xpi.ib.mapping.lib
    1. Where can i get these jar files. I checked these files in my downloaded NWDS 7.31  package, but cold not find them.
    Thanks in advance

    Hi.
    Check this thread.
    Where to get the libraries for XI development - Process Integration - SCN Wiki
    Regards
    Lucho

  • Function module for reading payroll results

    HI,
    I need a function module for reading payroll results RT table.
    Import parameters are personal number, payroll area, and payroll period.
    Export should be RT table.
    Regards,
    Wasim Ahmed

    Hai Wasim
    Check the following Code
    data: payroll_cluster like t500l-relid.
        call function 'PYXX_READ_PAYROLL_RESULT'
             exporting
                  clusterid                    = payroll_cluster
                  employeenumber               = pernr-pernr
                  sequencenumber               = payroll-evp-seqnr
                READ_ONLY_BUFFER             = ' '
                READ_ONLY_INTERNATIONAL      = ' '
                CHECK_READ_AUTHORITY         = 'X'
           IMPORTING
                VERSION_NUMBER_PAYVN         =
                VERSION_NUMBER_PCL2          =
             changing
                  payroll_result               = payroll_us
            exceptions
                 illegal_isocode_or_clusterid = 1
                 error_generating_import      = 2
                 import_mismatch_error        = 3
                 subpool_dir_full             = 4
                 no_read_authority            = 5
                 no_record_found              = 6
                 versions_do_not_match        = 7
                 others                       = 8
        if sy-subrc <> 0.
          if sy-subrc <> 0.
            write: / 'Fehler beim Laden des US Abrechnungsergebnisses'(003).
            write: /'zu Personalnummer'(008), pernr-pernr,
                    'bei Sequence-Number'(012),
                     payroll-evp-seqnr.
            write: /  'Fehlercode ='(004), sy-subrc.
          endif.
        endif.
    Thanks & regards
    Sreenivasulu P

  • Function module for reading service line items of a po

    function module for reading service line items of a po.............I want to read data from eslh and esll tables to getthe service line details.....
    My requirement is if the item category is 9 I need to print the service line items. So I wan to read the data of service line items from a function module. I am not able to find a fm which fetches both elsh and esll data...

    Hi oskchaitanya ,
    use bapi BAPI_PO_GETDETAIL1.
    Regards
    REA

  • Hello , I want to ask some question about ipads \  How powerful is the iPad?  How useful is it for reading books, newspaper or magazines or for surfing the web? Can you identify any shortcomings of the device?   please help me :(

    Hello ,
    I want to ask some question about ipads \
    How powerful is the iPad? 
    How useful is it for reading books, newspaper or magazines or for surfing the web?
    Can you identify any shortcomings of the device?  
    please help me

    it's less powerful than your average computer. THink of it like a netbook but with a better processor.
    It'll do fine for surfing (although if you browse a lot of flash based sites you will need to get a third party browser since safari doesn't accommodate it)
    You may do OK on reading books, papers or magazines, especially if they have apps, but the ipad's screen is backlit, so it doesn't work well outdoors and you may need to fiddle with the brightness so that you don't get eye strain (it's just like doing too much reading from a computer screen)
    I would say the biggest short comings are data transfer. Apple's preferred work flow is that everything is done via iTunes or the internet....well people dont' always have 100% reliable always on internet access so you can find yourself in a situation where you can't get things on/off the iPad.
    By and large, it's a good device for day to day stuff, but is not a computer replacement.

  • Function Modul for read field label

    hi all
    i search a function modul for read the field label from data element.
    Example for data element matnr, i must have field label text material.
    Thx abap_begin

    Hi,
    If you give input parameters type, field and table you get data element using
    RP_PRINT_GET_DATA_ELEMENT
    Try also
    KL_TABLE_INFO_GET
    But not sure if this futfill your requirement...

  • Best architecture for testing multiple (8) serial devices

    I am not new to LabVIEW but am being tasked with a challenging project I want to be prepared for as best I can.  I am familiar with Event Structures and State Diagrams but feel these may not be adequate for the following specifications:
    1.  Most likely 8 serial devices need tested simultaneously
    2.  Tested every 2 hours for 48 hours
    3.  Records for each one must be created and saved at each interval
    I want to learn Queue's etc and am thinking a combination of producer consumer and the above two mentioned may be required.
    Any basic architecture recommendations that may work would be appreciated.  FYI, I have never used Producer Consumer.
    Thanks

    As tbob pointed out, the architecture will be fully dependent on the exact details of the problem.  That being said, I do have my two cents to put in.  In my work, I deal a lot with serial communication (too much, in my opinion); in some instances, I am dealing with the same device on different machines and in other instances, different devices talking on different ports on the same machine.  Regardless of what the implementation is, you will find that there is a lot of commonality to be found in serial IO (open port, close port, configure port, send ascii command, receive ascii data, block simultaneous attempts to R/W, etc, etc) that is really independent of implementation.  To me, this just screams for an object-oriented approach.  The ability to reuse or change the details of the code while limiting changes to the interface itself is awesome.  In your case, if you have 8 similar devices, I see 8 instances of a class which inherits properties from a Serial IO superclass; if we are dealing with different types, then you can exploit the inheritance features of objects to basically call 8 instances of different children of the Serial IO superclass. 
    All that being said, I think some of the details are missing as tbob pointed out.  However, instantiation of 8 objects will prevent some of the issues that might be associated with asynchronicity as all of the properties and methods would be associated with an instance. 
    Anyway, that's my thought.  Give me another week or two and I will probably have an example of this up.
    Cheers, Matt 
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC

  • How to read the serial number of PXI Module in my C/C++ program.

    I am using PXI NI-FGEN controlling it by my C/C++ program. I would like to read the serial number of the hardware. Are there any methods to do it ?
    Actually I could not find any functions and attributes in the programming manual. So I am posting this as the last chance. For example, it looks possible to me if we can access NI-MAX in my C/C++ program. Because NI-MAX displays the serial number.
    Any information would be appreciated.

    It looks like your answer is in the NI-FGEN help file. Go to NI-FGEN -> Documentation -> NI Signal Generators Help
    From that help the inforamtion you are looking for is under the following heading:
    NI Signal Generators Help
    +Programming
    +NI-FGEN Help
    +C Reference
    +Attributes
    +Instrument-Specific Attributes
    ?NIFGEN_ATTR_SERIAL_NUMBER
    I hope this is what you're looking for,
    Ross Mau
    NI Applications Engineer

  • Do I need a NI serial device?

    I am working on an application which involves reading pressure data from two pressure gauges (differential and vacuum).
    My PC has two free serial ports. My questions:
    1) Can I use the PC serial ports or is it advisable to opt for a NI 2-port serial device? Reason?
    2) If you suggest that I go ahead with existing PC serial ports, then, can I still use the power of LabVIEW and VISA to read and display data from these ports?
    I have LabVIEW 6.1 professional.
    Thanks!
    - Gurdas
    [email protected]
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Thanks Chris. That helped!
    Find below replies to your inputs. Feel free to provide any further inputs and suggestions.
    - All devices are RS-232
    - No. All devices are slower than 115.2K
    - No, we do not need deep FIFOs. The application is simple and involves acquiring data from two pressure gauges at slow intervals of say once every 5 minutes.
    - I am not sure. What do you advise?
    Do you think I need to invest in NI hardware?
    Can I save money by using built-in COM ports and still leverage the power of NI LabVIEW?
    - Gurdas
    [email protected]
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

  • Connection with serial device (SPP)

    I try to connect with a bluetooth serial device (a robot, no standard device) which is working with every PC but not from my MAC. I can connect to the device (I use ZTerm) and send one character, but not more. If I send more, those characters are not send until I quit and restart ZTerm. Then (nearly) all characters are sent. I can get all characters sent by the device. It seems a problem of flushing the buffers at some level of the drivers. Any experience or idea?
    My config:
    Apple Bluetooth Software Version:     1.6.0f2
    Hardware Settings:
    Francesco Mondada’s Computer:
    Address:     00-11-24-67-c9-b7
    Manufacturer:     Cambridge Silicon Radio
    Firmware Version:     3.1792 (3.1792)
    Bluetooth Power:     On
    Discoverable:     Yes
    Requires Authentication:     No
    HCI Version:     3 ($3)
    HCI Revision:     1792 ($700)
    LMP Version:     3 ($3)
    LMP Subversion:     1792 ($700)
    Device Type (Major):     Computer
    Device Type (Complete):     Laptop Computer
    Composite Class Of Device:     1057036 ($10210c)
    Device Class (Major):     1 ($1)
    Device Class (Minor):     3 ($3)
    Service Class:     129 ($81)

    Hi!, Ranothil: If you have the next cable and "null modem" (http://commerce.hpcalc.org/serialcable.php), you can transfer, anydata, from HP50G, to PC and viceversa, across Connectivity Kit (Conn4x), without problem. Please, see this link, with instruction's, for transfer data with serial cable, null modem and connectivity kit ... http://sense.net/~egan/skb/ and/or ... http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv017.cgi?read=125259 Note: Better, if you transfer data, from HP50G to, PC and viceversa, across the microUSB.  

  • Reading the serial number of a VXI-MXI-2 through software

    Is there a way to read the serial number of my VXI MXI 2 through software? I can find the model number and manufacturer number in the registers, but no serial number.

    I think the short answer is no, there's not a way. Getting things like the model and manufacturer number are inherent in the design of VXI - so an API can support it for any vendor. But the serial number is not something inherent in the design of VXI - so no API can expose that in a consistent fashion for all devices.
    Some instrument drivers do have a method for retrieving a device's serial number. But since the VXI-MXI-2 is more of a controller than a normal device (technically it's actually an extender, but close enough) there isn't an instrument driver for it.
    The serial number is also part of the response string for 488.2 compliant message based devices - but again, this is not a message based device.
    There is, however, something that may help you
    . If you need to manually find the serial number, then you should use Measurement & Automation Explorer (MAX), right-click on the VXI-MXI-2, and choose Hardware Configuration. The serial number should be displayed in the title bar of the popup configuration dialog.
    But I don't think there's a way to get this programmatically.
    Dan Mondrik
    National Instruments

  • Efficient optimized way to read from serial port and GPS data display using map

    Hi,
    I have a custom h/w which reads the data from GPS Rx and after parsing send it to PC over RS232.
    Each second it sends 201 bytes to PC. I have developed a VI to read the GPS data and display it. Project file is attached.
    Fulctionality of different loops are as following:
    1. LOOP 1: 1.1 Reads the serial data from com port.
                   1.2 Synclonize the frame using start bytes "a" and "z".
                   1.3 Reads next 4 bytes containg receiving error information.
                   1.4 Reads next 195 bytes. in which initial 80 byes are GPS data. rest are others.
    2. LOOP 2: 2.1 Extarcts the GPS information and put them in an array.
                      2.2 Extarcts the receive error infor and counts the total error by incrimenting the variable using shift reg.
    3. LOOP 3:3: 3.1 Displays the GPS data in chart and log the data in a file.
    4. FLOW : Uses the GMAP .NET based API to creat a MAP and display.
    Problem statement:
    1. Functionality acheived.
    2. However in between data set is being missed by the programm. 
    Quesitions:
    1. Is the developed VI is efficient in terms of using queue loacl variables etc.
    2. What are the improvments I can do to solve the problem.
    Any other suggestions|
    Thank you
    jayant
    jayant
    Attachments:
    Telemetry_Receiver_v2.zip ‏3075 KB

    One of the most common problems in serial communication is the need for an adequate timing: how much time is expected your device to spend before answering? Have you put and adequate pause in your code before reading from the serial port?
    Hope this helps
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

Maybe you are looking for

  • Extract BW infocube data to a flat file

    Hi Folks, I have a requirement where  I need to extract data from Infocubes to a flat file. Please suggest me the ABAP programming methodology where i can use function module to extract data from cube and dump it to internal table. Your immediate hel

  • Print Button on Drop-Down window

    Hello, our internal customer wants to be able to print topics from a drop-down window. This worked well with "RoboHelp for Word" and WinHelp output, but I fail to add the same functionality in a "Robohelp for HTML" (R 7) project with HTML Help (CHM)

  • Country of Orign -Canada Permit

    Hi All, Country of Origin is a required data element in determining the relavent Permit (License) for all the export Orders from Canada. Country of Orign is not being a standard attribute in determining License in GTS 7.2 We would like to appriciate

  • What is the name of best Antivirus which is compatible with firefox?

    what is the name of best Antivirus which is compatible with Firefox? I have bought Kaspersky but it says: content blocker 13.0.2.558 is incompatible with firefox 19.0.2 Kaspersky URL Advisor 13.0.2.558 is incompatible with firefox 19.0.2 safe money 1

  • Installing iSuites - Setup failed at first hurdle!

    Have just done an install of Server 9i2, and moved on to installing AS (Win2K Pro / SP3) Autorun not functioning (guh?), but from Start->Run->E:\isetup.exe, recieved the following dialog box: Setup has detected that your iSuite product install has no