02-06-2017 10:51 AM - edited 02-06-2017 10:52 AM
Hello All,
I'd like to use labVIEW for some process control and I have limited knowledge of the software. What I'd like to do in process steps are
Process Set Up (all data needs to be recorded to an excel file)
1. Scan Operator (from barcode, refering to a excel sheet to give me a pass or fail criteria. If the number is not on the excel sheet, the process stops)
2. Date (write automatically to excel file).
3. Time (write automatically to excel file).
Process
1. Scan 1 part (write automatically to excel file).
2. Measure voltage - Pass or Fail between a tolerance (automatically write result to excel file).
3. Proximity sensor - Pass or Fail.
4. Repeat step 1 to 3. 4 times.
5. Print all recorded data as a barcode or QR code.
Would really appreciate the help, just as a starting point!! I've sat here for a few hours and not got anywhere.
02-06-2017 11:01 AM
02-06-2017 11:06 AM
A State Machine would be one place to start for the process.
Barcodes Scanners typically have a keyboard interface, so that part should be a simple GUI screen with a string input. The Event Structure will help here.
Talking to Excel can be weird. It takes a lot of ActiveX interfacing. There are many examples floating around if you look.
The measuring of the voltage depends on what you are using to perform the measurement (DMM? DAQ?)
I know there is an example for printing a QR code. I just don't have time to look.
02-06-2017 11:12 AM
thanks for your response.
I will be using DAQ for the measurement.
The excel is not critical, I just need to get all that into a file that can be refered back to using the QR further in the process.
02-06-2017 02:58 PM - edited 02-06-2017 03:00 PM
@JLSN wrote:
I'd like to use labVIEW for some process control and I have limited knowledge of the software.
Keep in mind LabVIEW is a programming language. Do you have other programming experience? JAVA, C++, VisualBasic, Python, etc. LabVIEW is gearted twards beginners but having any experience in another language can be useful in understanding concepts.
That being said here is the basic free training link that are sent around. I'd highly suggest taking the 6 hour course, or if you recently purchased LabVIEW it came with a year of SSP support and has some good free self paced online training.
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Learn NI Training Resource Videos
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
A famous quote by Abraham Lincoln goes something like "Give me six hours to chop down a tree and I will spend the first four sharpening the axe." Diving head first into LabVIEW to accomplish your goal will likely have you going around in circles for days or weeks. Take some of the training and you'll have a better result.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-06-2017 04:41 PM
All of the above and one more:
Start LabVIEW, select File->Create Project from the menu.
There are a number of example projects you can then create and look at.
02-06-2017 10:39 PM
Two minor comments.
Bob Schor
02-07-2017 01:33 AM
Instead of Excel as .xls files, you can use a tab separated text file, .csv, it opens in Excel and it's only the data that's interesting (no picture linking or such) it's most often sufficient.
/Y
02-07-2017 07:23 AM
thank you all,
I'm mananging to get somewhere now using that advice. I'm still not sure how to get a pass or fail from known tolerances or values. Are there any examples of this anywhere?
02-07-2017 07:29 AM
What you'll want is probably under the Comparision palette. This palette compares numbers to other numbers and generally returns booleans. The In Range and Coerce is a common one that can tell if a number is in a range of other numbers. This and much more is covered in the self-paced online training.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord