Encoding methods

My project is mounted up, and more, 100 files, I start to worry if my drawing is too complex for a blackberry application.

My current project works:

-Home

Main (Contains the main methods to start the program)

Debugger (Provides a custom behavior for the statement of the application)

StaticLookup (Allows classes to find references to some core files)

-Controller

Order (Interface to the command objects)

CommandInoker (Receives the command objects and ready for execution)

CommandScheduler (Maintains a queue of orders to run and runs the front of the queue)

{concrete_command_objects} (There are several command objects which make different actions)

-Model

FieldObserver (Maintains a reference to fields that can be changed)

Model (Organizes the data storage)

ModelErrors (Keeps the application error data)

ModelLocalData (Manages the local operating data)

ModelSession (Manages the data for the current user)

ToolRegister (Maintains and modifies a vector tools (views) to use)

---------- UI

RenderAgent (Makes the display screens, running a push and pop - their)

-UI.advanced

{Several small objects that provide functionality for the special input fields}

-UI.basicElements

{Keys} (Special keys)

{Fields} Various input base and display fields

ContentPanel (interface for content panels (parts of screens))

ContentPanelBodyBuilder (generates the Panel content for the whole screen)

ContentPanelBuilder (abstract class for the type of generator)

ContentPanelBuilderDirector (the Creative Director of content pane)

ContentPanelFooterBuilder (generates the content display page footer Panel)

ContentPanelHeaderBuilder (genearates Panel to screen header content)

ContentPanelMenuBuilder (generates the content panel menu on screen)

{Custom entries......}

---------- UI. Views

display_login. Java (contains the contents of the body of login page)

{Several display_... the files that contain the content of the page}

DisplayBuilder (interface for display_... files)

DisplayBuilderDirector (ordered the construction of a billboard)

DisplayPanel (abstract class as display_... using classes)

---------- UI. Images

{photos}

-UI.views

view_aaw. Java (contains information for the construction of the content and display panels to use)

{more view_... classes of java for the points of view of different tools}

View (interface for view_... java classes)

ViewBuilder (you can guess)

ViewBuilderDirector (you can guess)

ViewController (provides methods for controll views and creating view)

When the application starts, the Main.java creates the debugger, static search, view model controller and Summoner of command. The model creates all the objects in its packaging (modellocaldata, etc.) the command invoker creates the command Scheduler, etc. etc.

The main and then creates a new command object, Cmd_startupLoad and tells the Summoner to execute it. The Summoner adds to the Scheduler which then calls the commands execute method.

The cmd_startupload creates several command objects that preform actions such as saving tools (views) in the register of the tool, and then finally a cmd_loadview is called with the parameter of view_login. This command displays the login screen. It does this by calling into the view that calls tableautiers content requiring builders of the display.

Is anyone elses code oriented and complex object? Or I'm completely my design work?

As long as you have defined for each category of packets it seems good.

Tags: BlackBerry Developers

Similar Questions

  • Re: Alternative to PNGEncodedImage.encode () for the 4.2.1?

    Does anyone know if there is an alternative to the PNGEncodedImage.encode () method that can be used in 4.2.1?

    I created a bitmap of a reduced EncodedImage and now I need to save the Bitmap as a file as a png.

    I can't understand anyway to encode a bitmap in 4.2.1.

    Thank you!

    -Tom B.

    Oh, just need to search the archives for an hour, here is the solution:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=58817

  • Where to place the General methods...

    As one of my application is more and more, I found that some methods I've created for a single screen are useful to the screen one another.  I know it is bad practice to repeat encoding methods, but is it better to:

    1 make the static methods in a single class and reference them from others or...

    2. the methods of moving to another file from the main application?

    Example, I have the main of the application myApp, screen1, screen2

    myApp extend UiApplication and screen1, screen2 both extend screen...

    I've created some methods in screen1 I want to use screen2, so it is better to simply reference then by:

    Screen1. MyMethod, or move them all to myApp and referencing them in myApp.myMethod?  or is there a better way (maybe a whole new class of General methods, but what would be the constructor?)

    According to what these methods do...

    Make static methods and place them in a separate category called something like ScreenUtils.  No constructor that is necessary because the methods are all static.

    -or-

    Create your own superclass screen that covers the screen and put your common methods in it, then have your individual screens to extend it.

    My general rule is that if the methods are General and do not run on the screen (I.e. convertAtoB()), create the static class.  If the methods work on the screen (drawMyText()) then push up to a superclass.

  • Another way to encode Surround 5.1 Premiere Pro?

    I just used first to mount and export my first audio 5.1 surround.  I used the coding SurCode for do and noticed that you are only allowed three exports of the trial before having to buy a license for $295.

    Is there an another encode method out there that is free or costs less, or are you forced to buy this if you want to export to Dolby Digital Surround?

    Thank you.

    As the technology behind Dolby Digital algorithms is the owner, there is no legal free encoders out there.  You will have to pay for something to get DD 5.1 or DTS audio.

  • Tecra 9000 wireless (WPA)

    I try to get a Toshiba Tecra 9000 working on our network has just changed from WEP to WPA Wireless. Is there an updated driver, etc. for this?

    Hello

    Well, your ad is a bit confusing to me.
    Encoding methods if I know the WEP (Wired Equivalent Privacy) and WPA (Wireless Protected Access) are different. In this case you don t have no driver to install. The WEP key is a method of watching as WPA because WEP used 128 bit and WPA 48 bit coding.

    Good bye

  • How can I make the "abort" button show? (I can not click on 'stop' in the menu drop-down operations).

    I modified a model; It took me a while loop inside another while loop, which causes the "stop" button to the don't end not the functioning of the VI. I hooked the "stop" button at the same time of the icons stop loops while, but is not complete the VI, so I need to use the button 'give up', but it isn't here. How can I bring / what it does appear?

    Move the button "stop" inside the inner while loop.

    And just for the appropriate encoding methods, do not hide behind a loop code

    It makes debugging difficult.

    You must also move the button 'save' inside of the inside while loop as well.

  • convert a doc html 4.01 in html 5

    a simple question... How can I activate a file existing in a document html 4.01 html 5?

    In DW, you can choose to edit > properties of the Page (Ctrl + J) > title/encoding > change the drop Type of Document (DTD) for a rinse of HTML5 and repeat for all pages.

    You could also do a search & replace throughout the site to change all pages at once if she is too large to do one at a time.

    Once the doctype is changed, you may or may not need to make any other changes, it depends on how you created your code initially, if she disapproved as encoding methods

    and so on.

    It would then be to you to change the rest of your code to use the html5 semantic tags, you want (like

    or
    ) if they are not required to make a HTML5 Document.

  • Problems Wrator DCP in SOUL CC 2014

    STC made FRO SOUL is great, but I'm having some problems:

    1 Wrator DCP informs a fixed bitrate of 250Mbps convertion, but I'm getting final DCPS with variable and rates very low, like 38Mkps, or even lower.

    EDITED: It seams it is not a problem at all. QuVIS claims to use a quality priority encoding method, encoding rates are fixed and variable up to 250Mbps to a studio quality standard not as I thought. Good indeed.

    2 NeoDCP player will not play some STC due form chassis numbers unmatched audio and video MXF

    3 render sometimes freezes for no apparent reason.

    PS: I use the new update of the QuVIS site recommended: DCP package for Adobe Media Encoder 8 | QuVIS

    "3 render sometimes crashes for no apparent reason."

    Discover the problem!

    I am from Brazil and CC 2014 instaled After Effects and Premiere of defult in Brazilian Portuguese. Sequence and compositions are named with special characters by default: "men" and "composicao. Just know that if we try to make a sequence or composition with such characters in its name, Wraptor STC makes but can't mound of the final DCP.

    I think it's a stupid bug.

  • Cannot download the software CC

    Hello.  I have just signed up to the photographers CC package a couple of days, and the download page for PS and LR does not work.  I can sign, but after it loads only the header and the footer.  I tried in FF and Chrome, and with the firewall disabled.  Is it possible to get a direct link to the downloads?  See you soon.

    PS. Create question/post page does not correctly or the other.  The question text is white on a white background while I have to call the question.  Way to go, Adobe.

    PPS.  hit the 'post' simply deleted my question.  It goes well...

    PPP.  still don't post in FF.  Chrome is now trying...

    I finally work.  During the evening, a little more of the page was loading each time.  Finally, the rendered enough (bad) page to download the desktop CC app and I just downloaded LR.  Unfortunately I have no uninstall older versions of test.  I hope that nothing is wrong.

    Regarding the silly answer of the MVP above, I would say it probably has little experience with web programming.  My problem is replicated by a number of questions in the forum.  Ultimately I think that Adobe is too heavy the code and probably with greater demand for server during these days (with the end of the special photographers) it was slow as hell.  Basically, the browser/server renounce serve the page after repeated expirations.  The reason why I suspect they use poor coding techniques, is that this forum is interminably slow so to sign.  Try to register failed many times before as I have finally received and he accepted my question.  Sure, it might be a few add-on to firefox which interacts badly, but when the rest of the internet works very well and adobe sites don't, then that says something about Adobe encoding methods.

    ETA: by the way, these direct links to the applications do not work on that link you gave.  Or by clicking on it, or right click and "save under".  They may be specific region? (I'm in Australia)

  • How to encode the URL in the Http Get method.

    Hi, I need to encode a url in the Http get method, I found URLEncodedPostData but that is used send message request can someone help me with this?

    Hi RexDoug,

    private String encodeUrl(String hsURL) {
            URLEncodedPostData urlEncoder = new URLEncodedPostData("UTF-8" , false);
            urlEncoder.setData(hsURL);
            hsURL = urlEncoder.toString();
            System.out.println(hsURL);
            return hsURL;
    }
    

    I tried thisbut it don't work I need to encode the url http get method.

    I used this code where I mention rules in URLEncodedPostData it works for me in coded form url in the get method.

    public String encodeUrl(String s){
            if (s!=null) {
                StringBuffer tmp = new StringBuffer();
                int i=0;
                try {
                    while (true) {
                        int b = (int)s.charAt(i++);
                        if ((b>=0x30 && b<=0x39) || (b>=0x41 && b<=0x5A) || (b>=0x61 && b<=0x7A) ||(b == 0x2F) || (b == 0x3A) || (b == 0x2D )|| (b == 0x2E)|| (b == 0x2C)|| (b == 0x3F)|| (b == 0x3D) ||(b == 0x26) || (b == 0x5F) || (b == 0x2A)) {
                            tmp.append((char)b);
                        }
                        else {
                            tmp.append("%");
                            if (b <= 0xf) tmp.append("0");
                            tmp.append(Integer.toHexString(b));
                        }
                    }
                }
                catch (Exception e) {}
                return tmp.toString();
            }
            return null;
    }
    
  • The external task - prepare method - encode - decode

    I ecrire write code in the prepare method, see thread:

    How to call a java application in the middle of the process
    Papi to work with processes using
    How to call a java application in the middle of the process

    If the error is caused by the decoding and the encodeing the URL, please tell me how to solve this problem.

    Thank you very much.

    The following code snippet
    -------------------code-----------------------------------------------
    getInstance package;

    Import fuego.lang.DynamicObject;

    Import fuego.papi.Arguments;
    Import fuego.papi.CommunicationException;
    Import fuego.papi.InstanceInfo;
    Import fuego.papi.ProcessService;
    Import fuego.papi.ProcessServiceSession;
    Import fuego.papi.OperationException;

    to import java.util.Iterator;
    import java.util.Map;
    import java.util.Properties;

    public class prepare {}
    {} public prepare()
    }

    Public Shared Sub main (String [] args) {}
    prepare prepare = new prepare();

    Properties configuration = new Properties ();
    configuration.setProperty (ProcessService.DIRECTORY_ID, 'default');
    configuration.setProperty (ProcessService.DIRECTORY_PROPERTIES_FILE, "D:\\BPM_HOME_standalone\\webapps\\papiws\\WEB-INF\\directory.xml");
    configuration.setProperty (ProcessService.WORKING_FOLDER, "/ tmp" "");
    System.out.println("1111111111111");

    Arguments argumentsResult = Arguments.create ();
    String taskIn = '0 '.
    Activity of channel = "/InvokeJavaProcess#Default-1.0/InteractiveJava"; both are very well
    Activity of channel = "InteractiveJava"; both are very well

    String instanceId = ' / InvokeJavaProcess#Default-1.0/203/0 ';

    try {}

    ProcessService processService = ProcessService.create (setting);

    ProcessServiceSession session = processService.createSession ("jcooper", "welcome1', 'host');
    System.out.println ("instanceID 33333 =" + instanceId);

    argumentsResult = session.activityPrepare (activity, instanceId, Arguments.create ()); error begins here

    System.out.println("444444444");
    DynamicObject obj = argumentsResult.getDynamicObject ();

    Map fieldMaps = obj.asFieldsMap ();

    for (iterator Iterator < String > = fieldMaps.keySet () .iterator (); iterator.hasNext ();) {

    Key of type string = iterator.next ();
    System.out.println ("key:" + obj.getField (key) + key "value");

    DynamicObject obj2 = argumentsResult.getDynamicObject ();
    Map fieldMaps2 = obj2.asFieldsMap ();
    for (Iterator < String > it = fieldMaps2.keySet () .iterator (); it.hasNext ();) {
    System.out.println ("key:" + key + "value:" + obj2.getField (key));
    }

    }

    session. Close();
    } catch (OperationException e) {}
    e.printStackTrace ();
    }





    }
    }


    ------------------------------------------------------------------

    But I get an error as follows:

    -------------------error---------------------------------------
    E:\Jdeveloper10131_20090318\jdk\bin\javaw.exe-client - classpath E:\Jdeveloper10131_20090318\jdev\mywork\Java_be_invoked\getInstance\classes;D:\BPM_HOME_standalone\client\papi\lib\fuegopapi-client.jar getinstance.prepare
    1111111111111
    Connector creation [fuego:SQL]
    Creation of ProcessService with the id "oracle/2009-03-31 18:08:47 + 08:00 '.»
    File local/tmp\system\Schema3387192-1796619082\catalogs found.
    Loading of the catalogues of local folder: / tmp\system\Schema3387192-1796619082\catalogs
    1 pots found locally.
    Local successfully jar '126' loaded.
    [CatalogMgrCache] =.
    Registration CatalogMgr [oracle/2009-03-31 18:08:47 + 08:00]... CatalogManagerCache 14949315:
    Managers:
    {}
    Counters:
    {}
    [CatalogMgrCache] =.
    CatalogMgr [oracle/2009-03-31 18:08:47 + 08:00] RECORDED! CatalogManagerCache 14949315:
    Managers:
    {18:08:47+08:00=fuego.util.LocalCatalogManager@1dacccc oracle/2009-03-31}
    Counters:
    {}
    ProcessService ' oracle/2009-03-31 18:08:47 + 08:00 ' created successfully.
    33333 instanceID=/InvokeJavaProcess#Default-1.0/203/0
    Tolerance of inaccessible engine (seconds):
    default: 0
    to serve: 0
    This customer papi sets cache not exceptions that involve that an engine could not be reached.
    Adding a local catalog for project: 124
    [CatalogLoaderMgrCache] =.
    CatalogClassLoader [oracle/2009-03-31 18:08:47 + 08:00 - 124] added to the cache

    ClassLoader catalogue card:
    {oracle/2009-03-31 18:08:47 + 08:00-124 = CatalogClassLoader (FuegoObjectCatalog (catalogIn: 124, directoryId: oracle/2009-03-31 18:08:47 + 08:00))}))}

    Cache Catalog Manager:
    CatalogManagerCache 14949315:
    Managers:
    {18:08:47+08:00=fuego.util.LocalCatalogManager@1dacccc oracle/2009-03-31}
    Counters:
    {oracle/2009-03-31 18:08:47 + 08:00 = 1}
    fuego.papi.exception.TaskFailedException: task '0' activity ' / InvokeJavaProcess # default - 1.0 / Interactive [InteractiveJava]' for example ' / InvokeJavaProcess#Default-1.0/203/0' cannot be run successfully. The task failed when executing method 'PREPARE %. "
    at fuego.papi.exception.TaskFailedException.create(TaskFailedException.java:57)
    at fuego.server.AbstractProcessBean.createTaskFailedException(AbstractProcessBean.java:3572)
    at fuego.fengine.FEngineProcessBean.createTaskFailedException(FEngineProcessBean.java:398)
    at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
    at java.lang.reflect.Method.invoke (unknown Source)
    at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
    at fuego.lang.JavaObject.invoke(JavaObject.java:227)
    at fuego.component.Message.process(Message.java:585)
    at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
    at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
    at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
    at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
    at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    at fuego.component.CustomExecution.next(CustomExecution.java:176)
    at fuego.papi.impl.rmi.RMIExecution.next(RMIExecution.java:109)
    at fuego.papi.impl.ProcessInstanceOperation.prepareExternalActivity(ProcessInstanceOperation.java:695)
    at fuego.papi.impl.ProcessServiceSessionImpl.activityPrepare(ProcessServiceSessionImpl.java:1420)
    at fuego.papi.impl.ProcessServiceSessionImpl.activityPrepare(ProcessServiceSessionImpl.java:1414)
    at getinstance.prepare.main(prepare.java:43)
    Caused by: fuego.lang.ComponentExecutionException: the "CIL_interactiveJavaPrepare" class method "oracle. InvokeJavaProcess.Default_1_0.Instance' cannot be run successfully.
    at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:519)
    at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:273)
    at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:219)
    at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1280)
    at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:401)
    at fuego.server.execution.InteractiveNormalCilExecution.invoke(InteractiveNormalCilExecution.java:425)
    at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:513)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:697)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:154)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.executeNormalCil(InteractiveMicroActivity.java:501)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:454)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:104)
    to fuego.server.AbstractProcessBean$ 48.execute(AbstractProcessBean.java:3184)
    to fuego.server.execution.DefaultEngineExecution$ AtomicExecutionTA.runTransaction (DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
    at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3188)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
    at java.lang.reflect.Method.invoke (unknown Source)
    at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
    at fuego.lang.JavaObject.invoke(JavaObject.java:227)
    at fuego.component.Message.process(Message.java:585)
    at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
    at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
    at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
    at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
    at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
    at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    Caused by: java.lang.NullPointerException
    at oracle. InvokeJavaProcess.Default_1_0.Instance.CIL_interactiveJavaPrepare (Instance.xcdl:1)
    at oracle. InvokeJavaProcess.Default_1_0.Instance.CIL_interactiveJavaPrepare (Instance.xcdl)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
    at java.lang.reflect.Method.invoke (unknown Source)
    at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:512)
    ... 34 more
    Process has finished with exit code 0.

    ----------------------------------------------------------------

    The following is the only difference with the code of yours and mine, and it does not work for me.

    fuego.papi.Arguments args = fuego.papi.Arguments.create ();
    args = papisession.activityPrepare (activity, instanceId, args);

    Note that I don't have another object to restultArgs you. Not sure if this should make a difference.
    Second, the arguments that I have nothing in it. For you, there is an argument in this object, which is var1 = dyn. I guess that since there is no argument in your prepare method entry mode, this variable could not be transmitted to the prepareMethod. (Just a guess)

    Here's my understanding:
    prepareMethod is used to pass arguments of BPM for external application. So, you can define arguments of prepareMethod as arguments of mode 'out '. These arguments are defined in 'args' when you call "args = papisession.activityPrepare (activity, instanceId, args); The external application can then perform a treatment based on them and later call commit and go back a few arguments to BPM.

    May be worth trying another

  • Cannot read e-mail content, in my opinion, it is a problem encoding ISO-2022-KR

    I can't read Korean (even other languages) content of mail as attached images.
    It FAILED when I update to version 38.0.1.
    Is it a little changed?

    If I trun to display mode for the source of this e-mail message,
    It shows as below in the header,

    -= 00182EAD49257E6C_ = _alternative
    Content-Type: text/plain; charset = "ISO-2022-KR.

    I think that mistakes comes from this method of coding "ISO-2022-KR.

    because the other email which has no problem,
    shows like below.

    Content-Transfer-Encoding: base64
    Content-type: text/plain; Charset = UTF-8

    How to read the emails that has problem?

    Please submit a bug report to https://bugzilla.mozilla.org/enter_bug.cgi?product=Thunderbird and join the bug report a sample message recorded in an .eml file

  • Programming of FPGA for motor control using downloadable IP cores for free for PWM and interfacing Quadrature encoder

    Hello

    I have a cRIO-9014 with a NI9505 DC brushed servo drive module and I would like to program the FPGA to PWM and encoder, quadrature, interfacing using the functions of intellectual property intellectual property mentioned in "CompactRIO Motor Control Basics Tutorial":

    DX of encoder quadrature method (FPGA, using SCTL) .vi

    Pulse Width Modulation (FPGA, using SCTL) .vi

    I did a search at ni.com/ipnet but I could not find them.

    Where can I find free downloadable IP cores for the blocks of PWM and encoder to include them in my interface FPGA program?

    Thanking you in advance,

    Manual

    Found by myself (google search!) to:

    https://lumen.NI.com/nicif/us/codepowelecguide/content.XHTML

  • Prevent the reset to the Initial Angle encoder

    Hello

    I currently have an enoder connected to a meter entry on my data acquisition card.  For my approach, I need the ability to start/stop the task to read the encoder.  My problem is that whenever I restart my task, the encoder is reduced to zero (My Initial Angle).  Is anyway to avoid this?

    Thank you

    Paul

    Your reply to #5, it is clear that you should NOT stop the task when you want to go down to a slow sample rate.  I've got 2 basic approaches to suggest:

    1. approach HW: you use a counter to your measurement of encoder.  Is your other available counter to generate your sample clock?  If so, you can simply change the output frequency of the counter on the fly to change the sampling rate according to the needs.  A possible disadvantage is that the data buffer real CQI will provide no clue as to which the rate has been used for which samples.  If this is a problem depends on your application.

    There is actually more complicated possible method based on using a dummy AO task it (if you don't have a real AO NI hardware task) as a sample clock because AO rate can also be updated on the fly.  Then, you can use your 2nd meter to measure the clock, so you should have a record of all the timestamps.  You must be sure to keep your starts and readings in sync, but it's certainly doable.

    2 SW-approach.  Always taste the same pace and always retrieve data from the buffer quite quickly to stand.  But at the time of 'modes of sample' slow, extract only the portion that you care to keep.   Overall, this approach is probably more simple, but the former is too clever not to mention.

    You were already on track fundamentally with your thought to share the sample clock I.  What you might not have realized, it's you POUVEZ stop the task to HAVE (manufacture of the sample clock stop) WITHOUT stop the task of the RTC.  You can restart the AI at a different rate.  During the time that the task of IT is stopped, there is no sample clock pulses causes encoder CTR values to be buffered.  However, the register real account will always be increment/decrement properly for track position.  When you restart the AI at a slow pace, you just respond to sampling/buffering the position values.

    -Kevin P

  • Encoder pulses using PCI4E reading us DIGITAL

    Hi all

    I'm new to this forum so I hope I post the question in the correct Council.

    I have an encoder connected to the Board of PCI4e.

    The problem is that when you try to measure the speed, I get different results using different methods:

    So I want to measure the frequency of encoder impulses.

    I'm trying to understand what function PCI4E gives me this information

    If anyone knows please tell me.

    Thank you

    Gil,

    Thank you very much!

Maybe you are looking for

  • Re: Satellite L350 keeps closing

    Whenever I use my laptop L350, it stops without warning - usually after use about 10-15 minutes If anyone has an idea how to do to stop what is happening, your help would be greatly appreciated!

  • printer issues

    When the serial number XXXXXXXXXX does tell me the year it was made? a 4345 mfp see the envelope feeder, but use for. What can I check? a m602 there a usb internal a port so I can plug a USB signature firmly P.S. The serial number has been removed fo

  • Compatible drive

    My HPE-137 c - b desktop computer needs a new hard drive. I need to know if the blue of WD 1 TB SATA 6 Gb/s 7200 RPM internal hard drive will work in this model of HP Pavilion Elite 137 c - b. Operating system is Windows 7.

  • Why the prevention of execution of data is closed itunes?

    I try to connect to itunes. I get itues has stopped working properly. What is a custom of preventation of executing data allows me to go on itunes. never had this problem before. So it has been for a week. you will need to get pieces of itues for my

  • How can I access my Microsoft Virtual PC on an external hard drive with Windows Virtual PC on my new computer?

    For a few years, I have been using a set of VPC on external hard drives (.vmc files both .vhd located on external drives) with the Microsoft Virtual PC/Virtual PC Console on a Windows XP computer. They worked perfectly. However, I just bought a new c