concept of abstraction layer for portability

I have a goal in mind but don't know how to implement.

I have a set of libraries rather low hardware level custom that I try to keep devoid of any specific LabWindows GUI control. In other words, these libraries consisting only of equipment to access the functions and not themselves make access a GUI control (such as LEDs or switches, etc.). Then my GUI would make calls to these functions and interacts directly with the GUI controls.  My #1 reason is portability.  I want to drop this library in any LabWindows project which has its own unique GUI and a set of commands and use the library immediately.

Now the challenge: some of these functions of material contain inevitable loop.  For example, such a function is a simple memory reader / writer.  It would be ideal to have the graphic interface that calls this function show a progress bar that updates for each address in memory of the beach.  But I don't see a way to do it without going through the update command performed at the level of the bottom material.

I've experimented with ProcessDrawEvents and ProcessSystemEvents inside the function of material, but it does not work.  I could also just add a few parameters, such as 'Panel' and 'control' to the function of library material, then inside the function do one

SetCtrlVal(panel,control,loopCount);

But even if it is not completely portable.  What happens if in application one I prefer to do only a SetCtrlVal but a SetCtrlAttribute for each number of loops?  The library feature will have to modify each application in this case.

Is there a way to send a periodic update of the State of the function called the appellant during his execution?

Another solution is to move to your equipment function, the address of a function: low-level routine could then call this function to PostDeferredCall passing the completion percentage in the callbackData parameter.

Using delay [Sub CVICALLBACK myFunc (void * callbackData);] is called in the main thread and can take care of updating the interface user; in this way, the low level function has no need to know the control panel manage and control IDS, which are maintained at the level of the user interface.

Tags: NI Software

Similar Questions

  • Is there a page of archive for the Flash Player plugins for PORTABLE versions of the web browsers?

    Is there a page of archive for downloads installers for Flash Player plugin for PORTABLE versions of web browsers like Firefox ESR?

    One of my web browsers is Firefox ESR 10.0.7 and is a PORTABLE of Firefox version that apparently needs a different Flash Player plugin that the plugin Flash Player normal requiring regular versions of most web browsers.

    I don't want to install the most recent PORTABLE Flash Player plugin version because I read about the problems with it and it is the only capable version this ESR Firefox will give me the opportunity to download and install when I try to install the plugin Flash Player necessary through the browser.

    I already know about the page archive plugin Adobe Flash Player normal, below, the link, but who don't have the Flash Player plugins for MOBILE web browsers.

    http://helpx.Adobe.com/Flash-Player/KB/archived-Flash-Player-versions.html

    I also looked on OldApps.com and I couldn't find anything there.

    Where can I download an older version, maybe one of the plugins Flash Player 11.2 to round April 2012, that will work with this version of PORTABLE Firefox ESR?

    I tried this question in the forum of Mozilla Firefox Help, but no one could answer.

    Thanks for any help,

    digiday

    I met the same problem with the version of portable Firefox, I've tried.  I found myself ignoring the record (with the text file) that they have provided and created my own folder 'plugins' alongside firefox executable.

    As to why I went with 10.3 11.4, it was mainly because we added in Flash Player 11.3 protected mode.  While this might work (it didn't on my first attempt), it adds a layer of complexity that I didn't want to face.  If you need some of the new features of 11.x, then you have to play with it to see if you can get this to work.  One thing to try would be to modify the mms.cfg by disabling the protected-mode, however, I do not know if this file is accessible outside your windows\system32\macromed\flash folder.

    You can find all versions of 10.3 here: where can I find direct downloads of Flash Player 10.3 for Windows or Macintosh?

  • Spectrum Notebook: Who are compatible docking station for portable spectrum?

    Who are compatible docking station for portable spectrum? The new spectrum has only c type ports.

    Have not tried this one or seen the reports on the question of whether it works with the spectrum, but in theory it should. The only thing I don't know is if it will load spectrum, but I use a charger HP USB - C that was not specially designed for the spectrum (OEM charger is too big to carry around) and it works so I would say that it would work. $ 150, I am tempted to get one myself. I also have the Zbook dock for my G3 Zbook 15 loan but there one owner dual usb - C and the connector of power PIN for the laptop that doesn't work on the spectrum.

  • Need manual for portable Satellite L40

    I downloaded the user manual for portable Satellite L40 series, but it is damaged :(
    Could someone send me the manual?
    my mail: [email protected]

    Kind regards!

    Hello

    Abe's right. I also checked manuals for Satellite L40 on the English language, and everything is OK.

  • I want to export file to a specific size without changing the size of the contents of the layer. for example. the image in the layer size is 20 x 20 px, but I want the file exported in 40x40px with a transparent space.

    I want to export file to a specific size without changing the size of the contents of the layer. for example. the image in the layer size is 20 x 20 px, but I want the file exported in 40x40px with a transparent space. @divyamanian

    You can now do with the new export as a dialogue using the "Canvas size" section

  • Creating abstract WSDL for concrete WSD

    Hi all


    I want to create abstract wsdl for concrete wsdl and ask this abstract wsdl in the place of MDS. Now, in the composite I would setup the reference for the value of ui section: wsdlLocation, I need to give the path of abstract wsdl in location mds. Binding.WS location would be the real concrete wsdl... So, basically, all iwant to reach is lets say CompositeA called CompositeB. I want to create abstract WSDL for CompositeB and retains this abstract WSDL in location of MDS and use this abstract WSDL located in the MDS location when configuring the service Web Composite adapter has.

    can someone help me on this point

    Thanks in advance

    http://blogs.Oracle.com/AIA/entry/aia_11g_best_practices_for_dec

    Maybe it helps you a bit too

  • a layer for the printing of uv spot?

    Afternoon everyone,

    IM, send a job on printers that is done in Indesign, and there are 5 photographs on the front that I printed in spot uv if theyre nice and shiny and stand out.

    Then they told me that I have to create another layer for this, I'm not sure what thay mean or exactly how to do it, because I've already finished the design...

    what I have to go back and somehow change it?

    If someone could help, would be appreciated muchly!

    Thank you

    Rebecca

    Make a new layer on top.

    Add a new SPOT color to the varnish - no matter what it looks like as long as it is a spot color, and you must name if varnish to avoid confusion.

    Draw pictures on the new layer where you want the varnish and fill with the new task of color.

    VERY IMPORTANT! These frameworks SHOULD be set for a recovery if they erase your photos. Window > output > attributes in CS5.5, but I think that it can be directly under the window menu in verisons them earlier and chck the overprint area fill. You can also set this as an object Style that you can assign to Polish officials. Color and the overprint attribute can be defined in the filling of the style definition.

    You will probably want to turn off the layer of varnish for proofing, but he needs to be there for the separations. My instinct would be to export with Acrobat 6 or greater compatibility to keep the layers.

  • How to copy a file photo of iMac for portable hard drive

    I want to save a series of photos on a portable hard drive. Drag the file from my 'albums' location does not work. What I am doing wrong?

    Jeff

    What photo app are you using and are really still on Tiger 10.4.1? Finally, we need to know how the EHD you use are formatted. If you n ' t know this, select the drive in the Finder, and then type the command-I (as Ivan) and search for information on the format.

    If you are not sure which version of Mac OS X, please click on the Apple symbol in the upper left corner of the screen and select about this Mac.

    Without these bases, it is difficult to answer your question, please read the above carefully and answer all questions.

  • Ideas for portable installation for cars?

    As some of you know, the wife and I recently bought 2 clips, where they will be used in a variety of portable applications, including in our cars.

    As they work in our cars, portable installation we use is not all that elegant.  We have all two VWs so space is at a premium, but I usually cut it attached on the right side more away from my rear view mirror.  It works pretty well, but the cable hanging in the main unit is looking rather dubious...

    I was wondering if there is a method or a product out there that could clean up a bit to the top of the installation.  Since we use the clips in a variety of locations, we are not really looking for a permanent or even installation permanent sem.  I looked at some of the media car locally and they are so huge in relation to the clip, I don't see that as a very good option...

    As you can see, I'm puzzled to find a better solution.  If anyone has a method that works, I'd like to hear about it!

    In my little VW, the ashtray is below the car radio (with a control line between) and is one great place to another an audio player with a minimum of cords dangling.

    You can place a Cup, with built-in CAP, in the Cup holder and place the Clip.  Or would the video clip to a part of the cupholder?

    You could also get a device of ventilation-mount holder, use it does not hold your Clip, but just cut your Clip.

    I wonder if there are cracks in your car you might slip a piece of plastic or metal L shaped in and then attach your Clip?  I know at least a manufacturer that sells kits like this, with instructions that are individualized for various models of cars.  (I would like to give you their name, but don't remember now, unfortunately).

    Finally, given the light clip character, would be a button velcro at the back of your Clip, plus a Velcro companion button whenever possible in your car, do the trick?  Usually, I do not think this, but the Clip is so light...

  • Monitor another layer for the events to change an effect

    Is it possible for an effect to listen an another layer change event and then react to this?

    Here's the situation: I have a plugin that has a setting of layer. This layer parameter points to a text layer. Now, I would have the effect to respond to a user who changes the contents of a text layer (TextDocument object). I guess I could somehow store the State of the layer and compare permanently for changes, but I feel in response to an event would be far better - if it is possible.

    Thank you

    Michael

    you do not receive a call from rendering when the text layer changes?

    in all cases, you can create an invisible param with an expression on the subject

    that links to the source on the text layer param. you change the

    Settings when the text is changed and will trigger a new rendering.

  • How to apply an adjustment layer for videos without first CC photos

    Hello world.

    I do the vids for my family and it's a combination of videos and photos. I want to easily apply the same effect to videos which is the color corrector 3 ways. I do not want to apply this effect to photos.

    I have currently to apply the effect to a layer and then carefully cut adjustment the adjustment on the photos layer. Does anyone know a better way to do this?

    Put videos on the photos on V3, V2 and V1 adjustment layer.

  • Layer for mask automatically generated when I create an adjustment layer

    Hi all how to do a layer of mask to get generated automatically when I create an adjustment layer. I took a course and it say by default that's the case? Thanks for any help

    A mask is the default value. Make sure that this box is checked in the settings panel

  • I can't click on a layer for editing mask. CS6 OS10.10

    I worked on a file, and all of a sudden I can't click on a layer mask to be able to modify this mask. I'm still able to do the following:

    • Create a new adjustment layer. When I do cela a new mask is trained for this layer and automatically selected for editing. I can modify this mask. As soon as I click out of it that I can't come back.
    • I am able to shift + click and command-click on the layer masks and get these options/selections.
    • I can't drag a mask existing to a new adjustment layer.
    • Hide/show the mask collection
    • Almost everything, but click ON the mask and selected for editing.

    I tried the following:

    • Close and reopen the file.
    • Restart photoshop.
    • Restarting my computer.
    • Delete/recreate the preference files.

    Any ideas out there?

    I discovered my problem trying to paint on everything I was selected on. He forecast the mask overlay. I thought about it and realized that I must have hit the key 'Q' and put me in quick mask mode.

    So now, it's here in case someone else makes this error! :-)

  • Unprintable Advisory / text layer for models

    I'm trying to set up a template in illustrator that can be used by co-workers. Rather than having a separate document containing advice on how best to use the template (which of course, no one will read), I thought that it might be preferable to include information in the model itself. This advisory information had to be removed every time however, it would be a chore. Does anyone know of a good method to be able to leave the text or the layers that I can be able to lock and therefore could not be ignored by people using the doc, but what is important, would not be shown in the final result when placed in InDesign? The ideal outcome would not include having to specify many import options in InDesign for each file it could be hundreds of these things in place!

    I can't imagine that I have a unique situation here to want to do something like that.

    I'm using CS5.

    I thought you had the answer in your title for a minute there. But yes, do a layer of template with this info on it. Double click on the layer and select "template".

  • How can I change the thumbnail of the mask layer for a thumbnail of the image itself?

    Hello

    I'm in Photoshop CS5 in Windows, and I've been using Photoshop for a while now. I'm not sure what I've done, but for these days, in my palette of layers, thumbnails that appear are different.

    I have attached a small screenshot of my photoshop below. Here in 1 layer, the thumbnail at left (brush) used is that of the opening of the image and the thumbnail in the right used to be an indication of grayscale pixels that have been selected. No idea how to return back?

    layer_Mask_thumbnail.JPG

    Hi slaveofphoton,

    Go to Options from the layers panel, and choose one thumbnail size other than none.

Maybe you are looking for

  • How to disable the redirection?

    Every time I get a Firefox URL redirects to another page. If I go algadon.com/dev, it sends me to algadon.com. That is not the right page. The page exists. My. computer has no problem finding the right page.

  • Restore the mailbox of time machine backup

    Due to some problems with my MacBook Pro, I recently erased the hard drive and reinstalled the OS X.  All is well except for minor trouble.  One of them is mail folders where I had saved messages in Apple mail.  I would like to get some of these old

  • How to compare the different timestamps and check that one is greater.

    Hi guys,. I have a small question about datetime. I have the following data in a table to the timestamp format. 01:00:00.00019/05/2009 01:00:00.00022/05/2009 01:00:00.00023/05/2009 What I want to do is to check the date is higher, then the other.  Si

  • Windows Vista-> Windows 7 recovery problems

    Hi all.  First time poster here. Product = Compaq Presario 5550f desktop computer.  Windows Vista originally in November 2008, then upgraded to Windows 7 as soon as it was available. I recently caught a virus and all through the elimination of the vi

  • Type of contacts selector?