Using National Instruments LabVIEW with X-10

Has anyone written a LabVIEW instrument driver/s
for X-10 based devices?
Just curious.
Thanks,
bonzo
Sent via Deja.com
http://www.deja.com/

I have a simple driver that I wrote and posted at
http://tuffriders.50megs.com/vics/download/X10/ . It communicates with the
CM11 serial interface. National Instruments wrote a more thorough set of
drivers and examples for the 1999 NIWeek but I don't know where to download
it from.
Best Regards,
Neal Pederson, President, VI Control Systems
1923 Mendius Lane, Los Alamos, NM 87544
TEL: (505) 662-1461, FAX: (603) 388-4969
[email protected], www.vicontrols.com
wrote in message news:92d82o$hj0$[email protected]..
> Has anyone written a LabVIEW instrument driver/s
> for X-10 based devices?
> Just curious.
>
> Thanks,
>
> bonzo
>
>
> Sent via Deja.com
> http://www.deja.com/

Similar Messages

  • Getting started controlling Pico Technology devices using National Instruments LabView

    Hi all,
    PicoTechnology has uploaded a video at http://www.picotech.com/support/topic14211.html
    This video shows how to get started using the LabVIEW examples we provide in our Software Development Kit (SDK) which can be downloaded from http://www.picotech.com/software.html.
    For more information about using LabVIEW to control our devices please visit http://www.picotech.com/support/topic12601.html
    Kind Regards,
    Karunen
    PicoTechnology Technical Specialist

    Hi Kevin,
    I hope you had a good Thanksgiving. I am attaching a zip file with the LabVIEW project, my build specification and my version of "Greatest Common Divisor.vi", which should be the same as the one that you have that ships with the LabVIEW C Generator, but just in case. I am also attaching a zip file with the C files generated by the LabVIEW C Generator.
    You can also see the video I posted earlier with the steps I followed. I hope you are able to point out where I went wrong. 
    Thanks,
    Fab
    Certified LabVIEW Architect * Certified Professional Instructor * LabVIEW Champion
    Attachments:
    GreatestCommonDivisor.zip ‏8 KB
    CGen Files.zip ‏71 KB

  • LV runtime error in file C:\Program Files\National Instruments\LabVIEW 2010\CCodeGen\libsrc\os\rtx\LVThreads_rtx.c

    Hello,
    I tried to run my application on LM3S8962.
    The build succeeded. All LEDs are green,
    but the application doesn't run.
    The error message appears in the status window:
    [17:06:21] Status: Build Succeeded.
    LV runtime error in file C:\Program Files\National Instruments\LabVIEW 2010\CCodeGen\libsrc\os\rtx\LVThreads_rtx.c at line 141: 2 19
    This message isn't really enlightening to me.
    Doesn't anyone know how to solve the problem?

    Hi Peter,
    i tried to modify the code to isolate the problem.
    With the attached code the new error message appears:
    LV runtime error in file C:\Program Files\National Instruments\LabVIEW 2010\CCodeGen\libsrc\blockdiagram\CCGClusterSupport.c at line 141: 2 13
    What are the limits of clusters in LV ARM?
    My Toolchain:
    Tool Version Numbers:
    Toolchain:        RealView MDK-ARM  Version: 4.11
    Toolchain Path:    BIN40\
    C Compiler:         Armcc.Exe       V4.0.0.728
    Assembler:          Armasm.Exe       V4.0.0.728
    Linker/Locator:     ArmLink.Exe       V4.0.0.728
    Librarian:             ArmAr.Exe       V4.0.0.728
    Hex Converter:      FromElf.Exe       V4.0.0.728
    CPU DLL:               SARMCM3.DLL       V4.11
    Dialog DLL:         DLM.DLL       V1.19a
    Target DLL:             BIN\UL2CM3.DLL       V1.63
    Dialog DLL:         TLM.DLL       V1.19a
    Thanks
    Marco
    Attachments:
    ICUA4_SOURCE_DISTRIBUTION.zip ‏463 KB

  • Method not found: 'Void National Instruments.LabVIEW.Interop.LV Runtime.throw MissingDependencyException()'.

    Method not found: 'Void National Instruments.LabVIEW.Interop.LV Runtime.throw MissingDependencyException()'.
    My colleague created a Labview DLL for me to use in .NET.
    I have tried getting this DLL to work in 3.5 framework however it only worked on framework 2.0. 
    I recently tried again and now it will not work in framework 2.0 or any available frameworks.
    He is using Labview 2011. 
    I am a little baffled as to how the application just stopped working. The National Instruments Runtime I am using is Labview 2011, version 1.1.0.0. The labview dll he gave me is using 1.1.0.0 as well. I have tried using 1.0.0.0 and I get an error saying there is a mismatch.
    In addition, for some reason I was never successful in making this work in 3.5, and now I can't make it work in 2.0 either.
    Any help is greatly appreciated. I have tried re-installing the runtime engine, tried different versions like labview 2013 but no luck... 
    Everything works except when I call the dll procedure:
    LabVIEWExports.AxBClusterArrays(out ERR, out OUTDLL, INDLL);
    My Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using NationalInstruments.LabVIEW.Interop;
    using InteropAssembly;
    namespace WindowsFormsApplication1
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void Form1_Load(object sender, EventArgs e)
    InteropAssembly.LVCluster_1 OUTDLL = new InteropAssembly.LVCluster_1();
    InteropAssembly.LVCluster_2 INDLL = new InteropAssembly.LVCluster_2();
    double[] TestA = new double[1];
    double[] TestB = new double[1];
    for (int runs = 0; runs < 1; runs++)
    TestA[runs] = 1;
    TestB[runs] = 1;
    INDLL.A = TestA;
    INDLL.B = TestB;
    NationalInstruments.LabVIEW.Interop.ErrorCluster ERR = new NationalInstruments.LabVIEW.Interop.ErrorCluster();
    MessageBox.Show(NationalInstruments.LabVIEW.Interop.FrameworkVersion.Fx35.ToString());
    try
    //LabVIEWExports LVE = new LabVIEWExports()
    LabVIEWExports.AxBClusterArrays(out ERR, out OUTDLL, INDLL);
    catch (Exception f)
    MessageBox.Show(f.Message.ToString());

    Figured it out, I thought we where using Labview 2011, however it was Labview 2011 SP1. 
    Thus i had to install the runtime envioment 2011 SP1.
    Regards,
    ADL

  • Connecting OPCUDS 2.5 to National Instruments' LabVIEW

    Has anyone had to work with National Instruments' LabVIEW OPC server and succesfully connected to it via the UDS 2.5?
    Currently trying to achieve this and am having major issues with the UDS crashing the LabVIEW service everytime it is started.
    Thank You!

    No experience but it could be because of a large volume of Tags on the server.
    What about any other OPC client?
    I had a nearly similar experience with RSLinx when the UDS seemed to stop responding everytime we started it (it did not affect the OPC server though) and finally what we found was, all the UDS needed was some time to actually establish the connection because of the large number of Tags on the server.

  • \National Instruments\LabVIEW 2011\vi.lib\addons\_office\excel.llb\Excel Set Cel

    \National Instruments\LabVIEW 2011\vi.lib\addons\_office\excel.llb\Excel Set Cel  with a broken arrow
    Attachments:
    error pic.png ‏27 KB

    version of Excel is 2010, but i have this problem with Excel 2007, Excel 2003. This property also has a problem in old  versions of  labview  (8.6; 9; 10).
    Attachments:
    excel1.png ‏86 KB
    pic2.png ‏4 KB
    excel version.png ‏38 KB

  • Where can I find VI Description & usage for VIs in Program Files\National Instruments\LabVIEW 2009\vi.lib\variable

    In the the said folder are many VIs.  They are all part of the NI_Variable.lvlib.    However there is no help or description (context help just shows the terminals and names) for many of these VIs.  Where can you find more 'help' on these VIs, the block diagram is password protected.

    Hi phillman,
    If there is no detailed help in the LabVIEW help, or on ni.com, you will probably need to ask about specific VIs for more detailed information. I would first search the LabVIEW help and the website, however.
    Let me know if you have specific VI questions!
    Take care!
    Tanya V
    National Instruments
    LabVIEW Platform Product Support Engineer

  • National Instruments PXI with IEEE 802.15.4 standard (ZigBee)

    Bonjour,
    En fait, je travaille sur  un projet qui a pour but d’implémenter un émetteur/récepteur Zigbee en bande de base reconfigurable sur la plateforme d'évaluation XUPV5-LX110T qui embarque un Virtex 5. Je suis actuellement dans la phase de test réel.
    Premièrement, Je veux envoyer mes données venant d’un pc vers un FPGA et de les recevoir (pour traiter mes signaux sur Matlab). Est-ce-que cette tâche est faisable ou non ? Y a-t-il une solution pour ça en utilisant un média de communication (la liaison série par exemple)
    Deuxièmement, Y a-t-il un équipement de mesure et de test de National Instruments à l’aide des PXI qui supporte le protocole sans fil Zigbee ou autrement la norme IEEE 802.15.4 (à savoir RF Vector Signal Generator et Vector Signal Analyzer) de la partie frontale analogique que ce soit en émission ou en réception?
    Et merci d’avance pour tout le monde.
    Hello,
    In fact, I'm working on a project which aims to implement a reconfigurable Zigbee tranceiver on XUPV5-LX110T Evaluation platform which integrates a Virtex 5 FPGA. I am currently in the phase of real test.
    First, I want to send my data from a PC to FPGA and receive it (to treat my signals on Matlab). Is this possible or not? If yes, Is there a solution for it using a medium of communication (e.g. serial link)
    Second, is there a measuring equipment and testing National Instruments using PXI which supports the Zigbee wireless protocol or otherwise IEEE 802.15.4 standard (i.e. RF Vector Signal Generator and Vector Signal Analyzer) of the analog front-end either in transmission or reception?
    And thanks a lot in advance for everyone.

    Hello,
    I am not sure what data you will be collecting, or how you intend on using the board. Perhaps you can explain your application a little bit more?
    Is the FPGA code already developed for your application with the XUPV5-LX110T board? As long as the developed FPGA code is able to communicate with your PC via whatever protocol you choose, then you can use that as a channel to send data back and forth. Since the board is capable of many different I/O connections, you can pretty much sending/receive data over which ever connection you prefer, Ethernet, RS-232, etc.
    Just to clear up any confusion, if you do not already have FPGA code for the board, this is not something you would be able to develop with LabVIEW FPGA programming. The XUPV5-LX110T board is not supported for programming its FPGA using LabVIEW FPGA. You can however, program in labVIEW to communicate data back and forth with the I/O you have chosen to connect with to your PC, such as Ethernet or RS-232, as mentioned above.
    As far as measuring equipment NI offers for testing with the Zibee (IEEE 802.15.4) wireless protocol in the PXI platform, if your application requires you to both transmit to, and received from the board, and then you would need either both a Vector Signal Generator and Vector Signal Analyzer, or a Vector Signal Transceiver. See the list below for some examples of what we have to offer.
    VSAs: NI PXI-5661, NI PXIe-5663E
    VSGs: NI PXI-5671, NI PXIe-5672/5673E
    VSTs: NI PXIe-5644R/5645R/5646R
    From my knowledge of ZigBee, you would be capable of communicating with the board using any of these devices.
    Matthew R.
    Applications Engineer
    National Instruments

  • Why can't national instruments software recognize my CEC GPIB card.

    I am trying to use national instruments software with a plug and play cec (Capitol Equipment) PCI GPIB card. The device shows up (as working properly) in device manager. I also downloaded and installed new drivers from the CEC website. However National Instruments software does not recognize the card's existance.

    What NI software are you trying to use and what drivers from CEC did you install? Low level NI functions like ibwrt, ibrd, or LabVIEW GPIB functions only work with NI boards. If CEC provides a VISA installation, you should be able to use that and NI VISA calls. Otherwise, you'll have to use the CEC functions.

  • NATIONAL INSTRUMENT​S LABVIEW REALTIME V6.1, NI-488.2 V2.01, CNC CADCAM

    IAR, NATIONAL INSTRUMENTS LABVIEW REALTIME V6.1, NI-488.2 V2.01, CNC CADCAM
    IAR,
    Microwave Design Office 2002, Cadence, OrCAD, Protel, FPGA, VHDL,
    Natinst, Xilinx, Siemens Simatic, Labview, metrowerks codewarrior8
    [2CDs],
    other 20 gigabytes/week software for pc and mac
    send email for catalogue

    Hello,
    Which driver have you on your computer ? You can see them in MAX >> Software. Which is version of ni-visa, ni-488.2 ?
    What kind of protocol do you want to use : gpib, serial, parallel ?
    What ahhpens in AMX when you test your communication ?
    What are error code and error string ?
    Regards,
    Isabelle
    Ingénieur d'applications
    National Instruments France

  • Event Handling in labview with arrays as event data

    Hey folks,
    I have a Labview Application which uses a dll to read Ethernet data. The setup is such that, when the dll has fresh data it sends out an event to the Labview Application so that the fresh data can be displayed.
    However i have only managed to get this event based mechanism to send out a single structure at a time. Hence if there are 10 fresh data values, i need to send out 10 events (each event structure contains the parameter name, parameter value, unit and time stamp). It would be more efficient to send out an array of structures in a sigle shot.
    I have tried this but Labview keeps crashing saying that an error was encountered and Labview needs to close along with an access violation message. I did a lot of online searching and found some LV code for event handling but not come accross any implementation which uses arrays as evend data. Is this supoorted? And if so is there any example vi that can be shared so that i get some knowledge about this.
    Many Thanks in adavance,
    Abel. 

    I also gave a try by using a variant as the event data type instead of the cluster which contains the array of floats. I converted the cluster into a variant and used that to create the user event reference. Followed the same logic while decoding the dats.
    But still the crash.... Here is the windbg output...
    ModLoad: 07580000 075b7000 C:\Program Files\National Instruments\LabVIEW 2012\resource\lvalarms.dll
    ModLoad: 0ca90000 0cb72000 C:\Program Files\National Instruments\LabVIEW 2012\resource\mesa.dll
    ModLoad: 0c7f0000 0c7f9000 C:\Program Files\National Instruments\LabVIEW 2012\resource\lvuste.dll
    ModLoad: 35000000 3509b000 C:\Program Files\National Instruments\Shared\TDMS\tdms.dll
    ModLoad: 0c860000 0c87c000 D:\SapphireViewer\dll\SapphireClientDll.dll
    ModLoad: 0e240000 0e2c7000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.6195_x-ww_44262b86\MSVCP80.dll
    ModLoad: 0e2d0000 0e36b000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.6195_x-ww_44262b86\MSVCR80.dll
    (1cb0.1a34): Access violation - code c0000005 (first chance)
    First chance exceptions are reported before any exception handling.
    This exception may be expected and handled.
    eax=0e47f8b4 ebx=051f0040 ecx=051f0040 edx=061e5764 esi=22820840 edi=07b10040
    eip=03c2050c esp=0e47f5cc ebp=0e47f810 iopl=0 nv up ei pl nz na po nc
    cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010202
    *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Program Files\National Instruments\LabVIEW 2012\resource\tdcore_12_0.dll -
    tdcore_12_0!LvVariant:etContents+0xac:
    03c2050c 837e3100 cmp dword ptr [esi+31h],0 ds:0023:22820871=????????
    I cannot really tell whats going on. Looking for some pointers.
    Regards,
    Abel.

  • TCP/IP instrumented debugging with Blackfin EZ-kit

    I have been evaluating the LabVIEW for Blackfin with a BF537 EZ-Kit the last few days...so far, I have been able to get all the example programs to run using the non-instrumented USB debugger interface.
    I have run the Web Server Buttons example, and I can cause the LEDs to blink by pressing the buttons on the browser interface, so I know that my crossover cable and DHCP server are running correctly on my laptop, and that I can communicate with the EZ-Kit over TCP/IP.
    When I get to the example where they want you to debug using the instrumented TCP/IP debugger interface, the program loads using USB, then I get a dialog box that looks like it's trying to make a connection to the EZ-Kit via TCP, but the dialog disappears after a 20-30 seconds, and the program does not run.  During the time the dialog is waiting to connect, I can ping the EZ-Kit from a DOS box and the EZ-Kit has acquired an IP address from my DHCP server.
    What I am wondering is this:  how does the debugger interface know what the IP address is to perform the instrumented debugging?  Is there a config file somewhere that I need to enter an IP address into?  Does the debugger use UDP to find the EZ-Kit?  The debugger does not seem to be able to find the Ez-Kit, and it occurs to me that I haven't told any of the LabVIEW components what IP address that EZ-Kit will have....

    The implementation of the Blackfin target is partially located in "plug-in" VIs that you can access. Open "C:\Program Files\National Instruments\LabVIEW 7.1 Embedded\resource\LabVIEW Targets\Embedded\vdk\vdk_LEP_TargetPlugin\LEP_vdk_ScriptCompiler.vi". You can see in the attached screenshot where this plugin VI determines the IP of the host PC and concatenates it in as a compiler flag. You can modify this LabVIEW code to hard-code that IP if you have multiple IP addresses, or even add functionality to programmatically get the correct IP address!
    Message Edited by Michael P on 09-14-2006 02:22 PM
    Michael P
    National Instruments
    Attachments:
    BFIP.JPG ‏49 KB

  • Getting errors and LabView with ARM project won't compile

    Hello there, I am currently turning to make a project run on a STM32f103C8 chip using LabView with ARM. I am currently trying to compile a ARM project but I have no been successful.
    I have tried using the STM32F10x template uploaded by Joshua, and it tries to compile. At first I was getting the "stm32f10x_tim1.c" file missing error, but that was solved by downloading the file from firmware v1 and adding it to the includes folder. but now i am getting a new error saying "profile_timer.h" is missing.
    I am using:
    Windows 7
    LabView 2010 evaluation
    NI ARM module
    and I am trying to compile a empty project
    Here is the error code message, any hepl will be useful, thanks:
    [12:39:37 PM] Status: Error
    Build target 'LabVIEW'
    compiling RTX_Config.c...
    F:\National Instruments\LabVIEW 2010\CCodeGen\include\os\rtx\LVDefs_plat.h(17): error:  #5: cannot open source input file "profile_timer.h": No such file or directory
    compiling Retarget.c...
    F:\National Instruments\LabVIEW 2010\CCodeGen\include\os\rtx\LVDefs_plat.h(17): error:  #5: cannot open source input file "profile_timer.h": No such file or directory
    compiling TargetInit.c...
    F:\National Instruments\LabVIEW 2010\CCodeGen\include\os\rtx\LVDefs_plat.h(17): error:  #5: cannot open source input file "profile_timer.h": No such file or directory
    compiling ARM_Serial.c...
    F:\National Instruments\LabVIEW 2010\CCodeGen\include\os\rtx\LVDefs_plat.h(17): error:  #5: cannot open source input file "profile_timer.h": No such file or directory
    compiling LVTree.c...
    F:\National Instruments\LabVIEW 2010\CCodeGen\include\os\rtx\LVDefs_plat.h(17): error:  #5: cannot open source input file "profile_timer.h": No such file or directory
    compiling Pict.c...
    F:\National Instruments\LabVIEW 2010\CCodeGen\include\os\rtx\LVDefs_plat.h(17): error:  #5: cannot open source input file "profile_timer.h": No such file or directory
    compiling arrresize.c...
    F:\National Instruments\LabVIEW 2010\CCodeGen\analysis\development\include\platdefines.h(321): error:  #35: #error directive:
    Target not created
    Status: Build failed.

    blank projects using other included boards seem to compile fine
    and i have added a mock "profile_timer" to the keil library (just as a quick fix) and it seems to have stopped a lot of the errors, however i am still getting a few
    these seem to be:
    compiling CCGDatalogSupport.c...
    F:\National Instruments\LabVIEW 2010\CCodeGen\libsrc\comms\CCGDatalogSupport.c(23): error:  #5: cannot open source input file "CCGFileSupportPriv.h": No such file or directory
    compiling CCGFileSupport.c...
    F:\National Instruments\LabVIEW 2010\CCodeGen\libsrc\comms\CCGFileSupport.c(22): error:  #5: cannot open source input file "CCGFileSupportPriv.h": No such file or directory
    compiling CCGFileSupport2.c...
    F:\National Instruments\LabVIEW 2010\CCodeGen\libsrc\comms\CCGFileSupport2.c(22): error:  #5: cannot open source input file "CCGFileSupportPriv.h": No such file or directory
    compiling CCGIrDASupport.c...
    compiling CCGNetConnRefNum.c...
    compiling CCGSerial.c...
    compiling LVTree.c...
    compiling Pict.c...
    compiling arrresize.c...
    F:\National Instruments\LabVIEW 2010\CCodeGen\analysis\development\include\platdefines.h(321): error:  #35: #error directive:
    Target not created
    Status: Build failed.
    i'll see if i can find a file for the ccgfilesupportpriv.h but the error directive worries me a bit

  • Controlling Labview with C#: error code -2147352571

    Hi,    
      I need to call LabVIEW and pass parameters to LabVIEW from C# so that I can use labview as a sort of "driver" to control my signal generator from C#.
    I found this tutorial for controlling LabVIEW from C#: http://zone.ni.com/devzone/cda/epd/p/id/3838
    It contains a C# project that calls a vi which acts as a calculator, parsing a string and computing an answer.
         I am trying to use this file as a base to work from by changing a few lines to make C# code that calls a different vi (the one that controlls my signal generator).
    I have attached both the Signal_Generator_Controller_For_Sentry_Testing.vi and the CallLV project that I modified and the origional from NI.
    I get this error when I click "Run vi" from the C# gui:   Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))
    If I click "view detail" from the "COMException was unhandled", I find that the error code is -2147352571. The error occurs at this line in the C# code:
    //Call the VI
    vi.Call(ref param1,ref param2);
         Here are the experiments I performed (that didn't solve the problem):
    Since the demo vi that NI made is contained in a llb file, I built a project that contained this vi, added an llb file to the project, and put Signal_Generator_Controller_For_Sentry_Testing.vi in the llb file.
    My vi is all inputs (the only output is the signal generator, which is not on the front pannel, obviously). I have tried changing the connector pane so that one of the connectors was an output.
    I have tried googling the error messages: there isn't anything specific enough to this problem (C# communicating with labview), the error message occurs in situations in multiple programming languages.
    I have tried passing the parameters "by val" rather than "by ref", but a different error occurs.
         Here is what I am able to deduce/ what I have noticed:
    The vi that NI created to demo communicating with C# "seems to be unable to leave run mode". When you call Labview from C#, the front pannel comes up and you cannot select the "stop button": it is grey. The Pause button doesn't stop exectution either. This makes me think that the vi was compiled in a different manner. I am more inclined to believe that teh vi is formated incorrectly rather than the C# code working improperly.
    The types of the two parameters, param1 and param2, going into the call statement  are "string" and "object" respectively. This is the same as with the NI code, which works fine. It is not an error with an incorrectly sized array parameter; that gives a different error message and I have fixed that problem. So, even though the error message says "type mismatch, I don't think that the input parameters to the Call function are incorrect.
       To Reproduce this error:
    I have Microsoft Visual C# Express 2008 Edition
    I am using Labview version 8.6
    In my version of the C# code, in this line: string vipath = @"C:\Program Files\National Instruments\LabVIEW 8.6\builds\Sentry_Test\Sentry.llb\Signal_Generator_Controller_For_Sentry_Testing.vi";
    You will have to change the directory to wherever you store the vi.
    You will need the "Labview" Library so that the C# line "using Labview" will work. I think it is downloaded by default either by labview or visual studio.
    In the C# file that NI created, you must add a fourth parameter '3' in  the line vi= lv.GetVIReference(vipath,"",true) as the last parameter. You get a compiler error otherwise. That was a mistake NI made.
    Thank you for the help.
    --Zach
    Attachments:
    CallLV_Zachs _Version.zip ‏126 KB
    callLV_NI_Version.zip ‏48 KB
    Signal_Generator_Controller_For_Sentry_Testing.vi ‏12 KB

    Zach,
    Unfortunately, I do have more of a knowledge
    of how to control objects using ActiveX in LabVIEW and not the other way
    around.  What ActiveX properties and methods are you using in your code and what are the input parameters that you are trying to pass?  You mentioned that you only have two input parameters, but the VI you posted has 3 inputs.  My guess would be that if you are indeed seeing a type mismatch, it is trying to pass an data type LabVIEW does not know what to do with.  This has been seen when trying to pass strings as Task data types (like the VISA Session).  
    ColeR
    Field Engineer

  • Using an external DLL with "Call Library Function"

    Hi!
    I am trying to use an external DLL which is used from Visualbasic & Delphi:
    http://www.keb.de/common/tools/KEBCOMDriver.zip
    the protKEB.dll accesses the serial port to control an KEB frequency
    inverter.
    Unfortunatly there is no prototype header file for the DLL (no help on that
    from KEB).
    I only have a VisualBasic example program which works with the DLL.
    (Unfortunatly I am no Visual basic expert)
    To initialize the com port I have to use the function: setprotproperties &
    getprotproperties
    they are declared as:
    'Setting the protocol properties
    'ctrl is a pointer to a data structure of type tProtProperty
    Declare Sub setprotproperties Lib "protkeb.DLL" (ctrl As Any)
    'Reading the protocol properties
    'ctrl is a pointer to a data structure of type tProtProperty
    'the desired protocol is entered in ctrl.prottype before calling
    Declare Sub getprotproperties Lib "protkeb.DLL" (ctrl As Any)
    and tProtProperty is:
    Public Type tProtProperty
    ProtType As Long 'Type of Protocol (tProt)
    TimeOut As Long 'ALL protocols
    Baudrate As Long 'ANSI, HSP5
    Comport As Long 'ANSI, HSP5
    Flag As Long 'ANSI, HSP5: 01 = Sendslow
    / IP: 01 = UDP
    Port As Long 'IPort number
    Txtlen As Byte 'IP : length of following
    text or 0
    txt As String * 100 'IP : IP-Address or name
    (maximum length)
    End Type
    I already tried to use a cluster with tProtProperty entries as an Input for
    the function
    setprotproperty in a call library function with:
    Parameter Type : Adapt to type
    Data Format: Pointer to Handle
    but I always get an "exception within external code....."
    What am I doing wrong?
    How does a cluster & a "call library function node" look like that works?
    Any help is really appreciated!
    thanks
    tom
    ,-Thomas Kerberger Physikalisch-Technische Bundesanstalt-.
    | Abbestr.2-12 D-10587 Berlin fon: +49-30-3481338 |
    | mailto:[email protected] fax: +49-30-3481386 |
    `--------Labor 7.33 Messung thermischer Energie---------'

    Thomas,
    LabVIEW cannot call a DLL that has structures directly, you will need to create either a wrapper DLL or CIN that will take in all of the data individually construct the structure, and send it to the DLL function.
    For more information on what a cluster looks like in native code, I would suggest creating a simple cluster, creating a Call Library Function Node on the block diagram with a cluster input. Then right-click on the Call Library Function Node and choose "Create .c file". This will generate the data structure for the cluster and give you a better feel for it. I would then suggest going to the Using External Code in LabVIEW manual that can be found in the LabVIEW Bookshelf (Start»Programs»National Instruments»LabVIEW 6»LabVIEW Manuals or »LabV
    IEW 6.1»Search the LaBVIEW Bookshelf).
    There is also the following: Developer Zone: Passing a Variety of Data Types from DLL to LabVIEW.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

Maybe you are looking for

  • Laserjet Pro 400 MFP Cover Page

    We just installed the above multi-function device. I understand the software included with this device in limited in capability with its scan to fax function. Currently this deice won't add cover pages unless the needed cover page is scanned in addit

  • Recording...music track cuts out

    While recording female voice track over music...the music playback cuts out in the headsets aprox 2 minutes into the song. What causes this? Its frustrating because it prevents me from mixing a complete song and my artist is really peeved.

  • KP06 is not allowing to post monthly planning.

    Hi , I have done configuration for KP06 to upload data from excel sheet. Configuration done. 1) created planning profile in KP65. copy 1-101 to Z1-101 and maintained monthly 1 to 12 period, 2) Assigned Profile in layout Kp34. but planing data is not

  • Cfc component with readonly properties and web services

    I want to transfer a cfc component across coldfusion web services as a data transfer object. This cfc component is received when calling a load web service, and then supplied to an update web service. Some properties within the cfc need to be readonl

  • BW Currency Conversion with rate of next year

    Hi, I need to show cumulated values of previous year(PYTD) converted with the exchange rate of the current year (e.g. Jan 06 value converted with Jan 07, Feb 06 with Feb 07 etc.). I can't upload the converted value, because the rate (monthly average)