LV Create Simulated USB6008 to try out a Project Template for Measuring and Logging

Used a LabVIEW(r) New Project using a Template for Measure and logging which need a device. Create a simulated device using NI NI_MAX . Some Modification for LV2019 Base version.

Notes

  • Presentation on Creating a simulated 6008 device to use new project created using NI project template “Continuous Measurement and Logging (NI-DAQmx)” with LV2019 Base version
  • Create a simulated USB6008
  • Using a starting project template
  • Modified for LV2019 base to try out.
  • Limitation: If you want to have different number or colors for each die another method is needed (method show are for Boolean Pass/Fail)
  • Hint: Cluster of Boolean for Dies arranged as a Reticle (Possible next presentation)
  • Programming Language used: LabVIEW® 2019 Base version
  • LabVIEW® and NI-MAX are NI (formally National Instruments) products
  • Presentation app: Microsoft’s PowerPoint
  • Presentation shown to spark ideas of use.
  • This presentation is not connected to or endorsed by any company.
  • Use at your own risk.
  • Use NI website for help with simulated device for “Create Simulated NI-DAQmx Devices in NI MAX” for more info.
  • Tags: LabVIEW® , DAQmx , Project Template, LV2019, Simulation Device, USB6008, NI-MAX
Posted in Test Sector | Tagged , , , , , , | Leave a comment

LV Wafer Display (Reticle and Die)

Presentation on possible way to display Wafer (Reticle and Die)

Posted in Test Sector | Tagged , , , , | Leave a comment

LV Some Basic 8bit (boolean) array opeartions

Showing some basic operation on 8bit Boolean array using LabVIEW(r)

Note

  • Presentation on Some basic operation on 8bit (Boolean) Array.
  • Programming Language used: LabVIEW® 2019 Base version
  • LabVIEW is a NI (formally National Instruments) product
  • Presentation app: Microsoft’s PowerPoint
  • Presentation shown to spark ideas of use.
  • This presentation is not connected to or endorsed by any company.
  • Use at your own risk.
  • Tags: LabVIEW® , Array, Reverse, Rotate, Split, Boolean to Num
Posted in Test Sector | Tagged , , , , , | Leave a comment

LV Json Example Use

Create Json of LabVIEW(r) control and Save to file.

Notes

  • Presentation on Json Example use.
  • Programming Language used: LabVIEW® 2019 Base version.
  • LabVIEW® is a NI (formally National Instruments) product.
  • Presentation app: Microsoft’s PowerPoint
  • Presentation shown to spark ideas of use.
  • This presentation is not connected to or endorsed by any company.
  • Use at your own risk.
  • Tags: LabVIEW® , Json, Flatten to Json, From Json, Json Example
Posted in Test Sector | Tagged , , , | Leave a comment

LabVIEW(r) Preload an Enum with a String Array

Sometime you need to have an enum a many items and you already have a string array of what you want in the enum

You cannot use the string[] directly in the same vi the new enum is located because Write String[] only works in NON Running mode (Edit mode) so you need another vi that does the String[]

See the presentation below to see how to do it.

LabVIEW(r) is a software product of NI (formally National Instruments)

Notes

Presentation on Pre loading and Enum before use.
Programming Language used: LabVIEW® 2019 Base version
LabVIEW is a NI (formally National Instruments) product
Presentation app: Microsoft’s PowerPoint
Presentation shown to spark ideas of use.
This presentation is not connected to or endorsed by any company.
Use at your own risk.
Tags: LabVIEW® , Enum, String[] and Loading Enum via String[]

  • Presentation on Pre loading and Enum before use.
  • Programming Language used: LabVIEW® 2019 Base version
  • LabVIEW is a NI (formally National Instruments) product
  • Presentation app: Microsoft’s PowerPoint
  • Presentation shown to spark ideas of use.
  • This presentation is not connected to or endorsed by any company.
  • Use at your own risk.
  • Tags: LabVIEW® , Enum, String[] and Loading Enum via String[]
Posted in Test Sector | Tagged , , , | Leave a comment

LV Tabs is not an enum

Presentation on Tab pages (not the same as enum)

Notes

•Presentation on Tabs and Array of Tabs constants

•Programming Language used: LabVIEW® 2019 Base version

•LabVIEW is a NI (formally National Instruments) product

•Presentation app: Microsoft’s PowerPoint

•Presentation shown to spark ideas of use.

•This presentation is not connected to or endorsed by any company.

•Use at your own risk.

Tags:  LabVIEW® , Search 1D array, Index Array, Tabs, Typedef, Build Array

•A Possible solution provided.

•Yes you can combine the Tab Name string and the Tab Page string  into cluster array

Posted in Test Sector | Tagged , | Leave a comment

LV StandAlone or in SubPanel

Presentation on determining if running VI as standalone or in a SubPanel

Update

Updated vi to verify when running. Closeable still works when developer selects Allow user to Open Diagram

First check as Stand Alone

Next test if developer enable “Allow user to Open Diagram”

Yes, still works even if user selected Allow Open Diagram (odd, I think it did not work for me in LV2015 some time ago, LV2019 its ok)

Notes

•Presentation on Determining if VI is running stand alone or in a subPanel

•Programming Language used: LabVIEW® 2019 Base version

•LabVIEW is a NI (formally National Instruments) product

•Presentation app: Microsoft’®s PowerPoint

•Presentation shown to spark ideas of use.

•This presentation is not connected to or endorsed by any company.

•Use at your own risk.

Tags:  LabVIEW®, Subpanel, Standalone VI, FrontPanel Closeable Property, Open vi Reference, Run VI method, Abort method, Is Vi standalone or in SubPanel, Allow user to Open Diagram

Posted in Test Sector | Tagged , , | Leave a comment

LV MultiColumn List Box (MCLB)

Presentation on Multicolumn List Box (select 1 and Scalar Datatype

Note

•Presentation on LV MultiColumn List Box 

•Programming Language used: LabVIEW® 2019 Base version

•LabVIEW is a NI (formally National Instruments) product

•Presentation app: Microsoft’s PowerPoint

•Presentation shown to spark ideas of use.

•This presentation is not connected to or endorsed by any company.

•Use at your own risk.

Tags:  LabVIEW® , MultiColumn List Box , MCLB, Item Symbols, Custom Item Symbols, Top Left Cell, Item Names String Array

Posted in Test Sector | Tagged , , , | Leave a comment

LV Enum and String

Presentation on Enum to String and String to Enum

Notes

•Presentation on Enum to string and String to Enum

•Programming Language used: LabVIEW® 2019 Base version

•LabVIEW is a NI (formally National Instruments) product

•Presentation app: Microsoft’s PowerPoint

•Presentation shown to spark ideas of use.

•This presentation is not connected to or endorsed by any company.

•Use at your own risk.

Tags:  LabVIEW®, Format to String, Scan From String, Compound (AND) operation, String to Enum Checking, Testing that a string matches elements in enum.

Posted in Test Sector | Tagged , , | Leave a comment

Python Example Testing Functions , Running Test List, Mini Test Report (not Gui version), Only Console result.

Showing use of functions and running sequence via list, with a mini Test report function

List had Test function to run. Example Tests_seq=[component,electrical,optical,OE,EO]

The OE test result in this example has a random result output which helps develope code for different result outputs. Example Result=[“Pass”,”Fail*”,”Error”] .

Python 3.7 using Spyder

# -*- coding: utf-8 -*-
"""
Created on Sun Oct 20 12:48:27 2019

@author: aleja
"""
import random

def component():
    print("Running Component Test")
    return ("Pass")
    
def electrical():
    print("Running Electical Test")    
    return ("Pass")

def optical():
    print("Running Optical Test")
    return ("Pass")  
  
def OE():
    print("Running OE Test")
    return (random.choice(Result)) #random result

def EO():
    print("Running EO Test")
    return ("Pass")     


def Test_report(TestN,TestR):
    CSPs=["15","30"]
    CSPF = "{:<"+CSPs[0]+"} {:<"+CSPs[1]+"}"
    print("\n==========================")
    print("===== Test Report ========")
    print("==========================")
    Test_Header=["TestName","TestResult"]
    Test_HeaBar=["********","**********"]
    print (CSPF.format(Test_Header[0],Test_Header[1]))
    print (CSPF.format(Test_HeaBar[0],Test_HeaBar[1]))       
    for i in range(len(TestN)):
        print (CSPF.format(TestN[i],TestR[i]))



Tests_seq=[component,electrical,optical,OE,EO]
Test_enables=[1,1,1,1,1]
Result=["Pass","Fail*","Error"]

Test_Results=[]
Test_Names=[]
for Test in Tests_seq:
    Test_result=Test()
    Test_Name=Test.__name__
    print(Test_Name +"  TestResult:         " + Test_result)
    Test_Results.append(Test_result)
    Test_Names.append(Test_Name)
    
print(Test_Names)
print(Test_Results)

FailedList=["Fail*","Error"]



if ("Fail*") in Test_Results:
    print ("\n*Overall Result: Failed")
elif("Error") in Test_Results:
    print ("\n***Overall Result: Incomplete")
else:
    print ("\nOverall Result: Passed")    


Failure_detected=any(x in Test_Results for x in FailedList)
if (Failure_detected):
    print ("Check for Failure or Imcomplete")
else:
    print ("Test Passed")
    
Test_report(Test_Names,Test_Results)    

results from Ipython console in spyder

runfile('C:/python/TestsSeq/Test Seq by function.py', wdir='C:/python/TestsSeq')
Running Component Test
component  TestResult:         Pass
Running Electical Test
electrical  TestResult:         Pass
Running Optical Test
optical  TestResult:         Pass
Running OE Test
OE  TestResult:         Fail*
Running EO Test
EO  TestResult:         Pass
['component', 'electrical', 'optical', 'OE', 'EO']
['Pass', 'Pass', 'Pass', 'Fail*', 'Pass']

*Overall Result: Failed
Check for Failure or Imcomplete

==========================
===== Test Report ========
==========================
TestName        TestResult                    
********        **********                    
component       Pass                          
electrical      Pass                          
optical         Pass                          
OE              Fail*                         
EO              Pass                          

Notes:

  • This presentation is to show a possible starting point for python Testing using functions and calling functions via a function list.
  • This post is not connected or endorsed by any company.
  • All company names are trademark of respective company.
  • Created to spark ideas on the subject.
  • Use at your own risk.

Posted in Test Sector | Tagged , , , , | Leave a comment