LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming Structures, what is best?

Solved!
Go to solution

"... 6-8 days would be enough ..."

 

So, in reality 12-16 days. Take your best, best, BEST estimate and double it. In my experience, you're usually cutting it close ... and frequently go over that. Smiley Happy

PaulG.
Retired
Message 31 of 50
(1,639 Views)

Yes, that can be a problem for now.  Once you get some of these things worked out and switch to a state machine architecture that will no longer be a problem because the program will not stay long in a condition where it cannot respond to user inputs.  One of the earlier responses in this thread suggested going to an event driven method and I agree.

 

What I did was not intended to be a working version, but a demo of how the process could be started.  I am quite sure that the Cycling loop can be reduced to a single while loop with a single case structure inside.  A few cases may have small case structures, especially boolean controlled ones.  Eventually you will have two loops, one with the event structure and the other with the big state machine.

 

Keep it up.   As you are well aware you are dealing with a messy problem.  There is no easy way to clean something like this up.  Sometimes it will seem like two steps forward and one step back (or maybe three back), but you can do it.

 

Lynn 

Message 32 of 50
(1,637 Views)

hahaha, i can't ask my company to hire a pro to do it..

its just saying..

"hey guys, i can't do my job..."

i would love to, but i dont think thats a smart idea. and besides...my manager is happy with rev B.

just that i am not..

 

hahaha....just out of curioiusity..how would i go about getting someone to do this?

where can i find help?

how much do they cost?

Message Edited by krispiekream on 02-05-2009 03:50 PM
Best regards,
Krispiekream
0 Kudos
Message 33 of 50
(1,633 Views)

johnsold...

i don't see how i can make this any smaller, into 1 state machine..

i do have a state machine in my first loop...

and i do have an event driven loop. (that's where i normally add new materials)

but the big while loop..i dont see how you can make that any different..

 

Best regards,
Krispiekream
0 Kudos
Message 34 of 50
(1,625 Views)

There is a Forum for LV Job Openings.  People sometimes post there when they need a job like this done.

 

State machine... how do I describe what I am thinking?...  In the Cycling loop (I am working from memory as I have shut LV down) one case structure (Call Modules?) has about 15-20 cases, each of which basically performs one task.  This would be the core of the state machine.  Each frame in the sequence structure might be a candidate for another case (state).  All of the cases which are hooked to booleans: One or two states each.  Once Cycling becomes a state machine, it can be merged with the other state machine.  Similarly the contents of the other loops could become states.

 

In some ways it would be better to start over from scratch.  Take the working (or mostly working) program you have now as the basis for defining what the program is supposed to do.  Write down the inputs and the corresponding outputs.  Draw up a flow chart or state diagram. Then design a clean program from the ground up which does the same thing.  You might end up with three parallel loops: one with the user interface and the event structure, one for I/O to the hardware, and one for the control logic and data processing.  Communicate between loops with queues rather than global or local variables.

 

Lynn 

 

 

Message 35 of 50
(1,607 Views)

hahaha..

johnsold, are you accepting applications?

i have an opening for you..

this will be coming out of my own pocket so please be kind..hahaha. 

 

Best regards,
Krispiekream
0 Kudos
Message 36 of 50
(1,605 Views)

this is my current working version with the software i have..

it has alot of local variables..

it is working right now..

if a user decided to press any buttons, the locals for them will change..

i want to break away from that..

do you recommend me trying to do three parallel loop?

event

temp

press?

 

Message Edited by krispiekream on 02-05-2009 07:10 PM
Best regards,
Krispiekream
0 Kudos
Message 37 of 50
(1,595 Views)

also, i want to change the cluster to typedef, but i am using labview 7.0.

how do i go to Edit and CUSTOMIZE CONTROL?

 

Best regards,
Krispiekream
0 Kudos
Message 38 of 50
(1,585 Views)

"PaulG." <x@no.email> wrote in message
news:1233870007291-847942@exchange.ni.com...
> &quot;... 6-8 days would be enough ...&quot; &nbsp;So, in reality 12-16
days. Take your best, best, BEST estimate and double it. In my experience,
you're&nbsp;usually cutting it close&nbsp;... and frequently go over
that.&nbsp;Smiley Happy

Perhaps I've doubled it already ; )

If you outsouce it, make sure it is at a fixed price. If it's on hourly
basis, keep close watch. You are right, Paul, it is hard to make such
estimates, and often they are to small.


0 Kudos
Message 39 of 50
(1,564 Views)

"krispiekream" <x@no.email> wrote in message
news:1233871806153-847958@exchange.ni.com...
> hahaha, i can't ask my company to hire a pro to do it..its just
saying..&quot;hey guys, i can't do my job...&quot;i would love to, but i
dont think thats a smart idea. and besides...my manager is happy with rev
B.just that i am not..&nbsp;hahaha....

Ok, so you are hired to do this yourself. But clearly your LV knowledge
isn't sufficient jet.

Why not do a customized course? We do those once in a while. The customer
sends us there problems, and we design a course around it. Afterwards, the
client(s) are much more capable of redisigning the code.

Just an idea.

>just out of curioiusity..how would i go about getting someone to do
this?where can i find help?how much do they cost? Message Edited by
krispiekream on 02-05-2009 03:50 PM

Ask your local NI representatives, or check the site for alliance partners
in your area.

In Europe, I think 50-100 euro's is a fair price. It's a big range, but
Europe is large. It might be very different where you live. When "buying"
less hours, the price per hour would go up, although for projects you'll get
a fixed price. But a 1 day project is more expensive for what you get then a
1 month project...

Regards,

Wiebe.


0 Kudos
Message 40 of 50
(1,563 Views)