08-25-2011 03:58 AM - edited 08-25-2011 03:59 AM
I am trying to build a windows executable that will start and deploy the Scan Engine on the windows host.
When running the attached Main.vi from a LV project I can programmatically control the Scan Engine State.
When running from executable I get Error -1950679035 when reading or -2132869110 when setting the scan engine state.
The LabVIEW help states:
""Deploying and Running the NI Scan Engine (Windows) To automatically deploy the NI Scan Engine and I/O variables when a built application runs, you must enable the Include hardware configuration files checkbox on the Advanced page of the Application Properties dialog box before building the application."
But I can't find the mentioned checkbox in my build specification.
Am I missing something?
LabVIEW 2010, RT Module, RIO 3.6.0
08-26-2011 11:36 AM
Hi swenp,
on the one hand, this is probably a glitch in the LabVIEW help. To my knowledge, there is no NI Scan Engine running on the local windows host, but the Shared Variable Engine is used to pass the I/O variable data. This being said, the main reason for the errors that you receive is that you are not specifying a target IP to the "Get Scan Engine Mode.vi" and its siblings, and so these VIs cannot find a scan engine to "talk to".
So to read and write data to I/O Variables from a LabVIEW .exe, you will "only" need to have the Shared Variable Engine up and running - see Scan Engine Application Software Requirements for Target System Deployment .
Best regards,
Sebastian