How can I use a function toolwindow or imaqBCGTransform on the image displayed by the image or the canvas area?

Hello

I use LabwindowsCVI8.5 & NI Vision. Recently, I met a problem when I tried to apply a toolwindow on diaplayed of the image by image or canvas block, the toolwindow successfully showed, but could not work. I knew that I can use imaqCreateImage & imaqDisplayImage functions to create the image on a new separate window, then, the two work well toolwindow & imaqBCGTransform, but I just want to know is possible to use the functions of Image processing with image display as part of the UIR or as a subgroup of experts? Coz I think it will be well conventional to see the image processed in this way.

Thank you very much!

Kitty, ing.

URT

I've always wondered why there is no control to an IUR for display of an image of Vision of OR...

Anyway, there is a hack to incorporate a display image of NI Vision window in a Panel. It has already been discussed on this forum but I can't find the link more.

It goes something like this:

HWND window_handle, parent_handle;

int image_window;
int left, top, width, height;

initialize the CVIRTE, etc.

create the parent panel

Panel = LoadPanel (...);

get a new handle to display (optional, see the imaqGetWindowHandle documentation)

imaqGetWindowHandle (& image_window);

integrate into a parent group

WINDOW_HANDLE = (HWND) imaqGetSystemWindowHandle (image_window);
GetPanelAttribute (Panel, ATTR_SYSTEM_WINDOW_HANDLE, (int *) & parent_handle);
SetWindowLong (window_handle, GWL_STYLE, WS_CHILDWINDOW);
SetParent (window_handle, parent_handle);
SetWindowLong (window_handle, GWL_STYLE, WS_CLIPSIBLINGS);

Position the display where it should be displayed and resize
imaqSetWindowSize (image_window, width, height);
imaqMoveWindow (image_window, MakePoint (left, top));

I hope this helps...

Tags: NI Software

Similar Questions

  • Please how can I use a value in a table of the adf in an actionListener to a button I created in a popup and thanks

    Please how can I use a value in a table of the adf in an actionListener to a button I created in a popup and thanks

    What is your version of JDev?

    Actually your question is not clear to me, but as I understand, it is you the table in the page and you have popup inside this popup you have the button you need when you click on the button to read the value of the selected table row. In the listener action button, so if you can get the current row of the table and after that you can get any attribute of the line as:

    DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("TableIteratorName"); // from pageDef.
    Row r = iter.getCurrentRow();
    Object value1 = r.getAttribute("attribute1");
    Object value2 = r.getAttribute("attribute2");
    
  • How can I use javascript functions?

    I want to put a gallery of custom image on my layout of Muse.

    To do this, I put all of my .js-files-folders in the same folder as the other html files.

    Now I have to import javascript files, that you normally put between the head of <>< / head > tags.

    < body >

    < head >

    "< script type =" text/javascript"src="js/jquery-1.7.1.min.js "> < / script >

    < / head >

    < / body >

    That of all I want to do, then, how can I put the code between the < head > tags?

    Not currently, there is the possibility to insert items in theTag, but it is something we are discussing for the future. If you need jQuery, it is included in the standard file of JavaScript of Muse. If you need another JS file, you can include it by putting the

    Then after export/edition, I downloaded foo.js in scripts/1.1 file on my Web server. By clicking on this object then shot the testFn I added in foo.js.

    I hope this helps.

    -Sam

  • How can I use ODE independently OWD unaided, but showing the record of decision?

    Hi all

    I want to integrate the OPA with my java application without using the OWD.

    But how can I show the record of decision like that of OWD?

    Thank you

    This should be fairly simple. You can obtain a record of decision of the engine API. The decision paper referred is a tree of nodes that are very similar to the decision in OWD HTML report, it should just be a matter of this tree to market and building an html like structure.

    Take a look on example: retrieve a record of decision for an example of how to retrieve a record of decision.

  • How can I use my macbook pro. always charge or the battery always?

    I want to know which will be more convenient for the macbook pro.

    Here's everything you always wanted to know about Mac batteries:

    https://support.Apple.com/en-us/HT204054

    I have two rules of gold on a MBP battery.

    Yopu can use is connected to AC most of the time, drank at least once a month, use it under the power of the battery on the 40% charge level.  Lithium-ion batteries need occasional 'exercise '.

    Avoid the deep battery discharge.  When you see the battery warning, to end the session and connect to the AC.  Deep discharge shorten the life of a lithium-ion battery.

    Ciao.

  • How can I use 2530 b and 4065 to measure the resistance between two selected pins?

    I want to be able to select 2 corners on a test with 2530 b set-up and measure the resistance between them with a 4065 DMM (PXI all). Ankles in question are each in blocks of 32 different poles, so I can match them in a double configuration 32 x 1 four or 64 x 1 if necessary. I can measure the resistance between several different pine sets as 0 on 33 pine pine, pin 0 at pin 34 pin 0 to 35 pin and pin 1 to 34 pin, pin 1 pin 36, etc.

    I understand how to measure resistance between a given pin and Earth using the the 2530 4065/b using the wizard OR-DMM/Switch Express, but it is unclear if I can measure the resistance between the two pins of selected by different user. I am a newbie of labview, used to write things in c#, so it may be something very trivial (I hope).

    Any ideas?

    Thank you

    -Russ

    Hey Russ,.

    I recommend starting with the following example (located in the Finder the example ('Help' to find examples):)
    "" Material input and output"Modular Instruments ' OR-Switch" niSwitch Dmm Switch Handshaking.vi

    Because you use a scan list, you can simply drag the two connections to the same entry and then the switch will wait for the two to settle before you send a trigger of the DMM... problem solved.  For example, to connect the CH1 to Com0 (DMM +) and CH93 to Com4 (DMM), then take a measure, then connect CH38 and CH120 to the DMM, you would use the entry list of scan to the following address:

    CH1-> com0 & ch93-> com4; CH38-> com0 & ch120-> com4;

    Note You can have as an entry in list of switch module scan.  In addition, you can only have a single advanced analysis and a measure full per switch module.

  • How can I use a custom tool easy to machine the same LabVIEW is the basis on average DC - RMS VI

    I use a cRio 9024 and read PWM with an analog input card 9205.  It was suggested that I use the basis on average DC - RMS VI to convert the voltage of the PWM signal into an analog signal (effective value) for use in my system.  The problem is that the 9024 can use LabVIEW models (it's VxWorks). I work through the device a custom tool easy and I wonder if someone can guide me in the right direction.

    I am running Veristand 2014, cRio-9024, 6modules, and run the scan engine.  It seems that's the reason why I can't read analog voltage (starting a PWM signal) since the signal is running at 200 Hz and the Scan Engine runs at 500 Hz.   I tried to avoid making a custom device or an FPGA and found a work around using the 9401 in counter mode.  I can get the numbers that I need, that's how I'm heading at the moment.  I would like to custom device approach, but not this sprint.

  • Pavilion 15-p248sa: How can I use my UK Pavilion 15-p248sa in the USA?

    Hello.

    I just bought a HP Pavilion 15-p248sa in the United Kingdom. I often travel to the USA, and sometimes I have to bring my laptop with me. I get very confused about the tensions, taken, transformers and converters adapters. That does, so I can charge my laptop in the States? Do I need an adapter plug or could I buy a Travel USA HP cable?

    Thank you

    Amy

    Hi, Amy:

    Please see Chapter 3, page 35 of the service manual for your laptop on the link below.

    http://h10032.www1.HP.com/CTG/manual/c04511833

    You may be able to order the power cord for use in N.America, part # 755530-001.

    You would not need adapters with this rope.

    You would just remove the current cord you use now (from the power supply) and replace it with one for use in North America.

    It looks like the online portion to the United Kingdom for less than 10 pounds, you can order.

    https://parts.HP.com/hpparts/Search_Results.aspx?mscssid=7283A950465F4FA0AF3EF86F00427EE5&SearchIn=PartNumber&SearchPN=755530-001

  • How can I use a FLV/MOV as one of the 2 inputs?

    I was wondering if anyone knew the right way to add a video to a 2 input filter (which is not a mixture)?
    I use a filter which is a bit like DisplacementMapFilter (Ryan Taylor):
    http://www.Boostworthy.com/blog/?p=245

    That I saw working with still images, but I'd love to see him working with a film like the entries 1.

    If I can get help to make filters Ryan to work with a FLV or MOV, then I can make it work on the filter that I work on.

    I work with jpg (by applying it to a BitmapData object). And I have a film to work with a filter with 1 entrance (which is pretty easy). But this one has really puzzled me.

    When it's a mix is really easy, but filters like DisplacementMapFilter.pbk (Ryan Taylor) won't work with just a blendShader.
    Help, please!

    Quick and easy way to do it:

    (1) load each video in an FLVPlayback instance. Listen for the event PLAYHEAD_UPDATE.

    (2) onPlayheadUpdate, enter your executives with bitmapData.draw ().

    (3) provide these bitmapDatas shader:
    Shader.Data.image1.Input = bitmapData1
    Shader.Data.image2.Input = bitmapData2

    (4) draw the result with the drawing API beginShaderFill method.

  • How can I use a menu name several times in the Muse?

    I need to use the term resource friendly in the main menu and a submenu for a project that I am working. But Muse does not allow me to repeat the phrase. Is there a solution for this?

    In other words, in the properties of the menu replace manual.

  • How can I use my instore credit for a movie

    How can I use my instore credit for a movie

    Hello R Larson,

    I see that you are wanting to use a store credit for a movie. I'll be happy for you have said in the right direction. First of all, let's see if we can find out if the credit is a credit of iTunes gift card or a credit from the Apple Store. This article will help you determine what may be:

    What kind of card do I? -Apple Support

    If credit is iTunes, you can just check your balance using the instructions found in the section below and use to either rent or buy a movie to display:

    See your credit balance - Apple Support iTunes

    If the store is an Apple Store Gift card credit, you would not be able to use iTunes to watch a movie.

    I hope this helps. See you soon!

  • When I start typing my ID to connect to the e-mail, the program ended my email address and for the safety of the reasons that I don't want that so how can I turn that function off auto

    When logging in to my gmail account, as soon as I start typing my ID program ends my e-mail address. For security reasons that I want to provide my email address complete and password - I don't want to auto fill or auto insert or anything automatic. How can I disable this function?

    • Click on the (empty) input field on the web page to open the drop-down list
    • Select an entry in the drop-down list
    • Press the DELETE key (on a Mac: shift + delete) to remove it.
    • Tools > Options > Security: passwords: "saved passwords" > "show passwords".
  • How can I create a function using variables TestStand and call from Meadow step Expression?

    In one sequence, I have dozens of prior Expressions, which are almost the same thing, like this...

    Locals.tagID = (Parameters.singlePhaseEnabled? ('L': "D") & Str (Locals.phase) & "006".

    .. and the only thing different is this three-digit string in the end ("006" may vary). How can I write a function that I can call from Meadow step Expression then it should look like this? ...

    Locals.tagID = MyNewFunction("006")

    You can not write custom expressions for commands.

    That being said, there are two options:

    • Create a sous-suite with a single step. Use a setting of the sequence as "function parameter.

    • Create a step type custom including a lower level module that implements the function. Add a step edit to allow the user to the steptype graciously change the setting.

    • Store the variable setting in a local global variable / file and change the value in each step. This will, at least, keep the same 'function' for each step.

    Norbert

  • How can I use Office Update without the Office CD?

    How can I use Office Update without the Office CD? On the microsoft Web site, I clicked the options which mean that I would not need the CD (which was not provided with the laptop), but poartway through the service pack update, I get a request for the Office 2000 Professional CD.

    Any suggestions?

    Hello

    Did you mean an office or a note?
    As far as I know the a Note is part of the recovery Image and the CD is not supplied with the unit. In addition, Toshiba units are not delivered with the Office 2000 software.

    However, have you checked to aid either in Word update function?

    You will find an option called verification of updates
    http://Office.Microsoft.com/en-us/officeupdate/default.aspx

    Good bye

  • How can I use SQL/CUBE to figure out total?

    How can I use SQL/CUBE to figure out total?

    Thank you.
    -JC

    Of course, you can do this by using the cube. But cube will produce all the possible combinations of summary. We can filter the unnecessary summariies having clause using the group_id function which is a binary encoding of the columns that are summarized. Below for example, as applied on the table SH.sales.

    Select channel_id, promo_id, prod_id, sum (amount_sold)
    from the sale
    Group of cube (channel_id, promo_id, prod_id)
    having grouping_id (channel_id, promo_id, prod_id) (3, 5, 6, 7)

Maybe you are looking for

  • My downloadhelper won't actually download.

    It was working fine, but then one day, he decided to stop. It ACTS like it will download very well, but when this "Download" bar appears, he waits a moment, then instantly said it is "done" with 0 bytes downloaded. Then nothing appears on the desktop

  • Synchronize the Exchange characters quickly; cannot sync?

    I have Firefox with the installation of the sync on a mac and need to sync with my new Firefox under RHEL5 and when I chose to set up the sync->, I have an account, the 3 boxes to watch a few keys changing of the numbers and letters (I'm talking spec

  • Code to receive sms in blackberry

    Hi I am developing a sample application to receive sms... It works very well when it is starting up and we are in the app, but when I exit the application that all incoming messages are received in native... Yet once if I start my application if we s

  • Store persistent behave annoyinly - Bug or what?

    Hey take a look below Vector v1 = (Vector) MyPersistent.getContents (); If (v1. Size() > 0) { FileConnection fc;                         v1.removeAllElements ();                         try {}FC = (FileConnection)Connector.open("file:///store/home/us

  • BlackBerry smartphones which OS?

    Hello! My BB is nuked and I am trying to restore everything now. Basic information: I'm going to re - install Office BB 4.7 as it comes from the one provided with the CD Question: What operating system is used on my BB 8900 Curve? If you know the ans