dll call problem

I would use .dll files that have been developed for another application.

I use TS 4.0 which is recognizing the function of the dll, but when try to run it it does not work.

I thought that it is not so simple, I've attached to specify a part of module.

Any help would be appreciated.

Thank you

Dear all,

Thank you for your efforts in trying to help me to get out and find a solution.

In the meantime, the problem has been resolved.

The csAudio.dll is an interface between the original application and a DLL that has the function complete as an executable file.

I saw this for the first time, I could see only csAudio.dll.

The other DLL (an audiotester) has a function that uses the settings. One of them is a pointer to a string of zero completed (CString).

The other two:

-ReceiveBuffer is a variable passed that will be filled by the DLL and contains the results of
the DLL.

-ReceiveBufferLen is an integer variable that contains the length of the string buffer.
The result of the DLL should be zero.

The only problem still exist it is that if I call this DLL to stop TestStand freezes.

So I skipped this step and it seems that TS closes and unload the DLL function when finished sequence.

Best regards

kopisti

Tags: NI Software

Similar Questions

  • In the c# dll call problem

    Hello

    I am new to c#, but I have to write DLLs to LabVIEW that reads the information on windows processes. I prepared the code (work as a Win32 application), it built as a dll and call the library function to call it. I tried another code in C language before and it worked fine. But when I do the same with c#, I have an error in LabVIEW:

    "The name of the function specified for this node is not found in the library. Click the node to call a library function and select Configure, and then choose the name of the correct function. »

    The function I created (I've pasted below this post) a functioning but LabVIEW does not see. Do you have any idea how to solve this problem? I couldn't find a tutorial for c# and LabVIEW, I saw some for c# and I it should work.

    Best regards

    Piotr

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Diagnostics;
    using System.Threading;
    using System.Xml.Linq;

    namespace GetProcessDataLib
    {
    public class ProcessData
    {

    public static String GetProcessDataFunction (out string result)
    {
    String xmlOutput = "";
    Try
    {
    code example
    }
    catch (Exception ex)
    {
    Console.WriteLine (example) Message + "\r\n" + ex. StackTrace + "\r\n" + ex. Source);

    xmlOutput = "";

    }
    result = xmlOutput;
    GetProcessDataFunction (without result);

    return xmlOutput;

    }

    }
    }

    Piotr.Zawistowski wrote:

    Hi Nathan,

    Thanks for the reply. I'm new to c#... I don't know I tried to:

    1 / create DLLs with Visual Studio Command Prompt (32 and 64). I used this command:

    csc/target: library / out: GetProcessDataLib64.DLL GetProcessData.cs

    2 / create DLLs to be taken automatically during construction.

    CSC is the compiler C Sharp and will create a default .net assembly, not a Windows DLL function. If you need to use the .net features in LabVIEW to access. And in any case this source code you can not create a Windows DLL function directly since there is no exportable function in there, but only the .net objects.

    And Nathan, C(++/#) compilers do not create header for the dll files. These header files must be created by the programmer creates the source code of the DLL.

  • The DLL call fails when DLL uses a wide range

    I call a C++ dll in LabVIEW 32-bit on Windows 7. I kept getting error 1097 and finally understood it is because the dll uses two large paintings of 5 MB each. The tables are initialized in the constructor of an object, malloc is not used, or whatever it is. If I do the smaller berries, then everything works fine.

    The problem is not difficult to work around, now that I know what is the cause, but can someone tell me why a dll using a lot of memory would be a problem? I feel that 10 MB is really a lot of memory to use on modern computers.

    OK, you can test the appeal of the DLL in a Visual Studio test harness?

    In addition, in case you haven't seen another 'DLL error 1097' son type, here are a few. The cause of 1097 in your case can be illuminated by a multitude of courses of troubleshooting:

    Call dll error 1097

    Error code coming 1097 in DLL call

    error 1097 after the call dll function that allocates memory inside

    1097 error in the transition from table from C++ DLL for LabView (seems very relevant, although long)

    I know there are a lot of reading, but there is a good chance that the magic trick is in one of these threads already. We will ride on the shoulders of their work.

  • problems in C++ dll call

    Hi, I compiled a dll in C++ to write data in a shared data segment, and it works well in Labview. Then I try to call the Dll in C++, it can be built successfully, but will break in the end. I have this problem since almost a whole day and could not find the solution.

    Here are the source files for my Dll and the program calling dynamically.

    DLL:

    Calling program.

    Problem solved.  The work for Labview and C++ dll must be like that. The shared data segment must also be declared as funtion and with 'extern 'C' ' coming. In addition, Labview can read only pointers from dll.

  • The VISA almost a DLL call

    Well, I need to do some tasks finishing with LabVIEW objects inside my DLL. One of these objects is VISA serial port session. In LabVIEW, I can just call VISA VI close and everything goes OK. But in the DLL, it's complicated things because I can't see codes sources (or schema) near visa. I found some information that could use the visa32.dll viClose function in the LabVIEW folder or system32 directory. But when I try to use it with a simple casting to INT32 and passing to int32_t viClose(int32_t objectHandle); It goes to the error on the next launch of the program. Then look at this diagram:

    First the program works allright. Second time, it throws the following error:

    The program works fine with standard close VI of VISA. But it is impossible to use it inside my C++ library. Then I started thinking, appellant viClose simple is not enough for a proper clean-up of resource VISA. I tried viTerminate before viClose, but the problem remains the same.

    So, how can I log VISA properly in the DLL? Perhaps, it is better not to close it at all? There may be memory leaks that...

    Hi Dadreamer,

    I looked this error and we might be able to fix it by closing the VISA sessions automatically. See this knowledge base article for instructions of the environment of LV:http://digital.ni.com/public.nsf/allkb/A2561CDE98B66DD4862566510078264F?OpenDocument. The corresponding section:

    "

    • "In LabVIEW 8.x, select Tools ' Options to display the Options dialog box and select environmentfrom the category list page. "To disable the option, remove the check mark from the check box close automatically to the sessions of VISA and click on the OK button.

    Let me know if it works.

  • Driver dll call

    I am writing a LabView program to control a card scanner. The manufacturer provided a DLL and some examples of C/C++ code for this.  My problem is to find a way to pass the handle from driver in LabView.  C code to call this dll looks like this:

    # define drv_handle void * / / this is the header

    drv_handle hDrv; Returns the handle to the open pilot or NULL in case of error
    hDrv = spcm_hOpen ("/ dev/spcm0"); string the driver to open

    I can get the card to initialize correctly. I can't understand how to move the vacuum * through LabView in other functions.  Any suggestions or places to watch?

    That would have to be a "pointer size whole." signed or unsigned any really, but you should definitely maintain coherent and personally, not signed.

  • Under .dll call of Mobile 6 PDA

    Hello

    I wish I could call a .dll in a SW developed on LabVIEW PDA and I have a problem with regard to the opening of This that me is provided by United Nations levels.

    FYI, I know that it is possible to make such an action (what we already inside of this application) but I want to know it is the necessary details about building the DLL.

    Indeed, should activate parameters specific to the level of the compiler (or other)?

    Pour info: the dll that does not work is generated Microsoft Visual C++ 4.0 integrated on an ARMv4 target (the PDA is ARMv5 TE normally backwards compatible)

    PS: question subsidiary-online is it possible under LabVIEW PDA call an EXE? (IE like what you can do in windows via the call to the command line).

    Thank you.

    Hello

    Calling external code (.exe or .dll) since a VI LabVIEW PDA is not as simple as for a classic VI.

    The two following privileges (and privileges which are mentioned) should be helpful to you:

    Launch an external program of LabVIEW Mobile or Application of Module Touch Panel
    http://digital.NI.com/public.nsf/allkb/8F811FFA7BACEC2486256FC5006DB821?OpenDocument

    Calling external Code in LabVIEW PDA and touch screen
    http://digital.NI.com/public.nsf/allkb/517300B49212795986256DDD00623FEE

    Kind regards

  • From two hexagonal numbers as a variable byte in dll calls

    I imported a DLL, which works well when it was called by C++ codes.  However, a few screws converted did not work properly.  The original functions were supposed to write a set of two hexadecimal numbers (one byte in size) to an address specified in the form of two characters.  Somehow after these functions have been converted to screw, they wrote the first hexagonal number and ignore the rest.  My speculation is that, given that this variable is declared as a type byte, the VIs may only take the first hexadecimal digit as a character (also a byte in size) and ignored the following hexadecimal number.  Has anyone ran into similar problems?

    Configure the setting in COLD LAKE to be a U8 integer instead of a string.

  • DLL calling convention set-match?

    I'm convering an application in a DLL and everything seems to work except when I call it from a stub application I get a Non-fatal runtime error "CVI has detected and the inconsistency of the execution stack" Debugger dialog box when the DLL function returns.

    My heel is using the following to load the function:

    prototypes:

    HINSTANCE hInstSAE;
    typedef int(* x_calcSAE) (int, int * short *, char *, CXP_PARAM *);
    x_calcSAECG calcSAE = NULL;

    then in main():

    hInstSAE = LoadLibrary ("SAE.dll");
    If (hInstSAE)
    calcSAE = (x_calcSAE) GetProcAddress (hInstSAECG, "CAS");

    My DLL export function is declared:

    int DLLEXPORT sae DLLSTDCALL (int N, int * r, short * data, char * ID, CXP_PARAM * Param);

    How can I delete the error?  It does not appear to be a problem, because if I click on continue and calling other than bad going on nothing other than the popup of debugger on each return.  How can I get a stack dump to see what Setup before the call and the return?

    Hey wally.

    My guess is that you need to change your typedef to the following:

    typedef int (* DLLSTDCALL x_calcSAE) (int, int * short *, char *, CXP_PARAM *);

    Generally, the default value used by convention to call CVI is __cdecl, which does not match your function prototype __stdcall calling convention.  This means that if you do not specify a calling convention for your function pointer, the __cdecl calling convention will be used.  You must update the function pointer type to match the declared function prototype.

    NickB

    National Instruments

  • iPhone over Verizon's LTE 7 / coward calls problems

    I've recently upgraded from Android and buy my first iPhone. I like the phone, but it seems that the connection of data/LTE is horrible on the phone. I am constantly finding my phone is stuck on the 1 x or 3G connection and not being able to catch LTE in places I know are a LTE connection. In addition, sometimes my iPhone will drop calls. When I am I'm in my apartment, so I turned on wifi my component wifi works well, but other places, it deletes the call. Not sure if this is related to the issue of LTE connection. Does anyone else have this problem on Verizon?

    I'm in my Exchange/return policy so I don't know what I have to do.

    Have exactly the same problem: iPhone 7 more 256 GB Black Verizon. Pre-order the phone got on 21 September and after a few days without service drops to 3G and stays there until the toggle airplane mode or reset network. Went to Verizon 23 got a new SIM card and after a few hours, the problem came back. Next day went to Apple told them the problem they did exchange of unit that had to be ordered because he had no stock and 27, I got the replacement phone first day that it was quite good, but the second day, all the problems are back this time the phone has a whistle as well... so on September 30 , brought the phone to apple as well as the box and they said they can get a me another replacement and I refused it not knowing not if its released State and requested a refund, but Engineering did not repay because the serial number is different from the box. Fortunately, I chatted with Apple the previous day and received the email and talked to the Manager and eventually returned the device.

    Back to my iPhone 6s now and no problems with the service even with VoLTE on. Don't miss the iPhone 7 more size and stereo speakers, but I'll wait until all the bugs and hardware issues are fixed before ordering again!

    I had an iPhone 5, 5s, 6: 6 without any problems until one. I returned mine because they gave me a replacement not retail box with the same question. I want to keep the phone but has returned to be sure whether a hardware problem is present they will fix it on the line, so I'm going to order a new one.

  • ".dll" and problems with my satellite A30 101 Power Saver

    Hello world

    Who can help me, I have two doubts. The first is, I don't always get on three messages when it starts. Will take you to my second problem. The power mangement. It is said 'E-Power Power Management' when I click ok, another message comes to say, '... No data. The Toshiba Power Mgmt system is no longer appearing in the Notification bar. It does not work.

    What can I do about these difficulties?
    Thank you

    Dejen

    Hello

    You forget to mention what are the names of the dll-files :). But still, even with the names he cannot drive anywhere. First suggestion: run a full! ScanDisk on your primary partition (usually drive c :)). The lost files could come from the fact that your data are damaged somehow. Second, try to uninstall the Add/REMOVE program section powersaver module in the control panel. After you have uninstalled, try to install again.

    Good luck

    Tom

  • Video call problem

    Hello
    My problem is this: when I start calling with my girlfriend my cam just freeze and stop recording. Problem is, it's hapenning only, when I call with GF. I tried to call someone else, and my camera works perfectly. Skype detects camera all the time in the settings. GF camera works properly and we can hear each other, but she can't see me.

    Strange, that is, that the problem just appeared one day. We were video calling each other on a daily basis. No common solution on the help page does not seem to help.

    Advice, tips or tricks?

    EDIT: DxDiag.txt added

    I've updated Windows, but it solves the problem.

    With the new camera, everything works perfectly.

    Thank you very much for the help. I appreciate it.

  • Problem of Skype calls groups calls problem/video group

    Hello

    I use Skype on Samsung Galaxy A5 (A500FU) and I can not start a group call / or call groups like the button 'call' in the upper right corner is missing. Same problem with group video calls (call button is missing).

    I use the latest version of Skype for Android - 6.33.0.575

    Any ideas?

    Thanks in advance

    Skype has solved the problem in version 7.01.0.669 of 31.05.2016. After the update the Group calls (video & audio) work correctly.

    I must say that I am really impressed with their customer service. I explained the problem in detail and in the next update, the problem has been resolved. All people using Skype on Samsung Galaxy A5 will be very happy

    Thank you

  • 6 sec more wifi calling problem

    Hello

    I hope someone can offer a solution for the problem I have with wifi-calling.  I would try to explain the problem.   When connected to wifi, when I get a call I hear the first notes of the ring... then stops immediately and I see 1 missed call, then on the second ring once more I heard the first note of the ring, then the phone displays 2 missed calls, that this continues with each ring until the caller hangs up.  Now, it happens not every time, but enough times to be a problem.  Initially, I contacted Apple and worked with a SR. Tech.  Apple has agreed this was a problem (I was at the Genius bar and the technician was able to experience the problem I had).  Apple has agreed to Exchange my phone.  I have install new phone, then restored my content.  Once more, I have the same problem.

    Now my wife and all two got the same phone iPhone 6s more 16 G using the AT & T network.  It's nothing wrong with wifi calling.  My thought is that maybe there is an application that is the cause of the problem, but don't know if this is possible.  I tried to google my problem but couldn't find anything which apply.

    Any ideas?

    Thank you, Ken

    Backup your phone to iTunes

    Restore like NEW - no backup

    See if the problem is recurring

  • motorcycle g, heating during calls problem

    How can I stop bike g third-generation phone to heat as the iron during a call?

    Additional information: 1. He has spent time in motorcycle duringsleep-game.

    2. He gave me blister on my face.

    If this happens on all phone calls, I suggest that you go in safe mode and test the call there. If you can't find hot, then you have a rogue application which is causing your problem.

    Please also asked what crystallet. Thank you and I hope this helps

Maybe you are looking for