dynamically update task settings

Hello

I create a VI to control a stepper motor by varying the frequency of output for the engine.  Above certain frequencies, the motor requires an enjambements ramp to reach the desired frequency.  So I want to configure my VI for the ramp slowly (speed of rise of 1 kHz per second).  I have a while loop and inside I call DAQ create virtual channel (CO Pulse Freq), then a VI calendar implicit to generate samples continues, and then I call early.  Basically, another while loop checks the status of the task and waits for 1 second.  What I see is that the frequency for the acquisition of data entry create vi virtual channel changes, but the output frequency does not change since no change in speed is found on the engine. However, if I stop the task after the 1 second wait, the frequency entry takes effect and different speed is observed on the engine, with a slight delay in the response.  The delay is undesirable because it defeats the purpose of the continuous rise.

I'm looking for, so essentially a way to update the settings of task dynamically without any delay/mark a pause.

Does anyone have a suggestion?  Thank you in advance.

Channel property node actually cannot change the parameter during execution of the task.  If you put a probe on the frequency entry, it seems that the value is updated, but if you actually connect a scope on the physical output channel, the value is not changed.

I discovered that to change the setting on the fly, I use writing DAQ vi the task.

Thanks for looking into it for me.

Lei

Tags: NI Hardware

Similar Questions

  • First try the producer consumer Architecture: continuous play and dynamically update settings.

    Hello

    I am currently working with two instruments; an Agilent E3646A and a NI 6212 BNC. My goal is to have the 6212 continuously take measures according to predefined parameters while the E3646A parameters can be continuously updated. This combination simple instrument aims to help me learn the manual architecture; continuous measurement, output dynamic controls and instruments more will be added in the future.

    I've already posted on a similar, but more complicated configuration (http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Split-second-lag-when-controlling-two-instrum... and was advised to try the producer consumer Architecture.) I found the documentation on the website (http://www.ni.com/white-paper/3023/en/, https://decibel.ni.com/content/docs/DOC-2431), searched the forums and built my own VI. While my first attempt at a producer consumer Architecture has solved some of the problems I had when I posted on the subject, however, new questions have been raised regarding the reading and adoption of the VI.

    I am currently able to run the VI and update the settings on the device. Previously, I'd get a freeze while the instrument has been updated and could not switch settings until it was done. This has been resolved, although that reading updates only when a parameter has been updated, although it is outside the structure of the event. In addition, the Stop button does not in any context. I also got occasional mistakes on the part of Deqeue, but the major part of the sentence is error-200279 'A tried to read samples that are no longer available' to DAQmx Read. I realize that there is a problem in my loop of producer but have not been able to find a way to solve it.

    This is my first attempt at a producer consumer Architecture and already I can see that it is a powerful tool. I read as much as I could and looked at examples, but should have some problems at the beginning. Would be very grateful of any advice so I can take full advantage of the architecture.

    Hope to hear from you,

    Yusif Nurizade

    You're going to overflow this buffer, unless the events are generated faster than "sample rate/number of samples.   Period.  Nothing could be simpler.

    You don't need a local to stop your curls.

    Try something like this attachment.  I simply moved the structure of the event in its own loop dedicated since it had nothing to do with acquiring data at all.

    Data acquisition loop stops very well when you destroy the task and destrying the stops of power queue (sending the default values of the queue for the power control) for EXAMPLE, to ADD a group of setting 'Safe shutdown' to a 'package' and it wire to the Center terminal (Prototype).

  • Can not update the settings on the Airport Express

    Currently have a facility - two extremes and an Express network.  I for the life of me can't update the Express settings. I always get an error message but I can update the settings on the two extremes very well. I can make changes to the Express with my Iphone but I can't with my Imac.  I want to activate the function of 5 GHz but I can't do that via my Iphone - with the desktop app I think.  Can someone help me?

    Let's first check and make sure that on which Airport Express version you have.

    Your version of the AirPort Express is there only 1 or 2 Ethernet ports?

    The Express to connect to your network and extend it wireless?  Alternatively, the Express connects to one of the extremes airport using a wired Ethernet cable connection.

    Then, I would be not too concerned of not being able to 'see' the Express of the iMac as long as you can access the settings of the iPhone. You can make almost any change using the iPhone you can use a Mac.

  • "Update security settings" mail exchange

    I looked and I do not think that someone posted a fix or a solution to the problem.

    On each droid initialize. The error message "Update security settings" appears in bar.

    I click on the message and nothing happens. It took me before on my corporate email setting, but she's not even done that. About 50% of the time, the message reappears a few minutes later with the same results.

    Since there was no support with 2.1 corporate e-mail, then you know that I have the 2.2 OS.

    I googled for a solution without success. My business (as useless whether) it is of no help.

    I tried without success to the following:

    (1) deleted and reinstalled the account (several times)

    (2) activated SSL (although not required by the employer) and the e-mail did not work at all

    (3) the old OS, I used the touchdown, but don't like to use 2 programs of emails (kind of waste)

    So, does anyone have a solution at the end server Droid or Exchange?

    UPDATE *.

    I noticed that upgrade FRG83D specifications indicate some tinkering with Exchange ActiveSynch. Updated May this "2.2.1" will address this issue.

    so, if someone (and I think a lot of people) the same question and it is solved by covered Froyo gingerbread man update then please notify.

    Yep, I got this same notification when I was on 2.2 as well. I do not now understand with 2.2.1. You should get the update in the not-too-distant future.

  • KB980408 stalls to update user settings

    KB980408 stalls to update the settings of the user. He's going to sit and do nothing.  I restore the version previous dthe and everything is fine.  All other updates worked perfectly, but whenever I try to load this patch the system just hangs.

    Kind of ironic, but this patch is supposed to increase stability and reliablility. Have you tried to install the patch manually instead of from Windows Update?  Several times, troublesome patches will install that way.  You can download/run the Microsoftpatch.

    It is not a security patch, so you would probably be well just tell Windows Update to hide this update.  I recommend trying to install the hotfix manually if.

    Good luck

    Barbara

  • Online backup is unable to update its settings in the windows registry. Your connection profile must support access to the registry to be able to use the online backup.

    OT: Online backup.

    When I try to use quicken backup, I get this message: online backup cannot update its settings in the windows registry.  Your connection profile must support access to the registry to be able to use the online backup.  Please run the Setup program by using the run as Administrator option.  How can I do this?

    Right-click on the file and choose Run as administrator.

  • Despite his uniform and fixed on my form of task settings, I get thickness variable and facing interiors of the curves. I really wish it was just smooth and uniform. Any ideas?

    Despite his uniform and fixed on my form of task settings, I get thickness variable and facing interiors of the curves. I really wish it was just smooth and uniform. Any ideas?

    This question cannot be resolved when you use the brush with an effect.

    It cannot be solved with the form of the task.

    Try just drawing on larger scale, maybe then it won't happen.

  • Dynamic update of Web parts

    Hello

    I would like to know if it is possible to dynamically update the Web fields.

    For example:

    If the user clicks on the button '+ 1', the 'value' field will become = "value" + 1

    If the user clicks on the button '-1' the field 'value' will become = 'value' - 1

    Thanks in advance,

    Geert

    No guides on this subject and don't know any specific sites that do. I just do it if necessary.

    You just need to two buttons and increment or decrement the input value onClick.

    As a not jQuery's javascript

  • Announcement update tasks are getting rejected in OIM 11 g

    Hi all

    I have a user in both IOM and AD and I reconciled the users to target with IOM to link successfully. Now, each time an update in the form of process AD, my update tasks are trigerred and it shows the State as rejected. He is not able to update the target value. Below the error message in the newspapers, he throws

    < error > < OIMCP. A/d converters > < BEA-000000 > <>=
    < error > < OIMCP. A/d converters > < BEA-000000 > < com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks: updateDetails: AD user deletion impossible: null >
    < error > < OIMCP. A/d converters > < BEA-000000 > < =.
    >
    < error > < OIMCP. A/d converters > < BEA-000000 > < = start the Stack Trace = >
    < error > < OIMCP. A/d converters > < BEA-000000 > < com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks: updateDetails >
    < error > < OIMCP. A/d converters > < BEA-000000 > < null >
    < error > < OIMCP. A/d converters > < BEA-000000 > < Description: null >
    < error > < OIMCP. A/d converters > < BEA-000000 > < * java.lang.NullPointerException * at com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks.updateDetails (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADCSCHANGEATTRIBUTE.SETATTRIBUTES(adpADCSCHANGEATTRIBUTE.java:111)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADCSCHANGEATTRIBUTE.implementation(adpADCSCHANGEATTRIBUTE.java:56)
    at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
    at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:2917)
    at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:547)
    at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:602)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
    at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(tcProvisioningOperationsBean.java:4042)
    at Thor.API.Operations.tcProvisioningOperationsIntfEJB.retryTasksx (unknown Source)
    >
    < error > < OIMCP. A/d converters > < BEA-000000 > < = end of stack memory trace = >
    < debug > < OIMCP. A/d converters > < BEA-000000 > < com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController: release: STARTED >
    < debug > < OIMCP. A/d converters > < BEA-000000 > < com.thortech.xl.integration.ActiveDirectory.tcADUtilLDAPController: release: COMPLETED >
    < debug > < OIMCP. A/d converters > < BEA-000000 > < com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks: updateDetails: COMPLETED >


    Pls help me solve this problem... Thanks in advance

    Edited by: S.K.N may 10, 2012 19:48

    Edited by: S.K.N 11 may 2012 15:13

    Check the AtMap.AD look, make sure that it has a line for the objectGUID and check attributes reconciled in attribute of reconciliation, do you not see object guid it?

    concerning
    Suren

  • Download patches selected with the Signature Update task

    Is - it there anyway I can download patches selected in vmware update manager repository? I use just the ESX 3.5 hosts in my environment, and most of them are already patched some level so now I just only the required patches to download. I recently installed the Update Manager and noticed that the signature update task is 50% for last many hours and download all patches including associated hosts ESX 3.0.x... Please help.

    Try

    vmware-umds -E --dest -s -e

    Thank you

    Jitendra

    VCP, MCSE 2003, MCITP Enterprise Admin, CCNA, ITIL Foundation, Netapp NS0-153 (storage area network)

    Personal website - http://www.virtualizationtrainings.com, http://www.hillsindia.com

  • How dynamically update the role of oracle using the trigger

    How dynamically update the role of oracle using the trigger:

    I have svmanger owner of schema in the database. There are five tables belonged to svmanager.

    Table A, B, C, D, E.

    I have a role that is played only to these tables under the scheme: SVMANAGER_READ_ONLY

    now, if I create a new table F under svmanager. the role that svmanager_read_only does not work is updated, so the user had assigned role cannot access table F.

    is there a way to create the trigger for this role dynamically update any when a table is created or deleted?

    Thank you.

    I really really really don't suggest to do this - it's a bad habit. If possible I'd just adding the grant as part of the steps to the role on the new creation of the table.
    But for fun here's how you can accomplish this:

    create or replace procedure execute_grant(v_ddl in varchar2)
    is
    begin
       execute immediate v_ddl;
    end;
    /
    
    create or replace trigger catch_create_table_trg after create on schema
    DECLARE
    
    ddl_job number;
    ddl_str varchar2(50);
    begin
       IF ora_dict_obj_type = 'TABLE' THEN
    
           ddl_str := 'GRANT SELECT ON '||ora_dict_obj_owner||'.'||ora_dict_obj_name||' TO SVMANAGER_READ_ONLY';
    
           dbms_job.submit(job => ddl_job,
           what => 'execute_grant(''' || ddl_str || ''');',
           next_date => sysdate+(5/24/60/60));
    
       END IF;
    end;
    /
    

    Test it

    create table F (id number(1));
    

    Validate

    select * from ROLE_TAB_PRIVS where ROLE = 'SVMANAGER_READ_ONLY';
    
  • The OID connector and failed multiple values of attribute update task

    Hello - I am stable update on an attribute multivalue custom and have a few problems. Adding and removing tasks are fired very well and do their job, but when I try the update task for my attribute to multiple values, it fails with the following error. Guys please can you me what Miss me?

    INFO, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class adapter: com.thortech.xl.adapterGlue.ScheduleItemEvents.adpOIDUPDATEMULTIVALUEATTR
    IBUTE loaded from the database.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcADPClassLoader/loadAdapter to the left.
    INFO, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], adapter: multiple value of OID attribute update was launched for the task: my Application role
    s update.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/initAdapter entered.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/initAdapter to the left.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/initAdapter entered.
    INFO, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], from execution for adpOIDUPDATEMULTIVALUEATTRIBUTE adapter.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/initAdapter - data: isEvtName - value: adpOIDUPDATEMULTIVALUEAT
    TRIBUTE
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/initAdapter - data: Type of card - value: T
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/isAdapterUnMapped entered.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/isAdapterUnMapped to the left.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/initAdapter - data: Tos Key - Value: 8
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/initAdapter - data: process Table - value: UD_OID_USR
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/initAdapter - data: Table Object - value:
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/initAdapter - data: Mil key - value: 110
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/initAdapter - data: this card is being run-value: com.tho
    rtech.xl.dataobj.tcScheduleItem
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/initAdapter to the left.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/setAdpRetVal entered.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/getRetValString entered.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/getRetValString - data: class - value: java.lang.String
    * DEBUG, 29 March 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/getRetValString - data: poRetVal.toString () - Value: UPDATE_VAL *.
    UE_NOT_SUPPORTED
    * DEBUG, 29 March 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/getRetValString - data: return: sRetVal - Value: UPDATE_VALUE *.
    NOT SUPPORT *.
    * DEBUG, 29 March 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/getRetValString left.*
    * DEBUG, 29 March 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/setAdpRetVal - data: return value from the UPDATE_VAL updated adapter *.
    UE_NOT_SUPPORTED - value:
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/setAdpRetVal to the left.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/finalizeProcessAdapter entered.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/finalizeProcessAdapter - data: truncation UD_MY_ROLES_MY_APP_RO
    THE 512-character - value:
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/finalizeProcessAdapter - data: mapped to the response Code - value:

    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/updateSchItem entered.
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/updateSchItem - data: event - value: adpOIDUPDATEMULTIVALUEATTR
    IBUTE
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/updateSchItem - data: new status - value:
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/updateSchItem - data: SchData - value: UPDATE_VALUE_NOT_SUPPORT
    ED
    DEBUG, March 29, 2010 11:26:41, 165, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/updateSchItem - data: reason - value:
    DEBUG, March 29, 2010 11:26:41, 228, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/updateSchItem to the left.
    DEBUG, March 29, 2010 11:26:41, 228, [XELLERATE. ADAPTERS], class/method: tcAdpEvent/finalizeProcessAdapter to the left.
    INFO, March 29, 2010 11:26:41, 228, [XELLERATE. ADAPTERS], adapter: adpOIDUPDATEMULTIVALUEATTRIBUTE completed for the task: MY Application role
    s update.

    If you choose the wrong, you delete and add, not up to date. It's not as if you update a value in the user profile as an value multi email address. You try to update an existing role or group in the target. Behind the scenes, members of the user groups and rules, they are not a member of the user, it appears like that.

    -Kevin

  • List of parameters of popup dynamically update

    Hello

    my plugin has two settings of the pop-up window where the list of the second depends on the first selection. These two parameters are not saved, but rather an arbitrary set invisible.

    During loading of the project, PF_Cmd_UPDATE_PARAMS_UI is called, reads the arbitrary setting, and sets the selections on two popup settings. To do this, the list of the second popup is changed dynamically. This is done by using a copy of the param and definition of a new list, for example:

    PF_ParamDef param = *params[PARAM_LIST];
    param.u.pd.num_choices = 2;
    param.u.pd.u.namesptr = "a|b";
    param.u.pd.value = 1;
    
    AEGP_SuiteHandler handler(in_data->pica_basicP);
    ERR(handler.ParamUtilsSuite3()->PF_UpdateParamUI(in_data->effect_ref, PARAM_LIST, &param));
    

    When the application runs, everything works much matter how many times the values in the list are changed. But when I left after effects, it crashes with

    After Effects(20523,0x7fff7707f000) malloc: *** error for object 0x1211d6b94: pointer being freed was not allocated
    *** set a breakpoint in malloc_error_break to debug
    Signal: SIGABRT (signal SIGABRT)
    

    On page 53, the SDK guide warns of a

    Only cosmetic changes can be made in response to this command. Do not change the values of the parameters while responding to the PF_Cmd_UPDATE_PARAMS_UI; do during the PF_Cmd_USER_CHANGED_PARAM instead.

    but I don't see where I can update any other list control.

    It is even possible to change the contents of the parameter in the list without crashing after effects at the end?

    I now have a working solution.

    Since my old code already worked, but crashed the application at the end, I took the recommendation "you cannot change the number, but the names." It sounded pretty strange to me because the namesptr is a const char * and replace "a |" b' with ' apples | Orange"already looks like I'll write in memory who does not belong to this channel.

    To remedy this, I changed my solution:

    -PF_Cmd_PARAMS_SETUP fills a sequence of bytes with "(-|".) 4096 " Unnecessary separators are hidden by sequelae, but apparently it takes internally the 4096 bytes (or more?).

    -PF_Cmd_UPDATE_PARAMS_UI now has the byte sequence known to fill and is even able to change the number of num_choices:

    PF_ParamDef param = * params [PARAM_LIST];

    Param.u.PD.num_choices = 2;

    PF_STRCPY ((char*) param.u.pd.u.namesptr, "a |") b | c... ») ;

    Param.u.PD.Value = 1;

    AEGP_SuiteHandler Manager (in_data-> pica_basicP);

    ERR (Manager. ParamUtilsSuite3()-> PF_UpdateParamUI (in_data-> effect_ref, PARAM_LIST, & param));

    No crashes so far, I can only hope that this method does not hurt after effects without my knowledge

  • Updated privacy settings, now Firefox is not running.

    I've updated my security settings in Firefox, and now it will not work. I uninstalled and installed and tried using the secure, with no luck. That is what it is?

    Could you be more specific about what does not work? For example, some sites will not stay connected or fail in other ways, if you refuse to accept all cookies.

    But rather than make suggestions that are unnecessary, it would be great if you could describe the problem more in detail.

    Note: If you want to restore the default settings, and you get tired of trial and error, there is the option to refresh. See: Firefox - modules to reset and refresh settings.

  • The control of several Instruments: read parameter and continuous dynamic update

    Hello

    I'm trying to control three instruments using LabVIEW. My DC power and generating function are connected to the computer with a GPIB/ENET 1000 while my scope is connected via the USB port. I am currently having the scope to take a reading for each iteration of the while loop and have the event handler if there are changes to the power settings. I went by respective examples of the instrument and came with the attached VI. I wondered for some time on an installation where you connect continuously and are able to modify settings dynamically; It's my first crack at it.

    The idea is to expand this VI by logging the reads in a text file, by automating a sweep from 1 K - 1 MHz and taking averages of this sweep to chart in Excel. For now, I need to get down the basic and I'm constantly freezes when I run the VI. Sometimes it runs without problem, but begins to freeze when I try to set the DC supply voltage and other times it freezes right from the start. I wonder if it has to do with the placement of the read scope; before and after the handler but I can't test the theory now that I'm away from the laboratory.

    Would appreciate any advice you can give,

    Yusif Nurizade

    Yusif,

    Yes, the steps could be taken in a parallel loop. If this loop will be completely independent (don't share data or control with the other loop), it should be simple. If you do not need to pass data between the loops, you might well be better to learn the architecture of producer/consumer because youwould has essentially re - invent.

    Lynn

Maybe you are looking for