‎07-12-2019 07:20 AM
Hi,
I have vi in which I extract image from live image then my program will analyze light intensity catched in camera. I want to run my code in continuous mode. After I cropped the image, I want to have same cropped image which will be analyzed according to light intensity in each loop without interruption. How can I program so that in each loop cropped image will be analyzed without interruption?
‎07-12-2019 07:25 AM - edited ‎07-12-2019 07:29 AM
Hi Michael,
How can I program so that in each loop cropped image will be analyzed without interruption?
Delete the case structure to have that part of code called everytime - not just when "OK button 2" is TRUE…
What doy ou mean by "interruption"?
You really should cleanup your code…
Why are there 3 event structures in parallel?
Why do 2 of them handle the same events?
‎07-12-2019 07:34 AM
Thanks for reply. But I want to crop image when I press Ok button. Otherwise the program will prompt to crop image directly after I run the program. Before cropping image, I set exposure, pixel values on front panel after running the program. These values change always to predefined values after I hit start live button. Although I set new default values to these properties by data operations on front panel. But it changes again after pressing start live button.
‎07-12-2019 07:38 AM
I mean with interruption that the light intensity shown in graphic set to zero after loop ends.
‎07-12-2019 07:40 AM
‎07-12-2019 07:41 AM - edited ‎07-12-2019 07:44 AM
Hi Michael,
Before cropping image, I set exposure, pixel values on front panel after running the program. These values change always to predefined values after I hit start live button.
Maybe because you are writing to a lot of propertynodes of these controls?
Again: you should cleanup your VI. It may also help to start over with a clean nice code architecture!
I mean with interruption that the light intensity shown in graphic set to zero after loop ends.
There is no code executed "after loop ends", so I don't see where "light intensity" is set to zero…
I also don't see any "light intensity" control or indicator.
(In case you are more comfortable in German you should post in the www.labviewforum.de …)
‎07-12-2019 07:47 AM
This code architecture is default that I installed this code directly online.
‎07-12-2019 08:02 AM
‎07-12-2019 08:27 AM
As I am beginner in Labview. I don't have too much idea on how to cleanup code architecture efficiently. Could you help me on how to program pixelclock, framerate and exposure on the front panel so it will not change after hitting start live?
‎07-14-2019 11:16 AM
Hi Michael,
As I am beginner in Labview
… you should take the training resources offered in the header of the LabVIEW board.
Learn LabVIEW!
I don't have too much idea on how to cleanup code architecture efficiently.
As this is not LabVIEW-specific: you should atleast have some ideas about code architectures in general…
Could you help me on how to program pixelclock, framerate and exposure on the front panel so it will not change after hitting start live?
As I wrote before: you write to those controls (or their property nodes) in way too much places.
Clean up your VI - or start with a fresh new VI. Then implement a nice architecture.