LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making a sequence using frames.

I've written a LabView program (Included in this file) which I can use to record two images and then subtract those two images from one another, displaying the result. The program is also capable of applying voltage steps over specific periods of time in accordance with the frame rate of the camera.

 

.vi file 

 

.vi file 

 

Here's where I am having some trouble. Originally, I was happy running this program continuously but now, I would like to work with individual frames instead. I would like the program to work in the following sequence:

 

1. Apply the first voltage/voltage step

2. Take in the two images and subtract them

3. Save the subtracted image to a file location in a BMP format.

 

The sequence should repeat itself by then applying the next voltage step.

 

As you can probably tell, my LabView capabilities are somewhat poor to say it politely, so even creating the program you can see above was a challenge for me. Any help in trying to get a working sequence up and running would be greatly appreciated.

 

For some reason I'm having rouble attaching the .vi to this post, so if anyone would like it, I'll happily upload it manually. 

 

Thanks 

 

Brian 

Message Edited by brindian on 04-06-2009 08:34 AM
Message Edited by brindian on 04-06-2009 08:38 AM
Message Edited by brindian on 04-06-2009 08:42 AM
0 Kudos
Message 1 of 4
(2,296 Views)

Sequences are not recommended because they are difficult to maintain.

 

Try to read up on the State Machine design pattern.  This design pattern allows the developer to change the order of the sequence, add/subtract steps much easier than the sequence

- James

Using LV 2012 on Windows 7 64 bit
0 Kudos
Message 2 of 4
(2,283 Views)

Here's how I'd start.  You'd need to

 

Message Edited by jcarmody on 04-06-2009 09:44 AM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Download All
0 Kudos
Message 3 of 4
(2,265 Views)

What I started to say (before my slow connection caused me to miss the edit window) was that you'd need to add the logic to adjust the voltage and move from state-to-state and stop the machine.  You need to learn the State Machine, embrace the State Machine, use the State Machine, love the State Machine...

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 4
(2,259 Views)