Jump to content


Photo
- - - - -

REWRITE the 3 BUTTON DIALOG.VI Coding Challenge


  • Please log in to reply
16 replies to this topic

#1 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 25 August 2008 - 05:06 AM

This is a Coding Challenge to rewrite the 3 button dialogue.vi.

You can find the vi in
National Instruments\LabVIEW 8.5\vi.lib\Utility\error.llb\Three Button Dialog.vi
Or by navigating the pallets: Programming>>Dialog and User Interface>>Three Button Dialog.vi

Posted Image


The background for how this challenge came about is found here

The challenge is open to everyone, except me.

Rules:

When you have completed the 3 button dialogue.vi zip it up and send it to me in a PM. I will give the code an alias and post it to this thread.

Submitters may not reveal their identity until the end of the challenge.

I’m doing this so anyone including Aristos or Michael can submit to the challenge an it will still be fair for everyone.


This will be an open discussion challenge if you have a comment about submitted code or about the challenge in general go ahead and post it to this thread.
Please try to be positive.

Let’s make this a 1 month challenge.

All submissions must be in by 09-30-08.

After that we will have an additional week of discussion and then I will post a poll to vote.

The winner will earn the respect and adoration of his peers and they will have their code proudly displayed in the Code Repository. Of which I will personally assist in making sure it passes all the requirements.

So if you don’t like the way the 3 button dialog is written or think you can do better then show us how it supposed to be done.

REMEMBER DO NOT Post code to this Thread. PM it to me and I will post it.

#2 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 12 September 2008 - 12:41 AM

Reminder

20 days Left in the Coding Challenge.

Zero Submissions so far


Mark

#3 Norm Kirchner

Norm Kirchner

    The 500 club

  • NI
  • 723 posts
  • Location:Austin, TX
  • Version:LabVIEW 2012
  • Since:2000

Posted 12 September 2008 - 02:09 AM

QUOTE (mballa @ Sep 10 2008, 06:20 PM)

Zero Submissions so far


Well in that case I'll just have to go the Price-is-Right cheapo way ($1) and toss some crap together just to make sure if it's a 1 horse race I'll win.

That's called strategy baby!!

#4 Jim Kring

Jim Kring

    packages everywhere!

  • JKI
  • 1,901 posts
  • Location:Lafayette, CA
  • Version:LabVIEW 2011
  • Since:1995

Posted 12 September 2008 - 05:37 AM

QUOTE (Norm Kirchner @ Sep 10 2008, 05:48 PM)

Well in that case I'll just have to go the Price-is-Right cheapo way ($1) and toss some crap together just to make sure if it's a 1 horse race I'll win.

That's called strategy baby!!


Don't forget to run the diagram cleanup tool on it ;)

#5 Phillip Brooks

Phillip Brooks

    The 500 club

  • Members
  • PipPipPipPipPip
  • 758 posts
  • Location:Boston, MA
  • Version:LabVIEW 8.6
  • Since:1999

Posted 12 September 2008 - 06:36 PM

QUOTE (Jim Kring @ Sep 11 2008, 12:16 AM)

Don't forget to run the diagram cleanup tool on it ;)


AND VI Analyzer! :P

Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T


#6 gmart

gmart

    Very Active

  • NI
  • 151 posts
  • Version:LabVIEW 8.6
  • Since:2000

Posted 12 September 2008 - 07:11 PM

QUOTE (Phillip Brooks @ Sep 11 2008, 11:15 AM)

AND VI Analyzer! :P


And VI Profiler :D

#7 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 16 September 2008 - 04:12 AM

I've Added a couple of new minor requirements to the 3 button challenge

  • Please PM me Instructions or comments that you want members to read along with your code.
  • Please save the code in version 8.2 if possible.

I will be using the resistor color code as my alias naming scheme.
[BLACK] first submission
[BROWN] second
[RED] third
ect....
[BROWN_BLACK] tenth

#8 crelf

crelf

    I'm a LAVA, not a fighter.

  • V I Engineering, Inc.
  • 5,748 posts
  • Version:LabVIEW 2012
  • Since:1993

Posted 16 September 2008 - 05:01 AM

QUOTE (mballa @ Sep 14 2008, 10:51 PM)

I will be using the resistor coor code as my alias naming scheme.

Nerd.

post-181-1170858537.png


#9 Lars-Göran

Lars-Göran

    4 more posts to go.

  • Members
  • 6 posts

Posted 16 September 2008 - 02:38 PM

Hi!

Just want to give a link to some code I added a couple of years ago in the Code Repository: CLL Dialog.zip
I don't want to join the contest, but maybe the code is worth a look anyway.

/Lars-Göran

#10 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 17 September 2008 - 03:05 AM

First Submission for the 3 button dialog.

Comment:

QUOTE

I took the plunge and put together a three button dialog.
I attached the complete project. If you run the Build script it packages all into an llb
.


Download File:post-584-1221529459.zip

#11 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 20 September 2008 - 07:02 AM

Reminder

11 days Left in the Coding Challenge
.

One Submissions so far


Mark

#12 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 24 September 2008 - 03:06 PM

The 3 Button Coding Challenge will be extended until October 6th.

This will give members 2 full weekends to work on the challenge.

Mark

#13 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 01 October 2008 - 06:49 PM

Reminder

1 Week Left in the 3 Button Coding Challenge
.

One Submissions so far

#14 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 05 October 2008 - 03:06 PM

I has come to my attention that unless you are a premium member you are not allowed to attach items to a PM.

So if you are unable to PM me the code for the chalenge then please Email it to me

#15 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 06 October 2008 - 09:38 PM

Second Submission for the 3 button dialog.

Comment:

QUOTE

Here is my Three Button Dialog effort, I just added a wrapper around a Multi Button Dialog I had previously developed and tidied things up a bit.

It is a zip file with a LV8.2.1 project. Just open the project and run the "RunMe - Demo.vi" to see it in action!!






Download File:post-584-1223237314.zip

Reminder

1 DAY Left in the 3 Button Coding Challenge
.

Two Submissions so far

If you would like to get in on the challenge but ran out of time send me a PM and I will consider extending the time.

#16 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 07 October 2008 - 02:39 PM

By Request I am extending the 3 Button Coding Challenge to October 13th.

#17 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 15 October 2008 - 03:49 PM

Third Submission for the 3 button dialog.

QUOTE

Thanks for holding on. You can find it attached (LV8.2).
One thing you need to do before you can view this VI: You need to install the following package with VIPM:

jki_lib_state-machine

Without this package installed my submission will be broken. Sorry I can't include this but it's available from VIPM if you do a check for updates and it's totally free. More details can be found here:

http://jkisoft.com/state-machine/


Download File:post-584-1223993648.zip

Since it is not feasible for the JKI submission to be anonymous I am retracting this requirement.
I will reveal the names of the other two submitters. All comments and criticism are welcome.




The submission part of the three button dialog challenge is officially closed.

We will take a week or so for comments and opinions and then post a poll for voting. Please don’t be shy and feel free to campaign for your favorite submission.