ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

repeat frames

I wrote a test sequence useing frames primaraly. Last week I was asked to add the option to my frames to repeat the test, continue or fail. We are a small company and it is very common to see test procedures without any criteria.  So I have to ask the R&D technicians how they tested the product. And of course the hallway discussions keep changing the software. As I look at my software now, I could create some sort of pointer if the test fails and give the operator the three selections.

 

My personnel preference would be destroy my current VI and creat a 2D array. And keep track of the indexer.  However they want this software and 4 other programs bythe end of the month.

 

Any suggestions?

0 Kudos
Message 1 of 13
(4,128 Views)

Difficult to answer with your problem description.  By frames do you mean a sequence structure?

 

Post your code so we can understand better. 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 2 of 13
(4,123 Views)

At first my code was very robust. After each week I would get  new requirents. Addind new tests or asking to make major changes. I am current using frames to set up test enviroments and then executing the tests. This is a very frustrating experience for any programmer but very common. I have the the frames passing the test step. pressures PID control and modbus control. It has become a  very "kludging" software program. I do not like the VI at all.

 

I wrote two other programs using a 2d Array that is very robust. With the 2D array I can read the idex of an array and repeat that test by changing the index by -1. This seems to be the logical way to reat a test, continue or fail.

 

Thanks

 

Philip

0 Kudos
Message 3 of 13
(4,112 Views)

Two words

 

"state machines".

 

Your architecture should be based on that.

Message 4 of 13
(4,106 Views)

I have heard about state machine as a preferred method. But I am very unfamilur with this type of code. Can you point me to a link of an example?

 

Thank you for the suggesstion

 

Philip 

0 Kudos
Message 5 of 13
(4,102 Views)
Start here: http://zone.ni.com/devzone/cda/tut/p/id/3024
LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 6 of 13
(4,093 Views)

Thank you for the help. I just wish I would get procedures that are well defined. It sure makes us pull our hair out.

 

Thanks Again

 

Philip 

0 Kudos
Message 7 of 13
(4,086 Views)

I looked at your link. Thank you. I do not have the toolkit for creating state machins. Is it easy to create from scratch?

 

Philip

0 Kudos
Message 8 of 13
(4,081 Views)
Yes, there's even a built-in template.  File > New... > From Template > Basic State Machine.
LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 9 of 13
(4,078 Views)

Fantastic help. Thank you very much.

 

Philip

0 Kudos
Message 10 of 13
(4,073 Views)