09-27-2019 08:16 AM
@Ben wrote:
I am experiencing De Jevu.
Didn't we live through this nightmare a few weeks ago?
Forget that video and learn how to create a state machine that presents a button that must be pressed before the state machine transitions to an active state.
Ben
OK, you are right 🙂 I didn't see this thread, so sorry.
09-27-2019 08:18 AM
@Ben wrote:
I wonder if that thread got deleted?
Ben
I didn't had found that thread 😞
09-27-2019 08:21 AM
Hi pretty,
3. Do I need to a run button when I create an EXE? Is this button important for user interface? (Maybe ,it will make effective front panel?)4. What happens when I create an EXE? Will EXE automatically run when I do 'run when opened' in execution option? Is this enough for users?
What happens when you start a standard tool like Chrome, Firefox or Word: do they have/need any "Run button" allowing you to "start" them?
Is it enough for you such software comes without any "run button"???
09-27-2019 08:23 AM
Thank you very much 🙂
@GerdW wrote:
Hi pretty,
3. Do I need to a run button when I create an EXE? Is this button important for user interface? (Maybe ,it will make effective front panel?)4. What happens when I create an EXE? Will EXE automatically run when I do 'run when opened' in execution option? Is this enough for users?
What happens when you start a standard tool like Chrome, Firefox or Word: do they have/need any "Run button" allowing you to "start" them?
Is it enough for you such software comes without any "run button"???
Thanks all of you 🙂
09-27-2019 08:32 AM - edited 09-27-2019 08:35 AM
@GerdW wrote:
Hi pretty,
3. Do I need to a run button when I create an EXE? Is this button important for user interface? (Maybe ,it will make effective front panel?)4. What happens when I create an EXE? Will EXE automatically run when I do 'run when opened' in execution option? Is this enough for users?
What happens when you start a standard tool like Chrome, Firefox or Word: do they have/need any "Run button" allowing you to "start" them?
Is it enough for you such software comes without any "run button"???
Actually, I used low level grab functions in my system. There is a problem when I make 'run when opened' in execution system. When I run my system, I get an error. This error occurred at IMAQdx Open Camera.vi.
''Error: IMAQ Camera is not found.''
How can I fix this error? Must I create a run button?
09-27-2019 08:46 AM
@cbutcher wrote:
@Ben wrote:
I am experiencing De Jevu.
Didn't we live through this nightmare a few weeks ago?
Some links to similar posts (I also recall a recent example, but can't seem to find it...):
How-to-start-a-vi-without-using-the-run-button-on-the-top-left (links to first thread)
How-to-create-a-start-button-instead-of-clicking-on-Run
Most of these suggest the Run when Opened and then a State Machine architecture.
I have much event cases and while cases because of low level grab functions (nested while loop or nested case loop). Can I use state machine again? Does this make my system that is complicated?
09-27-2019 08:48 AM - edited 09-27-2019 08:50 AM
Since I don't have the privilege of seeing your code I'm going to go out on a limb and say that you're giving it the wrong address for the camera. You should really take some time and learn about a state machine architecture. I believe that this will help you immensely to achieve your goal.
Edited to add: Your last post came in while I was typing. Yes, you need to get away from much of what it sounds like you are doing. A good architecture is much easier to debug and maintain.
09-27-2019 08:51 AM
@johntrich1971 wrote:
Since I don't have the privilege of seeing your code I'm going to go out on a limb and say that you're giving it the wrong address for the camera. You should really take some time and learn about a state machine architecture. I believe that this will help you immensely to achieve your goal.
Edited to add: Your last post came in while I was typing. Yes, you need to get away from much of what it sounds like you are doing. A good architecture is much easier to debug and maintain.
Ok,Thank you
09-27-2019 09:38 AM
@prettywoman wrote:
When I run my system, I get an error. This error occurred at IMAQdx Open Camera.vi.
Make sure that all controls have reasonable default values and make sure that certain code does not execute unless certain values have been set.
@prettywoman wrote:
I have much event cases and while cases because of low level grab functions (nested while loop or nested case loop). Can I use state machine again? Does this make my system that is complicated?
Any state machine is simpler, easier to write, and easier to debug that some monster with deeply nested structures. Your system is only complicated because you apparently wrote it that way. 😄 A state machine will be orders of magnitude less complicated.
(For example, I don't even know what a "case loop" is. It's not in my palettes 🐵
09-27-2019 11:11 AM
I'm a bit confused by this thread now. I thought it was solved, but now it seems to be about a completely different topic (run button -> camera grabs)...
Did two topics get merged? Or did I just lose the thread somewhere?
Rereading, can you (prettywoman, OP) post any VI you're using? It might make it easier to move forward with suggestions.
We might also be able to suggest some restructuring to aid with the "deeply nested structures".