Error 7 When Running My Executable With Write to Measurement File

Updated Jan 3, 2018

Reported In

Driver

  • NI-DAQmx

Issue Details

Why do I get Error 7 by running an EXE that uses the Write to Measurement File Express VI? The VI successfully runs in LabVIEW and there were no errors during the building process.
 

Solution

To prevent the error from occurring, you can do one of two things:
  1. Do not wire anything to the DAQmx Task terminal of the Write to Measurement File Express VI.
  2. Include the file <labVIEW>\vi.lib\Platform\express \ex_EditUserDefinedProperties\ex_getDAQmxChannelPropertiesCore.vi in the build.

Additional Information

Error 7 occurs when you run the executable because when there is an input for DAQmx Task  ex_getDAQmxChannelPropertiesCore.vi is dynamically called. If this VI is not included in the build, the executable will not find it and returns Error 7.

WAS THIS ARTICLE HELPFUL?

Not Helpful