11-03-2006 02:02 PM
11-03-2006 03:09 PM - edited 11-03-2006 03:09 PM
swami1,
If I understand you correctly, you already have a LabVIEW program that communicates,and controls external devices, acquires data from these devices and makes a report based on the data. Is there a bug in the program? Do you need to add features? Does this program exists?
If the program does not exist, I do not think you are going to have any luck convincing someone to program the entire test for you. This board is used to communicate ideas and questions to obtain a higher level of knowlege. From what I can tell from previous posts, you are not willing to do any searching for yourself (labview examples, knowlegebase articles, hardware manuals etc. If you have a specific question, then by all means ask it. Please do not take this response as an offense to you. I will be glad to help if I can, but a posted code to answer your problem is not what you are going to get every time. In fact you will learn better if you struggle with it for awhile.
Now you are going to take some baby steps from the start.
Define your inputs and outputs.
Develop a flow chart.
Research,research,research. This web service is FILLED with the information to at least get u started. And when you get stuck, post the QUESTION!
Help me help u - (someone said that somewhere)
Chris
Message Edited by Chris Co on 11-03-2006 03:10 PM
11-06-2006 10:42 AM
11-08-2006 04:12 PM
hi!
Thanks for your suggestion and I have started programming of my project.
I need some help if you can, My UUT has total 42 model numbers and each has different frequency band and because of that each has different test.
so please let me know if I enter any model number so it will go to that model number test and run all test of that model number
thanks
11-08-2006 08:04 PM
11-09-2006 08:22 AM
hi!
I have already created database using LabVIEW. It's not same question which I asked earlier. I have one product which has 42 model numbers and each has different test according to model number. If I enter any model number in program so that model number test VI has to open and start test.
Ex. NEHz-axxxxby - model number
z=1 or 2, a=A,B or C which indicates gain
XXXX = diifferent frequency bands
if I enter NEH1-A0435by so opens this model number VI and start test with match of this model number parameter.
thanks
11-09-2006 08:33 AM
So you are planning on having a VI for each model number? If that's the case, then I would assume you would be calling the VI dynamically. As long as the VI name is related to the model number, you can create the path and call it.
p.s. You might want to look at getting TestStand (http://www.ni.com/teststand/). It has all of the features you need in a test executive so you can concentrate on writing the actual tests and not all of the management functions (test selection, limit loading, report generation, database logging, etc.)
11-09-2006 10:23 AM
Hi swami,
Based on all the threads i have read and compiled to what i think you are trying to do.... I do not believe you need a VI for each model#. The inputs to the vi are changing based on model#, however it doesnt seem the actual TEST is changing (just parameters). For instance, if you are testing a resistor you may test for actual resistance and the current or voltage witch it fails at. The colored strips (model #) determine the pass fail criteria and the actual voltage or current to apply during testing. Your model #'s change the Gain, Frequency etc, but these inputs to the TEST VI seem only to change what parameters to output to the same TEST as well as pass/fail criteria. I hope i understand you correctly, if i do the you will need a much simpler VI, namely ONE not 42.
Another example: Controlling hydraulic solonoid to facilitate vibration. Based on serial number the VI will determine the frequency,amplitude,and #of cycles. The machine VI I attached will do exactly that. Now a control VI will be built to facilitate the control. In conclusion you will have two VI's that will do as required. Maybe I am misunderstanding you, but I am trying!
Better yet please tell me exactly what it is you are going to do. Name the component,name the test environment (Vibration,thermal cycling,pressureizing,Voltage, current), name all measurements you want to take, name the pass/fail parameters etc. Be very specific. It will not matter if you write 2 pages.
Please, we want to help.
Chris
11-09-2006 11:45 AM - edited 11-09-2006 11:45 AM
Use a case structure. It is similar to text programming language If-Then structure. Create an Enum with all different model numbers. Wire Enum into the case structure selector (?). The title inside the case will display the first and second enum entries (model numbers). Add cases by right clicking on the case structure border. As you add cases, the next enum should show up in the title. Inside each case, put the parameters for that model, such as frequency, etc... Then wire each parameter to the right side of the case structure. Each output of the case can then be wired to a subvi designed to accept these as inputs. So depending on which enum is selected, the correct parameters will be passed to the subvi.
Message Edited by tbob on 11-09-2006 10:46 AM