Problems communicat​ing Joystick over Modbus TCP/IP: Please Help!

I'll give the whole picture here, but I'm not very hopeful because I see other people have had similar problems with no solutions. I am using Labview 2009 and I'm not sure what version of Modbus I have, it was the newest version available in early 2009. 
I have a joystick plugged into computer1 (Master) which does not have Labview. Computer1 is connected via Remote Desktop to computer2, which is running the MB Ethernet Example Slave in Labview.
In order to get the joystick info from computer1 to computer2, I built an .exe that takes the joystick info and sends it over modbus. I began getting error 66 randomly while using the MB Ethernet Master Query in the .exe, which would immediately be followed by Error 62 if I tried to send another data point.
So, I replaced the Master Query with just the MB Ethernet transmit in the .exe, since the slave is not writing anything back to the master. Now I only get error 62, and it is still random.
I seem to be able to send a boolean value (from a switch on the joystick) without any trouble. But when I start passing the joystick position, which I have converted to U16, it errors out eventually. Sometimes I can move the joystick continuously for several seconds (30-45), and sometimes it is almost immediate.
Also, when I view computer2 over remote desktop, the error occurrs more frequently. I know the Ethernet switch is working, and I have had this problem before when directly connecting two computers with a twisted cable.
Can somebody please help me with this, or suggest a better way of doing it? I only need to pass one U16 and one or two booleans, so if there is something besides Modbus that I can use, I'm all ears.

Success! The cross binding was a big part of the problem, I had forgotten I'd done that, and I was actually just guessing, so I'm not sure if the fog.... was correct either.
SO, here is what I did to get this to work, in case anybody else comes across this (and in case I forget).
1. I think I'm hosting the library on the Labview computer (computer2), although, it appears that this done simply by pressing run on the VI that is running on this computer. The variable in this VI is bound to the one created under the library for the .exe VI. I'm a little confused here, because they are actually the same variable, just copied and pasted inside the project explorer window. I'm not sure if I really need the two libraries, or if I even needed to bind them since they are one and the same?
2. The .aliases file: I opened this up in notepad, and all it contains is the IP address of the computer2, which is the one that I am making the .exe on and also the one that is currently running labview and hosting the library. If, in the application builder/Advanced, I leave the check mark on Use the default project aliases file, the .exe does not work. I think it is because it tries to connect to (local host) instead of (169.254.74.250), the IP address of the local host. If, however, I open the .aliases file in notepad and save it under a new name, unchanged, and then uncheck the box and add this file, the .exe works. I think because it now looks for (169.254.74.250). Make sense? If the .exe stayed on the same machine, then local host and 169... would be the same thing, but since the .exe moved across the network, it now needs the IP address.
I'm guessing that when I move this project to a new set of computers, I will have to open the .aliases file in the .exe folder on computer1 and change it to the IP address of computer2. Hopefully I will not have to rebuild the .exe, because computer2 will not have the version of Labview that can build an .exe.
3. I took the invoke node out of the .exe code. There is nothing in the .exe code, or the VI running on the host computer that has anything to do with connectivity other than writing to and reading the shared variables.
4. In application builder/Shared Variable Deployment, I DID NOT check the box that says Deploy shared variable libraries at application execution. I don't understand how this could possibly work unless I was leaving the .exe on this computer.
So in the end, it was pretty simple, just a couple of nuances that needed sorted out. I still think the NI explanations of using shared variables with EXEs are very confusing, and I'm not sure what I will have to do to change the VI on computer1 to an EXE, although that will probably be a requirement on down the road.
Thanks for the help and being patient.

Similar Messages

  • I have installed the most recent version of Snow Leopard on my MAC, and I am trying to install Mountain Lion from the Apple Store.  It will not install, because it says I do not have 2GB of memory, even though I have over 200GB available.  Please help.

    I have installed the most recent version of Snow Leopard on my MAC, and I am trying to install Mountain Lion from the Apple Store.  It will not install, because it says I do not have 2GB of memory, even though I have over 200GB available.  Please help.

    Welcome to the Apple Support Communities
    One thing is the memory, and another thing is the hard disk space. You are telling me that you have 200 GB of free space on the hard disk, but the App Store is telling you that you have to install 2 GB of memory or more on your Mac if you want to upgrade to OS X Mountain Lion.
    First of all, open  > About this Mac > More Info, and copy "Model Identifier" here, so we can know what Mac you have got and how much memory you can install.
    We recommend to buy the memory in OWC or Crucial (Crucial is cheaper and offers the same compatibility warranty as OWC) because you won't probably have any problem with the memory you buy there

  • HT1725 When I try downloading apps on my I pad it says additional information required. It then asks me to answer these questions that I have selected as my security questions. The only problem is I have forgot my answers, APPLE PLEASE HELP ME!!! Thank yo

    When I try downloading apps from the app store it doesn't allow me until I have entered the security questions, the only problem is I have forgotten my answers. Please help me to find out how I can retrieve the answers back, thank you

    Check the AppleCare number for your country here:
    http://support.apple.com/kb/HE57
    Call them up, and let them know you would like to be transferred to the Account Security Team.

  • Hello i am rajesh i am having problem while conveting other files into pdf format please help me

    i am rajesh i am having problem while converting other files into acrobat format please help me

    Hello Rajesh,
    I'm sorry to hear you're having trouble. Are you using Acrobat.com to convert your files to PDF? Please let me know where you are having trouble and I will do my best to help you convert your files. For your reference, here is a list of filetypes that can be converted to PDF online with Acrobat.com:
    http://kb2.adobe.com/cps/524/cpsid_52456.html#Create%20PDF
    Best,
    Rebecca

  • I have treated photos in final cut using effects. The problem is I can not export them. Please help me. Thank you-

    I have treated photos in final cut using effects. The problem is I can not export them. Please help me. Thank you-

    Ernest,
    This is how I do it: With all the video & still's in the time line, I click on each (even if I have to use the command key and click on each file). When each file is active I go under SHARE- go to EXPORT MEDIA- I use the Apple Pro Res codec 4:2:2. If you do not click on each file in the time line it will not be exported out.
    Hope this helps.

  • My iphone 5s 16 gb has an camera problem, turn the camera on tap all green, please help me

    My iphone 5s 16 gb has an camera problem, turn the camera on tap all green, please help me

    Hi teejayfs,
    Thanks for visiting Apple Support Communities.
    If you've noticed unexpected behavior with your iPhone camera, start with these steps to isolate or resolve the issue:
    Camera isn't functioning or has undesired image quality
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tappingSettings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Cases can interfere with the camera and the flash. Try gently cleaning the lens with a clean dry cloth or removing the case if you see image or color-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center.
    Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. You can also tap to readjust focus while recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll.
    Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    You can find these steps here:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Regards,
    Jeremy

  • IPhoto app stops responding upon launch. Please help how I can fix this problem., iPhoto app stops responding upon launch. Please help how I can fix this problem.

    iPhoto app stops responding upon launch. Please help how I can fix this problem., iPhoto app stops responding upon launch. Please help how I can fix this problem.

    Please clarify:
    What is your iPhoto version?
    And what do you mean by "not responding"? Is iPhoto hanging and showing the spinning beachball?
    Can you launch iPhoto, if you hold down the options key while launching and select or create a different library?

  • HT4085 Some videos that are taken with my iphone's camera are not making sounds, this problem occured today to all videos i record, please help

    Some videos that are taken with my iphone's camera are not making sounds, this problem occured today to all videos i recorded starting from today, please help

    It also takes time for the photos to be transferred out of your iPhone and into Photo stream on Apple's iCloud servers.
    Note that this can't happen if your iPhone is not connected to a WiFi network:
    When you enable My Photo Stream on your devices, all new photos you take or import to those devices will be automatically added to your photo stream.
    iOS devices: New photos you take are automatically uploaded to your photo stream when you leave the Camera app and are connected to Wi-Fi. My Photo Stream does not push photos over cellular connections.
    Macs: Any new photos you import to iPhoto or Aperture begin uploading automatically when you have a Wi-Fi or Ethernet connection. Or you can change your iPhoto or Aperture preferences so that only photos you manually add to My Photo Stream are uploaded.
    PC with iCloud Control Panel 2.0 or later: Open a Windows Explorer window and under Favorites select iCloud Photos if you are using iCloud Control Panel 3.0 (or Photo Stream if you are using 2.0 to 2.1.2). Open My Photo Stream. Click the "Add photos" button. Select the photos to import to My Photo Stream, then click Open.
    from here: http://support.apple.com/kb/ht4106

  • Having a problem syncing music and I-tunes...please help!!!

    Hello,
    I am new to this and will try to explain it best as I can. From what I understand about syncing, the music on my Iphone will sync to the music library once I plug my phone up. It does this automatically. That is fine and what I want it to do.
    However, for some reason, I have 173 songs in my library and I want all of them to sync to my phone, but only 135 of them are doing so. I don't know where the problem lies.
    Please help.
    Thanks. 

    Does an error message show that says why certain songs can't be synced? Sometimes it can be because the songs aren't authorized on the computer (if some came from a different iTunes account for example). Try playing one of the non-syncing songs in iTunes to make sure it works. Also, check the size of your files. Depending on who the songs were imported into iTunes it's possible that the files take up more space than your iPhone has available. Example would be if all of your songs were ripped from CD's and were large WAV files. If that's possible try converting the songs in iTunes to a smaller bitrate. If none of that helps you may need to try restarting or resetting your iPhone....or maybe even restoring it. Not sure if this will apply to you but it can't hurt to look at it. http://support.apple.com/kb/TS1474

  • I am facing problem in starting ShellHWDetection service Error code 1075,please help

    I am facing problem in starting ShellHWDetection service Error code 1075,please help

    Shellhwdetection is a Windows service which stands for Shell Hardware Detection Service.
    It provides notifications for AutoPlay hardware events.
    System error code 1075 means "The dependency service does not exist or has been marked for deletion."
    Please run services.msc, then find Shell Hardware Detection Service, view its dependencies
    Make sure the three services are set to running "automatic" in Services.
    If this doesn't help, then run sfc to check if there're some missing or corrupted files in system.
    Yolanda Zhu
    TechNet Community Support

  • Got my iPhone 4S a few days ago. On orange EE in uk. The phone keeps losing signal (no service) never had this problem before with other makes of phone. Please help, thank you.

    Please help. My iPhone 4S keeps losing signal (no service) I am with EE orange uk. The phone is only Agee days old. Never had this issue with previous phones.

    Same problem!!!
    There are many ways to fix it
    First you must change the USB cable... Or download new version iTunes bro...
    Or if your laptop says " the usb  NOT recognize " try to pull up the laptop charger,
    It's work for my device, try this bro !! 
    Im sorry my english is bad!!!

  • Problem in HTMLB :(  Very very very URGENT..Please help

    Hello All,
    I have a problem in HTMLB.
    <u>Scenario</u>:
    1. Am implementing a JSP DynPage Portal Component.
    2. Have a class called "BeanOrderDetails", which consists of an Object table and mapped fields like ModelNo, Qty, etc as the Column Names in this class.
    3. The class using JSPDynpage is called "NewOrder.java".
    This class instantiates the above bean class and calls a jsp file calls "NewOrder.jsp".
    4. NewOrder.jsp - uses HTMLB taglib style. consists of a form and set its layout to GridLayout. It further calls another JSP file which consists of all other GUI objects, called "i1_NewOrder.jsp".
    5. i1_NewOrder.jsp - creates instances of GUI Objects like InputField,etc and adds these instances to the GridLayoutCell.
    Question:
    i> I have to create a button called "Add NewLine" such that when the user clicks on it, an empty row should be automatically generated in the above table, which is created as in step 1.
    Where should I add this button and where would the event be handled?
    Please help. URGENT......
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu

    Hi Ritu,
    I had a very similar problem. The default TableViewModel does not support adding rows at runtime. You have to extend the TableViewModel for this - don't worry it is easier as it sounds.
    Look here for the solution which was given to me by Detlev Beutner:
    How to add a row in TableViewModel?
    I hope this helps.
    Best regards
    Francisco

  • Problems of viewing the photos in IPhone 5.Please help!

    Hello! I just start to use iphone 5 today. I tried to sync some photos with 3:2 ratio photos to my iphone 5. But when I view the photo in iphone, I cannot see full image of the photos (Pic 1).      
    Can I make some setting to help me to "auto fit screen" in iphone5 to solve this problems like Pic 2?
    Thank you for your help.
    Regards,
    Lawrence
    Pic1
    Pic 2

    Really? Oh no!!!   i tried to search in google this same question and i encounter some site that offer an application that will recover those deleted data(images) but its a paid applications so I cannot check if it can resolve my problem.. Anyway thanks for your reply.:)

  • Problem after installing firmware 1.4... please help!

    Hi all, i recently upgraded to firmware 1.4 (the recent available version)... and now, every few minutes the fan generates big noises (also generating heats around the speaker area)... i looked into the Activity Monitor and i found that there are some processes that are actually using up >50% CPU usage, but the strange thing is, i wasn't using these softwares at all...
    the reason why i said it is a problem with the firmware upgrade is that, this problem didn't happen to me before upgrading.. and beside this upgrade, i didn't install any other software thereafter...
    can some body please help me? is there anything i can do? or can i restore the firmware back to the previous version? thanks in advance.

    Thanks Sweet Polly. But the fireware restoration they talked about on that page is only for those who had problem DURING the fireware installation. "Note: This CD cannot be used to return an Intel-based Macintosh computer's firmware to a previous version if a successful update has already been performed.". i've got the fireware 1.4 successfully installed, and i want to restore it back to my previous version...

  • Ethernet/Wireless internet problems..This is Driving me CRAZY..please help!

    Alright i hope someone out there can solve my problem because i am about to throw my macbook against the wall. This is my problem:
    Everytime i go on to the internet, in order for the internet to work i have to pull my ethernet cable out of the plug, plug it back in and refresh the page. The internet then works for about 4 pages on avg. and then it times out and says im not connected. In order to continue surfing on the net i have to pull the cable out and plug it back in. The wireless acts the same way. It will work and then times out. I have to turn off the airport and back on to get any internet.
    The browsers im using are Safari 3.1.2 and Firefox 3.0.1 and both act the same way. My roommate has a PC and has had no problems whatsoever. Our internet comes through the wall from a plug not from a router. I personally believe that it is my computer because i have tried getting internet from the plug in his room and the same thing happens. The wireless around my school comes from different towers and no matter where im at the same thing happens. I dont believe that its the internet. Ohh and one more piece of info. My first year at school my computer gave me NO internet problems whatsoever. I bought the computer brand new in June of 2007.
    If anyone knows how to fix this extremely annoying problem, please help me!! Thanks to all who answer~

    Hi
    I'm getting a problem which may be related, and i've figured out some workarounds (sort of inadequate ones but at least they're something).
    PROBLEM DESCRIPTION: almost immediately after installing the 10.5.5. system update, my MacBook started disconnecting itself from my wireless network. i'd be working online and suddenly i'd notice that only 3 bars of the AirPort icon on the menu bar would be showing and that the internet connection was no longer there. the only way to get the connection back would be to switch airport off and then back on and it would connect again. a couple of minutes later the connection would be gone again. infuriating stuff! i checked the system log using the Apple System Profiler (from the Apple menu) and found some messages about there being too many state changes detected on the AirPort network interface and that measures were being taken to fix stuff. it's a pity i didn't save the original error message since i no longer get it, but here's one I found that's identical reported by someone else:
    May 25 16:50:57 phoebe mDNSResponder[22]: Note: Frequent transitions for interface en1
    (FE80:0000:0000:0000:021E:C2FF:FEB9:8B73); network traffic reduction measures in effect
    anyway, the "measures" seemed to be to simply disconnect me from the net, which wasn't great. now the forums mentioned various solutions, but none of them actually worked.
    SOLUTION/WORKAROUND: two things seem to have made a difference. 1. i downloaded the combo 10.5.5. system updater and reinstalled it. somehow after i did this the problem would no longer happen (at least those errors would no longer occur). 2. keeping my ipod touch wireless interface switched off, because whenever my touch comes online within a minute or two the iBook disconnects from the net.
    COMMENTS: (1) even now if i connect to the wireless network with my iPod, my MacBook's connection will drop - so my solution is to not connect to the wireless network with my iPod touch, which ***** because i like to read stuff in bed on the touch sometimes. (2) reinstalling the system update (the combo version) definitely helped, because before i kept getting that error message in the system log, and even if the iPod touch was switched off the MacBook would still disconnect. (3) this suggest that there were two separate problems, one to do with a corrupted AirPort driver or something of that sort (which was fixed when I reinstalled the system update), and another to do with being kicked off when the iPod touch connects to the wireless network (this problem remains).
    I've replace my Linksys wireless router with a Netgear wireless router, but that's made no difference, so i'm pretty sure that the problem has to do with the MacBook - either the hardware or the software. I plan to get another hard disk soon at which point i'll do a clear reinstall of the OS, and if the problem persists then i'll know that it's a MacBook hardware problem. =(
    i'll post again here in the future, but if anyone has comments or suggestions or reports of this kind of problem then your input would be highly appreciated.
    thanx
    dr.colekat

Maybe you are looking for