Perl Scripts in LabVIEW

You are here

27 November
0
  0

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.

 

Latest From Blog

Semiconductor Testing
12 December 2017 | 0 comments

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

[Read more]
SUBSCRIBE TO OUR NEWSLETTER

About

“ReadyDAQ provides a customizable LabVIEW solution which is both time saving and affordable”. 

 

The team – ReadyDAQ has a dedicated team of physicists, electrical engineers, and programmers who work to provide a data acquisition solution for any project in different difficulty levels.

CONTACT INFO

  • Address: Matam - Scientific Industrial park, Building 23      Haifa, Israel
  • Phone: +972 72 250 5555
  • Mail: info@ReadyDAQ.com