Modbus DSC point not reading correctly

   I'm using LV 2013 32bit on W7-64bit.  I'm talking to an industrial controller using Modbus over Ethernet.  My current software uses the DSC modbus interface, in which I define the Modbus bus itself within a library in the project, then define each Modbus point as an address inside that modbus definition.  Inside LabVIEW, you can then get to the Modbus data via Shared Variables.  I am currently using the dynamic shared variable calls, rather than static shared variables.  I have points that are Boolean (coils) and Reals, with some Read Only and some Read/Write.  In general, all of this works.
   However, there is one Read/Write Real that acts funny.  If I set it to a new value or if the industrial controller sets it to a new value, the industrial controller gets the new value.  The shared variable engine on my computer even gets the new value, as can be verified by opening the Distributed System Manager.  But LabVIEW continues to read the old value, with no errors.  Other Read/Write points work fine, and I've looked over the address definition several times and can't find any reason why this point should be any different than the others.
    Does anyone have any ideas why the DSM can see a new value of a shared variable, but LabVIEW continues to get the old value?  I've looked at the init case for the dynamic SV's, and I can't see any options there that I can tweak to try to resolve this.  My next attempt will be to rewrite the entire sub-system so that it uses NI's latest Modbus library and skips the whole DSC thing.  That will probably be much better for other reasons as well.  I've noticed that with DSC and Shared Variables, the first time the program runs it gets started pretty quickly, but subsequent runs can take up to two minutes to connect to all the SV's.
Thanks,
   DaveT
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
There are 10 kinds of people: those who understand binary, and those who don't.
Solved!
Go to Solution.

Sorry, I can't help you in this case.  The config error was within my own software configuration.  I was just telling it to do the wrong thing.  Nothing that could be useful for anyone else.
I hope you figure out your issue.  I know how maddening that can be.
DaveT
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
There are 10 kinds of people: those who understand binary, and those who don't.

Similar Messages

  • 970A-G45 with latest Bios not read correctly By Amd Overdrive

    System is as follows
    Motherboard: 970A-G45 Bios is now 1.61 all have been tried
    CPU: AMD FX 8120
    Memory: AMD Performance Edition 1600MHz 8 gbyte
    PSU Corsair GX600
    problem is that AMD BEMP profiles are grayed out,With this processor and memory the BEMP profile should be available both AMD and Patriot the makers of the memory say the problem is the bios not being read correctly by AMD overdrive.Now how do we get a bios release that will be correctly read by AMD Overdrive.here are pics of cpu-z and AMD overdrive BEMP.
    I used the instructions posted here  but the image in the instructions doesn't show either
    http://img593.imageshack.us/img593/6560/cpuz1x.jpg
    http://imageshack.us/content_round.php?page=done&l=img651/1912/cpuz2j.jpg
    http://imageshack.us/content_round.php?page=done&l=img41/2338/amdoverdrivebemp.jpg
    ok the links work now had to resize images

    Does AMD overdrive start and work on your system, besides the BEMP thing: yes!, so that is not the question or problem here.
    Do you have the hardware components that are needed to support BEMP: NO!
    Quote
    AMD Black Edition Memory Profile –feature is available with the following, validated memory modules:
    Vendor:   Part #:   Supported CPU Models:
    Corsair   CMD4GX3M2B1600C8   965BE (C2), 955BE, 720BE
    Corsair   CM3X2G1600C6GT   965BE (C2), 955BE, 720BE
    Corsair   CMG4GX3M2A1600C6   965BE (C2), 955BE, 720BE
    Corsair   CMG4GX3M2B1600C7   965BE (C2), 955BE, 720BE
    Mushkin   996657   965BE (C2), 955BE
    Mushkin   996601   965BE (C2), 955BE
    OCZ   OCZ3BE1600LV2G   965BE (C3), 955BE
    OCZ   OCZ3BE1600C8LV2G   965BE (C3&C2), 955BE
    Patriot   PGS34G1600LLKA   965BE (C3&C2), 955BE
    Patriot   PGS34G1600ELKA   965BE (C3&C2), 955BE
    Patriot   PGS34G1333LLKA   965BE (C3&C2), 955BE
    Patriot   PGS34G1333ELKA   965BE (C3&C2), 955BE
    In addition the system must meet the following requirements in order to enable the Black Edition Memory Profile feature:
    790FX, 790GX or 790X AM3 motherboard with BEMP compatible BIOS revision
    AMD Phenom™ II AM3 Black Edition CPU
    In any case, this is a pointless discussions.  I point to the specific parts on the AMD site that have to do with "BEMP" and you ignore that and point to AMD Overdrive stuff, which not necessarely includes BEMP support unless the hardware conditions are properly fullfilled.
    Contact:
    - AMD Support
    - MSI Technical Support
    ... and Patriot support, this time mentioning that your neither have a "790FX, 790GX or 790X AM3 motherboard" nor an "AMD Phenom™ II AM3 Black Edition CPU".

  • Not reading correctly?

    I just got a 4th Gen Nano for Christmas, etc.
    I have another video Nano registered to my computer and don't have a problem with it. However, when I plug this new iPod into the USB to register it, nothing happens except a window pops up with the folders/contents of my E: Drive. Apparently it's not reading it correctly, but how can I fix this so I can use my new iPod?
    I have the current version of iTunes installed and I'm running on Windows XP.

    The problem has something to do with "iPodService Module has encountered a problem and needs to close". I read another thread somewhere about it, but their problem seemed to be stemming from Norton. I'm using avast! antivirus.
    I've tried uninstalling/reinstalling iTunes.
    I still had no idea what's wrong. .-.

  • D20 memory not reading correctly. Bios sees only 20 gigs lenovo diagnostic sees 24 gigs

    Ok i have a d20 with one set of dimms not reading in the bios.  I have tried using all combinations and it always disables one channel of one CPU not reading in the bios but if I use the lenovo diagonstic it sees all the memory and can also run the quick memory test with no errors.  I would really like to get all of the slots to work anyone got an answer for this.  Thanks for you help in advance.
    Mike

    I'm assuming you're following the correct DIMM install order based on the service label on the inside cover?  The DIMM numbering is non-standard with regards to the location.
    If you think you've narrowed it down to a specific DIMM slot (or pair of DIMM slots), I'd try booting the system with memory ONLY installed in that slot (or slots).  Obviously it's not the recommended fill order or anything, but it could be a good test to see if you possibly have a damaged slot or something.
    Also, have you been messing with the CPUs at all?  Though unlikely, I would guess it's possible that a specific CPU pin in the socket could be damaged as well.

  • Small size file can not read correctly on other linux

    Hi, I am running archlinux 0.8 on my laptop, and there is another linux runs kernel version 2.6.20 with root filesystem of debian v3.1.
    I wrote a shell script which reads a small, 49 bytes, only 1 line conf file on my archlinux, it works fine.
    But if I copy script & conf files to debian, the script can not read conf file with:
    while read f;do; echo $f; done < conf
    but `cat`,`more` commands can read it. I have to open conf file with vi on debian and do nothing but :wq rewrite it to make script working.
    Both arch & debian use ext3 file system. Could anyone tell me why? thanks.

    I think your command is wrong: it works with zsh and doesn`t work in bash. Maybe you should remove extra ';'?
    while read f;do echo $f; done < conf

  • Lightroom not reading correct data for Lens and Camera Serial Number

    Hi you all.
    Recently got Lightroom, and I'm so impressed - I never imagined image organizing and adjustment could be this easy and at the same time very advanced.
    I have a problem, however. Lightroom (and Adobe Bridge, too) does not correctly read the EXIF data of Lens type and Camera Serial Number.
    The first ~50 images I took and imported turned out correctly and displayed my serial number and lens (18-55 mm Canon) inside Lightroom.
    But now, whenever I import photos into Lightroom or view them with Bridge, they all display "Unknown Lens" and "Unknown Camera Serial Number".
    At first I thought that maybe the camera didn't correctly record this data on to the photos anymore for some reason, but a comparison using EXIFToolGUI shows that the metadata is EXACTLY the same as in the photos that display this info in Lightroom correctly.
    I have not done any changes to either my camera (Canon EOS-350D / Digitial Rebel XT) or lens (the kit lens, 18-55 mm Canon).
    It seems that for some reason, Lightroom has stopped reading these two fields of metadata - all the other fields, such as aperture and shutter speed, all display correctly.
    I also tried to reimport the photos into Lightroom, but it didn't help. Neither did "Synchronize Folder" -> "Scan for metadata updates".
    What should I do? I'd like my lens information do display correctly, as I'll buy a new lens soon.
    I have attached one of the photos that Lightroom doesn't read the data correctly from. Try importing it into your Lightroom, and see if how the info displays.
    Thanks in advance.

    Are these jpgs or RAW?  I have only edited metadata on jpgs.
    It looks like Vista's import stripped out all the makernotes.  I didn't look at your file but that seems to be what happened.  Be warned, Photoshop CS2 also strips out makernotes!
    Now how to fix the problem.  If you want to edit the metadata on files already loaded into LR, you need to write out your metadata to the files first, then edit the metadata, then read the new metadata into LR.  This is scarey for me, so I always make sure my backup is up to date on the images first.
    What to do...  You probably can't put back all of the makernotes, so what to do to get the lens information in.  I don't know if putting back in the makernote LensType would trigger LR to reconsider its lens information.  I don't know.  If it had a real lens name, my guess would be no because it would have an XMP::Lens field which would override.  But maybe unknown lens doesn't have this field and it would re-read the makernotes.
    The other solution is to forget about makernotes for these images and put the exact text you want into XMP::Lens.  I think that's the "easy" way.
    In either case, you will have to become familiar with exiftoolGUI or exiftool itself.  I use the command line exiftool but it looks like you can edit multiple files with exiftoolGUI.  Select your files, click the edit thingy (^) under XMP, choose various, and there is lens.  Put in the text you want.
    I would do this with one file first.  If the lens shows up after you read the new metadata into LR, you know you have it right.
    Note, exiftool can write backup files for each file.  This makes too much of a mess for me.  I prefer to copy the directory first (I have copies anyway, I just have to make sure the backups are up to date).
    Good luck!  I'm struggling with a similar situation where the same lens used by two different cameras is coming out with a different name.  I need to go back and "fix" the names in the images already imported, and then develop my procedure for setting a single unique name before I load new images into LR.  Not too much of a problem because I'm loading in GPS information anyway...  What's another call to exiftool...
    Judy

  • 3D camera track points not displaying correctly

    Just bought a new iMac and am re-installing all of my programs including Creative Cloud programs. I am having an issue with After Effects not displaying all the track points when I use the 3D camera tracker. I get maybe 6-10 points displaying but that is it. They are there because I can still create nulls, solids, shadow catchers, etc... but the points themselves will not display. I have used the camera tracker in the past with no problems at all. Any idea why this would be going on? Here are my iMac specs...

    Try some of your older footage. Some footage produces very few tracking points, other footage produces a lot. Sometimes you need to scale up the size of the track points to see more of them. A screen shot would help us diagnose your problems.

  • Trimmed Quicktime Time code Media Files not reading correctly in CS5+ (works in CS4).

    I'm using Prores footage with metadata Timecode inserted into the Quicktime file.  Then I edit the Quicktime file, click "Save" and then import the trimmed file into APP CS4.  CS4 recognizes the edited clip and displays the timecode correctly (adhearing to the trims made on the file with Quicktime).
    BUT, in CS5, when I use the SAME clips, the timecode displays what the untrimmed timecode on the trimmed image.  So now, my timecode is OFF. 
    Really want to figure out how to fix this.  Does CS6 fix this issue?  Is there a preference or custom setting I need to select in order to have CS5 adhere to the metadata stored in the Quicktime file's timcode information?
    Any help would be greatly appreciated!

    There is a difference between Save and Save As in QuickTime Player. When you Save after trimming, the trimmed data remains in the file and takes up the same amount of space as before. When you Save As, the trimmed data is not included and you end up with a smaller file.
    I don't know why CS5 is behaving differently but it's more efficient to Save As and it will solve the CS5 problem too.

  • Re: MyBestBuy Points not posting correct amount

    Hi - I am going through some of my more recent activity and it looks like all sorts of funny things are happening with my points..
    For example, I had an online order and it is splitting up everything into individuals purchases.
    In addition, it looks like that you have to spend at least $10 to get the bonus for being elite. Take a look at my history and you'll see whta i mean..

    Good morning dadud3r,
    Thank you for taking the time to post to the forum!
    I looked over your account using the email address you registered with the forum and can see that you placed an order on BestBuy.com about a week ago.  It appears that particular order was broken up and shipped in four separate packages, which is why the points are split up in your My Best Buy™ account.  You should see four separate lines with pending points for that order.
    You are correct about a purchasing needed to be at least $10 in-order to receive the 10% bonus for having Elite status because points are usually not rounded up and 10% of $5 is $.50, so the bonus would post as 0.  For the above mentioned order, you should see the correct amount of bonus points post to your account within about 20 days.
    If you have any additional questions or would like for me to go over your My Best Buy™ account with you in additional detail, then please feel free to send me a private message and I will see what I can do to further assist.  You can send a private message by clicking on the blue button in my signature labeled "Private Message."
    I hope you have a wonderful day, and Happy Holidays.
    Derek|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Access point not work correctly

    Hello everybody, I have a problem in my BlackBerry Passport. I can't turn on "access point" function,this function not work. Does this function work in the future OS updates?
    P.S access point give your internet from the mobile network to your WiFi

    Hotspot does work on all versions of BlackBerry 10 OS and all BB10 models. It is, however, controlled by your carrier. If it won't turn on you have one of several possible problems:
    1) Your mobile data is off or not working.
    2) You need to have Hotspot provisioned on your account by your carrier.

  • Thermocoup​le not reading correctly using SCC-TC01

    We have set-up several thermocouple inputs that are conditioned by SCC-TC01.  These are professional grade thermocouples of type J and K.  It appears that the the readings from the thermocouples is incorrect (-1.15 mV at room temperature).  This means the temperature it is reading is negative.  We tried switching the positive and the negative, but the reading is still negative.  The gain through SCC-TC01 appears to be 100 so we tried to correct the measurement that way, but it does not seem to work (we tried multiplying and dividing by different powers of 10).  We thought that maybe the thermocouples were faulty, but using new did not correct the problem.  We have been successful in using the same data acquisition board in measuring other signals such as for load cells, so this problem with the thermocouples is puzzling.  When we increase the temperature around the thermocouple it also does not appear to respond as significantly as it should.
    Thanks,
    Rob Jackson

    Hi Rob,
    You mentioned that the offset voltage you had to provide in your program changed each time you started the VI, and indicated that this was possibly due to changes in ambient temperature. This would be compensated by the CJC sensor, which is built into your SCC-TC01. Since MAX does not allow you to select the built in CJC Sensor, the SCC may be configured incorrectly, possibly due to the SCC-TC01 being assigned to the incorrect port or some other mistake. You did not mention in your previous post the results of going through the quick start guide and ensuring the configuration is correct.  This would be a helpful trouble shooting step. Since the device is for signal conditioning, if the configuration is off, the resulting data will be off.
    You had also mentioned that you are using the “new” LabVIEW routines. If you are referring to programming with DAQmx instead of Traditional DAQ, this will not be a concern. In MAX, where the test panels are being run, it does not matter if you were using DAQmx or DAQ, since the test panel is looking at the actual hardware.
    I hope that this helps. Please let me know if you have any further questions I can clarify or if this solution does not take care of your missing VI issue. Thanks-
    Mallori M
    Mallori M
    National Instruments
    Global Customer Education Program Mananger
    Calculate the time you will save with NI Training

  • Portrait power point not formatting correctly in keynote

    I am moving from a pc to a mac. Most of the work that I would have created in pages on a mac was created in power point. From what I can tell is that keynote doesn't handle portrait mode. I really don't want to spend hours reformatting all my files. Is there an easy solution to this issue?
    Thanks!

    Most of the work that I would have created in pages on a mac was created in power point.
    Pages is a text creation tool from Apple used to create printed paper output, not for creating presentations.
    PowerPoint is a presentation tool from Microsoft used to create screen based presentations.
    Keynote is a presentation tool from Apple, used to create screen based presentations.
    From what I can tell is that keynote doesn't handle portrait mode.
    Keynote can present presentations in either; portrait, view or square formats;   Inspector > Document >Document > Slide Size > Custom Slide Size
    I really don't want to spend hours reformatting all my files
    If you have existing PowerPoint files they can be imported into Keynote and saved as Keynote files in whatever size format they were created in.

  • Smart collections not reading correct number of images inside

    I have an issue with smart collections for the first time. I have just set up a new workflow with 4 stages and the number counter next to the collection is counting wrong despite the images being represented in the collection. For example if I click on the smart colection I can see 10 images inside but the counter reads 3. Does anybody have this experience?
    I have optimised my cataloge, however I do have some 20,000 images inside... will this reduce the ability of LR to keep up to running speed with such smart collection operations, giving incorrect readings.
    What are best practices for image numbers and the arguement for running multiple cats. I've just tried in a fresh catalogue and the results were perfect. Is this an inherent limitation of Lightroom? I was under the impression that I could manage my whole archive and current projects under one roof, as it were.
    Thanks,
    Graeme

    I suppose it would be worth optimising the catalog, if you haven't already done so.
    Another idea, may be to make a fresh catalog and "import from another catalog" your current one, into that. This transfers pictures and keywords, collections, smart collections etc. But if there is something "structural" or "infrastructural" wrong with your live catalog, I'd expect that to get left behind by this process - since everyting should AFAIK get re-indexed after being brought in.
    Then you'd go forward with the new catalog, if successful. Doing this makes no change to your present catalog so can do no harm to try - the various pictures' source files are simply shared across both catalogs - single file referenced by both, IOW.
    One thing in your post (which I did not fully understand) suggested to me that your workflow relies at some point, on external metadata being written. If your workflow and smart collections criteria rely on the LR tracking of the status of external metadata, such as "is up to date", I believe this specific aspect has been found quite buggy and unreliable by many people: the metadata status badges etc, being sometimes rather approximate in their correspondence to reality . So if some other criterion could be found on which to base your workflow, that would probably go more smoothly . 
    However, if you do have more than one catalog pointing to just one set of photo source files, that aspect of writing metadata out, will of course be a little problematic - since the latest catalog to have written to the file will "overwrite", and the other catalog(s) will regard that same image as having been externally modified meanwhile.
    regards, RP

  • DVD not read correctly: Medieval 2 will not start anymore (original disc)

    Hi everyone, sorry if i am posting this in the wrong part of the website but i really need help with something. I bought a new pc game ( Medieval 2 Total War ) and when i 1st installed it, it worked fine. The day after i went to play it again and when i clicked on the icon the DVD Drive started and the disc was being read. The problem was though an Error message came up saying that i needed to insert the right disc when it clearly stated on the manual disc 1 was to kept in the drive. Can anyone tell me why it was working 1 minute then the next saying that my disc does not exist please? I tried to reinstall it and everything but the same message appears over and over. Any suggestions please?
    Thanks in Advanced
    David

    Hello David
    It will be interesting to know which notebook model you have.
    By the way: try to disable packet writing software DLA. Maybe it helps.
    The procedure of changing a setup of DLA is as follows:
    1. Open Windows Explorer
    2. Right-click the icon of the CD/DVD drive and choose Properties
    3. Click the DLA tab
    4. To disable DLA option clear the Enable DLA on your drives checkbox
    Please let me know if this works.

  • Annotations are not read correctly

    Hi, I have the following sample Annotation
    package annotations;
    import java.lang.annotation.Annotation;
    * @author Stefan Schuster
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    public @interface NoticeAnnotation {
         String name() default "anonymous";
         String note() default "TODO";     
    And the following class that uses the annotation:
    public class AnnotationsTest {
         public static void main(String[] args) {
              for(Method m : AnnotationsTest.class.getMethods())
                   if(m.isAnnotationPresent(NoticeAnnotation.class))
                        // Die Annotation ist vorhanden, auslesen des Methodennamens und
                        // der Parameter der Annotation
                        System.out.println("Die Methode " + m + " ist mit einer Notiz versehen:");
                        NoticeAnnotation na = m.getAnnotation(NoticeAnnotation.class);
                        System.out.println("Der Entwickler " + na.name() + " hat eine Notiz eingef�gt:");
                        System.out.println(na.note());
         @NoticeAnnotation(
              name = "Dagobert Developer",
              note = "Diese Methode muss noch verbessert werden"
         public void testMethode()
              // not relevant
    The problem is that the annotation is not found for any method, so the
    part where the information about the annotation is printed is never called.
    What am I missing, to me it looks like the sample from the annotations tutorial,
    but it is not working...
    Thanks in advance,
    Stefan

    Add @Retention to your annotation:
    import java.lang.annotation.*;
    @Retention(RetentionPolicy.RUNTIME)
    public @interface NoticeAnnotation {
        String name() default "anonymous";
        String note() default "TODO";
    }That directs the JRE to read the annotation into memory at run time, so it can be found by reflection.
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/annotation/class-use/Retention.html
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/annotation/RetentionPolicy.html

Maybe you are looking for

  • DVD drive won't play brand new store bought DVDs - makes grinding noise

    I just bought my iMac last September and it was going great until the last month or so. First it started making noises when I inserted a new DVD and was slow to start, but it still worked. Then it started taking longer and sometimes rejecting the dis

  • LR and Surface Pro 3

    Adobe made a big play about how well PS worked on the Surface Pro 3, but I have just got a SP3 and I find that LR (and PS) has serious failings. Background: I have a CC subscription for LR and PS, and I have the i7, 8mb, 512gb version of the SP3. In

  • How to avoid Time out issues in Datapump?

    Hi All, Iam loading one of our schema from stage to test server using datapump expdp and impdp.Its size is around 332GB. My Oracle server instance is on unix server rwlq52l1 and iam connecting to oracle from my client instance(rwxq04l1). iam running

  • Can't seem to control power agenda

    I've tried everything I can to avoid having to login.   Even if I'm burung a disk  the screen will turn off after about 5 minutes and I will have to login.  I put all items at 400 min (while on AC) select apply but nothing seems to work. I use the 52

  • Thumbnails in library grid view won't load all the way

    Anyone else getting this in LR 3.2? Kind of frustrating to only have half or so of the thumbnails in grid library view load. This also happens in the scroll bar view. Win 7 64 bit