Help! Flash MX to Labview with XMLsocket problem

I'm attempting to send strings to Labview using the XMLsocket object
in Macromedia Flash MX. I created a layer in Flash with the following
Action script:
mySocket = new XMLsocket();
mySocket.connect("localhost",2055);
Then I created a layer with a button that has the following button
Action script:
on (release) {
mySocket.send("mystring");
Then I created a Labview program (on the same machine) that has a
single while loop with code that creates a listener at port 2055 (the
port connected to Flash) and some code for reading the port.
This setup works, except Labview will only receive the string once
from the button push, even though the receive code is in a loop.
Subsequent button pushes in Flash does not resul
t in characters being
received in LV. Has anyone here done this before? Thanks.
gm

Fixed it. You've got to have the Labview create listener VI started
first and also outside the while loop. Works great!
[email protected] (greenman) wrote in message news:<[email protected]>...
> I'm attempting to send strings to Labview using the XMLsocket object
> in Macromedia Flash MX. I created a layer in Flash with the following
> Action script:
>
> mySocket = new XMLsocket();
> mySocket.connect("localhost",2055);
>
> Then I created a layer with a button that has the following button
> Action script:
>
> on (release) {
> mySocket.send("mystring");
> }
>
>
> Then I created a Labview program (on the same machine) that has a
> single while loop with code that creates a listener at port 2055 (the
> port connected to
Flash) and some code for reading the port.
>
> This setup works, except Labview will only receive the string once
> from the button push, even though the receive code is in a loop.
> Subsequent button pushes in Flash does not result in characters being
> received in LV. Has anyone here done this before? Thanks.
>
> gm

Similar Messages

  • Please Help Me - I am stuck with this problem for days

    O.k I have posted couple of problems here. But the latest one is as follows
    I trying to pass a Stiring Array from Java function to my native method. the native function in turn invokkes another function that takes a char [][] as its parameter. My native function basically converts teh jobjectarray into char [][] and then invoke the other function.
    JNIEXPORT jboolean JNICALL
    Java_copilotplus_DataTransferTab_GetStatus
    (JNIEnv *env, jobject o, jobjectArray fn, jlongArray size)
    char szStr[8][33];
    int len = env->GetArrayLength( fn );
    int i=0;
    for( i=0; i < len; i++ )
    jobject obj = env->GetObjectArrayElement(fn, i);
    jstring str = (jstring)obj;
    szStr[33] = (char)env->GetStringUTFChars( str, 0 );
         //*file = szStr[i];
    BOOL status = Upload(szStr);
    return status;
    BOOL Upload(char pFileName [][33])
         return TRUE;
    Now this compiles fine and makes a dll
    But when I run my java program it gives me this error
    HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Error ID: 4F533F57494E13120E43505002D4
    What am I doing wrong
    Please Help
    Vaishali

    The problem was that I did not ahve any actual values in the String Array. I was doing like this initially
    String []file = new String[8]
    and then when i pass file to the dll it was trying to read something which was not there. That's why it was crashing.
    But now I put some values in it and then it works fine.

  • HT1695 Please help, my iPhone is pointless with this problem!

    I have an iPhone 5 and am stuck on a "Searching..." bar where I should have either 3G or the Wi-Fi signal. This has been stuck like this all day, and I haven't been able to send/receive any text messages. I also can't go onto the Internet. Please help.

    Try taking out your sim card (if you have a GSM iPhone) and putting it back in. If that doesn't work do a restart by holding down the lock and home buttons simulatneously until you see the Apple logo come back on the screen. If that doesn't work then I suggest doing a Restore of your phone through iTunes.
    If all else fails, talk with your carrier, it's probably an issue with them at that point. Good luck!

  • Help! Lost in space with simple problem: my Palm Vx address book no longer opens on my laptop, Inspiron 2650. What do I need to do?

    i have not used my PalmVx in a few years; however, the database on my Laptop, Inspiron 2650, continued to work until recently.  Now it reads:  'the selected port com4 is not available at this time'    and ''Error:Failed to open address book'   Does anyone know how I get my address book to open again?  The 'directions for dummies' works best for me as i am clueless.  Many thanks to the kind soul who responds to this email. I've tried online answers for last three hours. to no avail.   Anybody..thank you in advance!
    Post relates to: Palm Vx

    Hi, Poeta. Thank you in advance for responding.  Six hours later and I  fear I"m getting no where fast.  When I clicked on my Palm icon, it read what i emailed you:  'the selected port com4 is not available at this time'    and ''Error:Failed to open address book'  .  So, an hour ago, i uninstalled and reinstalled.  now  a Palm Pilot database/calendar, et al pops up, but NONE OF MY information is there..  In truth, my PalmVx database has not worked on my laptop for one year (since 2008).  my handheld has not functioned for a few years - the handheld  keeps telling me to 'use stylus to tap center of target'. which is what it told me the first day i opened it in 1999.  My PRIORITY is accessing my PalmVx database on my laptop and would appreciate your help in how to Reactivate it.  Let me know what you need from me.  Again, I am a simpleton when it comes to this tech stuff. Thank you so very much for your thoughtfulness and expertise. 

  • Firefox 19.02 freezes. Tried downgrading Flash to 10.3 but problem appears to be unrelated to Flash. Reinstalled Forefox 14.01 problem went away.

    Latest version of Firefox freezes solid on load. 14.01 fixes the problem. Reinstalled 19.02 and problem reappeared. Disabling Norton Firewall temporarily did not fix the problem. Reinstalled 14.01 a second time and problem went away again. Running Win 8 on a Toshiba Satellite laptop.

    Update: It WAS Flash related. I reinstalled Firefox 19.0.2. Both Flash 10.3 and 11.6 froze. I then uninstalled Flash. No problem. Reinstalled Flash 10.3, froze again. Downgraded Firefox to 14.01 again. Flash 10.3 runs with no problem. On my PC 14.01/Flash 10.3 is the workable solution, for now. Fix please.

  • TS2634 the flashing light next too the camera is stays on,can anyone help me with this problem.thanks

    the flashing light next too the camera is stays on,can anyone help me with this problem.thanks

    Basics from the manual are restart, reset, restore.  Have you tried these?
    Have you read the manual?

  • Hello my Power Macintosh G5 2.7 DP (PCI-X) flashes and tell me theres a problem with the installed Ram! some times it powers on with no problems but now its saying there a ram fauilt and dont boot! any help here please thanks

    hello i have a powermac G5 it flashed lights tells me it has a Ram fault but some times it pwers on with no problems odd any one give me advice on this ? thanks

    Hi, while it could be the RAM, it seems more likely a RAM slot solder problem related to temperature.
    Does it do that when it's colder?
    If you're sure the RAM is good, try the Hair Dryer trick...
    http://discussions.apple.com/message.jspa?messageID=13240047#13240047

  • So i have a 2011 MacBook Pro and when i turned it on this morning a flashing folder came on with a question mark in the middle of it and it keeps flashing. So i tried googling any solutions and up so far nothing has worked. Please Help ?

    I tried googling several solutions, but so far nothing seems to work. Everytime i start up my laptop i press CMND+R to make it go to the repair disk utility but instead it takes me as if i have to install lion when i had Snow Leopard 10.6.8. When i do go to the repair disk utility, on the eft hand side shows two hardrives one is Untitled and another is Hitachi, i tried downloading snow leopard 10.6.8 onto a Re-writable disc  using my windows computer. When i insterted it onto the disc drive it came out under SUPER DRIVE and everytime i double click on the CD it says something about attaching images/ I also forgot to mention that the MAC OSX 10.6.8 Update shows on the left hand side on the bottom in DMG format. I dont know what else to do, please help?

    DestroyGalaxies wrote:
    a flashing folder came on with a question mark in the middle of it
    This is the firmware telling you it can't find a bootable OS X volume.
    Usually to solve this all you do is hold the option key down on the built in keyboard while booting the computer, this enters Startup Manager and then you choose OS X to boot, then in System Preferences > Startup Disk you change it to the boot volume and it tells the firmware.
    Everytime i start up my laptop i press CMND+R to make it go to the repair disk utility but instead it takes me as if i have to install lion when i had Snow Leopard 10.6.8.
    What you have is a 10.7 or 10.8 Recovery HD from when 10.7 or 10. was on the machine previously.
    The Macintosh HD partition only was erased and 10.6 installed on it, without erasing the entire drive like what should have occured to remove the Recovery HD partition.
    So you have a mucked up machine.
    i tried downloading snow leopard 10.6.8 onto a Re-writable disc  using my windows computer.
    Well there goes your problem there, your downloading illegal copies of Snow Leopard from a untrusted location.
    10.6 is not available for download, except from pirate sites. You likely have malware or a compromised system.
    I dont know what else to do, please help?
    What you need to do is call Apple via phone, tell them the make of your machine and order the appropriate 10.6 disks, they are inexpensive now. Some machines that came with 10.6.3+ origianlly need machine specific disks, other wise pre-10.6.3 Intel Macs can use the 10.6.3 white retail disks.
    Once you have the disks, you need to backup your personal information off the computer to a external storage drive using the emergency quick copy method, then disconnect it to prevent mistakes.
    Most commonly used backup methods
    Next follow this proceedure and make sure to select the ENTIRE drive on the far left with the drive makers name and size, this will erase the entire drive, then install 10.6 from the disk
    How to erase and install Snow Leopard 10.6
    When finished setup the machine and log onto the Internet and use Software Update to get current on 10.6.8
    Don't use pirated software, it's likely been compromised in some fashion.

  • Connect Labview with Adobe Flash

    Hi,
    How can i connect Labview with Flash? I know one way: write a text file with labview and open with Flash but this method have some errors sometimes. I thinking in something like an open connection like sockets, i have labview 8,5. i saw that in the labviewm 8,6 that have a webservices, it's something like that but with labviewm 8,5.

    will post no 4 of this thread will help you?

  • My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to lissen I had to put on loud speaker or to use handsfree please help me out with this problem if some body have answer?

    My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to listen I had to put on loud speaker or to use hands free please help me out with this problem if some body have answer?

    Hi Venkata from NZ,
    If you are having an issue with the speaker on your iPhone, I would suggest that you troubleshoot using the steps in this article - 
    If you hear no sound or distorted sound from your iPhone, iPad, or iPod touch speaker - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • HT1386 I just reinstalled my windows operating system and decided to put on windows 8.  After loading all of my music back into a freshly installed itunes, my 4th gen ipod is not recognized by itunes.  My 1st gen ipod nano works with no problem.  Help!

    reinstalled my windows operating system and decided to put on windows 8.  After loading all of my music back into a freshly installed itunes, my 4th gen ipod is not recognized by itunes.  My 1st gen ipod nano works with no problem.  I can eliminate any problems with the cable and connection.
    I've stopped and started the service, and also have performed cold reboots.
    Nothing seems to have helped the situation.
    Help!

    See:
    iOS: Device not recognized in iTunes for Windows
    I would start with
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    iTunes for Windows: Device Sync Tests
    Have you tried on another computer to help determine if you have a computer or iPod problem?
    The iPod Classic uses different drivers than the Nano

  • Can anyone help me with a problem i am having with my music on my iPhone 4S. I have put alot of Compilation CDs in my library on iTunes. I download these tracks onto my phone, everything is ok so far. Now, this is what is niggling me and I don.t know how

    Can anyone help me with a problem i am having with my music on my iPhone 4S. I have put alot of Compilation CDs in my library on iTunes. I download these tracks onto my phone, everything is ok so far. Now, this is what is niggling me and I don.t know how to resolve it. This is my problem: 
    Have downloaded for example: Queen – Bohemium Rhapsody from a compilation album as well as a few complete Queen Album CDs into the iTunes library and then put them into playlists,
    When I go onto my phone and select Queen on the MUSIC app using Songs tab at the bottom of the screen it will display all Queen songs and their resective Alum pics, that is all those not in a complilation album, .
    If I know the song title I can select the songs tab and find the song that way,
    I’ve tried fiddling with the settings in the iTunes app by going to ‘get info’ tab and trying to sort the problem out that way but am not having much luck.What I want the phone to do is show, for example all Queens songs including those in compilation albums. Can this be done, would be grateful for any ideas on how it can be done, that is if ic can be done, any ideas
    Thanks for your help

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • I need advise and help with this problem . First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product . At the present time I'm having lots of problems with the router so I was looking in to

    I need advise and help with this problem .
    First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product .
    At the present time I'm having lots of problems with the router so I was looking in to some info , and come across one web site regarding : port forwarding , IP addresses .
    In my frustration , amongst lots of open web pages tutorials and other useless information , I come across innocent looking link and software to installed called Genieo , which suppose to help with any router .
    Software ask for permission to install , and about 30 % in , my instinct was telling me , there is something not right . I stop installation . Delete everything , look for any
    trace in Spotlight , Library . Nothing could be find .
    Now , every time I open Safari , Firefox or Chrome , it will open in my home page , but when I start looking for something in steed of Google page , there is
    ''search.genieo.com'' page acting like a Google . I try again to get raid of this but I can not find solution .
    With more research , again using genieo.com search eng. there is lots of articles and warnings . From that I learn do not use uninstall software , because doing this will install more things where it come from.
    I do have AppleCare support but its to late to phone them , so maybe there some people with knowledge , how to get this of my computer
    Any help is welcome , English is my learned language , you may notice this , so I'm not that quick with the respond

    Genieo definitely doesn't help with your router. It's just adware, and has no benefit to you at all. They scammed you so that they could display their ads on your computer.
    To remove it, see:
    http://www.thesafemac.com/arg-genieo/
    Do not use the Genieo uninstaller!

  • My iphone 4s is deactivated, the phone is asking for my account and password but i forgot my apple id password. and i can't reset it. can someone help me with my problem? thanks.

    I have an iPhone 4s and it is now deactivated. the phone is asking for my apple account and password. but i have forgotten my password. i tried to reset it on iforgot.apple.com, and when i entered my apple id the next thing that appeared on screen is that i have to chose either email verification or security questions. then i click the security question then it asked about my birthday. there where only asking the month and day. then i entered my birthday which is March 8.
    so can somebody help me with this problem?
    my apple id account is "[email protected]"
    thanks in advance!

    The email you should NOT have published, is your iCloud, not Apple ID
    You Apple ID is a valid email address
    This is a user forum, not Apple customer service.
    I gather the security question did not work.
    If you have an email address, why not use that?
    If this fails you have to contact support and schedule help.

  • Please help , I have iPhone 4S and have updated to iso6, don't know if that has anything to do with the problem but I can't set the year on date and time to the correct year, it automatically goes to 2578 ? Plz help

    Subject:
    Please help , I have iPhone 4S and have updated to iso6, don't know if that has anything to do with the problem but I can't set the year on date and time to the correct year, it automatically goes to 2578 ? Plz help

    Settings>General>International.
    Set the calendar to "Gregorian". You have it set to Buddhist.

Maybe you are looking for

  • WHENEVER SQLERROR EXIT SQL.SQLCODE||SQLERRM  & Relate ORA-ERRNO & SQLCODE

    Hi, Is there any way to pass both the SQL.SQLCODE & SQLERRM to the os back ?? When I tried WHENEVER SQLERROR EXIT SQL.SQLCODE The actual oracle error code (ORA-00942) and the error code (174 ) returned by SQL.SQLCODE are different . So how can I get

  • Need help on IDES screen change script

    Dear All.. Can any one tell me the steps of the IDES screen change when sap logged on.., i want put my company logo and company name.. advanced thanks for help Praveen

  • Deep linking not working in Flex 4

    Deep linking is working in Flex 4 (using Flash Builder) when I debug and run the application, but not when I do an export release build. So I tried using the files from the bin-debug directory, and noticed that deep linking only works when the files

  • Desktop icons keep disappearing

    Hello, My desktop icons are suddenly, and continually disappearing. The desktop will be completely blank, and the only way to restore it to normal is by rebooting or relaunching finder. Any ideas what's going on or a way to figure out and solve the p

  • Applet run in applet viewer but produces error in browser

    Dear All, Rather new in Java developpement, this topic should be peanuts for most of you. I am using Oracle JDevelopper 11. I have written a very simple applet which just display a text using the following code: *public void paint(Graphics g){ g.draw