代码之家  ›  专栏  ›  技术社区  ›  Thorin Oakenshield

如何在C语言中使用NI库中的VIs#

  •  1
  • Thorin Oakenshield  · 技术社区  · 14 年前

    我正在将labVIEW项目转换为C#。在我的labview项目中,我使用了NI的VI。例如 niModInstGet Installed Device Attribute(String).vi. Measurement Studio 我把司机从 IVI Foundation - > IVI - > Driver - > niModInst - > niModInst.fp Method

    现在的问题是,在LabVIEW项目中,我使用的是来自 C:\Program Files\National Instruments\LabVIEW 2009\instr.lib\niRFSG \ niRFSGExamplesSupport.llb\nfsg_FindWaveformPAramsForFrequincy.vi

    我找不到任何驱动程序文件。我在哪能找到这个。或者我需要创建自己的C函数来实现这一点。

    请帮我做这个。。

    提前谢谢

    2 回复  |  直到 14 年前
        1
  •  2
  •   Adnan Z    14 年前

        2
  •  2
  •   Mike Prosser    14 年前

    另一种方法是使用构建规范来创建共享库(.dll)。这将允许您从C#呼叫任何VI。

    有关LV 2009中构建规范的更多信息: http://zone.ni.com/reference/en-XX/help/371361F-01/lvhowto/building_a_dll/

    推荐文章