Projet dll c# sous labview ?

Bonjour
J'ai un projet de banc de rodage de capteur, pour le moment il se fait manuel et on veut le passer automatiquement par labview.
Nous avons une gestion d'électrovannes qu'on va gérer avec labview mais ma question est :
nous avons un logiciel (maison) programmer en c#, est ce que en passant par l'appel de dll sous labview on va arriver à faire la même chose que le logiciel ? Notre but et de tous mettre sous labview.
J'ai regarder plusieurs exemple mais tous les codes sont en C ou C++ pour les dll.
Merci
Mickael

Bonjour Mickael,
Merci d'avoir posté sur le forum National Instruments.
Le format .dll est standardisé, il est donc possible aussi d'appeller ces fichiers dans LabVIEW.
Néanmoins, vous pouvez essayer vos dll en allant dans l'onglet Outils de LabVIEW, puis Importer, et Bibliothèque partagée (.dll)...
Voici un petit screen explicatif :
Cordialement,
Romain P.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> NIDays 2011, le mardi 8 février au CNIT de Paris La Défense

Similar Messages

  • Erreur lors de la création d'un executable sous LabVIEW SP1

    Bonjour,
    Je travaille actuellement sur un projet relativement imposant sous LabVIEW 2010 SP1.
    Le projet étant assez imposant,j'ai voulu en faire un exécutable.
    J'ai alors la fenêtre suivante qui apparaît (voir piéce jointe):
    "Une erreur est survenue lors de l'appel de l'éditeur des régles de construction. Veuillez vérifier si les VIs sont brisés dans le répertoire du gestionnaire correspondant."
    Mon Vi fonctionne trés bien lorsque je l'éxecute, donc je ne comprends pas. De plus j'ai déja créer d'autres exécutables sans probléme jusqu'a présent.
    Quelqu'un aurait-il une idée pour solutionner ce probleme?
    Merci d'avance.
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    erreur.JPG ‏11 KB

    @Ramses:
    Je pense que Julien utilise une option du menu Outils (je ne sais plus son nom, et elle n'apparait pas sur mon PC car je n'ai pas l'application builder), qui permet de préparer son VI pour un exécutable. A ce moment, cela va créer automatiquement un projet avec une spécification de construction.
    Cependant, je suis de l'avis de Ramses. Il est préférable de se créer son projet et de travailler dedans, puis de créer les spécifications de construction par la suite...
    Et désolé, mais je n'ai pas d'explication à votre problème, à part éventuellement des dépendances particulières. Lorsque vous ouvrez votre VI, LabVIEW vous demande-t-il de charger des fichiers particuliers?
    Cordialement
    Olivier L. | Certified LabVIEW Developer

  • Comment attaquer une DLL sous labview

    bonjour,
    pour le cadere d'un projet je cherche à savoir s'il est possible d'attaquer directement une DLL sous LABVIEW
    cordialement

    Merci mehdi pour la traduction: "Appeler une fonction d'une DLL"

  • Comment créer une dll sous labview avec plusieurs fonctions venant du même VI et possédant un tabcontrol ?

    Comment créer une dll sous labview avec plusieurs fonctions venant du même VI et possédant un tabcontrol ?

    Bonjour,
    L’utilisation d’une « commande d’onglet », ou « tabcontrol », ne pose pas de problème pour la définition d’une DLL à partir d’un VI.
    Selon la version de LabVIEW que vous utilisez, le processus de création de DLL sera différent.
    Si vous utilisez une version antérieure à la v8, vous pouvez vous reporter à ce lien : Construire une DLL avec LabVIEW 7.0.
    Sinon, vous devez enregistrer votre VI dans un projet, puis définir le connecteur de votre VI avec les paramètres d’entrées/sorties (cette opération est indépendante des différentes « commandes d’onglet » que vous avez pu implémenter).
    Sélectionnez, dans le projet les « spécifications de construction » dans le projet (via un click droit), pour créer une DLL. Dans la boite de dialogue qui s’ouvre alors, à l’onglet « fichiers source », vous pouvez ajouter votre VI parmi les « VIs exportés » et configurer, en fonction des E/S câblées sur le connecteur de votre VI, les fonctions contenues dans la DLL.
    J’espère que ces quelques éléments auront pu vous éclairer.
    Cordialement,
    Guillaume H.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> NIDays 2011, le mardi 8 février au CNIT de Paris La Défense

  • Impossible de créer un exécutable sous LabVIEW 2010

    Bonjour,
    J’ai une application écrite en LV8.2 qui tournait sans problème.
    Je suis passé sous LabVIEW 2010, et j’ai une erreur au moment de créer un exécutable.
    L'erreur 1 s'est produite à : Nœud de méthode dans AB_Build.lvclass:Copy_Files.vi->AB_Application.lvc​​lass:Copy_Files.vi->AB_EXE.lvclass:Copy_Files.vi-​>​AB_Build.lvclass:Build.vi->AB_Application.lvclas​s:​Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_Bu​ild​.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.Pr​oxyC​aller
    Raisons possibles :
    LabVIEW:  Un paramètre d'entrée n'est pas valide. Par exemple, si l'entrée est un chemin, celui-ci contient peut-être un caractère qui n'est pas autorisé par le système d'exploitation, comme ? ou @.
    =========================
    NI-488:  La commande requiert un contrôleur GPIB comme contrôleur en charge.
    Nom de la méthode : Linker:Write Info To File
    Apres quelques recherches, j’ai isolé le sous VI qui causait problème.
    C’est un .Net qui permet de lancer un fichier.pdf
    Si je mets directement cette fonctionnalité dans le diagramme principale (sans passer par un sous VI), j’ai le message d’erreur suivant :
    L'erreur 74 s'est produite à : Nœud de méthode dans AB_Build.lvclass:Copy_Files.vi->AB_Application.lvc​​lass:Copy_Files.vi->AB_EXE.lvclass:Copy_Files.vi-​>​AB_Build.lvclass:Build.vi->AB_Application.lvclas​s:​Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_Bu​ild​.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.Pr​oxyC​aller
    Raisons possibles :
    LabVIEW:  Mémoire ou structure de données corrompue.
    Nom de la méthode : Linker:Write Info To File
    Remarque : J’ai fais un petite appli qui n’utilise que ce VI et je n’ai pas le PB.
    Quelqu’un à t’il une piste de recherche ?
    Merci d’avance

    Bonjour,
    Lorsque vous créez un exécutable veillez toujours à n'avoir que la fenêtre du projet d'ouverte, j'ai déja vu le cas et ce type d'erreur apparaître lorsqu'une fenêtre d'un VI qui devait être compilé était ouverte.
    Pour revenir plus en profondeur sur le problème que vous rencontrez, je vous invite à toujours effectuer une recompilation complète de tout les VIs de votre projet lorsque vous passez d'une ancienne version à une nouvelle version. Cela peut régler votre problème, la recompilation va effectuer un certains nombre d'opérations de façon à rendre le VI "compatible" avec la version utilisée.
    Pour cela : Outils » Avancé » Recompiler.
    Cette opération peut s'avérer utile dans votre cas.
    Cordialement,
    Da Helmut

  • Récupérer l'adresse de stockage d'un tableau sous LabVIEW

    Bonjour à tous,
    Je viens à vous pour résoudre le problème suivant:
    J'utilise une DLL en LabVIEW. Cette DLL possède une fonction qui passe (notamment) un pointeur de tableau en argument. J'ai remarqué que l'assistant "Importation d'une bibliothèque partagée" a choisi une variable chaîne à la place de ce pointeur de tableau, ce qui sous-entend que la fonction s'attend à l'adresse du premier élément du tableau...
    De fait, pour utiliser la fonction sous LabVIEW, je dois créer un tableau (jusque là, ça va) puis surtout récupérer l'adresse de son premier élément. Et c'est là que le bât blesse:
    - Existe-t-il un VI renvoyant l'adresse d'une variable ?
    - Et d'ailleurs, la création d'un tableau en LabVIEW se fait-elle de la même façon que la création d'un tableau en C (au niveau de l'adressage, j'entends) ?
    Merci d'avance !
    Résolu !
    Accéder à la solution.

    Tu dois "passer" un Tableau à une fonction contenue dans une DLL .... c'est bien ça ?
    un tableau de quoi ? ...
    voici un (tout petit) exemple avec un Tableau de U8.
    Tu cables directement le Tableau à l'entrée du Noeud "Call Library Function Node"
    mais "avant", tu dois configurer cet appel (clic droit sur le noeud ... "configure")
    et là tu peux demander à LV de passer l'adresse du Tableau
    Dans ce cas LV passera l'adresse (pointeur) du premier élément du Tableau

  • Création d'installeur (setup.exe) sous Labview

    Bonjour à tous,
    Je suis nouveau dans ce forum et je viens de finir mes études aussi lol.
    J'ai réaliser un gros projet sous labview avec des centaines de VI.
    J'aimerai savoir comment créer un installeur afin que mon soft soit distribuable ?
    En gros, avoir une icone setup.exe qui permet d'installer mon soft sur n'importe quel PC même non équipé de l'IDE LabView...
    Merci d'avance.

    Bonjour,
    Il existe un forum supplémentaire si vous souhaitez publier en français.
    S'il vous plaît le trouver ici -> Discussions de produit de NI
    Christian

  • Comment récupérer un signal fourni par un noeud NI sous Labview?

    Bonjour à tous,
    Je suis actuellement en DUT Réseaux & Télécommunications, et nous sommes trois sur un projet concernant un réseau de capteurs NI. Notre problème est le suivant : nous souhaitons récupérer un signal (une température par exemple) mesuré par un noeud, le récupérer sous Labview afin de le traiter.
    Nous avons déjà fait plusieurs tests notamment concernant une fonction E/S Instruments, mais non concluant, car le driver est manquant... Mais est-ce bien cette fonction qu'il faut utiliser?
    Merci d'avance.
    Cordialement,
    Vincent

    Bonjour,
    Difficile de répondre à votre question sans plus d'éléments.
    Quelle est votre version de LabVIEW ?
    Quelle est le matériel que vous utilisez ? J'imagine, que ce sont des WSN car vous parlez de noeud ?
    Si ce sont bien des WSN (Wireles Sensor Network), ou réseau de capteurs sans fil en français, il vous faut installer le driver NI WSN http://www.ni.com/download/ni-wsn-1.5/4521/en/
    Je vous invite également à regarder cette présentation multimédia qui vous en apprendra un peu plus sur ce matériel.
    http://www.ni.com/webcast/1711/fr/
    Cordialement.
    .mesLeft{float:left} .mesInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898} .mesLogo{float:right;opacity:0.18} .mesLogo:hover{opacity:0.9}
    Maxime R.  
      CLD - Certified LabVIEW Developer / Développeur LabVIEW Certifié  
      CLAD - Certified LabVIEW Associate Developer   

  • Calcul TRMS - Intégral sous labview

    Bonjour,
    je tente de réaliser les calculs éffectués par un appareil TRMS. Il y a donc une intégrale (entre autre) à réaliser, mais je n'arrive pas à la faire, j'ai éssayé plusieurs boite différente mais sans résultats. Pourriez vous m'aider svp?
    Je souhaite donc réalisé le calcul suivant sous labview :
    Merci
    Chef de Projet
    ERM Automatismes Industriels
    Certified LabVIEW Associate developer
    Résolu !
    Accéder à la solution.

    Bonjour,
    si vous avez un dt constant, alors vous pouvez faire comme ceci :
    Sinon, si votre dt est variable, il faut pondérer chaque dt, c'est aussi faisable je pense.
    En espérant que cela vous aide,
    V-F
    Pièces jointes :
    formula.png ‏15 KB

  • Est-il possible de changer le curseur de la souris sous labview?

    l'objectif est de pouvoir changer le pointeur de la souris , lorsqu'une application crée sous labview travaille?

    vfrouard wrote:
    > l'objectif est de pouvoir changer le pointeur de la souris ,
    > lorsqu'une application crée sous labview travaille?
    In LabVIEW 7.x you have VIs under Application Control->Cursor to do
    that. Before LabVIEW 7 you had to rely on external DLLs to do that which
    typically didn't work well as LabVIEW interfered with it and reset the
    cursor constantly.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Application crashes when calling DLL built with LabVIEW 2011

    Hello everybody,
    Our application calls DLLs built with LabVIEW 2010 SP1. We installed LabVIEW 2011 and built some DLLs. So far so good. If we start our application and run 2010 DLLs it still works fine. If we run a 2011 DLL just once no error happens, but if we try to run the same 2011 DLL our application crashes reporting the error below. I saved the code for 2010 version and built a DLL and it works fine. Does anyone know why?
    Thank you in advance.
    #Date: Fr, 16. Sep 2011 16:25:25
    #OSName: Microsoft Windows XP Service Pack 3
    #OSVers: 5.1
    #OSBuild: 2600
    #AppName: PasTA
    #Version: 11.0f2 32-bit
    #AppKind: AppLib
    #LabVIEW Base Address: 0x30000000
    16.09.2011 16:25:26.181
    Crash 0x0: Crash caught by NIER
    File Unknown(0) : Crash: Crash caught by NIER
    minidump id: 8a779b3f-51d7-4864-8e4d-6ab0195cd158
    ExceptionCode: 0xC0000005
    N
    0x3072C804 - lvrt <unknown> + 0
    0x3072CBB8 - lvrt <unknown> + 0
    0x7C864191 - KERNEL32 <unknown> + 0
    0x7C83AB50 - KERNEL32 <unknown> + 0
    0x00000000 - PasTA <unknown> + 0
    Attachments:
    error.PNG ‏11 KB

    On that note, you should be able to create DLLs in 2010 and run them with 2011, correct??  In my case, I have a 2010 built DLL (talking to sbRIO), most of the functions work when run in 2011, but a couple of them lock up LabVIEW on the desktop (but not the sbRIO), no lock ups happen with 2010 on the desktop.

  • DLL build by Labview App Builder doesn't work if Built-IN functions used!?

    Hi All,
    I hope somebody shed some light on this;
    (All VIs are in the attached case1-2.zip)
    Case 1:
    A VI reads a 1D array data and Uses RMS.vi to calc the rms of the data and returns the rms value and the error value. (make1_dll.vi).
    This VI is used to build a DLL. (test1.dll using the test1.bld)
    Call this DLL in a new VI (just to test that the DLL works) (test1.vi)
    RUN the new VI >>> Result Nothing happens No Error or Crash and No result!!!
    Case2 :
    Build the above without using the “RMS.vi” and works OK. (see case2 VIs)
    Any idea why the build-in function doesn’t work?
    Best regards
    Attachments:
    case1-2.zip ‏44 KB

    Joel A wrote:
    You might want to look at the path building you are doing to find the RMS VI. If you are using relative paths, then LabVIEW calls like "VI Path" will have an extra path if the VI is an exe or inside an LLB.
    Drop some probes (indicators, outputs, etc.), rebuild and double check the paths. I've been burned by this before...
    If this is the case, you can use the VI properties, or path parsing to solve it.
    joel
    I don't think that is the problem. The RMS.vi is referenced as statically linked VI in the make1_dll.vi.
    As such it should be linked into the LabVIEW DLL as well. What I suspect is the problem is the fact that
    the RMS.vi uses the lvanlys.dll and that for some reason there is something going wrong with the LabVIEW
    test1.dll, which runs in the LabVIEW runtime context, calling lvanlys.dll while executed in the context
    of LabVIEW itself. Probably something to do with the changes to how lvanlys.dll is treated between LV 7.0
    and 7.1.
    I see this same behaviour on my system too, so an installation problem is quite unlikely. Other than that calling a LabVIEW dll from within LabVIEW makes not that much sense (but did work fine in the past save from some hassles in 6.0 and 6.0.1), I have no explanation why this doesn't work.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to eliminate advapi32.dll error in Labview RT

    Hi all,
    I am having a problem deploying a RT application to the remote machine. I get an error stating Error loading 'WS2Help '.dll: Missing
    export 'AllocateAndInitializeSid' from ADVAPI32.DLL'  After searching the internet for a while I know that this is a dll that the labview realtime os cannot use.  However I do not know if there is a tool/debugger that I can use that will tell me what vi's are calling this dll.  If I know what is calling it I figure I can figure out an alternative to that function.  Any help is appreciated. Thanks.

    Hi KidMoe,
    In addition to the information (and the program) from the thread that mathan linked, here is a little more about that dll.  WS2Help.dll is used by Internet and network applications.  Specifically, the file contains functions used by the Windows Sockets API.
    Regards,
    Charlie Piazza
    Staff Product Support Engineer, RF
    National Instruments

  • How to load DLL library on Labview?

    Hi
    I have an application that is working well in Visual C++ 2012. I would like to load the dll library on labview and to execute the code on labview. I have only the DLL file, the working application and the help file. Is it possible to realise this task on labview using Call Library Function Node.
    I have par example the following code in .cpp file:
    void CMTBClientUsingCOMDlg:nBnClickedConnect()
    // TODO: Add your control notification handler code here
    try
    // login to MTB, using english language
    m_MTBConnection->Login(("en"), &m_ID);
    // get MTB root (forcing an internal QueryInterface() on IMTBRoot!)
    m_Root = (IUnknown*)(m_MTBConnection->GetRoot((BSTR)m_ID));
    // ask root to return the number of devices
    int count = m_Root->GetDeviceCount();
    // list all devices
    for (int i=0; i < count; i++)
    _bstr_t name = ((IMTBIdentPtr)m_Root->GetDevice(i))->GetName();
    m_ComboDevices.AddString(name);
    if( m_ComboDevices.GetCount() > 0)
    m_ComboDevices.SetCurSel(0);
    OnCbnSelchangeDevices();
    m_BtnConnect.EnableWindow(false);
    m_BtnDisconnect.EnableWindow(true);
    catch(_com_error e)
    // connection close
    OnBnClickedDisconnect();
    DisplayError(&e);
    How to execute this code on labview?
    Best regards

    Hi
    I have attached the help file describing the dll library (MTBApi.dll). My working program made on Visual C++ Dot Net is very big and therefore I can’t attach it.
    In my header file I import at the beginning the dll library on this way:
     #import "MTBApi.tlb" named_guids
    using namespace MTBApi;
    Than I have a class:
    class CMTBClientUsingCOMDlg : public CDialogEx
    public:
    CMTBClientUsingCOMDlg(CWnd* pParent = NULL); // standard constructor
    ~CMTBClientUsingCOMDlg(); // standard destructor
    enum { IDD = IDD_MTBCLIENTUSINGCOM_DIALOG };
    protected:
    virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
    protected:
    HICON m_hIcon;
    IMTBConnectionPtr m_MTBConnection;
    IMTBRootPtr m_Root; 
    CComBSTR m_ID; 
    IMTBChangerPtr m_Changer; 
    IMTBDevicePtr m_Device;
    DECLARE_MESSAGE_MAP()
    public:
    afx_msg void OnBnClickedConnect();
    CButton m_BtnConnect;
    In my .cpp file I have:
    CMTBClientUsingCOMDlg::CMTBClientUsingCOMDlg(CWnd* pParent /*=NULL*/)
    : CDialogEx(CMTBClientUsingCOMDlg::IDD, pParent)
    m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
    CoInitialize(NULL);
    try
    // create an instance of the connection class which can connect to the server
    m_MTBConnection = IMTBConnectionPtr(CLSID_MTBConnection);
    catch(_com_error e)
    CMTBClientUsingCOMDlg::~CMTBClientUsingCOMDlg()
    void CMTBClientUsingCOMDlg:isplayError(_com_error* e)
    void CMTBClientUsingCOMDlg:oDataExchange(CDataExchange* pDX)
    CDialogEx:oDataExchange(pDX);
    DDX_Control(pDX, IDC_CONNECT, m_BtnConnect);
    BEGIN_MESSAGE_MAP(CMTBClientUsingCOMDlg, CDialogEx)
    ON_BN_CLICKED(IDC_CONNECT, &CMTBClientUsingCOMDlg:nBnClickedConnect)
    END_MESSAGE_MAP()
    BOOL CMTBClientUsingCOMDlg:nInitDialog()
    CDialogEx:nInitDialog();
    void CMTBClientUsingCOMDlg:nPaint()
    void CMTBClientUsingCOMDlg:nBnClickedConnect()
    try
    // login to MTB, using english language
    m_MTBConnection->Login(("en"), &m_ID);
    // get MTB root (forcing an internal QueryInterface() on IMTBRoot!)
    m_Root = (IUnknown*)(m_MTBConnection->GetRoot((BSTR)m_ID));
    // ask root to return the number of devices
    int count = m_Root->GetDeviceCount();
    // list all devices
    for (int i=0; i < count; i++)
    _bstr_t name = ((IMTBIdentPtr)m_Root->GetDevice(i))->GetName();
    catch(_com_error e)
    // connection close
    My question is how to start this code in labview. How to write the function in labview, par example this function:
    m_MTBConnection->Login(("en"), &m_ID);
    Best regards
    Attachments:
    MTBApi.zip ‏1935 KB

  • How to access Call Back Functions using *.dll in the Labview?

    Hai,
    I am Pavan Ram Kumar Somu.
    I am new to Labview, currently I am working on MVB Interface.
    I need to access the API functions from *.dll file in Labview, as of now , I am doing this with Call function Library node in Labview but it does not support the following data types like
        1. Pointer Arguments(To which memory it points in Labview)
        2. function pointers Arguments
        3 .pointers in structures and pointer structures in structures and many other data types.
    Please Answer the below queries also:
    1. How to pass pointer arguments to API functions in DLL and how to collect pointer  
        return types from API functions in DLL
    2. How to pass structure arguments to API functions in DLL and how to collect structure
        return types from API functions in DLL
    3. How to use callback functions(nothing but function pointers) in Labview and how to
        collect callback fuctions return types from API functions in DLL
    I need your help while passing these datatypes to API functions in DLL from labview.
    Suggest me if there is any other alternative for implementing this task.
    I am referencing some examples here:
    Examples:
    I)
    Unsigned short int gf_open_device(void *p_device_config, unsigned long int client_life_sign_timeout, unsigned short int *device_error)
    void *p_device_config: How to access/pass these arguments in LabView and to which memory location it points in LabView.
    II) #include <windows.h>
         #include <process.h>
         HANDLE rcvEvent0, rcvEvent1;
    /* Function call*/
    CanGetReceiveEvent(handle[0], &rcvEvent0);
    Above is a piece of C code, Now I want to use HANDLE datatype which is windows based, how to use these type in the LABVIEW.
    With regards
    Pavan Ramu Samu

    "Somu" <[email protected]> wrote in message news:[email protected]...
    Hai,
    I am Pavan Ram Kumar Somu.
    &nbsp;
    I am new to Labview, currently I am working on MVB Interface.
    &nbsp;
    I need to access the API functions from *.dll file in Labview, as of now , I am doing this with Call function Library node in Labview but it does not support the following data types like
    &nbsp;&nbsp;&nbsp; 1. Pointer Arguments(To which memory it points in Labview)
    &nbsp;&nbsp;&nbsp; 2. function pointers Arguments
    &nbsp;&nbsp;&nbsp; 3 .pointers in structures and pointer structures in structures and many other data types.
    &nbsp;
    Please Answer the below queries also:
    &nbsp;
    1. How to pass pointer arguments to API functions in DLL and how to collect pointer&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp; return types from API functions in DLL
    &nbsp;
    2. How to pass structure arguments to API functions in DLL and how to collect structure
    &nbsp;&nbsp;&nbsp; return types from API functions in DLL
    &nbsp;
    3. How to use callback functions(nothing but function pointers) in Labview and how to
    &nbsp;&nbsp;&nbsp; collect callback fuctions return types from API functions in DLL
    &nbsp;
    I need your help while passing these datatypes to API functions in DLL from labview.
    &nbsp;
    Suggest me if there is any other alternative for implementing this task.
    &nbsp;
    &nbsp;
    I am referencing some examples here:
    Examples:
    I)
    Unsigned short int gf_open_device(void *p_device_config, unsigned long int client_life_sign_timeout, unsigned short int *device_error)
    &nbsp;
    void *p_device_config: How to access/pass these arguments in LabView and to which memory location it points in LabView.
    &nbsp;
    II) #include &lt;windows.h&gt;
    &nbsp;&nbsp;&nbsp;&nbsp; #include &lt;process.h&gt;
    &nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp; HANDLE rcvEvent0, rcvEvent1;
    &nbsp;
    /* Function call*/
    CanGetReceiveEvent(handle[0], &amp;rcvEvent0);
    &nbsp;
    Above is a piece of C code, Now I want to use HANDLE datatype which is windows based, how to use these type in the LABVIEW.
    &nbsp;
    With regardsPavan Ramu Samu
    Search the forum (forums.ni.com) for callback, pointer or handle, and you'll find that it is all possible, but not very easy.
    e.g.: http://forums.ni.com/ni/board/message?board.id=170&message.id=88974&requireLogin=False
    Regards,
    Wiebe.

Maybe you are looking for

  • Exporting more than one address book at at a time

    How can a modern system such as mozilla not have a way to export and import all one's address books at one time. The old outlook was just one shot and done. So far the only way I can export or import address books is one at a time and I have 10 books

  • Non-static method setUp() cannot be referenced  (error)

    Hi; I have this error "findContainer.java": non-static method setUp() cannot be referenced from a static context at line 10, column 26 everytime i am trying to make this call jade.core.AddContTry.setUp();in public class findContainer {   public findC

  • How do I backup iTunes onto iCloud?

    I have a macbook! Thanks!

  • Using And Managing Eclipse

    How do people manage Eclipse? I have read the wiki and I find that installing plugins running as root is a pain because java isn't setup for the root user. If I install plugins as me through the IDE itself then they are blown away when Eclipse upgrad

  • Unable to access hosts from outside local network

    I have set up a few different name-based virtual hosts for a small client. DNS is set up correctly; sites can be accessed internally; everything is working OK. However, none of the virtual hosts can be accessed from outside their internal network. I