Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 9 with GPIB-RS232 for controlling shutter at fixed interval of time

Solved!
Go to solution

Hello,

I want to control my shutter using LabView. I have got a program for it from which I can see that shutter is being controlled. But I don't know how should i incorporate this conditional opening and closing of shutter. For example, I would like shutter to be close for  first "t1' sec and open for next "t2" sec and again close for "t1" and this repeated over unless stopped.

 

I am attaching the file also, Can somebody explain me how I can do it?

 

Thanks and regards.

0 Kudos
Message 1 of 5
(4,429 Views)
Solution
Accepted by nns2006

Hi

What you need is two arrays with in the first the on times and in the second the off times.

Then in a for loop switch on, wait element on, switch off wait element off.

 

Use autoindexing and make sure that both arrays have the same length otherwise the shortest array will determine the last steps.

 

 

greetings from the Netherlands
Message 2 of 5
(4,415 Views)

I'm thinking this would be a good application for a State Machine.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(4,409 Views)

I have managed to find the solution. thank you for help

0 Kudos
Message 4 of 5
(4,398 Views)

I completely agree with the statemachine proprosal.

Especially the sequence structure used now is really not necessary (two empty frames and everything is already connected by error wires)

 

Instead of the old sequence structure please use the new flat structure.

The only extra comment I would make is to connect all error wires instead of starting again in a frame.

greetings from the Netherlands
0 Kudos
Message 5 of 5
(4,383 Views)