DLL to 6008 OR teststand

Hello

Since 2 days I struggled to find a dll or lib that I can use without any problems for control card NI USB-6008. I don't know if it is possible to order usb teststand.

All I could find was:

- NIDAQmx.lib file. When I tried to use most of the function with test bench, giving following error "user information parameter type or not recognized by teststand.

- NationalInstruments.DAQmx.dll , which is a .net dll. The problem here is that if I need to call a function within a subclass of a class (for example class X has an object of class Y and I call x.y.functionInsideY ()) which is not possible in TestStand (?).

Please report if you know the solution.

Concerning

RB

Hi RB,.

the problem we have here, is that Teststand isn't a programming language and you can't communicate with the hardware directly. It will not work.

It seems to me that you want to communicate with the hardware driver (in this case DAQmx) in Teststand. This isn't how it works.

What you have to do is to write a module of code in CVI or .net, which interface with the driver and acquires data. Then you create a dll or a this code .NET assembly and that is that you can include in Teststand. You have encapsulated in the dll or Assembly pilot communication and Teststand calls just this 'wrapper '.

Cheers, RMathews

Tags: NI Software

Similar Questions

  • Need to frontend.dll for 64 bit TestStand 2014

    Hi all

    I get an error during indexing, I think I changed something in the directory then it asks x64\frontend.dll file that I could not find anywhere.

    I found frontend.dll for 32 bit, but not for 64 bit.

    I also tried to uninstall teststand 2014 and install it again. Same problem, I directed to

    Need Suggestions

    Thank you

    You might have a custom version of FrontEndCallbacks.seq in your public directory? If so, it is perhaps where it isn't finding the 64-bit version. You should be able to copy from the installation location to C:\Program NIUninstaller Instruments\TestStand 2014\Components\Callbacks\FrontEnd as far as your custom version is in your public directory. Or remove your custom so FrontEndCallbacks.seq you do not use it.

    Hope this helps,

    -Doug

  • Receive data at teststand dll file

    Hello

    I have the function below in my dll file but I have a problem receiving parameters to teststand.

    int GetEvent (pid int, char * msg, int & msgSize)

    PID is the input parameter

    * msg will be the received string

    & msgSize will be the length of the received in full force.

    Any idea on how to address this problem?

    Concerning

    Ray

    Hello Ray,

    Are you accommodation TestStand using the type definition to set the function parameters in your call TestStand DLL? If so, TestStand generally expected of the input strings to be of type ' char *' and the output of the channels to be of type "char [x]", where x is a default size. It can also be simply 'char []').

    Alternatively, you can substitute TestStand think is the prototype of msg and change string TestStand type C (const) to the C string buffer in setting property settings. You must also give the buffer of a default size that is larger than you would expect to receive in the field of memory size buffer.

    Note that refreshing the prototype resets this substitution, so change the type library in the source would be preferable.

    I hope this helps.

    -Jack

  • Reminder of control not found in the DLL

    I write a DLL for use in TestStand using panels in a .uir file. Callbacks for controls are in the source file for the DLL. In another DLL function, I call LoadPanel to put the Panel in memory and I get an error saying: he cannot find the callback function to the controls on the Panel.

    I am at a loss as to why this is happening. The prototype of the function is in the header generated from the .uir file. This file is included in my DLL source file and callbacks for all controls are also in the DLL source file. Everything compiles fine, it fails at run time.

    Am I missing something here? I used the UI stuff in DLLs before and don't remember ever having this problem.

    I use CVI 7.1.1 and TestStand 3.1 (mandated by Government subscriber).


  • TestStand / CVI in conflict: the project directory

    Hello

    I have TestStand 4.2, LabWindows/CVI 8.5, Windows XP.   I'm testing a DLL created in CVI, which uses the 'GetProjectDir()' to create a basis for work.

    When this DLL is exercised by a C program, it detects the directory of the project, C:\sandbox, which the program is run from.

    However, when I have exhausted the same project (C:\sandbox) TestStand directory it finds instead the project as directory is C:\Program NIUninstaller Instruments\TestStand 4.2\Bin\

    This is obviously not an acceptable way to build and work with files and temporary directories.

    This continues to happen even if I created and launched the file in sequence from the directory "correect" (C:\sandbox)

    How can I make testStand join BCI on what is the project directory?

    Thank you

    Hi rjohnson,.

    The reason that you are experiencing this issue, is that the GetProjectDir function gets the directory containing the executable file, so when we run the TestStand DLL, it captures where TestStand is performed.  You can use the GetModuleDir function:

    char path [MAX_PATHNAME_LEN];
    GetModuleDir (__CVIUserHInst, path);

    This should give you the desired path.

  • LabWindows 2015 Titlebar UIR classic and not shown as classic Panel

    LabWindows/CVI 2015, complete development system, Version 15.0.0 (413)

    In my test code, I put in a DLL to call from TestStand, I a UIR displayed when I need the user to return a switch on the test station. I have the title bar of the Panel, established in the Visible and the classical style. Which seems, in the LabWindows/CVI development window, with the title centered at the top of the Panel. However, when I have the window that appears, by using either an executable LabWindows or LabWindows DLL function call to TestStand, the Panel is not displayed as classic. The title is left justified at the top of the window. The code, indicators and controls work fine. It all works on a functional level, I prefer the look of the Classic (centered title) sytle.

    Is there some files that I need to include in the project / linker to have the Panel located in the classic style?

    NOTE:

    If you're wondering what I did to the uir:

    I realized, after removing the code that is not relevant to this discussion, the code that I use. The IUR is a laminated board. For the rings around the switch, I have layered the outer ring, inner ring and then the switch (up and down). For the text, I created a text box to place text inside. I could not determine just how to put text on the screen without using a text box. However, I couldn't put the framework of text box to zero or change the color. So I placed a decoration of chassis on the text box frame and changed the color of the background color decoration to give the illusion that the framework of text box is not there. When I run the code, although the text boxes have been defined as indicators, when the user has placed their mouse on the text box, the box would move slightly and highlight the text or the framework for this kind of thing. The user could not change the data, but it annoyed me. To get rid of it, I placed a decorative box on all of the panel layout interior color to transparent. In this way, said he layered on the text boxes so that text boxes don't behave oddly. Finally, I put the control in FACT on top of that, so that the user could say the test program when the switch of the test station has been configured according to the needs. Also, the omega symbol uses the value transparent background image control.

    Unfortunately, the classic title bar, is visible (observable) for signs of the child only. For parent panels, it is the Windows setting that determines the display of the title bar.

  • Error in call to LoadPanelEx

    I get an 'Error in the call to LoadpanelEx' error when running the application.

    Based on the post here I the determination of objectives-> need to export, the value "symbols marked for export. I created the output DLL.

    In teststand, that the error in the step that calls the function 'InitializeBatchDialog' and the East - 94 returned error code.

    It comes

    int DLLEXPORT _stdcall InitializeBatchDialog (CAObjHandle modelData, CAObjHandle context)
    {

    ...

    }

    Only the additon to C code was to add a few reminders of control.

    Solved

    Under the establishment of objectives "Embed project. Setting the IUR"was necessary.

  • Model of batch processing is suspended when Windows is locked

    I'm running the model of batch processing with 5 Sockets.  When the Windows form is locked, the grip of the model after all the test sockets have finished the model batch step titled 'Sync with controller - AfterPostUUT. '.  This call is part of the ManagedModelSupport.dll.  I have TestStand 2012 SP1 running on Windows Server 2008 R2 SP1.

    I have attached a few screenshots.


  • "Invalid cast exception" thrown when assigned the AutoCompleteStringCollection AutoCompleteCustomSource of TextBox property

    Hello

    I built a .NET c# wrapper around the TestStand users management module.

    When the application works as a stand-alone Windows Application, there is no exceptions or thrown errors. However, when the dll is integrated with TestStand and called from the FrontEndCallbacks movie file, I got up an invalid "Cast" exception when the AutoCompleteStringCollection is assigned to the textBox AutoCompleteCustomSource property.

    As stated earlier, it works perfectly well when it is a standalone application. I am at a loss to figure why this is happening. I would appreciate if someone could shed some light on this behavior.

    Thank you

    Arun

    Thanks for posting your example. The problem seems to be caused by the fact that your form is created in a thread of execution TestStand using the MTA COM threading model. .NET Windows forms must always be created son marked with the model STA thread. Probably your standalone application uses the STAThread attribute. Here are some references (rule FxCop, STAThread)

    You can work around this problem by creating a new STA thread in TestStand using a sequence of appeal step. Set Options to run to use new discussion and check the box Use Single-Threaded Apartment.

  • TestStand can not find that all exported DLL functions

    Hi all

    My problem is the following:

    I have a DLL that I compile with Visual Studio with 40 functions. When I want to use this DLL in teststand, there are two missing functions. If I check with the dependency walker, the 2 missing function in teststand tool are well implemented.

    The missing function prototype:

    struct HModemBoardOpaqueType * mbCreateModemBoard (void)

    Good function prototype:

    enum UbtDllErrorCode mbDisconnectFromModemboard(struct HModemBoardOpaqueType *)

    Is that possible that teststand does not structure opaque type correctly?

    If I export my function type C (with extern C) no function is missing from the test bench

    Thank you

    What version of TestStand do you use? Older versions of TestStand only supported zero, digital and Boolean data types for the return values of the adapter of the dll. More recent versions of TestStand are now supported pointer/handle as well. New versions of TestStand I expect you can use such a prototype with the handle/pointer data type. However, if you want to convert this struct to an equivalent TestStand custom data type, you need to make a parameter instead of a return value, as the card does not support the conversion of struct for return values.

    Basically returning a struct pointer this way (as return value) is dangerous in C/C++, because it is not possible to know who owns the memory. The type of pointer/handle allows you to do anyway, but it must be properly to maintain life of memory return you at a lower level (i.e. maybe with an exported function that uses the pointer who knows how free it).

    Hope this helps,

    -Doug

  • API dll windows 10 teststand 2014 SP1

    Hello

    I'm looking for a solution to my problem a few hours ago, but I found nothing. I'm working on Teststand 2014 SP1 32 bit with a windows 10.

    I did a sequence on the same version of teststand on a windows 7, but I now have a windows 10. I opened my sequence (which worked fine on W7) on W10, but when I am executing it I got the following message.

    http://PUU.sh/pizsw/deabdd594d.PNG

    I tried to install the SDK W10 and some versions of Visual studio, but did not work. On my 64-bit version, I got another message that seems normal cause he says TS is unable to open my 32-bit dll.

    I think I forgot to install something but I don't know what, if soemone found a solution to this problem must be large to share =)

    Best regards

    Guillaume

    It would be wise for you to recompile DLL - 07_modbus.dll to work on Windows 10.  It looks like all of its dependencies are specific to W7.

    Kind regards

  • Call a DLL in TestStand by reference

    All,

    I developed a DLL that control a USB based power. The call of the dll works from TestStand 4.1 most of the time. What I think is happening, is that whenever I call the dll in my main sequence of the file as well as other files in sequence, as several instances of the dll is loaded.

    Part of the init of food must pass back a SESSION number that is used in subsequent calls to the dll. I store as a global variable in TestStand and pass around sequence that never he needs.

    How can I load the DLL at the beginning of the sequence and PASS a reference (handle) to all other calls to the dll?

    Thanks in advance

    Carmine

    Doug,

    Thanks for your help. I found a UnLoadModules() in one of the child seq that I missed. Unless I missed all the others, I think this should be resolved.

    Carmine

  • Access a dll with a table as argument in Teststand

    Hello

    I did a dll with the following function call:

    __stdcall __declspec (dllexport) int FSCOM_ModbusQuery (int nComport, ucAddress unsigned char, unsigned char ucFunctionCode, unsigned char ucTxData [], int nTxDataLength, unsigned char ucRxData [], int nRxDataLength)

    I want to access this function call in Teststand 2010 SP1. I did table 2 in Teststand and gave addresses to the function call (as you can see in 'Capture.png' and 'Capture1.png').

    When I try to run the sequence I get an error on the ucTxData and the ucRxData with the message "number expected, found the table of numbers.

    How can I solve this problem

    Thanks in advance

    Wissam

    I think you have misunderstood what I wanted. In the specification of the Panel Module tab, you can change the type of data that the function expects. You probably set on the wrong thing. It must be set to an array of numbers where the elements are unsigned 8-bit integers.

    -Doug

  • Change the parameter Prototype of a Module DLL TestStand Programmaticaly

    Hello.

    I started this post inside the LabWindows, but there was no response.

    Hope I can get help here.

    Please see the following link

    http://forums.NI.com/NI/board/message?board.ID=180&message.ID=46129&query.ID=804485#M46129

    Thanks in advance.

    Hi Doug.

    I'm sorry for the delay.

    Here is how I solved the problem: I changed the module of the BCI to the DLL module.

    Here is a sample of my code:

    I changed CVIModuleGetParameters() and CVIParametersGetItem() to TS_DllModuleGetParameters() and TS_DllParametersGetItem and now it works fine.
    seqContextCVI = object reference ThisContext
    __declspec(dllexport) __stdcall GetControlarParameters (CAObjHandle seqContext) Sub
    {
    error int = 0;
    ErrMsg errMsg = {'\0'};
    ERRORINFO errorInfo.
    char strItemLabel2 [1024] = "";
    Step CAObjHandle = 0;
    CAObjHandle seqFile = 0;
    Module CAObjHandle = 0;
    Parameters CAObjHandle = 0;
    Parameter CAObjHandle = 0;

    tsErrChk (TS_SeqContextGetStep (seqContext, & errorInfo, &step));))
    tsErrChk (TS_StepGetModule (stage, & errorInfo & module));
    tsErrChk (TS_DllModuleGetParameters (module, & errorInfo & settings));
    tsErrChk (TS_DllParametersGetItem (parameters, & errorInfo, CA_VariantInt (1) & parameter));
    sprintf (strItemLabel2, "\"%s\"", "TEST" ");
    tsErrChk (TS_CommonCParameterSetValueExpr (parameter, & errorInfo, strItemLabel2));

    NOTE: After make a change to a stage you must mark the file, as amended by
    increment the number of changes to the file. It is also necessary for the change to show
    upwards in the sequence editor immediately.
    tsErrChk (TS_SeqContextGetSequenceFile (seqContext, & errorInfo, seqFile));
    tsErrChk (TS_SeqFileIncChangeCount (seqFile & errorInfo));

    Error:

    CA_DiscardObjHandle (Step);
    CA_DiscardObjHandle (seqFile);
    CA_DiscardObjHandle (module);
    CA_DiscardObjHandle (Parameters);
    CA_DiscardObjHandle (Parameter);

    If an error occurs, set the error indicator causes an error of execution at TestStand.
    If (error<>

    TS_SetStepError (seqContext, error, error);
    }

    Thanks for all the help.

    My best regards.

  • by passing the array of strings of Teststand to LV dll

    Hello

    I wonder, why is it not possible to pass an array of strings 1 d of TestStand to a dll, which is compiled with LabView. By the way the PropertyObject works very well, but as parameter category "Array of Strings" exist in the call dll TestStand pane, it should be possible to pass an array directly. I get an empty dialog box, where I try to view the contents of the array passed directly.

    Why it does not work?


Maybe you are looking for

  • Freezing and bizarre graphic "pixelation".

    Hello One of my colleagues is having a problem with her 2011 (Yosemite) iMac (black boxes pictured are for his privacy). The only recent change was an update of Pages etc. After 2-3 minutes, the computer gets this weird pixelation and then freezes. I

  • HP Pavilion 15-e081sr

    I need drivers for Windows 7 on HP Pavilion e081sr 15. My new laptop got just FreeDos. I need to install Windows. But I don't see the drivers for windows 7. On the HP site I see drivers only for Windows 8. But I have to buy Windows 7

  • Bm10 iPhone connection problems

    Hi, I have problems to connect my iphone to my Sony Bm10 receiver. The bm10 is connected to my mac, and works very well with it. But when I want to connect my iphone 4s, he does not pick up there, so I can't connect to it. My iphone bluetooth works,

  • Need help with ics. SQL return null

    Hi experts WCS.I have this ics. SQL statement that returns an IList as null and nothing in the errStr in debugging print.IList rsATypes is ics. SQL (, sqlATypes, listName, limit, bCache errStr);The code is in one of my jsp. He ran very well in my loc

  • XPS15z L511z won't start (white screen) and a sound signal to any key shot.

    Hello guys,. I did a search on internet and could not find an answer to my problem. I have a Dell XPS15z for quite a while. Last year my battery stoped working, and given that I have a new PC, I've left him alone. Well, I decided to give the old frie