UDP playback does not work on a real-time target

Hello

I am running LabVIEW RT 8.6.1 on a PXI 8106 RT controller.  LabWindows/CVI for RT 9.0.0 execution engine is also installed that I develop using LabWindows/CVI 9.0.  I'm trying to send some data UDP for an external PC via the network for software running on the controller, but this does not work.  The UDP packets are certainly get sent (I receive on my PC when the transmitter to reconfigure my PC IP address) but the UDP callback function is not called.  The call to CreateUDPChannelConfig returns OK.  Here's the (very simple) code that I wrote based on the example of reading NI UDP:

#include 
#include 
#include 

// Global variables
static int reader_channel = 0;

// Global functions
int CVICALLBACK UDPCallback (unsigned channel, int eventType, int errCode, void *callbackData);

/// HIFN The main entry-point function for the Real-Time DLL.
void CVIFUNC_C RTmain (void)
{
    int errno;

    if (InitCVIRTE (0, 0, 0) == 0)
        return;    /* out of memory */

    // Create UDP receive task
    errno = CreateUDPChannelConfig(49152, UDP_ANY_ADDRESS, 0, UDPCallback, NULL, &reader_channel);

    while (!RTIsShuttingDown ())
    {
        SleepUS (1000);
    }   

    CloseCVIRTE ();
}

int CVICALLBACK UDPCallback (unsigned channel, int eventType, int errCode, void *callbackData)
{
    static int udp_received = 0, default_rx = 0;

    switch (eventType)
    {
        case UDP_DATAREADY:
            udp_received++;
            break;
        default:
            default_rx++;
            break;
    }

    return 1;
}

All that happens is that software is just waiting for the callback to be called (which never does).  I found this ad that described a similar problem, but the developer was using LabVIEW and although he has found a way round the problem, he was never heard as to why it worked.

Thank you

Martin

Hey,.

Although the problem is now resolved, I thought that put the code for others see if the same error is encountered. The modified code is tested and works. It is saved as an attached png file.

Tags: NI Hardware

Similar Questions

  • "1 MHz" for the name of the source on the time loop does not work on LabVIEW Real-time 9.0

    A Loopis Timed running as expected if a time source is manually chosen in the dialog box of configuration for "1 kHz" (first digit) and "1 MHz" (second digit). If the time Source name is set through the input of the channel "1 kHz", the loop is executed, too third figure). But if the input string is "1 MHz", the loop is not executed (last figure). The channel two are created by "create constant" on the entry of the loop to exclude typos. Is it possible to set the Source of a loop time timed through the input string to the real-time clock hard Mhz?

    OK, I was a bit confused by the difference between the behavior of error...

    Now, the question is quite clear. Aid for the timed loop provides the following regarding the Source of the calendar entry:

    Specifies the name of the synchronization source to use to control the structure. The source of synchronization must be created using the create synchronization Source VI on the block diagram or selected in the dialog box Configure the timed loop .

    So, I think that you have somewhere in your code a time Source.VI create if you pass "1 kHz" as the name. But you did not do this for your clock "MHz 1"...

    hope this helps,

    Norbert

  • HP wireless mouse does not work most of the time

    Original title: problem with my wireless mouse

    I have a problem, my wireless mouse does not work most of the time it's repair turning market sometimes, sometimes resembles
    dead, what is the problem I have the latest driver updates everything was ok, but 3 days ago, when I try to use it I see that it does not work
    now I can't use it, I try to restore my computer but locks is not any point of restoration and I plug a different usb port on the port still does not, for more than 2-3 minutes sometimes work! , look at these pictures when my mouse is not working the red light does not work!

    What should I do I have this mouse for 3 months when I buy with my hp touch desktop


    Thanks so much, I change my batteries and now works seems once again, the batteries will go fast
    can u help me to fix the error, I'm showing you pictured RunDll

  • HTML 5 playback does not work on IE 11 or Edge. Works fine on Firefox and Chrome

    Hello

    Run the latest version of Captivate 9. When I publish the project to HTML 5, playback does not start on IE 11 or Edge (I tested it on two different computers of Win10). Just the wheel of perpetual rotation.

    It works great on FF and Chrome.

    Reflections and suggestions would be very appreciated.

    Talk about barking the wrong tree :/

    Upgrade to win 10 Pro N broke playback of HTML 5. I only noticed that HTML 5 was discontinued after having upgraded to 9 CP and therefore thought that CP 9 was the culprit. Ironically, I had two machines to test, both win Pro 10, N: /...

    For anyone encounter the same problem. There are two Media Feature Pack downloads. KB3010081 and KB3099229. The first did not work for me for a while to understand.

    Thank you to all who have contributed

  • Control output playback does not work on the published project

    I selected the playback control on the skin of my project, with the progress bar and the output information.
    When I saw the exit button works.
    When I publish to SWF format - and run the version full screen HTML the exit button no longer works.

    I guess I can add a close button, but the command output should work - has anyone come across this?

    OK - didn't see the post of
    EDM - dls
    EXIT button
    Does not work

    Up to what I had posted this, better see this line of discussion.

  • Internet does not work most of the time

    I had a problem with my internet connection for about a month now.  I spoke with our internet service provider, and they don't know what the problem is.  Sometimes I was able to connect, but when I do it, the internet is very slow.  Someone at - it ideas?

    Win XP Home Edition

    With the help of Google Chrome (IE I tried, does not work or the other)

    I suggest that you try here and say what your result and how it compares to your expectations.

    http://www.myaccount.Charter.com/customers/support.aspx?SupportArticleID=2098

    Hope this helps, Gerry Cornell

  • Volume does not work - most of the time

    I have a HP Pavilion g6-2210sa, product C6S45EA #ABU Volume sometimes number works fine, but for the most part does not work. Sometimes, it works when I turn on the laptop, and then after a few minutes it does not work. If I restart it sometimes starts working again, but above all does not. I followed instructions from HP for the audio problems on this site but I can't seem to solve this problem. Please help urgently. Thank you

    Hello

    Try the following.

    Open windows control panel, open Windows Update, select "View update history" in the left pane and then select "Installed updates" link in the next window.

    Locate the KB2962407 update, right click and choose uninstall.  Once completed, restart the computer, open windows control panel, open Windows Update and select "Check for updates".  You will see the update that you have uninstalled just offered once again - right click and select "Hide update".

    After that you may or may not need to remove and reload the sound driver - if you do, how to use Recovery Manager to reinstall the drivers and software is detailed in the document at the link below.

    Recovery Manager - Windows 8.

    Kind regards

    DP - K

  • Hello; Effect of Parallax does not work - I tried 5 times from the beginning...?

    Effects of Parallax does not work in my browser; Why?

    Hi mikesun,

    You can also try to use a model with parallax scrolling integrated.  This way you can see the parameters used and even copy and paste items that are already set up to scroll properly...

    Something like these:

    Anchorside - Advanced scrolling Parallax under water by MuseThemes.com model

    Belleza - Adobe Muse theme by MuseThemes.com

    Fluidink - Adobe Muse theme by MuseThemes.com

    Hope that helps!

  • playback does not work in OpenScript for Assistant web/http loadtesting

    Hi the gems...

    I am facing another problem with OATS 12.1.0.1 during playback of recorded for load testing scripts. But this time I do not know if the cure will come from our application or from the OATS.

    In our application for loadtesting, I recorded a few simple steps.
    My sailing in OpenScript:
    New > Load Testing (Protocol Automation) > Web/HTTP > default repository > open an empty script > began recording > window was open > hit the url of our application > connected with a name of user and password > disconnected.

    Scripts has saved successfully. Now when I started reading, then he got failed with the error:
    + Could not solve the web.input.Submit variable with the path .//input[@name='submit']/@value+

    In our application, each sessionid is captured and may be because of this reading and a recorded script script made two different SessionID for the connection.
    Because when I made the comparison between the recorded script and reading, then I got the threshold that does not between these two:
    + < form method = "POST" id = "formLogin" name = "formLogin" action = "/ wm/j_spring_security_check;" JSESSIONID = C9D732999E78008EC5CB3B77A6B703A4"onsubmit ="return validateForm (this)"> +.

    JSESSIONID value does not match between the recorded script and the script reading.




    But when I did the test of functional / regression of the same, then it worked perfectly without any failure.

    Please give your point of view. Thanks in advance.

    Published by: gogol on May 23, 2012 12:44 AM

    This Web page should have some javascript that creates the value for the parameter "j_password".

    . Param ("j_password", "70300886ea87fade932332926317f269598827246763436004b79e4f16c60813"),

    Look in the html for j_password page and find the code defined in the javascript code. Then using the same algorithm add of the java code to do the same thing in your script. It is possible that it is not javascript, for example, it could be a java applet or something else outside, although it is not likely. Your in-house developers created this app? If so ask them to give you the snippet of java code or algorithm to allow you to set a password in clear text for a "j_password".

  • DVD playback does not work on a laptop almost nine

    Original title - e: / not found on almost all new windows laptop 8

    Tried to read a DVD tonight for the first time on this computer and it does not automatically start as usual.
    Went into my computer and tried to open it from the e: /.
    I got this error: "application not found".
    Now, he opens the e: / make me view the folders inside.

    Device Manager indicates that the CD-ROM/DVD-rom works normally.

    I tried the other pages of this site, but they all seem to be people who upgraded to windows 7 to windows 8 and then problems. But it seems that the responses they receive do not work.
    My computer has not changed in any way. It is in the factory.

    Any help would be appreciated.

    It seems to work on free software all ready installed on my computer named cyberlink powerDVD. I just had to do a lot of digging to find.
    My roommate was also suggested to VLC. Thanks for your reply, however.

  • Keboard and Touchpad 355 G2: Does not work at the same time

    Hello

    I am trying to configure my laptop for games, but I can't get my touchpad and keyboard work at the same time. I tried to disable palmcheck but that did not work. Anything else I could do?

    Thank you

    Hello

    Normally, you just have to disable SmartSense or PalmCheck Control Panel of Synaptics - but from what I've seen, it seems no longer works for Windows 10 versions of this driver.

    You too, can be able to work around this problem as follows.

    First, download the Synaptics driver on the link below and save it in your downloads folder.

    Version of the Synaptics 17.0.18.8 driver

    Disable your wireless card (should be f12 ).

    Open Control Panel, open programs and features, right click on the Synaptics driver and select uninstall.

    When finished, restart the laptop.

    When windows rebooted, open your download folder and re-run the installer of Synaptics - when it is finished, restart the laptop.

    Open the Synaptics settings panel, disable SmartSense or PalmCheck , then check if the touchpad works now with a key on the keyboard is pressed.

    If so, turn on your wireless card and use the utility on the following link to prevent Windows 10 to update automatically the Synaptics driver.

    https://support.Microsoft.com/en-GB/KB/3073930

    Kind regards

    DP - K

    Note: If it does not, your existing driver are here.

  • BlackBerry smartphone WiFi does not work most of the time

    It's like a broken record, I know, but my WiFi does not (most of the time).  It used to work well, but over time he works less and less! I use v5.0.0.979 (bundle 1607, the 5.1.0.177 platform and a Bold 9700)  I get the Green checkmarks for connections and WiFi and a white WiFi icon options.  If I try to use the browser of BalckBerry he started working in WiFi and I can see the blue WiFi on my router shows the data flow and then everything stops in for WiFi is concerned and after a period of time, it either expires or most likely to connect to the 3G network.  I used to (a 3 or 4 months) work just fine, but now very poor.  I tried another router and has the same problem.  I found no solution in the forum that makes my 9700 working properly.  If I connect to the weather apps Bug or Thomson Reuters. WiFi works great, load fast and I can see the data on my router blink indicating data streams, but whenever I use the BlackBerry browser, it won't work!  Crazy!

    I found the same thing as automatic power switch at night is interfering with connections no matter what I did. So I stopped using it and it works fine now manually turn it off. Not much extra actually works!

  • hitTestObject does not work with the real

    try to make bombs detonate on impact, when it struck the balls at the bottom of the scene, with If (bomb1.hitTestObject (ball)) {.} But when the bomb struck one of the balls nothing happened. It works with other objects that are placed on the stage, but not with the balls. ball is a variable for 8 balls distributed randomly on the back of the stage.

    import flash.events.Event;

    bomb1.gotoAndStop (1);

    var minLimit: int = 31;

    var maxLimit: int = 42;

    var range: int maxLimit = - minLimit;

    var balls: Array = [];

    ball: bomb30a;

    for (var i: int = 0; i < 8; i ++) {}

    Prom = new bomb30a();

    ball.x = 150 + i * (Math.ceil (Math.random () * range) + minLimit);

    ball.y = 350;

    Balls.push (ball);

    addChild (ball);

    }

    thisButton.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler);

    function fl_MouseClickHandler(event: MouseEvent): void {}

    bomb1.gotoAndPlay (1);

    this.addEventListener (Event.ENTER_FRAME, handleCollision);

    }

    function handleCollision(evt: Event): void {}

    If (bomb1.hitTestObject (ball)) {}

    this.removeEventListener (Event.ENTER_FRAME, handleCollision);

    bomb1. Stop();

    bomb1.bomb2.gotoAndPlay (31);

    }

    }

    Stop();

    You do not use the table of bullets that you should be.  You fill it with instances of the ball, but you don't try to target them in the service.  If anything you would be the target of this latest bullet that has been added, although I have to question because I do not see a var reported for a ball, just a line that looks like it should throw an error... ball: bomb30a;

    In the function that performs the hit test, you must be a loop through the range of balls and targeting each ball inside to check suddenly.

    function handleCollision(evt: Event): void {}

    for (var i: int = 0; i

    If (bomb1.hitTestObject (balls [i])) {}

    this.removeEventListener (Event.ENTER_FRAME, handleCollision);

    bomb1. Stop();

    bomb1.bomb2.gotoAndPlay (31);

    break;

    }

    }

    }

  • BrowserFieldAPIDemo application does not work on the real device

    Hello

    anyone tried the demo of browserfieldapi running on a real device? When I try to run on the real device, it shows a white screen.

    Thank you


  • Video playback does not work in CS5.5 with iMac i5

    Hello

    I have an intel i5 iMac with first CS5.5, when I import a movie runs with a canon 60 d in the timeline (without change or effect), it plays only abot 1-2 seconds of the video, and then it stops. The video plays my old iMac (core 2 duo from intel). So, what's the problem?

    Is it possible to play the video?

    Thank you.

    I just found the solution in this article:

    http://kb2.Adobe.com/CPS/842/cpsid_84287.html

    Just do the first solution and the first now works fine.

Maybe you are looking for

  • After installation clean on a new processor, preview before print still crashes FF

    Print Preview worked fine on the old computer, but on the new, he always causes Firefox to crash. This happens if I use the 'Print Preview' command separate from the drop file, or use the button print in the toolbar that opens automatically in the pr

  • HP Pavilion 500-297c: Boot failure now need to recoversystem

    My Pavilion 500-297c will not start.   All initial tests HD pass ok.   I am running an extended test.   Resetting the system w/maintain files fails. I guess even a hard disk failure.   I purchase and install a new HD.  The system came with Windows 8,

  • Satellite A500 - Remove the battery when connected to the network?

    Hello I bought a new Satellite 500 and I would use it as much as possible. I'm not sure the stage of development of this battery. Should I remove the battery when I use the laptop at all times with the net supply?Or this does not damage the battery l

  • 15 r030wm DOWNGRADE to Windows 7?

    Hi, I bought this phone today and I would like to install Windows 7 on it... Could someone help me to locate the Windows 7 compatible drivers? Thank you very much!!

  • Vista - Service Pack issues

    I just did a fresh reinstall of Vista Home Premium.I have taken quite a few updates, but I wondered about the SP1. This will give with the updater as well because I'm looking to install SP2 later. Thank you.