05-12-2010 10:06 AM
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?
05-12-2010 10:15 AM
Difficult to answer with your problem description. By frames do you mean a sequence structure?
Post your code so we can understand better.
05-12-2010 10:25 AM
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
05-12-2010 10:32 AM
Two words
"state machines".
Your architecture should be based on that.
05-12-2010 10:35 AM
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
05-12-2010 10:44 AM
05-12-2010 10:46 AM
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
05-12-2010 10:52 AM
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
05-12-2010 10:55 AM
05-12-2010 10:58 AM
Fantastic help. Thank you very much.
Philip