What happened to my shared variable DSC alarms?

I would like to programmatically alter the alarm levels of my shared variables using the recommended datasocket write method, but for some reason my alarm levels disappear.  If I open Variable Monitor, sometimes the alarm data isn't there.  I have them configured, and sometimes they are there.  This also means that the Datasocket URL doesn't exist for the alarm levels.  Why is that?
Attachments:
Shared Variable Monitor.JPG ‏94 KB
Shared Variable Properties.JPG ‏46 KB

Hi Brian,
I am not sure what resource pointed you to using Datasocket Write to change the alarm levels of a shared variable programmatically, but that is not the recommended method.
One resource that you I suggest you check out is the example called Library Generation.lvproj, it is in the example finder under Toolkits and Modules->Datalogging and Supervisory Control->Fundamentals. This shows how to add variables to a library and set the alarms.
For an existing library, please check out this Knowledgebase article, which describes getting a shared variable reference. One you have the reference, you can use the property "Alarming..." to set Hi, Lo, etc. Then, once you're done, redeploy the library programmatically (Deploy Library.VI).
Best regards,
-Sam F, DAQ Marketing Manager
Learn about measuring temperature
Learn how to take voltage measurements
Learn how to measure current

Similar Messages

  • Programming batch modify properties of shared variables DSC Module

    DSC module to establish a large number of shared variables, you need to modify the property values ​​programmed variables, rather than setting property values ​​when creating variables.  
    DSC module to build tens of thousands of shared variables, alarm limit properties of these variables need to be set after the software is released by the customers themselves, rather than set when you create the variable.  
    So many variables, how programming in the software interface can be set variable attributes?
    Solved!
    Go to Solution.

    请参考http://digital.ni.com/public.nsf/allkb/5292824E278CF8B948257254002DEE60

  • Shared variable / DSC problen

    hello out there,
    i've got a big problem with labview dsc. i've created library within
    an project with several network-bind shared vars (connected to a
    symbolic siemens opc server). the problem is that sometimes, when i
    use these variables (just drag and drop from the projectexplorer), the
    values seemes to be currupted (especially 0). siemens' opc scout say's
    there is a value and also NI's shared variable monitor do so.
    open to all criticism.
    r.p.

    Shared variables must be initialized with a known value, and the node must be ran at least once, before predictable behavior can be expected. They don't behave like plain old global variables. The shared variable manager proves this out, as you've seen.
    The easiest way to accomplish this is to have each shared variable you'll use in your application's initialize routine, and  "read it out" and write to it once before ever using it in the main application.
    Message Edited by Broken Arrow on 12-16-2008 09:47 AM
    Message Edited by Broken Arrow on 12-16-2008 09:48 AM
    Richard

  • Whats happened to file sharing apps? how do i add save files in office HD, keynote, VLC etc.....seems to have disapered in itune 11...apple why do you do this?

    whats happened to the file sharing apps after the itunes 11 update.
    Im trying to move files in office HD, keynote and VLC.....this was easily done in previous version.
    apply why do you do this? you always disapoint on updates and leave users high and dry.
    someone please help.

    Believe it or not File Sharing is there but in a slightly different location. But I was definitely confused and had trouble finding it when I looked because of the way iTunes has windows within windows.
    Start iTunes 11 and connect your iPad.
    Select your iPad. I choose to "View Sidebar" so my iTunes looks more familiar. So I select my iPad in the Sidebar.
    I the main window I select Apps. And scroll down.
    There are multiple sub windows within the main window. The first sub wind is Apps. If you scroll in the Apps window that's all you will see, your apps.
    Move your cursor outside of the App window and the main window will scroll. Below the Apps sub window is another subwidow called File Sharing. That's where you'll find the familiar file sharing area.
    Good lick,
    Ralph

  • What happens to dynamically declared variables when I'm not using them?

    Hello, I'm making a game using Flash Pro cc. But I wonder what happens to aTile, which is dynamically declared MovieClip variable through a loop. And each aTile gets the 2 EventListener's.
    for(var i:Number=0; i<pVector.length;i++){
        var aTile:ATile=new ATile();
        aTile.x=pVector[i].x;
        aTile.y=pVector[i].y;
        aTile.gotoAndStop(Math.ceil(Math.random()*Color));
        nVector.push(aTile);
        Spr.addChild(aTile);
        aTile.addEventListener(MouseEvent.CLICK,Clicked,false,0,true);
        aTile.addEventListener(Event.COMPLETE, stop,false,0,true);
         // the current function ends here. what happens to aTile now ?? Is it going to be garbage collected? By the way, this piece of code runs whenever a player starts a new level of my game. And I don't make use of the aTile variable in other functions. I use only the nVector variable. And does declaring a dynamic variable in a loop mean a multiple of them are created? For example, if I loop the piece of code above 5 times, does it mean 5 aTile variables are created? Or each time you declare
    var aTile:ATile=new ATile(); again, does it replace the 'old' aTile with the 'new' aTile and therefore only 1 aTile exists after the loop????

    I feel there is a gap in understanding of using variables by reference vs. by value. You should look it up.
    1. new instructs Flash to create a distinct instance that per se has absolutely nothing to do with aTile variable.
    2. REFERENCE to this new instance is assigned to variable aTile. aTile var is a temporary pointer to instance.
    3. It does not replace old tile - it replaces reference.
    4. If reference to the instance is not stored elsewhere - upon exiting of function this instance will be gced.
    5. By creating another reference to the instance you prevent it from GC. One of the ways you preserve instance is by adding it to display list when using addChild.
    You can look at this this way (it is a lame example but still it illustrates parts of the concept)
    Say you have
    1. basket;
    2. basket is small and can hold only one apple;
    3. table;
    4. an apple;
    5. apple can be placed into the basket or table;
    6. dog who love apples.
    7. Dog is trained not to take apples from baskets but table but is free to eat apples that are on the ground.
    So, once apple is in the basket or on the table - it is safe.
    If you move these entities into the realm of AS3, basket and table become declared variables, apple an instance and dog garbage collector.
    What this example demonstrates is that apple exists independently of basket or table. You can put apple to the basket OR on the table OR you can put apple into basket and place basket onto the table.
    1. Find apple instance (if you know whether apple is in the basket, on the table or in the basket on the table)
    2. Prevent dog from eating apple.
    3. Allow dog to eat it (destroy it when garbage collector kicks in) by assuring that apple is in neither basket or on the table.

  • What happen to my Sharing under System Preferences ???

    http://i183.photobucket.com/albums/x74/benny8888/ff1.png
    and in console.log , it said "System Preferences[203] [NSPreferencePane loadMainView]: Could not load nib at "/System/Library/PreferencePanes/SharingPref.prefPane/Contents/Resources/zh_CN. lproj/SharingPref.nib""
    wthat happen ?? is there anyways to solve it ??

    Use Pacifist to extract that item from your MacBook's installation disks or the combo updater for your version of Mac OS X.
    (25274)

  • IChat in Leopard: what happened to Screen Sharing?!

    Okay, the Leopard feature I was looking forward to the most was iChat Screen Sharing... Apple had a whole dedicated page before yesterday's Keynote and now... it's gone.
    Did Apple drop this feature completely? Were they overly optimistic?
    A huge disappointment for me. I have a feeling the iPhone is using up too many resources and making Apple break promises. Not good.

    During yesterday's keynote and on the current screen shots of Leopard's iChat, you can still see the screen sharing icon at the bottom of the Buddy List. Hopefully, that functionality will still make it into the final release...
    Also, they made clear that you could video record your chats, and now that's not on the new page either...
    It might be they are still undecided on those two features. I, for one, am REALLY hoping for screen sharing through iChat, as troubleshooting and or "tutoring" some of my friends will be a whole lot easier.

  • What happened to FTP sharing?

    In Tiger, enabling FTP sharing was a godsend for me. Since Mac OS X doesn't have any particularly good ripping programs, I would always rip on my Windows PC with EAC, and then use Filezilla to send all of those files over my network to my Powerbook.
    As far as I can tell, though, the FTP option is no longer available in Leopard. Why is this? How should I transfer things over my network now?

    Oh, I guess moving everything to the shared documents folder works well enough. It's a little less than ideal, since I want to use the files on that computer, too, and I don't want them in the shared documents folder, but it's not too egregious.

  • HT4623 what happened to home sharing after new update?

    What happed to the ability to home share on the ipad to an Apple TV?

    It's moved. Swipe up from the bottom of the screen and you'll see AirPlay on the control panel screen.

  • Dsc shared variable property are saved to library?

    Hi,
    I would like to be sure to know if the shared variable properties like "alarm level" and "description" are saved to the library directly?
    If not, where? database?
    Also can we not add table to the dsc ms sql express database? (the one for alarms and events)
    Thanks
    Patrick
    Message Edited by paubine on 09-04-2009 08:23 AM

    The properties of the shared variables like alarm and description do get saved to the library. As for your second questions about a table in ms sql, can you tell me more about this? Are you using the LabVIEW DSC VIs to do this, if so provide a screen shot or your code or a good description. Tell me exactly what is going wrong, what behavior you expect and what you are seeing.
    Thanks,
    Anna K.
    National Instruments

  • What happens to battery life if alarm is not shut down?

    If the ipod alarm is set and you don't notice it, what happens to the ipod? Will alarm be quiet after a few minutes? Will alarm not stop?
    what happens to battery life if alarm is not turned off?

    Not odd...On Verizon if it is not set up, you will hear a recording that says "Im sorry, but the party you are trying to reach has a vm box that has not been set up yet". It will show as missed if the phone is on, and will appear in the log if the phone is on. If the phone is powered off, the call does not show in the log when turned back on. It will appear as if it never happened. You will only know if you get a VM (if its set up) or if the person tells you, hey I called you!

  • Shared Variable Engine Crashing

    I'm using Labview 8.6.1 and DSC module 8.6.1.  Shared variable engine just started crashing as soon as it tries to start.  I know you guys are going to say reinstall labview, but it's in a remote location and the install disks are not there.  Is there anything else that can be done to fix this?  I've rebooted and restarted everything I can think of.

    Ok bare with me, alot has happened here and thank you for the help.  The error that I was experiencing occurred anytime Windows started. The first thing that would popup would be an error message saying that the Shared Variable Engine had died.  This error occurred before I even thought about opening LabView.  I am sure that the Shared Variable Engine It was the general Windows error message with the option to "send" or "don't send".  If I then started LabView after that and tried deploying my variables by right clicking my library and pressing "Deploy All", LabView would popup the normal box that shows the status of variable deployment.  It would almost immediately fail deployment and then a few seconds after that I would receive the same error I got when I started up Windows (Shared Variable Engine failed).  I went to the services in Windows and tried restarting the Shared Variable Engine from there.  I would start it and then a few seconds later it would stop and give me the same error.  I tried doing the same thing from the Distributed System Manager.  Same Result.  Same Error.  
    I found a section on this site about people having problems with C++ Runtime errors that would basically cause the same thing to happen.  Their Shared Variable Engine would fail.  The advise I found there led me to the Distributed System Manager.  It said to right click on the libraries and remove all the processes or "end process".  What I had were two libraries there.  One that I was using and one that I wasn't.  I was able to end the process for the one that I wasn't using but not for the one that I was using for my current project.  I removed that process and restarted Labview and I deployed my variables and got the same error.  No luck.  Until, I restarted Labview again and deployed my variables again and it magically healed itself.  Maybe I didn't wait long enough for the process to stop, not sure.  My variables deployed, I opened up my VI and everything was working great.  I am assuming that by removing that unwanted process, I found my fix.  But I guess I can't be sure.  That process, which was just a library that I had created for another project and was no longer being used, had been there for a long time (6 months).  And I was having no issues to speak of.  So I guess my ultimate question is what the heck happened that caused all this.  I'm sure its bad form to have a process running that isn't needed, that's my fault and I will certainly be more aware of that in the future.  I just wish I knew what caused my problems so that they won't happen again.  
    Any thoughts? 

  • Datasocket read stop but shared variable can update

    Hello ,
    I program with datasocket open/read, sometimes the read stops and after some time,maybe 10s, it go on reading, I compare this with shared variable (DSC) and found
    the shared variable can update ,I don't know what happen to my program.
    ( the reason I'd like to use datasocket is that I need to change the ULR dynamically , I have many OPC tags to read ( 100 PLCs time 80 tags per PLC )  )
    thanks for your help!  
    Solved!
    Go to Solution.
    Attachments:
    shared variable VS datasocket.jpg ‏23 KB
    shared variable VS datasocket.vi ‏17 KB

    Hi~
    The read function waits for items to be updated, and 10ms is the default time for this waiting. Setting wait for updated value to false will probably solve this issue.
    PS: URLs of variables could be changed programmatically, see this document if you like.
    Good day

  • Get a Boolean When a DSC Alarm Goes Off

    Hello LabVIEWers!
    I've got probably 30 shared variables that I'm monitoring and logging using the DSC module.  I'm starting to use the alarms functionality and what I'd like to be able to do is run some code that sends my team a text / email when an alarm goes off. 
    It seems to me the easiest way to do this would be to somehow monitor the alarms and produce a T/F value that I can use to run a case structure.  For whatever reason I'm not seeing how to do this easily.  Is there a VI I'm missing?  I just want to be able to produce a True value when the variable is in alaram and a False value when it's not.
    Thanks for the help!
    -Mike

    Hi Mike,
    I've attached a few articles that you might find useful. They include descriptions and instructions.
    Configuring Alarms for Shared Variables (DSC Module):
    http://zone.ni.com/reference/en-XX/help/371618F-01/lvdscconcepts/set_alarms_for_sv/
    Configuring Alarms for Boolean Shared Variables (DSC Module):
    http://zone.ni.com/reference/en-XX/help/371618F-01/lvdschelp/config_blalm_in_db/
    I also ran across this Discussion Forum that you might help you out once you've established your alarm configuration.
    Send Email and Text when an Alarm goes off - LabVIEW DSC
    http://forums.ni.com/t5/LabVIEW/Send-Email-and-Text-when-an-Alarm-goes-off-LabVIEW-DSC/m-p/1568580?r...
    Hope this helps!
    Jordan

Maybe you are looking for