Dieser Inhalt liegt nicht in Ihrer bevorzugten Sprache vor.

Der Inhalt wird Ihnen in einer anderen verfügbaren Sprache angezeigt. Ihr Browser bietet ggf. Funktionen, die Sie bei der Übersetzung des Textes unterstützen.

Error 7 When Running My Executable With Write to Measurement File

Updated Jan 13, 2023

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.