LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HELP! Having trouble with what should be a "simple" vi. - Untitled.vi (0/1)

I need to run what should be a simple vi to time parts coming from a
machine going to an oven.

If the parts don't get to the oven in time there should be an alarm.
I should be able to enter the tray number that the parts are on(this
will be used later for data logging). I will need to run up to 5
trays at the same time.

The problem is that when I have mulitple trays being timed only one
seems to actually count. The others just sit at zero.

I have included a sub vi I made that works (sort of) when used alone.
What am I missing besides a brain?

Any help would be welcome.
0 Kudos
Message 1 of 5
(3,048 Views)
Okay, I'm looking at the VI...

First off, to control 5 trays, you'll need either an array or a cluster
that is 5 elements, and use a shift register to keep track of it
throughout the loops.

Why is "Tray to oven" controlling the loop condition? I think you want
to just hook up a "stop" button to it. If the "Tray to oven" is manually
hit by the user, that should probably be put with a Case statement (see
if i > 2700).

Rick
--

rick@csciences.com

Chesapeake Sciences Corp.
1127B Benfield Blvd Millersville, MD 21108

Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
0 Kudos
Message 2 of 5
(3,048 Views)
I'm working on your VI now... just to make sure of what I'm doing....

You have 5 items which have start times (each start time is unique,
yes?), and when you see them enter the oven, you hit the switch (making
sure that Input Tray Number is on the right setting). All the while
there is a counter, and if any of the trays' time on the track is over 45
minutes (2700 seconds), an alarm sounds.

Is this correct? In this case you'll want an array of clusters.

Array of 5 elements
Cluster of 3 elements
Time Start (U32)
Time End (U32)
In oven? (Boolean)

Rick
--

rick@csciences.com

Chesapeake Sciences Corp.
1127B Benfield Blvd Millersville, MD 21108

Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
0 Kudos
Message 3 of 5
(3,048 Views)
Rick, thanks alot.

Yes, each tray will have a unique start time.

This is how the process works:
When a tray leaves the assembly machine it is inspected for defects.
The operator/inspector has 45 min to put the tray(manually) in an
oven.

It takes about 12 min to complete one tray thru the assembly machine
and another 3-4 min to inspect. Since we have only so many ovens we
save up trays till we will have a full oven. Sometimes, like if the
assembly machine is down, the trays might sit out too long(or if an
operator is goofing off, but that NEVER happens). Thats the reason
for the alarm.

Thanks for the help, I took the Basics 1 & 2 in May but haven't had
any chance to use it at work. Like most thing left sitting, I'm a
little rusty.


On Tue, 14 Sep 1999 09:50:
24 -0400, Rick Nelson
wrote:

>I'm working on your VI now... just to make sure of what I'm doing....
>
>You have 5 items which have start times (each start time is unique,
>yes?), and when you see them enter the oven, you hit the switch (making
>sure that Input Tray Number is on the right setting). All the while
>there is a counter, and if any of the trays' time on the track is over 45
>minutes (2700 seconds), an alarm sounds.
>
>Is this correct? In this case you'll want an array of clusters.
>
>Array of 5 elements
> Cluster of 3 elements
> Time Start (U32)
> Time End (U32)
> In oven? (Boolean)
>
>Rick
0 Kudos
Message 4 of 5
(3,048 Views)
I may too late to help with this, but if you can send me that vi
directly, I can look at it. I couldn't find it on the RGP. Maybe they
stripped it off?
Regards,
Craig

Steve_C wrote:

> I need to run what should be a simple vi to time parts coming from a
> machine going to an oven.
>
> If the parts don't get to the oven in time there should be an alarm.
> I should be able to enter the tray number that the parts are on(this
> will be used later for data logging). I will need to run up to 5
> trays at the same time.
>
> The problem is that when I have mulitple trays being timed only one
> seems to actually count. The others just sit at zero.
>
> I have included a sub vi I made that works (sort of) when used alone.
> What am I missing besides a brain?
>
> Any help would
be welcome.
0 Kudos
Message 5 of 5
(3,048 Views)