fbpx

PERL SCRIPTS IN LABVIEW

PERL SCRIPTS IN LABVIEW

As Perl is not locally upheld by Windows and LabVIEW , different instruments are required keeping in mind the end goal to execute the scripts accurately. As the scripts were produced on Linux, there was never an issue running them building up the LabVIEW application. 
Initially, we should have the capacity to execute the Perl scripts on Windows, then we can proceed onward to LabVIEW. The device I am utilizing is called Cygwin. Cygwin is a vast gathering of GNU and Open Source instruments which give usefulness like a Linux circulation on Windows and a DLL (cygwin1.dll) which gives significant POSIX API usefulness.

These steps are all you need to do to install it:
•    Download and install the version you need for your PC
•    Select the Root Directory (C:\Users\gpayne)
•    Select the Local Package directory (C:\cygwin)
•    Select Available Download Sites: http://cygwin.mirror.constant.com

At the point when selecting bundles to ensure you select Perl(under Interpreters Group) and ssh (under Net Group) bundles. 
Guaranteed to add the easy route to the desktop. Once introduced, running the easy route on the desktop will open a terminal. The PWD order will give you the area and ought to be the same as set by the Root Directory above. Make a Perl script in that catalog 
To execute an outer application from LabVIEW, one path is to utilize the System Exec vi. This spreads executing the application/script, however, Windows is still not ready to run a Perl script in the event that it is just called. The bash help records are additionally useful so from the terminal sort bash – help or bash – c “set”. 
This would execute the Perl script with bash running in Mint. This was all great until the standard yield was not being accounted for back to LabVIEW
This is effectively explained by funneling the standard yield from the script to a record and after that get LabVIEW to peruse the document once the script exits. This adds an additional progression, yet by executing the script thusly, it runs and exits neatly without fail, being a great deal more dependable than utilizing the clump document.

Share this post

Share on facebook
Share on google
Share on linkedin
Share on twitter

Latest From Blog

Semiconductor Testing

Automated test equipment (ATE) is a computer-controlled test and measurement equipment that allows for testing with minimal human interaction. The tested devices are referred to

Read More »

Subscribe to our newsletter​

Skip to content