I am using the MODBUS library and can't receive data, however I can send it just fine?

Hi,
I am using the Modbus Library to communicate with a VFD to control a fan. I am using the master write and read vi. I can write data to the VFD and get the fan to do what I want. The VFD is supposed to send a confirmation packet after I tell it to do something and I can also read its registers. When I debug the VI it shows the problem is the buffer always reads zero and the VI timesout. If I watch the lights of the USB to RS 485 adapter I am using to interface with the VFD, I see that the RX light flashs right after I send a message. So I should have something in the buffer. Does anyone have any suggestions?
Aaron
Solved!
Go to Solution.

Ok, heres what happened for anyone who has this problem. In the MB Serial Receive.vi The Bytes at Port property node was reading 0 even though there was something in the buffer. The program execution was then stuck in a loop till it timed out and never went on to read anything from the serial port buffer. I didn't spend too much time wondering why that VI didn't work and created my own. With an appropriate delay after writing to the serial port,  I used the same Bytes at Port property node and was able to get the right number of bytes to then feed the read VISA vi the number of bytes to read. I got the right response message and everything seemed good. But of course NOT! I then experimented with writing different speeds to the VFD to get the fan to run at different speeds. I found a small range of speeds where I would get no response from the VFD, either by it functioning or sending me a response packet. After quite some time, I found there is an error in the LRC-8 code in the MODBUS NI library. It does not mandate the LRC be a two character value. So if your LRC turns out to be a single character value such as F (which should be 0F)  you get an incomplete MODBUS message. This was easily fixed in the LRC8 vi by telling the 'number to hexidecimal string' vi to produce an output with a minimum width of two. Then everything worked great. Moral of the story is the MODBUS library is clunky.

Similar Messages

  • I have an old Apple ID connected to a discontinued e-mail address.  I want to delete it.  I cannot remember my password and when I try to change the password using the security questions, it rejects my birth date!  I can't change it by cancelled e-mail.

    I have an old Apple ID associated with a discontinued e-mail address.  It keeps popping up when I try to update apps.  I don't remember the password.  When I try to change it by security questions, it rejects my birthdate!  I can't change it by e-mail because I no longer have access to the e-mail.  All I really want to do is cancel this old ID.  How can I do this?  Obviously, I have a new ID, since I am using this support community.

    You'll have to contact iTunes store support to see if they can help you with this: http://www.apple.com/emea/support/itunes/contact.html.

  • I have a Ipod Nano and want to get another one , and use both. Can I use the same computer and library for both?

    I have a Ipod Nano and want to get another one , and use both. Can I use the same computer and library for both?

    Yes

  • I just upgraded from IPhoto7 to 9.5. Now I can't open iPhoto without a downloaded tool to bridge the gap bewteen versions. I downloaded the tool and I still get the message "To prepare the library, use the iPhoto Library Upgrader available from Apple."

    I had to upgrade to Mavericks to send off the iCanendars I made in iPhoto. Then I had to upgrade my IPhoto from 7 to 9.5. Now when I go to open iPhoto I get the message "To prepare the library, use the iPhoto Library Upgrader available from Apple."  Well, I installed the Upgrader, but I still get the message and can't open iPhoto.  I have tried restarting the computer, but that didn't help.  How do I get the computer to recognize the Upgrader?

    You may get more replies in the iPhoto forum.
    https://discussions.apple.com/community/ilife/iphoto

  • I am updating iphoto 9.1 to 9.3 and every time when I clicked for update aps store asked to open it in the account where you purchased. I am using the same account and its available in the purchased item of this account. Can someone resolve this problem.

    I am updating iphoto 9.1 to 9.3 and every time when I clicked for update aps store asked to open it in the account where you purchased. I am using the same account and its available in the purchased item of this account. But in my purchased item library it indicates that you update iPhoto. I am not sure which account the aps store asking. Can someone resolve this problem.

    Contact App Store support. They're the folks who can help with Account issues.
    Regards
    TD

  • Multiple iphones each with an apple id - can i use the same laptop and itunes for back up, restore and updates?

    We have two iphones each with a different apple id - can i use the same laptop and itunes for back up, restore and updates without risking having my apps overwritten.  Basically does itunes keep the two iphones as two separate entities ?  Does iTunes differentiate between the two devices and keep two different SYNCs ?

    Yes, you can use the same computer for BACK UPS, RESTORING AND UPDATING. But that is it.
    You cannot, however, use it to sync the different devices. iTunes will only recognize one device to sync with and if you sync any other devices with that iTunes library, it will replace what is on the phone with whatever is in the library. It cannot differentiate between devices. At most, it will jsut recognize that the phone has been synced with a different iTunes library.
    So if you would like to use the same computer for backing up, restoring and updating, just make sure to turn of Automatic Syncing in your iTunes Preferences.

  • How To Use The Same Library - MacBook Pro's And Windows XP Pro?

    Background:  I have a fully configured MacBook Pro running OS X 10.8.3. Also, I run Windows XP Pro SP3 using Parallels Desktop. My primary iTunes Library and all content is stored on an external hard disk and the iTunes is "pointed" to that location by setting the iTunes' Preferences' Advanced Settings to the full path where the Library is located. Everything I have inside iTunes works perfect - the size if the Library is over 225GB!
    BUT, when I install and use iTunes on my Windows XP Pro operating system (under Parallels), the contents of the Library SEEMS to work okay (while I'm in Windows) but the Windows' iTunes Library location in Preferences' Advance Tab is NOT THE SAME LOCATION AS IS THE MAC's LIBRARY LOCATION! It is not at the same location as my main/primary iTunes Library is "pointed to".
    The problem occurs when I close Windows and return to the Mac OS X and then try to use my primary iTunes. All of the contents (and any content) within iTunes no longer work! When I attempt to play ANY song, movie, TV show, music video, audiobook, etc., a message pops up saying in effect "Location of 'x' can't be found, do you want to locate it?" I can then click 'yes' and navigate to the Library file that contains the song's file and it will then play fine, as it should. BUT, ONLY THAT SINGLE SONG WILL WORK - THE REMAINING 225GB STILL DON'T WORK!!!
    So, I am forced to go into iTunes' Preferences' Advanced tab and click on "Change Location" then navigate to the proper library file (NOTE, THE LOCATION HAD BEEN CHANGED TO THE LOCATION FOR THE WINDOWS' LIBRARY LOCATION!!!)! Doing this corrects the primary iTunes functionality, but only after being forced to deleting the "iTunes Media Folder", quit iTunes, restart iTunes and Consolidate the Library - a whole bunch of steps and time to get back to "normal"!!!!!
    Again, this all happens by going into Windows, opening its iTunes, then THAT triggers the entire scenario I've described above - EVERY TIME!
    Thus, I avoid iTunes when I go into Windows, but I should NOT have to avoid using iTunes inside Windows! I hope I have described the problem/issues well enough that someone of you experts can provide a practical solution for me.
    A potential remedy I've thought of is:  Go into Windows' iTunes then go into its Preferences' Advance tab and change ITS location to be the exact same location as the primary Mac OS X's, click OK, then immediately close that iTunes.
              DOES THIS SOUND LIKE IT WILL WORK - I.e., USING THE EXACT SAME LIBRARY LOCATION FOR BOTH iTUNES?????
              IF THIS WOULD WORK, WHAT ELSE MUST I DO TO EITHER iTUNES OR TO BOTH iTUNES TO USE BOTH iTUNES
              USING THE SAME LIBRARY???
    Thank you for any suggested solutions - VERY MUCH!
    Larry

    Note that sharing a folder between different OS that use different file paths is not recommended as some files can have an absolute path or other OS specific data.
    You can click the Choose Folder button if you want to create or use a folder in a different location.<br />
    Make sure to select an empty folder (you need to create this folder in advance) and not a folder that already has files as Firefox will use the specified location in this case.
    *http://kb.mozillazine.org/Profile_Manager
    You can also create a new profile via the command line.
    *https://developer.mozilla.org/Command_Line_Options
    You can consider to use Sync to sync the two profiles

  • Using the Remote App and playing iTunes from a shared Library

    I have a playlist set up in my main iTunes library on my iMac.  This is a shared library on my local network at home.  I can access and play the library remotely from my MacBook.  I want to move my MacBook outside with external speakers for a party.  I want to be able to access the shared library from the iMac inside the house from my MacBook and be able to control it with the Remote App.
    My problem is that when I use Remote and the MacBook outside (I've set up the iTunes passcode with that computer and my iPod) it will only recognize the library on that computer, even if I am logged in to the shared library and it is visible in the MacBook.  So basically, remote is doing what it is suppose to do in a normal situation, but I need it to recognize and play from the shared library.
    When I turn on home sharing on the iPod I can access all the libraries on the various macs in our house, but the music will only play out of that particular machines speakers.
    I don't have wireless speakers, so I can't think of another way to do this.  Is there?
    Thanks, Sandy

    Well, I've got it to work although not ideal. 
    1. On my main computer (iMac) I created the playlist that I want available to control at a party.
    2. I went to iTunes settings/Sharing and selected "Share selected playlists" and checked the playlist I made for a party.
    3. I Linked my iPod to MacBook (which is outside with external speakers) using the 4 digit code
    4. iPod, Home Sharing Off
    5. Select the Library on iPod
    6. Select "More" (bottom right of iPod)
    7. Select "Shared" from the list that appears
    8. Select the computer that has the shared library
    9. Select the playlist (or lists if you created others)
    This setting is allowing me to use my iPod "Remote App" to play an iTunes playlist (or the entire catalogue) from a shared library on my MacBook WITH the sound coming from my MacBook and NOT from my iMac where the original iTunes catalogue is located.
    Not sure if this is the easiest way, but it's working.

  • I have a new mac book air and somehow iPhoto was installed twice.  Also, a second library was created and it became the default library.  I attempted to switch to the original library but it won't open.  what can I do to revert to the old library?

    I have a new mac book air and somehow iPhoto was installed twice.  Also, a second library was created and it became the default library.  I attempted to switch to the original library but it won't open.  what can I do to revert to the old library?

    Both iPhotos open to a default library (#2) which has 300+ photos,  I attempted to "switch to library" under the file tab in iPhoto and tried to choose "other library" which had most of my photos.  When I attempt to open it, it doesn't do anything.  I can see it and there are 2 libraries but it won't open.
    Have you tried to open your old iPhoto library by double-clicking it directly, instead of using the File menu?  That should work, if you are running iPhoto '11 and the library has been created by that version or an older version.  DO you get an error message, if you select the library directly in the Finder?
    I checked and it is the latest version of iPhoto.
    Is it iPhoto '11, version 6.0.5? "Latest version" is ambiguous, because it will depend on your system version.
    Where is your iPhoto Library stored?

  • Can't open iPhoto "To open your library with this version of iPhoto, it first needs to be prepared. To prepare the library, use the iPhoto Library Upgrader available from Apple." Doesn't work...

    I've tried to open my iPhoto and a message box opens up and reads "To open your library with this version of iPhoto, it first needs to be prepared. To prepare the library, use the iPhoto Library Upgrader available from Apple." I update this and this message continues to pop up. I've even tried to rebuild it, but no matter what I do the same message appears and iPhoto still wpn't open. Can somebody please help me?!

    i'm having the same problem with my iMac (Mac OS X 10.7.5) . i haven't really made any updates to it and yesterday when i tried to access the iPhoto library of my MBP (from my iMac) is when problems started. The iPhoto on the iMac initially said I need to install the recent version of the iPhoto. Since I can't find a 9.0 download, I went to buy the iPhoto on the App store.
    When I tried to install iPhoto (version 9.4.3) to the iMac, I got this message:
    The iPhoto Library Upgrader is a tool that prepares libraries from iPhoto 5 or earlier, so you can upgrade them with the current version of iPhoto. You can download the tool here.
    Note: If your library is from iPhoto 6 or later, this tool is not required."
    I then installed the iPhone Library Upgrader, but I got the same prompt:
    'You can't open your current photo library using this version of the iPhoto. You have made changes to your library using a newer version of iPhoto. Please quit and use the latest version of iPhoto."
    I guess this takes me back to square one? I am inclined to buy the iLife on eBay with the iPhoto 9.0 version, but needed to know if this is the case before I unfortunately bite the bullet.

  • My iTunes library is too large for my iPod classic--can I create a separate library so that I can split the current library and sync the distinct libraries onto separate iPods?

    My iTunes library is too large for my iPod classic--can I create a separate library so that I can split the current library and sync the distinct libraries onto separate iPods?

    - If the Gmail accounts are IMAP one then if the library is erased and then you use the account old email will be redownload
    - Easing the library on the MacBook does not effect what is on the iMac. On the other hand if you deleted the messages in the Mail app on the MacBook then they will deleted from all devices.
    -See the middle of the following. It would seem to help in your situation
    http://www.howtogeek.com/209517/how-to-stop-your-macs-mail-app-from-wasting-giga bytes-of-space/

  • HT201272 I downloaded an album but one of the songs is corrupted, it only plays for about 4 seconds. When I try to re-download using the iTunes Store and "Purchased", it won't give me the option to download it again. How can I get the song I PAID for!!??

    I downloaded an album but one of the songs is corrupted, it only plays for about 4 seconds. When I try to re-download using the iTunes Store and "Purchased", it won't give me the option to download it again. How can I get the song I PAID for!!??

    Depending upon what country that you are in (music can't be re-downloaded in all countries) then try deleting that track from your iTunes library and redownload it via the Purchased link under Quicklinks on the right-hand side of the iTunes store home page on your computer's iTunes.
    If you aren't in a country where you can re-download music or if it re-downloads in the same state then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Can't use the Calendar, Book, and Card functions

    I have updated my iLife programs to iLife 08 and cannot use the Calendar, Book, and Card functions as the program says the themes have not been installed. However, after looking in the Library/Applications Support/iPhoto folder, the themes are there but not being recognized by the program. I have reinstalled iLife 08 but still to no avail. Help!

    Grant:
    Try the following:
    A. look for a folder title Themes in the User/Library/Application Support/iPhoto folder. If you find one there move it to the HD/Library/Application Support/iPhoto folder and reboot.
    If that doesn't jump start iPhoto then go on to B.
    B.
    Restoring iPhoto Themes
    1 - delete the current application.
    2 - delete any files with iPhoto in the file name that reside in your HD/Library/Receipts folder.
    3 - delete the Themes folder from your User/Library/Application Support/iPhoto folder.
    Also look in the HD/Library/Application Support/iPhoto folder for a Themes folder. If there is one there then delete it also.
    5 - boot into the system disk that came with your computer and do a custom install selecting only iPhoto.
    After installing reinstall the iPhoto 7.1.1 updater again followed by a repair of disk permissions with Disk Utility. Also make sure you're running the latest Quicktime, 7.3.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Can several members of a household use the same library with different log ins

    Once you have downloaded the latest version of iTunes to a computer, can different members of the same family use the same library but with different log ins or do you need different computers?

    exactly:) you first gotta transfer the apps from your devices by connecting them and going to file and "transfer purchases" and it should bring the apps over
    PS: do make sure that the computer is authorized for all of the purchases do this
    -go to store at the very top of the page (usually up there with file,edit,view,and controls)
    -choose authorize this computer
    -enter the email address and password associated with the purchases you are transferring and hit authorize!!
    -quick transfer and done, you guys can share whatver you transfer to the library
    hope this helps:)

  • I am so tired of iphoto crashing, losing work I've done.  I want to switch to photoshop elements 10 but need to know if it uses the iphoto library or if I can import that library into elements

    I am so tired of iphoto crashing, losing work I've done.  I want to switch to photoshop elements 10 but need to know if it uses the iphoto library or if I can import that library into elements

    Using Photoshop or Photoshop Elements as Your Editor of Choice in iPhoto.
    1 - select Photoshop or Photoshop Elememts as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop.  When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done. 
    3 - however, if you get the navigation window
    that indicates that  PS wants to save it as a PS formatted file.  You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements  the Saving File preferences should be configured as shown:
    I also suggest the Maximize PSD File Compatabilty be set to Always.  In PSE’s General preference pane set the Color Picker to Apple as shown:
    Note:  to switch between iPhoto and PS or PSE as the editor of choice Control (right)-click on the thumbnail and select either Edit in iPhoto or Edit in External Editor from the contextual menu. If you use iPhoto to edit more than PSE re-select iPhoto in the iPhoto General preference pane. Then iPhoto will be the default editor and you can use the contextual menu to select PSE for your editor when desired.

Maybe you are looking for

  • Edit in Photoshop opens wrong location

    This is strange. I have been a user of Lightroom and Photoshop since their first versions. I am running an early 2011 MacBook Pro with the latest versions of everything. I subscribe to Creative Cloud. Until recently, choosing to edit a file in Photos

  • Itunes won't accept new songs

    I have successfully uploaded over 7300 to itunes. These songs have been acquired in multiple facets such as downloading, and burning from cd, etc. However, the last two albums I have tried to upload to itunes by dragging or by adding folder itunes ac

  • Want to create program (XYZ) for scheduling anther program(ABC)

    Requirement : I have one report ABC and I want to create program XYZ for scheduling the report ABC (without executing the program ABC ). Output : Program XYZ 1) schedule the report ABC 2) Provide the output of ABC

  • Decimal Notation in SU3 keeps on reverting after I changed

    Hi all, I am changing the decimal notation in the DEFAULT TAB at SU3 (user maintenance). the problem : the decimal notation always revert back to old selection despite i selected a new one, saved it, log out and login to get refresh. How do i stop th

  • Laptop for Premiere

    Hi, Can anyone recommend a laptop priced around or below $1,000 that can run Premiere Pro cc fairly well? Will an HP Envy sleekbook with 6gb ram and a radeon hd 8610g graphics do the job? Besides the amount of ram, what else would be crucial to runni