Jump to content

花落阳关

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by 花落阳关

  1. Hi! I had write a lv program and generate a .exe file. But once open the exe file, it will run the program,  owing to it need time to find the camera so something wrong will happen. Now I want to add a function for searching the camera, led on light when it had found the camera to give a notice, then it will autorun to acquire figures. So the question is how to add the camera earch function ? Thanks 

  2. 1 hour ago, ensegre said:

    Dataflow.The small loop runs only after the big acquisition loop ends. You probably have no choice but to communicate the avi file reference and the writing status from one to the other via local variables. Or a channel wire perhaps.

    I just want to add three button(grab,save and stop).Press grab to start to display on the front panel, press save button to generate a avi file(not generate one when the button is not pressed),press again to end the save mode. Press stop to end the whole program, could you please help me modify it, I had tried many times. 

  3. On 2017/12/10 at 1:04 AM, ensegre said:

    Thanks, I know the two vi, but I had install a h.264 and FFMPEG encoder, but it can't be found in the system, I don't know what's wrong with the question. I had tried to compare the video size of many video encoder and investigated in the website, the result is h.264 encoder is the best, it offers the minimum size  with guaranteeing image quality. So how can install the h.264 encoder and found it in the system?

  4. Thanks for your suggestion, but it is a exe file, cannot be used in the labview program, I need a H.264 dll file or a  encapsulated function API for calling. And another question there is only one video type(avi format), if I had  encapsulated a dll file, whether or not it must firstly generate a avi file, then convert to mp4. Or maybe I have to encapsulated there function(create mp4 flie, acquire mp4, and close mp4 file), it's very hard for me.

  5. Hi! Now I am writing a real time acquire and save to video file program.But 1080*720, 30 fps, it generates a lot of video data via the camera, about 20s for 1G bits. H.264 is a open source encode, how can I use the encoder to convert avi to mp4 or directly generate a mp4 file, has anyone who had achieved the effect?Thanks!

  6. On 2017/12/6 at 3:56 PM, ensegre said:

    I don't see a producer-consumer in your VI. That is e.g. two loops, enqueueing and dequeueing image references, or something equivalent. You create an AVI file at start because your program does so, you might want to do it rather only after the button is pressed. And I would handle that with an event structure and a shift register propagating the file reference from one iteration to the next. Maybe you'd want to check some LV learning resource first?

    Thanks, I had achieved the result using the  producer-consumer,you can see it in the vi file. But I wanna to pressed the Boolean 2-5 to create avi files, otherwise it while generate many empty file, but the present program can just be pressed once, because the corresponding while structure will be end up. When I want to modify file name to generate a new avi file, it cannot be run(because it just could run once).So now I have two questions:

    1. How to modify the program to achieve  continuous operation to generate a new avi file?

    2. The pixels are 1080*720, 30 fps, 20s could generate 2G data, how can I  achieve compression and transmission of videos,then decoding and saving the avi file?

    save avi.vi

  7. 16 hours ago, ensegre said:

    A producer-consumer architecture, with a queue of images to be saved by the consumer loop, is the first thing you should really try. Alternatively and asynchronously grabbing one image from each loop for either viewing or saving, like you do, wont bring you far. Also, rendering the preview image might be resource intensive and compete with saving, you may want to display only one every N images. Finally, AVI could involve compression codecs, which can also be computationally demanding; to maintain a given frame rate you might have to stream uncompressed images, or to choose a less demanding codec, to reduce the image size.

    Thanks, I can achieve the result via use the producer-consumer architecture with a better frame rate. But now there is a question, everytime run the program it will automatically generate a .avi file and it always be a empty file(0 byte).Now I want to add a case structure, when the case button was pressed it save to a avi file.If it was not pressed,the empty file won't be generate. You can directly modify in the vi file,thanks!save to avi.png

    Grab and save avi.vi

  8. Hello, everyone!

    I have a question with the waveform chart(figure 1). How can I plot multi curves in a waveform chart in sequence (figure 2)?

    For example:

    1. I plot the first curve which the starting point is 0.

    2.I stop the program or press a button, then the second curve plots from the starting point at 0, too.

    3. And so on, I can plot some cures in the same waveform chart.

    I am looking forward to a reply, thanks for your attention !

    QQ截图20170922093052.png

    QQ图片20170922093101.png

  9. 10 hours ago, ShaunR said:

    Did you save your 1.png as an 8bit  greyscale image?

    Try with mine.

    jupiter.png

    Sorry, the image of the 1.png is RGB, so I can not get the result.I had tried the 8 bit grayscale image,it's no problem, thanks!But I have two questions :1.the upper part of the vi just change the colortable of the intensity graph,why the intensity graph can add false-color? 2.I want to add false-color into the image display in real-time mode,how can I use the avaliable LUT? Below is image display, not intensity graph.Thanks!

    false-color image.png

  10. 18 hours ago, smithd said:

    If you have the vision development module, there is a function for the built-in options: C:\Program Files (x86)\National Instruments\LabVIEW 2015\vi.lib\vision\Display.llb\IMAQ GetPalette

    Useful if someone wants to replicate the behavior of the imaq image display.

    Hi, smithd!

      I konw this vi, but there is just five color mode in the vi. I want to load the avaliable LUT into the image display.I do not kow how to use get colorpalette,can you upload a vi ?Thanks!

    false-color image.png

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.