LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controlled timer

Search the forums for the phrase "state machine".

 

Go to File, New ...., in the LabVIEW menu and pick "standard state machine" as a template.

 

You can reuse a lot of your code.  You just need to regroup it into a single while loop with a case structure.

 

 

0 Kudos
Message 11 of 16
(628 Views)

In the execute step case, what do I include? In other words, can you help me by showing me where I should put each part from my original program?

 

Thanks,

Mike

0 Kudos
Message 12 of 16
(625 Views)

You really want the wait AFTER the start pump command. If you don't understand the basic operation, I can't help much more. You placed it in a separate case and that does not make any sense. Either move the wait or implement the state machine as mentioned. Inside one of the states will be your case statement to infuse/withdraw based on the rate.

0 Kudos
Message 13 of 16
(621 Views)

I have the state machine template. My cases are initialize, execute a step, wait, and close. What goes in each case?

0 Kudos
Message 14 of 16
(608 Views)

@Mike227 wrote:

I have the state machine template. My cases are initialize, execute a step, wait, and close. What goes in each case?



Smiley Surprised  

0 Kudos
Message 15 of 16
(602 Views)

@Mike227 wrote:

I have the state machine template. My cases are initialize, execute a step, wait, and close. What goes in each case?


Let's start at the beginning.  What should go into the initialize case?  Hint:  What should you be initializing.  Answer:  The Initialize VISA Serial Port!

Ok, to the end.  What should go into the close case?  Hint:  What should you be closing/cleaning up.  Answer:  The Close VISA Serial Port!

What should to into the wait?   Hmmm....the name isn't quite obvious enough.

What should go into the execute a step?  What is left?

 

Spoiler
It's Monday and I'm a little cranky, so please excuse me if I sound rude.

 


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 16 of 16
(601 Views)