10-10-2009 01:25 PM
Hi,
my application is to check the PCB i/o pins... first i have to corresponding signal to every pin in GOOD PCB board and the output of each pin should saved in excel with the help of write to spreadsheet.. then the database be act as master for other PCB boards..
If i wanna check the other pcb board means the same corresponding signals should be send to the each pin of the PCB board.. the Output received from the board should check with the data already saved in the database if it is match's means Status LED should Glow otherwise its not to glow...
pls help me to finish this application.. i have attach model vi with post and excel too....
Solved! Go to Solution.
10-10-2009 08:12 PM
I hate to say it, but you really don't have any kind of application there. It is kind of hard to help you finish when you have barely even started. A couple express VI's in a sequence structure don't make an application.
What you need to do is sit down and write up a design spec. What are your inputs to this application? what are your outputs? What do you want the user interface to look like? What steps do you need to do to get from A to B? Flowchart it out.
10-10-2009 11:02 PM
See i have to send a signal (simulate signal) to the PCB board (GOOD PCB BOARD FIRST) to get the output signal from the board.. and its should save in the excel sheet.... (For example first the customer will give good Pcb board to me) i have to note all the signal received from the board wrt input signal.. its cos further they'll priovide the faulty PCB BOARD to check the board whether its having error in it...
In the last Post i have attached only the method of my Program...
my doubt is if all the received signal are saved in the excel sheet first.. then when im going to checking faulty Pcb board with its received signal i have to compare this received signal with data save in the database(pin 0 - sine signal input and output is may be sine wave)...
(ex: PCB board will have 40 pin each pin will have diff signal and corresponding output should to be verify..)
10-10-2009 11:39 PM
The "method" you have in your last post doesn't come anywhere near to what you say you want to do.
It creates a simulated sinewave and writes it to a text file. Waits 1/10th of a second, reads it back from that text file, does a lot of manipulation to that data to convert it to a dynamic waveform type. Then compares it to another simulated sinewave to say if they are equal or not.
"My doubt is if all the received signal are saved in the excel sheet first..". I don't know why you would doubt that this would happen. If you receive a signal and write it to the text file, then why don't you believe it would be written to a text file? By the way, the Read from Spreadsheet File and Write to Spreadsheet File functions have nothing to do with Excel. They read or write data to a text file that happens to be formatted in a way (delimiters between data in a row, end of line characters between rows) that is a text file version of a spreadsheet. Excel has the ability to import from or export to a text file, but that file is NOT an Excel file.
You have major portions of your code missing and questions to be answered.
Where are you actually outputing a signal to the printed circuit board?
Where are you actually receiving a signal from the printed circuit board?
Are you receiving one signal or 40 signals?
What type of DAQ board are you using to do this?
Okay, let's say once you have the first portion of your code set up to do that, you can write the data to a text file.
Now in another part of your code, you basically repeat the procedure but instead of writing to a text file, you read the data from your "good board" text file and compare the two.
How do you compare the signals and determine whether the newly read signal is good or bad? Right now, you are doing a comparison for equality. Do you think the "good" signal and the newly test signal will ever be equal? Even if you just repeat the test on the good board, do you think those signals will be equal? NO. It is impossible for the signals to ever be equal, even the slightest variation in the signal is going to make them unequal. You are never going to measure identical real world signals identically. You need to come up with some comparison algorithm with criteria that determines whether another good signal actually matches your saved good signal, and a bad signal does not match the good signal taking into account the variations you inevitably get when measuring real world signals.
Those are big questions you need to answer. Assuming you work all that out, on paper in a design specification document, only then can you start worrying about the LabVIEW program and its architecture. Ultimately, a state machine architecture will be your likely choice as you have multiple states to work with. Initialize, test board, save data to file, read data from file, compare data, possibly more states such as wait, close program, multiple states within the test board process as it is probably a multiple step process.
10-10-2009 11:41 PM
Actually in my program i have two part that is 1. Learning and 2. Comparing
LEARNING:(GOOD PCB BOARD WITH 25 PINS)
A. I have to send the signal each and every pin in the board
b. secondly i have received the o/p signal from board and save in excel sheet it'll act as like MAIN DATABASE...
c. Suppose for the pin 0 input signal is sine wave means o/p signal from that pin may be sine wave(just consisder0
d. This MAIN DATABASE should not to disturb after received o/p from the Board.
NOW I HAVE ATTACHED THE PROGRAM WITH ONLY ONE SIGNAL i.e., SINE WAVE...
COMPARING:(FAULTY PCB BOARD)
a. Same steps should be follows here
b. but instead saving the o/p received signal in a database we have to compare the received signal with
the MAIN DATABASE SIGNAL...
c. if both data match the status should be in HIGH otherwise it should be in low condition
HIGH ---- means its matched
LOW ----- means its not matched....
my problem is that i have the sine wave signal data in the excel (DATABASE) and then i should call the data base and should compare with the received signal...i HAve same sinewave for input and comparing the another sine wave(i.e., SIMULATE SINE SIGNAL) the status giving its not match???
10-10-2009 11:50 PM
10-11-2009 06:55 AM