Jump to content
Jim C

best practice re:command macros

Recommended Posts

I've got a strong feeling that I should not put more than one command into the queue unless it's defined as a macro (in the Macro section).

 

I'm working on a program now that has to execute a sequence of steps for each UUT, and I've put that sequence in as Macro: process UUT. This lets me see the entire sequence in one place. Any commands I insert into the sequence are, therefore, known to be deviations from the expected sequence as I handle non-typical data. This also lets me get the same functionality from multiple entry points without duplicating code.

 

I worry that I'm worrying too much! How do you do this?

 

Thanks,

Jim

 

PS ~ I've made one convert to the JKI State Machine. I would've had two, except the other guy can't use Event Structures (license).

Share this post


Link to post
Share on other sites
I've got a strong feeling that I should not put more than one command into the queue unless it's defined as a macro (in the Macro section).

 

I'm working on a program now that has to execute a sequence of steps for each UUT, and I've put that sequence in as Macro: process UUT. This lets me see the entire sequence in one place. Any commands I insert into the sequence are, therefore, known to be deviations from the expected sequence as I handle non-typical data. This also lets me get the same functionality from multiple entry points without duplicating code.

 

I worry that I'm worrying too much! How do you do this?

 

Thanks,

Jim

 

PS ~ I've made one convert to the JKI State Machine. I would've had two, except the other guy can't use Event Structures (license).

 

Hi Jim,

 

I'm glad to hear that you're out there spreading the JKI State Machine love :) Hopefully some day (soon?) the Event Structure will be usable in the base version of LabVIEW.

 

Regarding Macros, my general rule is that whenever I have a sequence of steps that I need to use in more than on place, I create a macro. That's unless I know that I'll eventually use it in more than one place -- in that case I'll make it a macro pro-actively.

 

Thanks,

 

-Jim K

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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