05-25-2016 06:16 AM - edited 05-25-2016 06:17 AM
Hello everyone,
I am designing a testbench for myDAQ I implemented it using a test VI for each function in testbench template and at the end i am writing all these results to a word file. Actually there is not any specific problem i want the community to please check this test if it needs any improvement specifically in report making.
Thanks in advance for you help and time.
Regards
Omer
Solved! Go to Solution.
05-25-2016 09:04 AM - edited 05-25-2016 09:06 AM
In general it looks ok, so you just run through certain functions using a state machine. You close the resources and references properly as I see after testing each DAQmx function.
Some parts should be fixed/cleaned up:
05-25-2016 10:05 AM
So you could simplify some parts where you repeat same blocks, something like see below. Besides, personally I would not use local variables, but a cluster with 3 array elements (each size of 6) corresponding to the 3 types of values (error code, passed?, error string). I would add elements to this cluster through the steps of the state machine, and keep the cluster in a shift register.
05-25-2016 10:42 AM
Thanks for such good ideas. Can you please clarify me the idea of clusters (3 array elements each of size six??) since i have not used them earlier or forward me a link where i can study them please.
05-25-2016 12:02 PM - edited 05-25-2016 12:05 PM
Hmm, maybe it is better to use a cluster with 6 subclusters. In this case you can convert the main cluster to array, and do the FOR loop as I showed above. Also, you do not need to split error cluster info at the cases, you can do this when you save info to Excel report.
05-26-2016 07:25 AM
Hello can you please attach the file myDAQ_testresults.ctl for 13 or 14 version. And also attach the pictures so it can be clear.
I will be very thankful.
05-26-2016 07:37 AM
Also if its possible please tell me how will i then use it in report making. Since i am not very familiar with clustors and not an expert in LabVIEW. I will be very thankful.
05-26-2016 07:56 AM - edited 05-26-2016 07:59 AM
To see a picture (or save it) in bigger size, just right click on it with your mouse, and click on the first option in Firefox (show picture or something in English).
I have also attached the typedef control in version 2013. BTW, You should use a LabVIEW project, to accomodate your main VI and the typedef controls in one place.
So an example how to add elements to your typedef control:
Unbundle the cluster for creating report:
EDIT: finish the missing parts, and wires for your VI.
05-26-2016 09:19 AM
Thanks alot brother.
One more thing to ask can the report be any better means shouls i add some extra information in it or?
Thanks once again dear.
05-26-2016 03:04 PM
I only checked the main "skeleton" of the VI, I did not examine the DAQmx part (the passed or not passed logic), neither the report making procedure. I have no idea what additional things involved during HW test. You should know what kind of tests you want to perform, and how you want to report it....