echoi Posted April 9, 2012 Share Posted April 9, 2012 Is there means to access the webcam on my pc? I want to be able to start/end recording (also name the file) from DAQFactory programming. thx. Link to comment Share on other sites More sharing options...
AzeoTech Posted April 9, 2012 Share Posted April 9, 2012 Not really. If other software is doing the recording and supports some form of communication, say a command line tool, then you may be able to trigger from DAQFactory. Link to comment Share on other sites More sharing options...
echoi Posted April 9, 2012 Author Share Posted April 9, 2012 do you mean I can pass a command from the DAQFactory command line to Windows command line? If so, could you provide an example? Link to comment Share on other sites More sharing options...
AzeoTech Posted April 9, 2012 Share Posted April 9, 2012 Sure, its the system.shellExecute() function described in section 5.27 of the user's guide. I've copied the section here: System.ShellExecute(File, [Operation], [Parameter], [Path], [show]): Performs a system shell command allowing you to start other programs from within DAQFactory. This calls the Windows API ShellExecute command. File can be an executable file, folder, or a document provided the document extension is assigned to an application (i.e. MyDoc.txt would probably run Notepad). File is the only required parameter. Operation is a string and can be: "edit": launches an editor and opens the file for editing. File must be a document and not an executable. "explore": opens the folder specified in File in Explorer. "open": opens the specified File. In this case, the file can be an executable (which will be run), a document or folder. This is the default. "print": prints the document specified by File. File must be a document. Parameter is used if File is an executable and determines which command line parameters are passed to the executable. It is a string and defaults empty. Path is the default directory used. It is a string and defaults empty. Show determines how the shell will display itself. It is a string and can be: "hide": does not display the executable at all, not even in the Windows task bar. If the executable does not automatically terminate itself, the only way to stop it is using the Processes tab of the Windows Task Manager. This setting is best used when printing documents. "minimize": opens File, but minimizes it. "maximize": opens File and maximizes the window. "normal": opens File in whatever way it normally opens. This is the default setting. "noactivate": same as normal, but DAQFactory remains on top and in focus. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.