Create CVI DLL for HP Basic

I was asked to create a DLL from my CVI project to use in HP/HT
Basic.  How do I go about in creating one and using it in HP/HT
Basic?  Is there any particular settings in CVI I need to
configure to be compatible with HP/HT Basic? 
Gary Z.

Hello Gary Z.
After doing a little research it looks like HT-Basics requires that you
use the _cdecl calling convention when creating DLLs.  So in CVI,
navigate to Options >> Build Options and select cdecl as your
default calling convention.  Some other things you need to
consider is how you declare your data type in your C DLL, and how you
call them in HT-Basic.  Some websites I found helpful were: Using
a DLL in HTBasic and DLL Rules.
Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter - ni.com/cvinews

Similar Messages

  • How to create a DLL for LabVIEW in MatLab

    I want to use MatLab-Code from an M-file in LabView without MatLab. So i decide to use external code in a DLL. Can anybody give me some hints - how to do? (How to create, how to use?)
    Used System Windows 98, LabVIEW 6.1, MatLab 6.1 R12.1
    Thanks

    Hi,
    I use Matlab-Code in Labview and it's don't need create a dll. The LV was a tool, matlab script, you can write your code Matlab here. see the examples of LV.I think the lV 6.1 have.
    Dll it's very complicated

  • Create a dll for windows with gcc

    hello!
    I have made a program in 'C' under linux and i want to make it into a dll with gcc to use it in labview under windows.
    Has anyone already done a such thing? so what is the magic option to pass to gcc to make it properly?
    Thank you.

    vincent72 wrote:
    Thank you for your replies. unfortunately, these options don't work on our computer. the keyword 'declspec' wasn't reconnised by our gcc. we also tried the keyword '__attribute ((dllexport))__' but it didn't work anymore.
    I think the standard gcc attribute is more
    something like attribute(export). After all gcc environments typically
    use shared libraries and not DLLs. But then again not every gcc
    compiler will be able to just create proper Win32 executables. As
    explained already, there needs to be quite a lot in the toolchain for
    the intended target.
    For instance the compiler/linker should support COFF library format in
    order to create a valid Win32 executable file unless you have a your
    own format specific Win32 compatible loader that gets linked in and
    understands your library format. Also declspec() is a Microsoft
    specific extension not supported by off the shelf gcc. And gcc has no
    intentions to add anything they consider non-standard, and most
    Microsoft extensions are non-standard.
    MingW does come with a patched gcc, that supports the most important
    things to be able to create valid Win32 executables but most other gcc
    versions don't.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Using cl.exe of visualstudio to create a dll for the jni

    In the sun site I saw to create a dynamic link library
    On Win32, the following command builds a dynamic link library hello.dll using Microsoft Visual C++ 4.0:
    cl -Ic:\java\include -Ic:\java\include\win32
    -LD HelloWorldImp.c -Fehello.dll
    Of course, you need to specify the include path that corresponds to the setup on your own machine.
    I have visual studio installed in
    C:\Program Files\Microsoft Visual Studio\
    there is a win32 dir in this visual studio in
    C:\Program Files\Microsoft Visual Studio\Common\VSS
    instead of the "include" inthe above mentioned "cl" command what do I write? Thanks.

    I know the way via spool, you'll need to SUBMIT ... TO SAP-SPOOL instead of EXPORTING LIST TO MEMORY, grab the spool number RQIDENT from table TSP01, then call function CONVERT_ABAPSPOOLJOB_2_PDF.
    Thomas

  • Creating Labview Host DLL for FPGA

    I have created a DLL for the FPGA host VI.
    The host VI neads a loop to keep the FPGA running in labview but a call to the DLL function will not return while the loop is running.
    If I change host VI to one shot I asume that the FPGA start and stop with each call.
    I could load FPGA vi into flash set to run but I think that it will stop after first call from DLL.
    Seem like a catch 22.
    Thanks

    I found that I could run without the loop OK by closing the FPGA reference but not stopping the FPGA card running.
    My problem now is, that the DLL does not seem to work.
    I included a control updating an indicater and exported just those peramiters in the DLL but I can not get it to work with Borland C++Bulder 5.
    Other DLL's that I create with Labview work OK.
    Is there a broblem creating DLL's from host vi?

  • How to create a dll in Java?

    I have written some code in Java to perform a certain function.
    How can I create a dll for this code? Would I be able to call this dll from any platform?

    Let me rephrase the question. I would like to create a dll for code that is written in Java.
    Can you please tell me the procedure to do that?
    I want to be able to call this dll from .Net framework or any other application. I found examples online to do the opposite using JNI.

  • App. builder - creating a dll more functions

    Hi,
    here I found, that is possible to create from LabView a dll this more functions. Each added VI, will be one function - http://forums.ni.com/ni/board/message?board.id=170&message.id=19858&query.id=416227 (question no. 3)
    But I would need that the VIs (functions) are connected together, that one function will use what the another function did..
    For example:
    I'd like to create a dll (for TCP/IP communication) with 3 functions (Open connection, Write data, close connection). First, I call dll function Open connection, then can call several times function Write data and at the end, I want to close connection with the last function.
    If I tried to create such dll from VIs, which contains blocks for these tasks, I was not able to create "a bridge" between the VIs - in my example it would be wire (connection ID) between blocks TCP Open Connection TCP Write and TCP Close Connection.
    Has somebody experience with this?
    Thanks

    Hi Ondrej7,
          Here's some example code that may be all you need! (just remove ".txt")
    This DLL will only manage a single connection, but you don't have to pass any connection-reference to it.  I know nothing about Testpoint and don't know if we can pass strings Out of the DLL.  If this is a problem, then we should try outputting an array-of-bytes instead.
    Cheers!
    Message Edited by tbd on 10-06-2007 08:58 PM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    DLL.dll.txt ‏56 KB
    DLL.llb.txt ‏120 KB
    DLL.bld.txt ‏4 KB

  • Creating a DLL in Labview 8.6 and calling it from Visual Basic 6.0

    Dear friends,
    I need to create a DLL in Labview 8.6 and call it from Visual Basic 6.0. The system works as follows:
    I made an application using Labview 8.6 + Vision Assistant 8.6 where I can obtain the x,y coordinates of a template in an certain image being captured by an USB camera. The template coordinates change every time it moves and Visual Basic 6.0 must read these x,y values in real time. I found some information in the link http://zone.ni.com/devzone/cda/tut/p/id/3925, but it works for version 6.x of Labview and 8.6 version is different. Am I in the right path? If you have an updated tutorial like the one in the link above but for Labview 8.6 It would be very nice. Please help me.
    Kind regards.
    João Júnior

    Hello Osvaldo,
    I analysed the updated tutorial you sent me, but the thing is that it doen't show how to create the DLL in LV 8.6 but only show how to accessing the DLL from VB6. My problem is really HOW TO CREATE THE DLL IN LV8.6. In the link http://zone.ni.com/devzone/cda/tut/p/id/3063 there is detailed information about how to do this in LV6.x, the problem is that I don't find the path Tools»Build Application or Shared Library (DLL) in LV8.6, I think the procedure in LV8.6 is a little bit different. Don´t you have an updated tutorial on how to build a dll in LV8.6?How could you help me?
    Kind regards.
    João Júnior

  • How to create a dll file for lab view?

    Hello
       I want to create a DLL file for LabView. Can anyone help me in this issue?
    Regards
    Vivek 

    Please explain.
    Do you want to create a dll in another language (which one?) for use in LabVIEW or do you want to create a dll out of your LabVIEW code?
    LabVIEW Champion . Do more with less code and in less time .

  • Create a DLL with asynchrono​us calls in LabVIEW for use in another environmen​t.

    Hello All,
    I need to create a DLL in LabVIEW that is going to be used from inside a Delphi environment.
    The thing that confuses me is that I don't know how to create asynchronous functions.
    Let me further explain.
    I want to have an "Init" function.
    This function starts a continuous dataacquisition process. The dataacquisition process continuously samples data at a rate of 1Msamples/sec. (in blocks of 4096 samples each time)
    I want to have an "Abort" function.
    This function stops the continuous dataacquisition process.
    The third function I need is a "MeasureAndAnalyse" function.
    If this function is called, the following block of 4096 samples is processed (FFT, ...) to retrieve the valid data.
    The fourth function can be used to check if the MeasurementAndAnalyse function is ready and return the actual result if this function is ready.
    What I don't know is how I can do all of this asynchronously.
    In my opinion the LabVIEW vi's I make are all synchronous.
    How to do this asynchronously???
    Does anybody know of an example of a similar thing?
    Thanks in advance for all the help!
    Dennis.

    Ok, after somem ore searching I found an example called "Building Asynchronous DLLs in LabVIEW".
    I will give that a try.

  • How to create the C++ DLL for Windows Mobile and how to import it in C#

    Hi All,
         Please can u guide me for creating DLL on C++ and using it in C#
         1) Steps to create the DLL using C++ for Windows Mobile
         2) And where to place the DLL after builiding to make use of it in my C# project
    Thanks in Advance!!!
    Thanks & Regards,
    Sharan

    Hello all,
    I know this is an old thread but i have to give it a try ( i am stuck with an almost identical problem but cant solve it since 5 days googling and reading.
    I am developing an app for Unitech HT660e which has Win CE. THe app is complete but now i need some more control over the barcode scanner. In order to gain controll i need to use USI.dll which is explained in this documentation (chapter 2 has the link to
    the SDK which contains the USI.dll ) :
    http://www.datacol.co.nz/pdf/uni_prog-guide_1.21.pdf
    But i also get : Cant find PInvoke DLL 'USI.dll'.
    In chapter 4 is SysIOAPI.DLL mentioned which i cant fin.
    Chapter 17 has USICF.dll which may be interesting bcos this one can be added as reference and "using USICF" . I am using compact framework 3.5 for this and the emulator is "usa windows mobile 5.0 pocket pc r2 emulator". 
    Reading your post i noticed i can use the "Pocket PC 2003 SE Emulator" but it gives me the same error.
    Maybe i need to include a path in my code but i tried this as well...and get the same problem. Maybe i am missing something.
    Here is my code:
    using USICF;
    using System.Runtime.InteropServices;
    namespace SmartDeviceProjectzaDLLtesting
        public partial class Form1 : Form
            [DllImport("USI.dll", EntryPoint = "VibrationOn")]   //ignorethis?:,CallingConvention=CallingConvention.Winapi)]//Cdecl)]    //EntryPoint = "VibrationOn")]
            public static extern void VibrationOn(bool bEnable);
            public Form1()
                InitializeComponent();
            private void Form1_Load(object sender, EventArgs e)
               // USICF.USIClass usiba = new USICF.USIClass(this); // this gives an exception as well
               VibrationOn(true); // thiis causes the exception
     //           VibrationOn(false);

  • Creating a LabVIEW Shared DLL for use with C# and Strings?

    Hi All,
    I am trying to create a prototype for a LabVIEW Shared DLL that all the VI does is take in a string and return an upper cased string. Needless to say the DLL builds fine but when I try calling the shared DLL from C# the .NET application recieves an exception about "Ansi char arrays can not be marshaled as byref or as an unmanaged-to-managed parameter". Does anyone have an example of how to pass a string to a VI and return a string or an example of a better way of accomplishing this.
    We are using labVIEW 7.1 on Windows 2000.
    I am in quite a bit of a hurry to prove that this type of a LabVIEW Shared DLL VI would work. The eventual system will be passing in a string of XML with a large amount of
    data and returning XML.
    Thanks in advance,
    Jim

    Hello jprucha,
    This occurs because LabVIEW DLLs are not considered managed code. As such, we need to define the C# function as unsafe to be able to call unmanaged DLLs.
    You can find more information about C# and managed code at Microsoft's developer website linked below.
    MSDN Home Page
    Good luck with the development,
    Matt F
    Keep up to date on the latest PXI news at twitter.com/pxi

  • How to create a DLL in CVI which can be used in MFC?

    I want to create a DLL in CVI and use the DLL in MFC. But even if I tried
    many ways, I cannot reach the objective. There are always link errors. Could
    you give me some instructions about it?

    I once made a DLL that I could call from Excel, and I noticed the LabWindows
    DLL would call the runtime DLL (CVIRT.DLL). So maybe you must add the
    runtime lib in some way to your MFC project?
    Hans D. Jensen
    "Bo Bai" wrote in message
    news:[email protected]..
    >
    > I want to create a DLL in CVI and use the DLL in MFC. But even if I tried
    > many ways, I cannot reach the objective. There are always link errors.
    Could
    > you give me some instructions about it?

  • Problem in creating DLL for a LabVIEW VI

    Hi
    I am facing problems in creating DLL for a LabVIEW VI. Previously i had no problems in creating DLL for the VI that transmits a message from serial port to NI - PXI 7831-R Reconfigurable I/O card (configured by FPGA MOdule). When i try the same VI with a customized port developed using IVI drivers i am not able to create the DLL. It gives me error as follows:
    Fatal Internal error: "datamgr.cpp", Line No: 1882
    Please somebody help me out to fix this error.
    Regards,
    Subramania Bharathi

    Hi,
    Thanks for your curiosity in replying my questions. I am really sorry for replying so late. Actually the problem was with the NI SWITCH 2503 functions. Actually i was multiplexing the channels of my customized serial port using NI Switch module. This switching is done before i start my communication. My VI follows a sequence as follows.
    1. Connect two channelss using Switch functions
    2. configuration of both FPGA and the customized port
    3. Transmit data from the port
    4. Receive it in FPGA.
    5. Reset the channels using Switch functions
    I never expected that the error was because of NI Switch. When i removed them from my VI i was able to create the DLL and able to create sequence successfully to run in the Testsand. And
    further i am using Switch Executive for swithcing the channels in TestStand.
    But now i am very curious why it posted me that error when i used my NI Switch function?? I tried to create DLL for a VI that switches two channels and i was successful. But the error occurs only when i combine i with my FPGA functions!! If you could trace out the reason, please let me know
    Once again thanks a lot for your support
    Regards,
    Subramania Bharathi

  • Creating a DLL Driver for Use in VB

    Hi,
    I am trying to export a dll file for use in VB.  I used the build > dll option within my project to create a dll, but when I try to add the reference to Visual Studio, it says that it is not a valid assembly or COM component and I cannot add it.  Is there a setting I should set in the build settings to ensure this works?
    Thanks,
    Billy Maier

    You aren't creating a .NET assembly or COM component so you are calling it incorrectly.

Maybe you are looking for

  • How do I get my new pc to see my itunes library already residing on my external drive?

    I have a laptop pc connected to an external drive.  My iTunes libary was moved to an external drive because it took up so much memory. I have a new desktop pc now.  I downloaded iTunes onto it and I am trying to get it see the iTunes library on the e

  • Java.lang.NullPointerException  while executing ODI package

    hi, while executing some of my packages in ODI 11g.... i m getting the following error java.lang.NullPointerException      at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatPopSourceSet(SnpGeneratorSQLCIT.java:7984)      at com.sunopsis.dwg

  • Adding a digital timer to video

    Hi, I would like to overlay a timer onto my videoclip so that the viewer can see how long my clip is. Is there a simple way to do this? Thanks in advance! Bobby

  • Text box floating in front of video ?

    Hi there ! I am trying to get a quicktime slideshow from Aperture to sit behind text in iweb but the movie obscures the text boxes in front http://web.me.com/ruperteden/palaciobelmonte/test.html http://web.me.com/ruperteden/palaciobelmonte/splash.htm

  • Required ports to be open on the firewall?

    Hello everyone, I'm sure this question has been answered earlier but I wasn't lucky enough to find it! I evern tried to look into metalink but I couldn't find anything useful. I have an OCS Rel2 installation ready and it is time to have it public on