Consumers-producers - acquisition image but loop run only producer

Hi all

I try to acquire and store the image of camera Basler L301kc and framegrabber OR PCe 1427. I have create a producer / consumer loop because save him more time than the acquisition and if I do both in the same loop I lose frames. But I have problem: producer loop only run.

I've read all the threads, but I does not solve my problem.

I have attached a VI code how I tried to do. I'm using LabView 2011.

Please, comments or help is deeply appreciated.

I thank in advance

XuanThuy

Hi XuanThuy,

The location of the VI have in your program is attached.  It is currently located in the loop of the producer.  I think it would be useful to move this to the consumption loop, so that you do not delete the image of the memory before you save it in jpeg format.  Please let me know if that helps with your program.  Thank you.

Kind regards

Kira T

Tags: NI Hardware

Similar Questions

  • producer consumer loop run only once?

    Hello here

    In my VI, the loop of the producer seems to operate continuously, but the loop of consumer only run once.

    I did not use producer/consumer patterns before, could someone give me some ideas why this is happening?

    My code is attached.

    Thank you in advance.

    Faouzi

    It would be the wrong choice to use a structure of the event into the loop of the consumer.  As it is configured, you must generate a leave mouse or mouse event enter on the graph of waveform for the loop of consumer to complete its first iteration.

    Remove the structure of the event.  you don't need to update a chart.

  • loop running only when the mouse or keyboard are active

    Hello

    I started a few weeks ago a pretty big VI. Most of the program is included in a large loop. But I feel it's to slow down unnecessarily. So to optimize it, I would like that the VI only works when the mouse or keyboard is acting on it. It would free up the CPU when I do not use it without having to shut it down. I found on the internet how to use the "wait for" to slow down the loop, but in doing so, some parts of the VI that must run in real time also slow down. I think that my idea should be more effective as well for applications in real-time and to free the memory.

    Accordingly, how can I ask the while loop to skip to the next iteration only when you press the mouse button or when a field is filled by the keyboard? Or is there an alternative for the while loop?

    Thank you

    Isaac

    Hello

    You can check this by using the structure of the event and monitor the activities of the mouse and the keyboard.

    I have change a simple VI to show this, please see the attachment.

    In the meantime, you can consult this example available on ni.com

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/3924

    Kind regards

    Lou KwokHow

    AE OR Singapore

  • Timed loop runs only once with pulse train?

    It is a VI that attempts to drive a loop timed with a train of pulses 6608 OR map attached.  My timed loop never appears to run more than one cycle.  No error is reported.  I suspect it's because I'm not set up correctly with NOR-DAQ.  Any help would be most appreciated.

    WB

    Hi Wb,

    Take a look near the timed loop, I can see that the value of dt period is set to 1000. This period is used to scale based on synchronization source units. In this case, the clock contains 0.5 second pulses. Change the dt to a value of 2 has allowed me to see the timed structure to go as planned. See the image below for more details:

    I hope this helps. Let me know if this behaves that way even on your system.

    See you soon!

  • While the loop within a box Structure runs only once a target FPGA

    I have a card OR cRIO-9012 RIO for the HIL system. I have a target FPGA file when I use a While loop within a while loop I use the box Structure to check a real condition inside I have the function of activation of the ports and selecting the analog and digital ports. But for my code the code runs only once on repeted times that we have in the LabVIEW environment.

    I also need help to optimize the code. I've seen people using While loop timed in the FPGA target I don't use in both cases.

    I've attached my FPGA with the Version of LV2012 file.

    Waiting for your comments.

    Thank you and best regards,

    Ganesha Moorthy

    You have while loops inside the structure to deal with a constant of false cable to the stop condition. These loops will obviously never stop so browse your outside while loop (containing the case structure) can never.

    This has nothing to do with the FPGA target, the same thing will happen in the development environment.

  • I'm trying to scan a picture 8 x 11, but I get only 4 x 6 portions of the image.

    I'm trying to scan a picture 8 x 11, but I get only 4 x 6 portions of the image.

    I'm on OS 10.7.3 and a B210 printer

    Hello
    It seems that the default scanning workflows configured to crop the image to its default settings.

    First, install the critical update below:
    http://FTP.HP.com/pub/softlib/software12/COL41827/MP-101648-1/HP_Scan_for_Mac_OS_X_10.7_Update.dmg

    Now change the settings of the device as follows:
    1 open the HP utility and select your device.
    2. based on Scan Settings open the "Scan to Computer".
    3. click on the tab "scan tasks.
    4. Select the shortcut Scan allows to analyze, and then click on edit.
    5. in the section of scanning from an HP device, click the blue triangle to expand the menu.
    6. in the expanded menu now, open the drop down next to cultures in and set as none.
    7. click OK and try to scan the image.

    Please let me know of any changes,
    Shlomi

  • I have and Acer Aspire 5516 with 1.6 ghz processor. But his run at only 800 mhz. How can I fix?

    I have an Acer Aspire 5516 with a processor AMD Athlon (TM) TF-20, 1600 Mhz, 1 Lossnay, 1 logical processors
    The processor is supposed to be clocked at 1.6 ghz. But it is only running at 800 mhz. What can the steps I take correct this problem? Thank you

    Probably something wrong with your path. Try

    %SystemRoot%\system32\wbem\wmic cpu get List

    Also type

    path

    and report what he said. And type

    dir %systemroot%\system32\wbem\*.*/a/s

  • Could not save JPEG images, but only as png and .bmp

    Original title: Missing File Extensions

    Hello

    I tried to save some pictures to the internet on my computer but I have only 2 options (.png and .bmp) file extension. I can't save it in jpeg format so that I can download it for an online profile. I saved the images as jpeg, but the option no longer exists. Is there anyway to fix this?

    Hi BuccoFan,

    Since you're using Internet Explorer 9, follow the steps below to:

    1. Press Ctrl + SHIFT + delete
    2. Select the temporary Internet files, Cookiesand history
    3. Click Remove

    Now try to save the image, and you should have the ability to save in jpeg.

    Let us know if that helps.

  • Why do I images allowed in my library and I have not yet bought something? Why my library say I have 17 images, but I only see 9? Why can I not see a button "buy"? So frustrating, I want just to save pictures in my library to use as drafts

    Why do I images allowed in my library and I have not yet bought something? Why my library say I have 17 images, but I only see 9? Why can I not see a button "buy"? So frustrating, I want just to save pictures in my library to use as drafts before I commit to all the images that I need for my publication as my employer Gets the last word. I have not had any problems with $ Photo... * sigh *.

    Hello

    Please check the following for more information on the use of Adobe Stock:

    Adobe Stock help | Adobe Stock learn & support

    Currently, you have 6 allowed pictures and 22 available.

    Kind regards

    Bev

  • What is a good way to use the queues for the model of consumers/producers?

    Hi all

    I am following the model of consumers/producers to use the queue to synchronize the following process: the producer is a loop to produce a number N, I will put each number generated in a table and after each 5 numbers generated, I put the table in the queue and pass it on to the consumer. I have to wait the use by consumers of the data and it will then remove the item from queue so that producers will have the chance to produce another 5 numbers. As I put the maximum size of the queue one, I expect that the producer and the consumer turns to produce / consume all five numbers and the opportunity to another. Here is my code

    When the checkbox is false, the code will be

    For the first 5 numbers, product will generate every thing right and put it in the table, and it's going to pass the array to the quere so that the consumer will have the chance to loop through the table. I except the procude loop will continue only when the queue is available (i.e. all items are deleted), but it seems that once the consumer starts the loop loop of the product will continue (if the indicator x + 1 and x 2 will be changed to numbers). But this isn't what I want, I know there must be something wrong, but I can't say it is.

    dragondriver wrote:

    As you say in 1, sequency structure to enforce the order of execution, that's why I put it here, in this example, the simple question, I replace the complete code with increase in the number, in the real case, the first markers + 1 and + 2 must be performed in this order.

    Mikeporter says:
    1. get rid of all the structures of the sequence. None of them are nothing but apply a work order which would have been the same without them.

    So even if you delete the sequence structure, there will be a fixed & defined order and it is because LabVIEW follows the MODEL of FLOW OF DATA.

    Data flow model (more precisely in the context of LabVIEW): a block diagram node runs when it receives the required inputs. When a node is running, it produces output data and transmits data to the next node in the path of the data stream. The flow of data on the nodes determines the order of execution of the VIs and functions on the block diagram (click here for reference).

    Now in your code, just remove the sequence structure will not make you order will be going to stay the same, but you need to do some very minor changes (as thread of the error in loop, before that he go to the node "Élément Dequeue").

    Come to the main point: it's a good way to use the queue for the consumer/pmodel that?
    The model you are using (and qualifying as consumer/pmodel) is much too deviated from the original consumer/pmodel which model.

    dragondriver wrote:

    For the second, Yes, it's my fault for delete, though. I'm actually the example of model of producer/consumer design pattern, but I do not pay attention to the while loop in the part of the consumer.

    While loops (two producers & consumers) are the essential part of this architecture and cannot be deleted. You can start your code using standard model.

  • Is is possible to temporarily disable images, which is the only strength of the text?

    When my wireless connection is weak, I get a broken image icons. Is it possible to proactively select this mode (test only) in order to obtain faster response times when images are not necessary?

    • Tools-> Options-> content
    • uncheck the box "load images automatically".

    Use the noscript extension to stop scripts, java, flash automatically running also helps.

    Older versions of mozilla and Firebird/Firefox perhaps early had context menu options to selectively load the images on the pages and to block sites images, but this feature is missing from Firefox for a while, I get bored really if you're stuck having to toggle images in the window power options.

  • How to create a banner size mouseover who starts running only at the end (in Adobe Edge animate)

    A banner general practice is to have the entire banner be clickable as well that trigger the mouseover and mouseout/mouseouthandler().

    In flash, you would do an invisible button that captured the events, and then looks like an internal chronology of a chart of the CTA to play and which would scale upward.  I would also (in the main scenario where all the basic animation) a fade in opacity to the top of the CTA at the end Flash would allow me to set the rollover and rollout on the last image, so no features a rolling code would execute while the button was in invisible state.

    Along the busy, I know how a symbol, with an internal chronology which can evolve the assets. I know how to use the action of another layer to speak to this chronology of symbols and to play and to reverse the trend.

    But I can't understand how the mouseover and mouseout/mouseouthandler() code to run ONLY when the banner has played through the main timeline animation.

    Thank you.

    make a layer/button which is at the top with a transparent png of the size of your project. First frame of the main timeline, the value to display last image off the coast, it appears on the value.

  • I have two different pages on my Facebook account but you can only post photos on my private account.

    I have two different pages on my Facebook account but you can only post photos on my private account. How do you do if you want to share your photos of my other pages.

    < re-titled by host >

    Use the uploader on Facebook to upload photos to your other account. You can open the library of Photos from the web browser using the media browser. In the file selector, when you download image files, scroll down until you see 'Media' in the sidebar. Click on the camera icon, then select your photo library.

  • Portege M200 - CPU runs only at 598 MHz! Basic BACK Toshiba Service tool

    Portege M200 - CPU runs only at 600 MHz

    I have a Portege M200 with a Dothan Pentium M 725 supposed to run at 1.6 ghz, but posts a 598 Mhz
    frequency. I updated the bios to 1.8.

    I read in a previous post "locked"...:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=63390

    .. He's supposed to be a base of BACK of Toshiba utility to fix the problem. .
    It is said that this is not a Bios problem...

    Can someone direct me to this utility?

    Thank you!

    Gary

    The answer is here... thanks all and who is responsible for:

    http://forums.Toshiba.com/T5/Qosmio-laptops/598-MHz/TD-p/194566

    The key is a utility called 'pom200t1 '.

    You will need the following.

    A floppy disk or if you do not have an external floppy drive, or if you are common sense to be able to boot a file from a CD player.
    You must also WinImage, as all files that you download come as .ima files
    Download pom200t1 - V1.5.zip and pom200t1.zip (if if doesn't work either).

    You can find them here:

    http://www.stormpaintball.com/Toshiba/pm765.bin (this one is a ditch last attempt).
    Then follow the instructions on the site I posted before:

    Symptom: CPU remains constantly 598 MHz.

    * Process: *.

    (1) boot in the BIOS. (Press "Esc" during the boot process, before the loading of the operating system, but after having entered your password, if you use the startup password protection).

    2) look under 'Other' category.

    (3) if the motherboard does not have enough information about the CPU, the category 'Dynamic CPU frequency Mode' appear on (you won't see it).

    If the laptop is in this state that he won't ever faster than 598 Mhz until you perform the following procedure.
    Note: Although this utility said it's for a Toshiba Portege M200, the particular difficulty you need may work on other Toshiba laptops.
    He has worked on 3 different Toshiba Satellite Pro M15 S405s, but * USE at YOUR OWN RISK *.

    (1) start Windows and create the startup disk in the pom200t1.exe file.

    (2) boot from the diskette you just made.

    (3) in the menu, select the initial repair option 2 "set config".

    (4) in the following menu, select option 1 'Initial cofiguration"(misspelled)

    (5) after a few seconds, you should see "Writing a file is over!" and the laptop restarts automatically without asking for confirmation.

    (6) when restarting the laptop go back into the BIOS and look under 'Other' category. You should now see the "dynamic CPU frequency Mode". Make sure it is set to "Dynamically switchable" for the CPU limitation.

    7) restart Windows and make sure that the CPU can throttle in normal conditions. The Intel SpeedStep technology icon should now be in the systray. Go to the Toshiba power management / Power Saver Properties and update all of your methods to save power to use technology SpeedStep that you prefer (fixed or automatic) and mount all caps speed processor, or you can go above 798 MHz because cursors will always be to their previous settings (4 or less), while they can now go up to 7. Let me know how you go.
    I have fixed the CPU now just need to find out why my fan only works when I activate it manually!

  • Satellite L20-101: I think as 667 Mhz module runs only with 266 Mhz

    Hello

    I bought 2 x 1024Mo DDR2-RAM for my L20-101.
    First I tried 533 MHz, but the laptop does not work with them, so I bought the
    Version of 667 MHz.
    CPU - Z says that the FSB:DRAM - ratio is 1:2 If the two are in fact run with just 266 MHz.

    I've updated the BIOS with the latest version of the Toshiba-home page, but nothing has changed.

    So finally, my questions:
    1 perhaps CPU - Z is false (I don't think so...), are there any other good programms to check the parameters of memory?

    2. If the values in the program are correct: where can I change the value of the report? Is it possible to see more than a few settings in the BIOS or is it a rider?

    Thanks for your help

    Hello

    First of all it is important to mention that the Satellite L20-101 supports a FSB of 533 MHz.
    So the DDR2 400/533 256 MB (PA3389U - 1 M 25) and DDR2 400/533 memory modules 512 MB (PA3412U - 1 M 51) should work and are 100% compatible!

    If you use the module of 667 Mhz, it runs only at 533 Mhz due to the limitation of the front side bus.

    In addition, I think you have misunderstood something.
    Here are the modules DD2 and so the CPU - Z recognizes the speed of the modules as 266 MHz (2 x 266 = 532 Mhz)
    If everything seems to be ok!

    PS; You can also use the other tool called Everest home edition. It s a freeware and very useful to run a diagnosis system and equipment

    Greetings

Maybe you are looking for