NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Using VI Server to set a Timeout for the System Exec VI in LabVIEW 8.5.1

VERSION 1

Created on: May 12, 2009 10:54 AM by Manooch_H - Last Modified:  May 12, 2009 11:49 AM by Manooch_H

Functional Description

The attached zip file contains four files: two VIs and two global variables. This example demonstrates how one could use VI server to specify a timeout for a VI that otherwise does not provide that functionality. In this case, the SysExecCall VI uses VI server to call the dynamicSysExec VI which makes use of the System Exec VI to check the contents of the C directory. The timeout value specified in the SysExecCall VI is equal to the number of iterations multiplied by the loop time.

 

 

Caveats and Additional Notes

Because the SysExecCall VI uses VI server to call the dynamicSysExec VI, the SysExecCall VI requires that the path to the dynamicSysExec VI be provided prior to running.

 

SysExecCall.vi

sysexeccall.png

 

dynamicSysExec.vi

dynamicSysExec.png

 

Downloads:
Average User Rating
(1 rating)




There are no comments on this document