Localhost UDP connection between FCR and Matlab

Hi all

I have a question about the connection between Matlab and FCR UDP. My idea is to Exchange data between Matlab and Labview on the same computer.

So I found the 'UDP Simple' of the FCR 2.0 sample project where periodically a datasample is generated randomly and sent to the remoteport 61557 local host. In the project a 'fractional number of string for transmission' is used for the transmission of data. The receiver of the sample project reads from the same port to receive the datasample.

Now, I'm interested to read this simple stream from Matlab (just at first), however, it does not work and I'm not sure why. What I do in Matlab is the following (code Matlab)

delete variables;
u = udp ('127.0.0.1', 61557); % Of installation UDP Object
fopen (u); open reading port %
A = fread (u, 1);  % read an element
fclose (u);

With this code, however, I get a timeout by saying: "' WARNING: unsuccessful reading: the amount of data specified has not been returned within the time limit." "

I'm not sure why this happens, maybe you could help me out here? I guess that the formet serving to VCF is not the same as in Matlab? Maybe the Terminators are not the same?

See you soon,.

Steve0

Hey

So, regarding the problem actually, I found the solution today. It was not the firewall, but a simple configuration in Matlab seting the UDP port. So the side of Matlab, to change the definition of udp object according to

u = udp ('127.0.0.1', 'Thelocalport', 61557);

If you have

u = udp ('127.0.0.1', 'Thelocalport', 61557);
fopen (u);

A = fread (u)

fclose (u);
Delete (u);

Who does the trick and you can read from the port. Then of course you say Matlab that you read from the "LocalPort" x, which I wasn't aware of.

On the transmitter side, you simply:

u = udp ('127.0.0.1', 61557);

fopen (u);

fwrite (u, '1');

fclose (u);
Delete (u);

Here, you set just the port of transmiting.

About the format of the data: I used the simple UDP protocol streaming Comms project where a random number is generated as a double, transformed into a string (ASCII values) and transmitted. At the level of the receiver, you get as much the UDP packet with the ASCII values that you must turn if you want to find the number.

I hope this helps anyone having the same problem.

See you soon

Tags: NI Products

Similar Questions

  • Bluetooth connection between iPhone and iPad

    My iPhone 6 does not connect to my iPad via bluetooth.

    I previously used the bluetooth connection between my iphone and iPad to connect the iPad to the internet. Despite the two devices were among the recognized bluetooth devices and they were previously linked/partner, it was not possible to establish a connection.

    Perform the actions recommended for repair/reissue apple support - 1. Toggle bluetooth, 2. turn on/off the unit, 3. remove the iPhone/iPad bluetooth connections - 4. Reset network settings - 5. Reset all the settings-, nothing works.

    IPhone/iPad devices isn't even on the list of bluetooth devices available on the iPhone, or iPad. Everything that happens is the animated icon turns all the time.

    Deleting a connection to a device and bluetooth speaker/amp from the pairing of the speaker/amp system process made a new connection.

    iPhone 6:

    Model: MG4F2QN/A

    SN: C31NLG8KG5MR

    Version: 9.2 (13 c 75)

    iPad:

    Model: ME898LL/A

    SN: DLXM42LHFK13

    Version: 9.2 (13 c 75)

    Please give instructions for the previous maintenance work bluetooth connection between iPhone and iPad.

    Thanks in advance

    To use the Hotspot feature (that you described for the connection), you must use the instructions below.

    Share your Internet connection with Personal Hotspot - Apple Support

  • Establish a persistent connection between client and server

    My application must keep in touch with my servers, the HTTPConnection gives the ablitity to make one request per connection. Then the HttpConnection might not make persistent connections in the BB. I think I can use Socket connections. I am wonding if some body can confirm that and give some sugustions how persistent connections between clients and servers.

    Thank you RexDoug and Marchywka. Your suggestions are appreciated.

  • dblink oracle to postgres with dg4odbc. ORA-28500: connection between ORACLE and a non-Oracle system returned this message: ORA-02063: preceding line

    Hi, I am creating the database link from a database of Oracle 11 g PostgreSQL with DG4ODBC and unixODBC

    My configured for /etc/odbc.ini

    [PostgreSQL]

    Description = Test to Postgres

    Driver = psqlodbc

    Trace = Yes

    Trace file = /tmp/sql.log

    Database = danieldb

    ServerName =

    UserName = SA

    Password = password

    Port = 5432

    Protocol = 6.4

    ReadOnly = No

    RowVersioning = No

    ShowSystemTables = No

    ShowOidColumn = No

    FakeOidIndex = No

    My configured for /etc/odbcinst.ini

    [ODBC]

    CommLog = 1

    Debug = 1

    FileUsage = 1

    Layout common = No

    Trace = 1

    [psqlodbc]

    Description = PostgreSQL ODBC driver

    Driver=/usr/lib64/psqlodbcw.so

    CommLog = 1

    Debug = 0

    FileUsage = 1

    My configured for /u01/app/oracle/product/11.2.0/xe/hs/admin/initPostgreSQL.ora

    HS_FDS_CONNECT_INFO = PostgreSQL

    HS_FDS_TRACE_LEVEL = 0

    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbcpsql.so

    Set ODBCINI=/etc/odbc.ini

    My configured for /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora

    Listener =

    (ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521))

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = PostgreSQL)

    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe)

    (PROGRAM = dg4odbc)

    (ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/xe/lib')

    )

    )

    My configured for /u01/app/oracle/product/11.2.0/xe/network/admin/tnsname.ora

    PostgreSQL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521))

    (CONNECT_DATA =

    (SID = PostgreSQL)

    )

    (HS = OK)

    )

    I'm trying to created public database link:

    CREATE DATABASE LINK PUBLIC 'orapos' CONNECT to 'HIS' IDENTIFIED BY 'password' USING 'PostgreSQL ';

    When I used tnsping

    [root@oracle-poc admin] # tnsping PostgreSQL

    AMT Ping utility for Linux: Version 11.2.0.2.0 - Production on May 16, 2013 20:34:19

    Copyright (c) 1997, 2011, Oracle.  All rights reserved.

    Use settings files:

    /U01/app/Oracle/product/11.2.0/XE/network/admin/SQLNET.ora

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521)) (CONNECT_DATA = (SID = PostgreSQL)) (HS = OK))

    OK (0 msec)

    and finally, I try to use the database link:

    "SQL > select * from tabel2"@orapos ".

    2;

    Select * from 'tabel2"@orapos '.

    *

    ERROR on line 1:

    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:

    ORA-02063: preceding the line of ORAPOS

    What wrong with my setup?

    Thank you and best regards,

    Daniel

    Daniel,

    The problem is that you are using the ODBC Postgres driver for the HS_FDS_SHAREABLE_NAME parameter, but this must be an ODBC driver manager and not the driver ODBC Psotgres.
    Go to the.

    http://www.unixODBC.org/

    Click the 'Download' and follow the instructions to download the 2.3.1 pilot and make libraries and programs.

    Once this is done, then use the driver as parameter HS_FDS_SHAREABLE_NAME Manager, for example-

    HS_FDS_SHAREABLE_NAME =/home/odbc64/unixODBC/2.3.1/lib/libodbc.so

    Depending on where you install it.

    Kind regards

    Mike

  • Ad hoc connection between XP and Android

    How can I set up a wireless ad-hoc, with shared Internet access, between a Windows XP computer (connected to Internet) and an Android device?

    Hello

    You can see the following link.

    How to create an Ad hoc network using Win XP

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-computer-to-computer-ad-hoc-network?SignedIn=1

    Note: also applies to Windows XP as well.

    Please provide us with more information on the Android device and the version of operation.

  • Connection between servers and opening default home

    Question about cross-server logon, if a customer has changed their rules of routing so that the default value at the opening of "wishes" is no longer used and a different call handler is used instead, will be this connection between breaking servers? Looks like that connection between servers using backdoor functionality (# and some numbers) which works with the 'Opening of wishes' system, I understand this right?

    No, it is not hardcoded to opening greeting Manager of appeal, but he needs to finish a greeting (whether for a Subscriber or call handler) - the logic is handled in the PHGreeting conversation (the guy that is used for the treatment of the call manager/subscriber wishes) - so if you have a routing rule that say, load the sign the Subscriber in conversation, then you're going to break.

    But as long as the call is handled by _some_ greeting, the hand of logic should work because the conversation PHGreeting is looking for a specific series of TTS to indicate that it is a grip of calls.

  • Connectivity between Interconnect and Nexus 2000 fabric options

    Hello

    I would like to know what models of fabric nexus 2000 Extenders can I use if I want to connect them to a pair of interconnections 6248UP fabric in a FEX deployment, so I can move between blade and rack servers service profiles.

    Thanks for your replies.

    Christian

    Christian,

    Take a look at this guide.  It should answer all your questions:

    http://www.Cisco.com/en/us/customer/docs/unified_computing/UCS/c-series_integration/ucsm2.0.2/b_UCSM_202_C-integration.html

    Kind regards

    Robert

  • Connection between mac and PC

    Why can't connect between computers PC under Windows 7 and Mac computers on my network equipment?

    without knowing what you have tried and this error message you receive, impossible to
     
     
    Barb
     
     
     
     
    Please mark as answer if that answers your question
     
     
     
     
  • Network connections between VM and host is slow?

    I have problems with the speed between the host and the VM, connections is limeted and very slow. I'll open the file and copy and it's slowly. My OS is VISTA Business and VM on XP SP3. Connection between VM card is limited to me and see that trafficking is not very practical. If this can be rectified and speed up the connection between the virtual machine and the host.

    As I have written, you can use both at the same time. Just add a host connection only to the guest and make sure name resolution, host name (and the name of the client to the host) using the IP addresses assigned by DHCP VMWare Server for the host only (VMnet1, default) connection. The file "\system32\drivers\etc\hosts" ensures that this connection will be used, for example.

  • Heterogeneous connection between Oracle and Postgres.

    Hi all

    I am trying to connect heterogeneous Postgres and Oracle for a few days, but I've always seen this error: "loss of the RPC connection.

    First of all: I use Windows 7, Oracle 10 g and PostgreSQL 8.4.

    I did the following:

    (1) create a system DNS named "PG". (The connection test is OK)

    (2) to create the file 'initPG.ora' in ' $ORACLE_HOME/hs/admin:
    # This is an example of initialization file of the agent that contains the HS settings
    # needed for an ODBC Agent.

    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = PG
    HS_FDS_TRACE_LEVEL = WE

    #
    # Required for the non-Oracle system environment variables
    #
    #set < varenv > = < value >

    (3) configure the file 'listener.ora' (in ' $ORACLE_HOME/NETWORK/ADMIN "):
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = PG)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = hsodbc)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP) (HOST = Cédric-PC)(PORT = 1521))
    )
    )

    DEFAULT_SERVICE_LISTENER = (XE)

    (4) set up the 'tnsnames.ora' file (in ' $ORACLE_HOME/NETWORK/ADMIN "):
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = Cédric-PC)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    )
    )
    PG =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp) (HOST = Cédric-PC)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PG)
    (HS = OK)
    )
    )

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )

    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))
    )
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )
    )

    (5) Finally, I create my DB-Link and test it:
    CREATE DATABASE LINK 'CENTRALE_POSTGRES' CONNECT TO 'user_login' IDENTIFIED BY 'user_password' USING "PG";

    SELECT * FROM 'dual"@CENTRALE_POSTGRES;

    I got this error:
    ORA-03135: interruption of the RPC connection.

    As you can see, I have activated the trace level (HS_FDS_TRACE_LEVEL = WE), but the still empty directory ' $ORACLE_HOME/NETWORK/trace.

    Any ideas?

    Concerning

    the alias PG tnsnames.ora is wrong — you must have 2 closing brackets after the so that HS SERVICE_NAME = OK is outside the CONNECT_DATA as:

    PG =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp) (HOST = Cédric-PC)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PG))
    (HS = OK)
    )

    You should know also HSODBC to release 10.2 was desupported since March 2008 and it was replaced by its product follow-up DG4ODBC V11

  • JMS connection between glassfish and OSB

    We are having architecture where between GlassFish and OSB JMS messages. I have the following questions of design
    (1) what is the best way to send messages between these two App servers? (I mean use the JMS bridge or regularly use JNDI lookup and send the message and so on)? We want to send messages in both directions between these two App servers.
    (2) how we use JNDI search inside glassfish for OSB. We use an approach by providing the full client jar fat weblogic. (53 MB) Is this the only way? Is there any thin weblogic client that we use for queue search OSB of glassfish?
    Thanks in advance.

    Using a JMS client WL on GF has limits on XA/JTA, consuming messages from distributed locations and securing individual destinations. Workaround for the latter is to avoid to set ACLs on WL destinations and use SSL to encrypt network traffic if you wish.

    I recommend the following general method: (1) avoid using WL JMS on the GF level clients if you need exactly once the e-mail or require the consumption of a distributed destination and (2) use OSB or WebLogic foreign seller JMS integration facilities for either (A) bridge/transfer messages between WL JMS and GF JMS or call (B) GF JMS directly the WL/OSB tier.

    If you don't want to use a jar full of WebLogic as a customer, there is a pot of customer 'thin' t3 equivalent available in the latest version. I recommend the full jar unless a small pot size is an important condition in your use case. I recommend the thin 't3' jar on the thin "wl" pot as the pot thin t3 tends to have much better performance. Or the other of these clients can interact with older versions.

    FAQ for vendors integrating a Remote JMS summarizes the Server WebLogic tools available for the integration of foreign suppliers (http://download.oracle.com/docs/cd/E14571_01/web.1111/e13727/interop.htm#JMSPG553). I'm not familiar with a tool equivalent/layers of OSB.

    The stand-alone Clients documentation lists different JMS (http://download.oracle.com/docs/cd/E14571_01/web.1111/e13717/basics.htm#SACLT122) client options.

    Kind regards

    Tom

  • Connection between PC and Photo Frame WiFi digital Journe Air 1000

    Hello
    I'm trying to use the wifi feature to transfer files between my computer and the Journe Air 1000. The manual is useless and there is no option in the image menu.
    I connect to my router broadband flawless and can read RSS, listen to the radio on the internet etc. The image does not appear in my network (Windows XP SP3) locations.
    Can someone help me?
    Thanx

    Hello

    In the manual, I found this:

    + Services + compatible WiFi using
    + 1. After turning on the unit, press or press the button (see manual for signs of button) on the remote control to switch to WiFi mode. +
    + 2. Press the arrow up / arrow down button on the remote control to select a service you want to use and then press OK or press OK on the remote control or. +
    + 3. Shows a message asking to connect to an access point. Confirm the task, then a list of WiFi stations available.
    + appears on the screen. Select a station and press OK or press OK on the remote control to start the connection. +

    I also find that this device supports IEEE 802.11 b/g connectivity with WPA/WPA2-PSK encryption.
    If you must make sure that your router Cela would support too!

    But to be honest that I put t think you might transfer the files using the WiFi network.
    The chassis accepts RSS, Flickr, Picassa, and Radio services.
    I did, t find any info about the file transfer via a WLAN.

  • Officeject Pro 8610: Wireless connection between IMAC and Officejet Pro 8610

    I've had this printer for about 6 months now and was hoping a firmware update would happen to solve the problem but didn't.

    I use the printer wireless for all my devices in the House. My Windows devices connect you to the printer very well and print correctly. But for my main computer, which is a 27 inch iMac running El Capitan 10.11.5, I have to "trick" the printer to print from the iMac. It will not keep a session open between the two wireless.

    To use the printer, I keep a blank sheet of paper on the scanner and then reach over and hit "Copy", which then copies the blank paper. During the copy process, I then print everything that I need to print my iMac and it works fine, but 20 seconds after that work is done, the connection is lost between the printer and the iMac.

    I see a lot of questions about it on the HP Support forums, but no one come up with a Solution from HP. Hard to believe knowing that the company that I work uses HP to support the business and buy huge amounts of material of can solve this problem bit between a printer at home and an iMac.

    Would love to hear that a solution is near, or perhaps you must meet your hardware sales that this printer is not compatible with Mac OS. Would have saved me some money and frustration by buying do not.

    Hello

    The printer is fully compatible with Mac OS X, it is more probably relies yoru router or configuration.

    Uses of the devices Apple Hello to communicate with the printer, these require your router to support such a.

    Some routers do not support such an and some may need to be configured properly for such.

    I order to underestand better capabilities of your router, which is model and yoru router barnd?

    In the meantime go to System Preferences > printers & scanners and click the sign more.

    Click the IP tab, and then select the HP Jetdirect Socket Protocol.

    Type the IP address of the printer in the address bar and click Add.

    Note: you can find the IP address by typing on the Ethernet icon or wireless on the front panel of the printer.

    You can print using the newly created queue?

  • Posible cable connection between Garage and House

    I tried to send a wireless signal to my hoes to broadband from my garage office.  The distance is about 150 feet.  The two structures are wood frame.  I tried to use a House directional antenna of bi-quad drawings he wishes actually degraded my performance of what I was getting into with the WTR5GS with the Linksys access point optional extension of localizer antennas Omni-directional 7dbi installed.

    Today, I noticed that Linksys offers a solution (Kit of adapter Powerline PKL200) that uses the wiring in the House.  My garage receives its electrical service to a circuit a 230v 60 connected to the main house for the subgroup of experts garage distribution table.  In the secondary Panel, electricity is distributed to several 115v and 230v 1 circuit in the garage, including the Office of my garage.

    Will be PLK200 Powerline adapters work by connecting my Modem Access Linksys WTR54GS Hughsnet point in the garage and then between an access point port ethernet cable (1 of 4) at the PLK200 to a plugin on one of the circuits garage 115v and distribute the ethernet connection via the garage subgroup of experts to the Panel main serice main house and on a 115 v circuit and plug in my house where I would put up another access Linksys WRT54GS point for wireless services in the House?

    I know this at length, but I tried my best to refer to the electric diagram and plan.

    Thanks for reading.

    Tom

    No problem, it will work certainly... but you need to configure your second router...

  • PIX 515E (7.0.1) - problem with the VPN connection between inside and outside

    Hello

    I ve creates a VLAN on the pix.

    In this VLAN, users are allowed to connect only to the Internet. Everything is fine, but when trying to connect with his VPN Client to their company, it has problems... (Outside traffic flow, but no traffic came back.)

    Is the only solution for this problem to create a Pool of Nat with public ip addresses, one to one mapping, or is there another solution with a public IP address (NAT on PAT) possible for this problem?

    Thanks for your replies.

    D.

    The problem is that the esp is an IP Protocol, so PAT will not work in this scenario. When the return traffic returns to pix he doesn't know how to get to the inside host. The only way to do this is by adding a static nat (1 to 1 mapping) and create a rule to allow esp. Is what type of vpn client? Microsoft vpn? Cisco vpn? If cisco VPN, perhaps, they can use NAT - T on the vpn that overcomes the question PAT by encapsulating ipsec within UDP packets. You need to talk to the admin VPN and itself it allow.

    -kevin

Maybe you are looking for

  • Changed e-mail address - password not work - cannot receive a reminder e-mail - had to register again

    Just one point to ponder - my old email no longer works and probably because my old profile is not my other, I can't reset email. So I made a new user with my new address, but you must have a number of old flowating users on the system.

  • How can I use on my M40X with WinAmp media buttons?

    HelloToday, I received my M40X and I have a question.There are 5 media as left button on the keybord (CD/DVD, play/pause, Stop, )Is it possible to use them with WinAmp?With the help of Toshiba, I had the CD/DVD button used to start WinAmp (by allows

  • Select Excel list drop-down element in LabVIEW

    Hi all I need to open an excel workbook and send data to a particular LabVIEW worksheet In itself, it is simple, BUT the spreadsheet has also a few combo boxes I need to autmate a choice on. is anyway to do this? The spreadsheet vb code is password s

  • LAN connected to the internet does not work

    UH well obtained a windows to this day don't know that we do not know how to find the Witch one... it reboot and internet will not work... and lan is pluged in the network local works on my ps3 all internet im lost

  • Audio input Inspiron 15 3000 can not detect the headset

    Audio input Inspiron 15 3000 can not detect the headset, but audio dell can detect something trendy. However, the playback sound device cannot detect any helmet. Now I only get gurgling in the helmet. How to solve this problem?