How to Get Fast RT/XP Ethernet Comm.s?

I have an application where I need to do the following between an XP
computer and a PXI-8187 RT computer:
1. Send a small set of values (<100 bytes) from XP to RT.
2. Send a small set of values (<100 bytes) from RT to XP.
3. Send a large I16 array (20,000 size or 40kbytes) from RT to XP.
My RT loop rate needs to be 20 Hz. The XP loop rate can very but I cannot
miss any of the 20k I16 array.
I started out by using DataSocket but it was much too slow. My next step
was to do number 1 & 2 above using UDP. This was simple and works fine.
Unfortunately, RT cannot presently send UDP packets that are greater than
4096 bytes at one time so I could not use UDP to send the I16 array.
I then setup TCP/IP and RT FIFO parallel loops to send the I16 array but it
isn't working very well. I setup my FIFO to be 80x 20kI16 arrays which
should be four seconds of data. When I run my program my TCP transmit loop
loses some of the packets from the RT buffer. I will get good data for a
second or two and then loose around 20 packets and this will then repeat
every few seconds but the time it works is not consistent. I'm not sure if
my problem has to do with the RT FIFO or the Ethernet communications. I did
setup a test VI that did not have the RT FIFO in it and did not lose any
data but this only works if I can guarantee that the XP computer can keep a
consistent 20Hz TCP/IP loop and this would be too risky. Note that I did
not use the RT Communication Wizard to setup my program but I did use it to
create a similar example to look at. My XP monitor shows LAN utilization of
only 0.4% max and my XP CPU usage is only around 10%.
Does anyone have any ideas of why I can't get consistent data at the speed I
am trying for?
Does anyone have a better network communications approach to do what I am
trying to do?

Would something like this work?  It is 8 channels at 33kSa per second per channel from a 200Mhz RT controller
http://sine.ni.com/nips/cds/view/p/lang/en/nid/202103
The source code for this is at:
http://zone.ni.com/devzone/conceptd.nsf/webmain/3F941A040879E64086256FA20067041A
It uses the command server architecture
Preston Johnson
Principal Sales Engineer
Condition Monitoring Systems
Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
National Instruments
[email protected]
www.ni.com/mcm
www.ni.com/soundandvibration
www.ni.com/biganalogdata
512-683-5444

Similar Messages

  • How to get "fast user switching" and network shares playing nice

    I've been alternating between banging my head against a wall and reading every forum I could find to try and get a reasonable compromise between using "Fast user switching" and sharing a folder from a file server.  It baffles me how the network share/mount model of OSX/AFP is completely killed by fast-user-switching; this is a big problem with Apple requiring users to be actively logged in to share music/video from iTunes which therefore essentially requires fast-user-switching if anyone else wants to use the computer.  (anyone find it odd that you can share files without being logged in, but sharing songs requires an active login for each user who is sharing?  Apple: time to make iTunes sharing a service!)
    For the sake of example, lets just say I want to share my /Groups folder from my desktop and have it be accessible to my laptop.  Here are all the things that I tried:
    Apple Method 1) Share /Groups in the Server.app on the desktop (running Lion Server), use finder on the laptop and drag the share icon to "Login Items", alternative use a startup Apple script using "mount volume"  Both of the options work and will mount the /Groups folder under /Volumes/Groups, of course when the second person logs in via fast-user-switching (and occasionally the first person for no apparent reason), they will get /Volumes/Groups-1 since /Volumes/Groups is already taken.  Tomorrow we log in a different order and now the previously /Volumes/Groups-1 user has their mount at /Volumes/Group and vice versa.  Any links, aliases, finder sidebar references, and application settings which pointed to yesterday's location are now BROKEN.  Not very user friendly to my mother-in-law who is trying to find those pictures of the kids and doesn't know anything about mount points. I also can't reasonably mirror the file location structure on the desktop so that application preferences that are synced between the two (portable home directories) work.   fail.
    Apple Method 2) Use automounter and set up by hand direct maps for /Groups or an indirect maps for the children of /Groups.  Now it will automatically get mounted to /network/servers/SERVER/Groups/ on the laptop and on the desktop it will automatically create a similar symlink structure so that the same path (/network/servers/SERVER/Groups) work both on desktop and laptop.  Cool.  Except when the second person logs in, the /network/servers/SERVER/Groups/ mountpoint is already owned by the first user and they don't have any permissions to access it.  Fail.
    Apple Method 3) Use mount_afs and specify directly the mount-points.  Have each user have their own startup AppleScript which mounts /Groups to a different location (e.g. /Users/Shared/username/Groups) that way they don't conflict with multiple users.  On the desktop, set up symlinks from /Users/Shared/username/Group to /Groups so that it will be the same as the client and applications settings will work when synchronized back/forth by portable-home-directories.  Will it work, yes it does, but what a bear to maintain.  Is this really what I should expect to do just to have multiple users on my desktop and laptop (which again is essentially required now if I want to do any type of iTunes sharing).  This can't be what apple expects.
    What I ended up doing - the "not quite apple" solution.
    Non-Apple Method 4) After a read of "Autofs: Automatically Mounting Network File Shares in Mac OS X" (http://images.apple.com/business/docs/Autofs.pdf) at the very end there is a single paragraph  of "Kerberized NFS": "A Kerberized NFS mount can have multiple connections from multiple users, each using the correct user’s credentials for each transaction. This allows administrators to support multiple users, each authenticated with their own credentials to the same mount point. This is very different from AFP and SMB mounts," (emphasis mine)
    It appears that by using good 'ole NFS (abeint with Kerberos for security!) you can actually have multiple users on the same mount point.  Roughly following the guidance at https://support.apple.com/kb/TA24986?viewlocale=en_US.  What I needed to do was:
    1) create /etc/exports on my desktop and add a single line "/Groups -sec=krb5".  The existence of /etc/exports triggered a start of nfsd which no longer has any GUI options in Lion.
    2) Add a line to /etc/auto_master on my laptop "/-  auto_mymounts" to reference a new direct map.
    3) Create /etc/auto_mymounts and add a single line "/Groups         SERVER:/Groups" to create the direct map.
    THAT'S IT.  Three lines in three files.
    Now when I log into my laptop, there is a /Groups that is a network mount of my desktop's /Groups, same location AND it works for all of my users, even simultaneously. 
    In the end I'm happy with what I've got, but man was this a difficult path just to support fast-user-switching.  In Lion, Apple appears to be getting away from NFS (no longer turned on by default and remove from the GUI controls) but clearly this really useful functionality which doesn't exist in AFP. 
    I'm really curious, after all this work.  Any other ways to accomplish this?

    In my example above, yes I chose to mount the share "Groups" to the top of the root since that is where I put it on my server and I wanted to keep them similar; but that was just my preference, it isn't a requirement.  You can export and mount from other directories.

  • How to get fast one entry of an returning table ?

    Hello experts,
    I'm calling a method (see example) and after receiving the returning table
    I just want select one entry of this tabel. How can I do this with fast perfomrance ?
    AT the moment I am doning this with a loop, but I need something faster !
          DATA: EV_PARTNER TYPE BU_PARTNER.
          DATA: ET_ATTRIBUTES TYPE /MRSS/T_FIELDNAME_VALUE_TAB.
          DATA: RT_PARTNER TYPE /MRSS/T_PARTNER_TAB.
          DATA: WA_PARTNER TYPE TABLE OF /MRSS/T_PARTNER_TAB.
          DATA: WAA_PARTNER TYPE LINE OF /MRSS/T_PARTNER_TAB.
          DATA: PARTNER_ROLE(2) TYPE C.
          PARTNER_ROLE = 'WE'.
          IF LV_PARTNER = ''.
            CALL METHOD <FS_ITEM>-OBJECT->PARTNER_GET
              RECEIVING
                RT_PARTNER = RT_PARTNER.
            LOOP AT RT_PARTNER INTO WAA_PARTNER.
              IF WAA_PARTNER-PARTNER_ROLE = 'WE'.
                LV_PARTNER = WAA_PARTNER-PARTNER_ID.
                EXIT.
              ENDIF.
            ENDLOOP.
          ENDIF.
    Thanks,
    Gerd

    Hi,
    Instead of looping in to a work area and then chekcing the condition , you can directly specify the condition in the loop by which the loop will only execute on those which satisfy the condition thereby making it much faster
    DATA: EV_PARTNER TYPE BU_PARTNER.
    DATA: ET_ATTRIBUTES TYPE /MRSS/T_FIELDNAME_VALUE_TAB.
    DATA: RT_PARTNER TYPE /MRSS/T_PARTNER_TAB.
    DATA: WA_PARTNER TYPE TABLE OF /MRSS/T_PARTNER_TAB.
    DATA: WAA_PARTNER TYPE LINE OF /MRSS/T_PARTNER_TAB.
    DATA: PARTNER_ROLE(2) TYPE C.
    PARTNER_ROLE = 'WE'.
    IF LV_PARTNER = ''.
    CALL METHOD <FS_ITEM>-OBJECT->PARTNER_GET
    RECEIVING
    RT_PARTNER = RT_PARTNER.
    LOOP AT RT_PARTNER where partner_role = 'WE'.
    LV_PARTNER = RT_PARTNER-PARTNER_ID.
    EXIT.
    ENDLOOP.
    Regards,
    Vikranth

  • How to get distinct values in a comma separated list of email addresses?

    Hi Friends,
    I have a cursor which fetches email address along with some other columns. More than one record can have same email address.
    Ex
    CURSOR C1 IS
    SELECT 1 Buyer,'XX123' PO, '[email protected]' Buyer_email from dual
    UNION ALL
    SELECT 2 Buyer,'XX223' PO, '[email protected]' Buyer_email from dual
    UNION ALL
    SELECT 1 Buyer,'XX124' PO, '[email protected]' Buyer_email from dual
    UNION ALL
    SELECT 2 Buyer,'XX224' PO, '[email protected]' Buyer_email from dualNow, i open the cursor write the contents into a file and also form a comma separated list of buyer emails as follows
    for cur_rec in c1
    LOOP
    --write contents into a file
    l_buyer_email_list := l_buyer_email_list||cur_rec.buyer_email||',';
    END LOOP
    l_buyer_email_list := RTRIM(l_buyer_email_list,',');
    The buyer email list will be like: '[email protected],[email protected],[email protected],[email protected]'
    Inorder to avoid duplicate email address in the list, i can store each of this value is a table type variable and compare in each iteration whether the email already exist in the list or not.
    Is there any other simpler way to achieve this?
    Regards,
    Sreekanth Munagala.

    If you are using oracle version 11, you can use listagg function
    with c as
    (SELECT 1 Buyer,'XX123' PO, '[email protected]' Buyer_email from dual
    UNION ALL
    SELECT 2 Buyer,'XX223' PO, '[email protected]' Buyer_email from dual
    UNION ALL
    SELECT 1 Buyer,'XX124' PO, '[email protected]' Buyer_email from dual
    UNION ALL
    SELECT 2 Buyer,'XX224' PO, '[email protected]' Buyer_email from dual
    select buyer, listagg(buyer_email,',') within group (order by  buyer) 
    from c
    group by buyer
    order by buyerFor prior versions
    {cod}
    with c as
    (SELECT 1 Buyer,'XX123' PO, '[email protected]' Buyer_email from dual
    UNION ALL
    SELECT 2 Buyer,'XX223' PO, '[email protected]' Buyer_email from dual
    UNION ALL
    SELECT 1 Buyer,'XX124' PO, '[email protected]' Buyer_email from dual
    UNION ALL
    SELECT 2 Buyer,'XX224' PO, '[email protected]' Buyer_email from dual
    select buyer, rtrim(xmlagg(xmlelement(e,buyer_email||',').extract('//text()')),',')
    from c
    group by buyer
    order by buyer

  • How to get Fast User Switching in Win7 enabled with Anyconnect 3.1 installed

    After installing Anyconnect secure mobility client 3.1 on Win7 ultimate x64 the Fast User Switcing is not functional as I must log off the logged on user before new user can logon.
    This issue affects the RDP session to Win7 machine as the console user must log off before the remote user can logon but because I use the Anyconnect client for dot1x authentication once the console logged off the port become down.
    Any help???

    In my example above, yes I chose to mount the share "Groups" to the top of the root since that is where I put it on my server and I wanted to keep them similar; but that was just my preference, it isn't a requirement.  You can export and mount from other directories.

  • TS4079 how to get fast cellular data on ipad 2

    hai, 
               i need to improve internet speed on pad 2..
    please help it...

    Contact your Internet Service Provider.
    You may have to sign up with a faster plan.

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • How I get the new software to update my phone fast???

    How I get the newest software to update my Iphone fast?

    What do you mean by "fast"?  The only way for you is to connect your phone to iTunes and click "Udate. If this seems to dowload too slow, disable ALL security apps (firewall, antivirus, etc.) when updating.
    Your profile states you're running iOS 3.1.3 on an iPhone 4 which isn't even possible - the iPhone 4 can't run anything earlier than iOS 4.0

  • How to get query result in comma dilimited text or excel file?

    Does anybody know how to get query results in comma delimited
    text file or excel file, I tried spool abc.txt, but the result
    showed some ------ lines
    Thanks

    Try doing this in your sql scripts
    set heading off
    set pagesize 0
    set linesize 4000
    set feedback off
    set verify off
    set trimespace on
    set colsep ","
    spool output.txt
    select * from dual (or whatever you are querying
    spool off
    There may be a couple other set statement that you could add but
    this should get you started in the right direction

  • How to get an N wireless USB adapter to transfer data faster that 54 Mbps

    How to get an N wireless USB adapter to transfer data faster that 54 Mbps? I am running FIOS 10/2 and connected to a ActionTec  M1424WR router. Any help will be appreciated.

    I have to ask the question, why are you in need of 802.11N speeds?  Are you transferring lots of files between other PC's on your network or are you simply connecting to the Internet.  
    Remember if your Internet speed is 10/2 which means 10 meg down and 2 meg up having 300 meg capability WLAN connection will not be noticeable.   Your bottleneck is your Internet connection of 10/2.   

  • I have an airbook, 10.7.4 LION, thunderbolt ethernet adapter and when trying to install 1.2.1 thunderbolt upgrade it says "this software not supported on this system"? Any advice on how to get the adapter to work?

    I have a new airbook, 10.7.4 LION, thunderbolt ethernet adapter and when trying to install 1.2.1 thunderbolt upgrade it says "this software not supported on this system"? Any advice on how to get the adapter to work?

    Welcome to Apple Support Communities
    If you purchased the computer before 2010, your computer hasn't got Thunderbolt, so you can't use it

  • Henever I am in Mozilla I get a pop up saying my PC has 7 window errors and can run faster. I cannot see how to get rid of this.

    I tried to download Tetris yesterday onto my laptop - not quite what you would call an ambitious gamer!
    As it was doing so I noticed that the software was trying to alter some settings in the registry.
    Now whenever I am in Mozilla I get a pop up saying my PC has 7 window errors and can run faster. I cannot see how to get rid of this.
    When I copy the link location it says:
    https://secure-ams.adnxs.com/click?KGIRww5jtj8oYhHDDmO2PwAAAICXbtI_KGIRww5jtj8oYhHDDmO2Py8cBrFeTaRkUe4MK_5ewBbHVyJRAAAAAMypEAA_AQAAPwEAAAIAAAAwB0YA6-ECAAAAAQBVU0QAVVNEACwB-gDulQAA42kAAQMCAQUAAIQARiCzrAAAAAA./cnd=%21ngVsMQjTqzoQsI6YAhjrwwsgBA../referrer=https%3A%2F%2Fwww.google.co.uk%2F/clickenc=http%3A%2F%2Fappround.net%2Fpcperformer%2Fst6%2Fpcperformer-st6.php%3Fcid%3D3902%26tid%3Dams1CNHcs9ji35fgFhACGK-4mIjrq5PSZCIOMjEzLjc4LjE0NC4yMTQoAQ..
    and here is the image
    Any ideas?

    Such a pop-up is likely caused by malware installed on your computer.
    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • I'm trying to transfer data (docs, emails) from G4 iMac running os 10.3.9 to brand new iMac on 10.8.1  I'm stuck, any help greatly appreciated.  (Ethernet or wifi networking are both options if I can figure out how to get the machines to communicate.)

    I'm trying to transfer data (docs, emails) from an old G4 iMac running OS 10.3.9 to brand new iMac on 10.8.1  I'm stuck, any help greatly appreciated.  (Ethernet or wifi networking are both options if I can figure out how to get the machines to communicate.)

    AMoriyama wrote:
    I have the old machine backed up onto an external firewire disk but can't hook that up to the new imac as I'm waiting for delivery of a firewire 400/800 adaptor - therefore starting the old machine up as a slave is also subject to the same delay.
    I was hoping there might be some way to create a network between the 2 machines (and 2 different versions of the OS) to be able to transfer data across immediately but perhaps I'll just have to wait for my firewire adaptor to arrive.
    I don't understand why you're buying a Firewire adaptor, since AFAIK both of your computers have Firewire already built in.
    All you need is a firewire cable. Connect the Firewire socket on the old machine to the Firewire socket on your new iMac.
    Then start the old machine in Target Mode (i.e. by holding down the T key on its keyboard, while it's starting up, until you see the three-legged T icon hopping around the screen of the old machine.)
    At that point you will also see a new icon on the screen of your new iMac. This is the hard drive of your old machine.  By clicking on it you can navigate through it any way you like, just as you would normally.
    Just drag across whatever you want from the old computer to the new one. This will leave everything on the old computer untouched.
    - or use Migration Assistant but in my experience, Migration Assistant isn't very reliable and fails to migrate large amounts of stuff.

  • Can I get a faster transfer using ethernet for an external HDD?

    I have an early 2006 17" imac and am going to get an external HDD for backing up large amounts of photos. FW400 is pretty fast, but I'd was thinking that the gigabit ethernet would could be faster.
    Is there a way to use ethernet to connect to an external HD and get faster than FW400 speeds?
    thanks.

    Smokerz wrote:
    you could try for FW 800 and get close to 50M/sec
    With a fast drive, FW800 is capable of 80 MByte/sec. However, the OP's
    iMac doesn't have FW800, only FW400. That's good for 35-40 MByte/sec
    sustained read/write speeds.
    Even on a 1000 Mbps LAN, a NAS setup won't do much better -- and
    most are significantly slower:
    http://www.smallnetbuilder.com/component/option,com_nas/Itemid,190/chart,13/
    Looby

  • "how to get to the bottom of a page fast on the iPad Air"

    how to get to the bottom of a page fast on the iPad Air"

    thank you!  I am admiring my three dots and considering which cat's picture I should upload as my avatar.
    yes, the scrolling down in sections I have managed.  I thought you were saying one set of double taps would go straight to the bottom.
    here's another question for you:  on my iMac by holding the command key down I can make a link open in a new tab.  Do you know if there is a way to do that on the iPad?

Maybe you are looking for