Changing alarm limits in a library from within a VI

I am running LabView 8.6f1 with the DSC module on XP. I have some (network-published) shared variables defined in a project library created through the project explorer, but I would like the user to be able to change the alarm limits from within a VI (and have those changes remembered). I have tried using the SharedVariableIO property node, but the new setting is lost as soon as the VI is exited and restarted. From other posts, this seems to be because the property node updates the variable engine but not the library file.
I have tried various permutations on undeploying, saving, and redeplying the library while changing the value but that doesn't seem to help. Can this be done? Thanks,
  --David

 Vijay,
That's what I tried initially, but it doesn't work. If the shared variable engine goes down, or the library is ever re-deployed, the changes will be undone.
Misha,
Thanks for the info about not being able to programatically edit the library; it's good to know I can stop trying for now. I guess I will suggest that feature for next release. The variable idea would work (but take a lot of variables), or I guess I could use a configuration file, but I don't like the idea of having a different "true" alarm value in the library.
On the topic of shared variable alarms, how can you easily read the alarm state for use elsewhere in a VI? For instance, I have separate LED indicators for a Hi, Lo, and Rate alarm; how can I read a specific variable's alarm state so I can wire it to such boolean indicators? The ActiveX controls don't seem to have this sort of functionality. I have tried the DSC ReadAlarms, but this returns all current alarms for each selected variable in an array of clusters. Is the way to do this to string search that array of clusters for the alarm URL of interest, and if it is found/not found equals active/not active? Thanks,
  --David

Similar Messages

  • UnsatisfiedLinkError when loading library from within package

    I have a piece of working code (simplified for easier reading):
    NativeLibraryLoader.java
    public class NativeLibraryLoader{
         static { System.loadLibrary("TheLibrary"); }
         public static native void someFunction(String someVariable);
         public static void main (String[] args) {
              int someInt = SomeClass.anotherFunction();
              System.out.println(someFunction("string"));
    }SomeClass.java
    public class SomeClass{
         public static int anotherFunction(){
              return 1;
    }This all works great and does what I want it to do.
    However: If I add the line
    package com.yifanlu;to the beginning of both files, I get the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: com.yifanlu.someFunction
    For some reason it can't find my library file. What's even weirder is that if I change the line in NativeLibraryLoader.java from "static { System.loadLibrary("TheLibrary"); }" to "static { System.load("C:/TheLibrary.dll"); }" (which exists), I still get the same error.
    Is there some rule for packages and JNI I should know about?

    When you change the package it changes the C/C++ function name that must be used so you must re-run javah and update the C/C++ method names so as to match those generated by javah.

  • Instantiating Objects from the library from within the movie clip

    Ive been Instantiating Library object from linked external
    action script files and it works fine.
    var PPEbtn1 = new btnPPE;
    but when i try to do it from within the main swfs timeline it
    fails to work and i recieve an error if anyone could please help it
    would be most apreciated. thanks

    You need to get the application domain of the external swf
    and use its getDefinition method. Cast the result to a Class and
    then you can instantiate the symbol.
    Here's some example code where "library" is an externally
    loaded swf:

  • Change the Blu-Ray burn speed from within PRE9

    I burned a 2 hour video to Blu-Ray last night from within PRE9, and it all turned out well. Except it took maybe 5 or 6 hours to burn (its 6x speed disc).
    Is this to be expected? I don't see any settings for burning speed from within PRE9.
    I burned a 2 hour test Blu-Ray the other day from within the software that the Blu-Ray burner came with (where you can adjust the burn speed), and I could swear it was much faster. But I don't want to waste another disc just to test this out.
    Thanks
    Greg

    Unfortunately, PrE does not allow one to alter the Burn Speed. The "big brother," Encore has that capability.
    In PrE, I suggest doing a Burn to Folder, and then the great, free burning utility, ImgBurn, which allows that adjustment. However, without extra software (virtual BD burner software), PrE does not allow BD Burn to Folder, at least not yet.
    Sorry for the bad news,
    Hunt

  • How to get a color profile stored in a user library from within Photoshop CS5

    Hi!
    I have a specific color profile that I want to load int PS CS5 color settings. I've placed it into my user library/application support/adobe/color/settings folder and all was good. Now i'm in PS and can't find the user library to load the settings. (Interestingly enough, I have no problem getting into the system library. Go figure) Any ideas?
    -Marcia

    Apple has hidden ~/Library starting with Lion. You can put Adobe Color Settings files, *.csf, into /Library/Application Support/Adobe/Color/Settings instead of the user folder; and ICC profiles belong in /Library/ColorSync/Profiles.
    Or you can unhide ~/Library with this command in Terminal:
    sudo chflags nohidden ~/Library/

  • Changing states from within a component

    Let's say that I have a TileList that is rendering data in a
    VBox. Eventually the TileList fills up and starts scrolling. I want
    to change states when clicking on item in the TileList.
    I don't want to place the click-attribute in the TileList,
    because it will change states when I am scrolling the list without
    actually selecting anything.
    I want to say click="currentState='state2'" inside the VBox,
    but that does not work because state2 is at the root level, and I
    don't know how to get to the root-level (in lack of a better word)
    from withing the component.
    This is not the proper syntax, so misunderstand me the right
    way here... Is there an equivallence to
    click="currentState='_root.state2'" in mxml?
    Thanks for any suggestions or best practices. I want the easy
    way out.
    This is the general structure...
    <mx:Application>
    <mx:states>
    <mx:State id="state1"/>
    <mx:State id="state2"/>
    <mx:State id="state3"/>
    </mx:states>
    <mx:TileList dataprovider="{...}">
    <mx:itemRenderer>
    <mx:component>
    <mx:VBox id="ClickThisBoxToChangeStates">
    <mx:Image/>
    <mx:Label/>
    </mx:Vbox>
    </mx:component>
    </mx:itemRenderer>
    </mx:TileList>
    </mx:Application>

    Your assumption is right.
    It doesn't work because there is no state2-state defined
    within the mx:component.
    In the documentation about changing states it says that I can
    go from application level and change states within a component;
    like this: click="currentState='mycomponent.anotherstate'" but not
    how I can change a state at application level from within a state.
    When I try, it says (at runtime) that the state is not defined.
    So I don't know why <mx:VBox
    click="currentState='state2'"/> doesn't work.
    I apprechiate your expertese a lot.

  • Changing Property Values from within a Function

    I'm wondering how I can change a property of an instance from
    within a function inside a method. I have some code here...
    Basically I just need to set _lynn_idle to false when a tween is
    occuring and _lynn_idle to true when the tween is finished.
    Unfortunately I can't seem to simply set it to false or true inside
    these listener functions like I'm able to anywhere else (seems the
    variable is only local to the function when I need it to access the
    variable associated with the instance). Any help is much
    appreciated.

    Inside callback handlers the class members go out of scope.
    To remedy use a local (local to the function) reference to the
    current object.

  • Changing state of application from within a custom component

    Hello, I have several custom components all of which are included in the parent application.
    When I try to change state from a custom component, I get an error  saying "undefined state: state name". How do I change the state of the  application from within a custom component ? All the states are defined in the parent application.

    @linrsvp,
    If you are using Flex3 try Application.application.currentState = "somestate";
    If you are using Flex4 try FlexGlobas.topLevelApplication.currentState = "somestate";
    Don't forget to import the corresponding namespaces for the above.
    Thanks,
    Bhasker

  • Can I restore my accidentally erased music library from iTunes match?

    I was making room on my external drive for my back up, when I erased the Time Machine back ups as well as my iTunes library. Is there a way of bringing my library back from iTunes Match?

    Hi,
    I presume that you did not not delete your iTunes library from within iTunes. Can you recover from trash? Also why did you manually delete your time machine backup? Time machine manages your hard drive space and removes older backups when more space is required.
    If you have iTunes Match, open iTunes and turn on match.
    If you see the tracks listed and you see the " ! ", delete all tracks but don't delete from cloud. Highlight tracks and download. If you see the tracks with download icon, highlight tracks and download.
    Jim

  • How to change the default directory from within SQL*Plus ?

    Hello,
    I want to change the default directory directly from within SQL*Plus to be able to launch my command files with simple instructions like :
    @my_command.sql
    If I haven't launched SQL*Plus from the directory containing the file my_command.sql, how do I change the default directory to the directory of my command files ?
    I've searched through the Oracle documentation, there's no SET DEFAULTDIR or something like that. When I do a SHOW ALL, there's no variable containing the default directory.
    If you have an idea...
    regards,
    Jérôme.

    Hi Jérôme (J鲴me ?),
    You cannot directly do that, but you can use @@ instead of @ to run subscripts in the same directory as the superscript
    # head /tmp/tl30/xxx/[xyz].sql                    
    ==> /tmp/tl30/xxx/x.sql <==
    prompt call y
    @y
    prompt call z
    @@z
    quit
    ==> /tmp/tl30/xxx/y.sql <==
    prompt i am in y
    ==> /tmp/tl30/xxx/z.sql <==
    prompt i am in z
    # pwd                                             
    /root
    # sqlplus -s scott/tiger@lsc62 @/tmp/tl30/xxx/x.sql
    call y
    SP2-0310: Datei "y.sql" konnte nicht geöffnet werden
    call z
    i am in zKind regards
    Laurent Schneider
    OCM DBA

  • [CRM] Change sales office from within an order

    We've been trying to get the following to work... as you might guess, so far without success.
    From within a CRM order, if we change the partner number for the department a check is being done whether that partner belongs to the same sales office. If that's not the case, the sales office has to be adjusted.
    Since this might have an effect on authorization, the changing of the sales office has to be done in a separate job (action). In this job, I do the following:
    - Retrieve data on the object
    - crm_order_read for that object
    - select the correct sales office
    - prepare the crm_orgman structure with the new data
    - crm_order_maintain with the crm_orgman and inputfields tables
    - optionally commit work, bapi_transaction_commit etc.
    For as far as we can see, the data is correct. However nothing is being changed. Ideally what I'd like to do is break into the process, change the object that's being processed in memory, and let the system do its job.
    What we've also tried is (shame):
    - Retrieve data on the object
    - crm_order_read for that object
    - select the correct sales office
    - direct update the corresponding tables with the new values
    This works, but as soon as we return control to the system, the changed values (verified, if we look at the tables the values are changed) are reset to what they were.
    It's taking way too much hours for something that should be (in my eyes) a pretty simple action. Any suggestions? Thx in advance!

    Hi Egbert,
    Please take a careful look at the GUIDs you are using: if you are using the orgman structures, the REF_GUID is not the ORGMAN-GUID but instead the ORDERADM_H-GUID. Can you confirm if this has been checked and if it then still is not working? The COMMIT_WORK BAPI is also not necessary.
    Kind regards,
    Joost Janssens
    PS Please reward points if this reply helped you!

  • How do I change the Apple ID that the AppStore on my iPhone defaults to? In settings I am logged into one account, but when I try and update various Apps from within the AppStore the default account that comes up, asking for my password, is different.

    Eg, the phone automatically brings up an old (defunct) AppleID account login every time I try to update my Apps. I don't know the pword for this account, nor does it have current data about me.
    But when I go to settings: store it shows me logged into the correct account.
    I have already tried:
    logging out and logging back in
    downloading a new App from within AppStore (in that case it doesn't ask me for my password or bring up the old AppleID)
    Syncing the phone, confirming that I have the right AppleID account set up on iTunes
    I don't want to have to delete all my paid apps just because I downloaded them long ago with an older Apple ID.
    Help please!

    The very similar situation with mine:
    https://discussions.apple.com/thread/3492726
    I can't find any solution. I don't even remember when I changed my apple ID! So does that means I cant recovered my purchased apps from my " old" account? I am totally innocent, for I did not intend to "Change" my account name

  • Is there any downside to using a reference type library if I use Time Capsule and will do file management only from within Aperture?

    Have done a lot of reading to get prepared to convert to Aperture 3 and have this question regarding setting up my library type.
    I'm not a professional -just a heavy user hobbyist.
    It appears that the major factors in using reference style is to backup the images with Time Capsule and always do moves or deletes from within the Aperture application.
    If my architecture matters here's what I have that may be involved in photo management and editing:
    iMac (latest 27" high power version with lots of memory)
    Internal 2TB HD where the library is stored
    External (FireWire) 2TB HD where the images are stored
    External (FireWire) 6TB HD backup drive
    In the future an iPad for remote work on images (when/if available) and a Mac laptop (for same remote use)
    I see major downside issues to letting the library manage my files - such as inaccessibility (or awkward accessibility) to the images for other programs, and performance issues when the library gets large (thousands of images or 100+ gb in size)
    The chief complaints I've seen regarding using a reference mode is the broken link issues created if file management is done outside of Aperture (adds, deletes, moves of files) and the inability to use the Vault function for backup.
    One feature that I imagine I'd like to have is maximum integration with Final Cut Pro X and that's one area I haven't seen much on and would be interested to hear about if that integration is affected with the choice of managed vs referenced library types. (I like to produce film clips that are combinations of pics and video and want to be set up so that is done in the easiest fashion when working in FCP X)
    I'm sure I've not seen all sides of this issue and would like to see some discussion around this question.
    Thanks to everyone contributing!
    Craig

    Goody, Goody, you hit a few of my favorite subjects! Herewith some comments, with the usual caveats - true to the best of my knowledge and experience, others may have different results, YMMV, and I could be wrong.
    I run Aperture on two machines:
    -- 2007 Mac Pro with 2x2.66 GHz Xeon, 21 GB of RAM, a 5770 GPU, and multiple HD. I have about 11,000 images, taking up 150 GB. (Many are 100 MB TIFF, scanned slides)
    -- 2006 Mac Book Pro with 1 2.0 GHz Core Duo, 2 GB of RAM and a 240 GB SSD.
    Two very different machines.
    -- Aperture Libraries are all the same - Managed or Referenced. If Managed, then the Master image files are inside the Package, if Referenced, they are outside, and you can have any combination you want. Managed is easier, but Referenced is not hard if you are the least bit careful.
    -- While the sheer size of an Aperture Library is not a big issue, the location on disk of the different components can have a tremendous impact on performance.
    -- Solid State Drives (SSD) read and write faster than regular Hard Disks (HD) and, what is more important, empty HD read and write much faster than full HD.
    -- Aperture speed requires a combination of RAM, CPU, graphics processing unit (GPU) speed, and disk speed. The more RAM you have, the less paging you will see. With enough RAM, the next bottle neck is CPU (speed and cores) and GPU speed. But even then you will still have to fetch an image (longer if you pull the full resolution Master, read and rewrite the Version file, and update the Preview and Thumbs.
    So what works?
    -- RAM, RAM, and more RAM. 4 GB will work, but you will page a bit. 8 GB is much faster. On my old MacPro the sweet spot was about 16 GB of RAM.
    -- Keep your Library on your fastest (usually internal) drive. Keep that disk as unloaded as possible. How do you keep it unloaded? Either buy BIG, 1 TB+ or move your Masters off onto another disk. The good news here is that as Master files are written only once and never rewritten, speed of this disk, as opposed to the disk that holds the Library, is not important. There is a one second pause as the Master is read into memory and, if you have enough RAM, that is it - the Master will never be paged out. If, on the other hand, you do not have enough RAM, and you do a lot of adjusting at full resolution, then the speed of the disk that holds your Masters will become very important due to paging.
    -- I found that I picked up a tiny bit of speed by keeping the Masters on a dedicated disk. Thus, in your configuration, if you can dedicate that 2 TB FW HD to your Masters, you should see very nice performance.
    Final notes on backups and archives:
    -- One conventional wisdom is that you should make an archive copy of every image file before or as you load them into your system. (Aperture in this case.) This archive is then never touched or deleted.
    -- An alternative approach is that you do not keep such an archive, but only the images that you have in your Aperture Library. And when you delete from the Library, you no longer keep a copy anywhere.
    I do the following:
    -- Card to Aperture. Card is then kept at least 24 hours until all of my backups have run. (I use three - Time Machine, Clone, and off site.)
    -- I do not keep archive copies. If I decide to delete a file, my only recourse is to recover it from Time Machine during the six month cycle of my Time Machine backups. Thereafter, it is lost.
    There are merits to both approaches.
    Hope this is clear, correct, and responsive to your needs.
    DiploStrat

  • HT1751 i bought a new, larger external hard drive. copied my itunes library from the old drive to the new one, changed the libarary location in Edit/Preferences/Advanced to the new drive. iTunes will not start or run unless old hard drive plugged in.??

    I bought a new, larger external hard drive. I have my iTunes library on the external drive instead of C: drive, Using Windows 7.
    I copied my itunes library from the old drive to the new one, changed the libarary location in Edit/Preferences/Advanced to the new drive.
    iTunes will not start or run unless the old hard drive is plugged in.
    If I disconnect the old drive iTunes shuts down.
    Any ideas. ??

    Hello kskip,
    Thank you for providing so much information about what is going on.  It sounds like you have setup iTunes to save new content to your new external hard drive in iTunes>Preferences, but it sounds like iTunes is not opening iTunes Library.itl file on the new external drive.  You have one last step to take to have iTunes point to your new external hard drive rather than your old one:
    Steps to create or choose a different iTunes Library file
    If iTunes is running, quit iTunes.
    If you are using Windows, hold down the Shift key and from the Start menu and choose All Programs > iTunes > iTunes.
    You should see the following screen:
    Additional information
    If you do not see the screen above, then you did not hold the correct key at the correct time. You may want to try again. Note that if you pinned iTunes to the Start menu programs, and open it that way, it may not work.
    Once you select "Choose Library," you will need to navigate to the iTunes Library.itl file on your new external drive. 
    You can find the full article here:
    iTunes: How to open an alternate iTunes Library file or create a new one
    http://support.apple.com/kb/ht1589
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HT203175 My Ipod does not sinc with all of my Itunes library, only the first few albums. I recently changed my operating system to XP from Vista, which was a pain, and due to my fault had to reinstate most of my albums and all of the playlists.

    Ipod does not sinc with all of my Itunes library, only the first few albums. I recently changed my operating system to XP from Vista, which was a pain, and due to my fault had to reinstate most of my albums and all of the playlists. How do I get my Ipod to sinc fully when I access Itunes?

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    tt2

Maybe you are looking for