Jump to content

farzane lk

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0

About farzane lk

  • Rank
    LAVA groupie

LabVIEW Information

  • Version
    LabVIEW NXG 2.0
  • Since
    2017
  1. Hi again, sorry for the late reply. Thanks for the guidance. I tried editing the STIM.h and the error didn`t disappear. it is still: "Error using loadlibrary" "Building STIM_thunk_pcwin64 failed." but now the error refers to the "oncleanup" function, that is called for ending a function. I have attached the oncleanup.m and the error I`m getting. (its location was in matlab\toolbox\matlab\general\). Seeing the error, it made me wonder if anything would change if I actually connect the device. (till now I was just trying to make the "loadlibrary" command work.) onCleanup.m
  2. Hi, I attached the error I get. and about the visual studio, yes I had reinstalled and selected the option. and it is selected in Matlab.
  3. Thank you for the code. The good news is adding these 3 lines you gave me to the platdefine header`s list of "possible values" and editing the If, removed the former errors. YAY!!! #define _Win64 1 //if 64 bit #define __x86_64__ // and again, this might be the gcc version or something? #define _MSC_VER 1900 // just a guess, this is ms visual c 2015 BUT Now I receive a bunch of errors (syntax). With the main error of "Building STIM_thunk_pcwin64 failed." 😣 Googleing showed that the Matlab compiler is not properly making the "STIM_thunk_pcwin64.dll". There were solutions of changing the dll or the CPP file, which I`m too naive or too overloaded to understand now. Thanks again✋
  4. Hello I have received a LabVIEW dll and the corresponding header files so that I can send a trigger to a skin stimulation device. when I use the loadlibrary command in my Matlab script, I receive these two errors: "We don't know the Compiler" and "We don't know the ProcessorType architecture" Which means while reading the "platdefines.h", the Compiler and the ProcessorType does not match the ones listed in ifs. I have set c++ compiler to visual studio 2015 in Matlab. (also tried MinGW). the system I`m using is Windows 10 (tried on 7, too), 64bit. I read somewhere that manually defining the ProcessorType and the compiler might solve the issue. But the problem is I Don`t know what they are. (when these two conditions below are not accepted.) #elif defined(_MSC_VER) || defined(_NI_VC_) #define Compiler kVisualC #elif defined(_M_X64) #define ProcessorType kX64 -------------------------------------------------- How should I find out the ProcessorType and the compiler I have? I`d be EXTREMELY THANKFUL for any solutions you can think of. P.S.1 I attached all the headers and the Matlab error.jpg P.S.2 The code seems to work fine on manufacturers system with Matlab 2011. so it may be Matlab-related, but I don`t get how since the error is from platdefines header file. extcode.h fundtypes.h hosttype.h ILVDataInterface.h ILVTypeInterface.h lv_epilog.h lv_prolog.h platdefines.h STIM.aliases STIM.dll STIM.h STIM.ini STIM.lib
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.