LabWindows 5.0 cvi to LabWindows​2012

hi i am trying to start the update of a CVI, LabWindows 5.0 to 2012, I already try to run that same labwin CVI in 2012, with the patch Traditinal NI-DAQ, but serious errors occur if I continue running, the pc rebooted. (things appear as uninitialized variables or undeclared, when some lines actually arrives, they are declaring or initializing)
If anyone has had experience upgrading CVI of NI-DAQ to DAQmx, I would appreciate to give me some advice, one of my questions is where should I start debugging on the Traditional NI-DAQ or already on the current DAQmx driver
manny thanks
hola estoy tratando de empezar la actualizacion de un CVI, de labWindows 5.0 a labWindows 2012, yo ya trate de correr ese mismo CVI en labwin 2012, con el parche Traditinal NI-DAQ, pero surgen errores graves que si lo sigo ejecutando, la pc se resetea.( aparecen cosas como variables no inicializadas o no declaradas, cuando en realidad unos lineas arriva, estas estan declarando o inicializando)
Si alguien a tenido experiencias actualizando CVI del NI-DAQ a DAQmx, le agradeceria que me diera un consejo, una de mis preguntas es donde debo iniciar a depurar, sobre el Traditional NI-DAQ o ya sobre el actual driver DAQmx.
En poco tiempo si lo creen pertinente puedo subir el proyecto que corre actualmente en labwindows 5.0
Gracias.

Transitioning from and old, Traditional DAQ application to a newer IDE with DAQmx is a quite complex process that implies a lot of code rewriting, First of all, I would look whether original application can be ported to CVI2012 and Traditional DAQ with the only work needed to have it functional, in order to minimize the time spent in this activity. Additionally, if you are using an old DAQ device you must firstly check whether it can be driven by DAQmx or not.
Nevertheless, if you decide to port your application to DAQmx, here is the first part of a good white paper on this subject that can be very helpful to you. Consider that DAQmx paradigm is very different from Traditional DAQ one: while this saves you a lot of work while developing an application from scratch, it will nevertheless imply a complete reconsidering of all acquisition / generation processes to migrate them to the new standard.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • Compiling examples closes LabWindows/CVI

    I have a NI USB-5132 module, with NI-SCOPE 3.7.  I can bring up the device in "Measurement and Automation Explorer", and sees it as "Dev1".  I can bring up NI-Scope Soft Front Panel, and toggle the device, read whatever I want to read.  However, I'm trying to run on my CVI/LabWindows 2009 platform, but when I try to compile ANY of the examples, the development software closes.  No error message....nothing.  When I try to create a new DAQmx task, it sees no available devices for ANY of the possible measurements.  
    Please help!  Otherwise, it would seem my work has purchased a very expensive method to click the exit button.

    Hi Chris, 
    I'm sorry to hear that you are having so much trouble! Could you please provide some more details regarding when you experience this crash? Does this crash occur when you compile all programs or just specific ones? What examples are you attempting to compile? If this is the first time that you are compiling and are experiencing this issue, please refer to the following known bugs in CVI 2009
    LabWindows™/CVI™ 2009 and 2009 SP1 Known Issues
    LabWindows/CVI may crash if compiling a project that includes LabWindows/CVI header files with a line containing the #pragma soft_reference statement
    Compiling a file with a syntax error can cause LabWindows/CVI to crash.
    If these known bugs are not relevant to your code, can you please post a WinDbg log. The following explains how to do this. Despite this article being applied to LabVIEW, this is relevant for CVI as well.
    Using WinDbg for LabVIEW Error Reporting
    If you are running an operating system previous to Windows 7, please refer to the following: 
    Description of the Dr. Watson for Windows (Drwtsn32.exe) Tool
    I look forward to your response. Have a great day!
    Regards,
    Jackie
    DAQ Product Marketing Engineer
    National Instruments

  • ISO8601 date standard in LabWINDOWS CVI 2012

    My problem:
    function FormatDateTimeString returns different calendar week than ISO8601 standard (one week less for 2013)
    Questions:
    1. what standard do CVI's time related functions from User Interface Library follow?
    2. can this standard be changed to ISO8601 through a function call/setting?
    3. is there another solution instead of writing a ISO8601 week number conversion function?
    Example:
    #define DATETIME_FORMATSTRING "%m-%d-%Y cw%W %H:%M"
    //get current date-time-day dateTimeBuffer example "10-19-2010 cw42 19:56"
    GetCurrentDateTime (&currDateTime);
    bufferLen = FormatDateTimeString (currDateTime, DATETIME_FORMATSTRING, NULL, 0);
    dateTimeBuffer = malloc (bufferLen + 1);
    FormatDateTimeString (currDateTime, DATETIME_FORMATSTRING, dateTimeBuffer, bufferLen + 1 );
    //will return calendar week 04 in dateTimeBuffer for 29.01.2013, but actually it's calendar week 05 in Europe

    Hello Ioachim,
    I don't know which standard are using CVI date functions, but having already noted that difference I have published here a function to calculate week according to that standard. Feel free to examine it and reuse in your programs.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Installing of 2012 DS 1 hangs at Labwindows​/CVI Product 16 of 18

    Keep getting the error wrong volume in the drive. Insert 2012DS1DVD1. WHen I insert DVD1 I am prompted to insert 2012DS1DVD3.
    What's the fix?
    Mech.Mon

    Sorry, no error log to share; but I had the same problem:  Dev Suite installation ran fine up to same step (16 of 18), and then threw a 'Wrong Volume" error saying it wanted DVD#1 instead of #3.  When I put in DVD#1 and hit 'retry', it immediately threw the same error again, but this time asked for DVD#3.  After this second disc swap, the install proceeded, only to throw the same sequence of error messages when commencing to install the very next component.  In my case, it turned out the error messages were somehow being caused by my antivirus software, which I'd neglected to disable during the install.  The key hint was the title on the error popup:  'avgrsx.exe' is a component of my AVG antivirus software.  When I disabled the AVG antivirus, the remainder of the installation proceeded without interruption.  Oops...

  • Desktop Execution Trace Toolkit: "unknown leak" from event "reference leak"

    Does anyone know what "unknown leak" means?  is it bad? Thanks. 

    So by asking more questions about my question, are you implying you don't know if it's harmless or not?  Yikes  
    Which "shipping" examples are you referring to?  
    Luckily, there aren't any errors when I'm using the VI.  The only strange behavior is that sometimes Labview will crash with 0xC0000005 if I hit stop and then I hit run again within a few seconds.  I guess sometimes labview needs to rest? 
    I'm using Labview 2013 and DAQmx 9.7.5.  Below are the software installed on this machine.  Thanks. 
    Spoiler (Highlight to read)
    Name Version
    Advanced Signal Processing Toolkit 13.0.0
    C Series Module Support 13.0.0
    Common 12.0.20.258
    Common 13.0.35.190
    Common 13.0.40.190
    Common 13.0.40.190
    Common (64-bit) 13.0.35.190
    Common (64-bit) 13.0.40.190
    Common (64-bit) 13.0.40.190
    CompactRIO 13.0.0
    Configuration Support 2.9.3
    Configuration Support 1.8.5
    Configuration Support 2.7.5
    Configuration Support 1.9.5
    Configuration Support 4.0.5
    Core 13.0.0.242
    Core 13.0.0.242
    Core 13.0.0.242
    CVI 13.0.0
    CVI AddOns LabWindows/CVI Shared AddOns
    CVI Run-Time 13.0.0.632
    Database Connectivity Toolkit 13.0.0
    DataSocket 13.0.35.242
    DataSocket 13.0.40.242
    DataSocket 13.0.45.242
    Design 13.0.35.242
    Design 13.0.40.242
    Design 13.0.45.242
    Design (64-bit) 13.0.35.242
    Design (64-bit) 13.0.40.242
    Design (64-bit) 13.0.45.242
    Development Support 2.9.3
    Development Support 1.8.5
    Development Support 2.7.5
    Development Support 1.9.5
    Development Support 4.0.5
    Digital Filter Design Toolkit 13.0.0
    DMM Soft Front Panel 3.1.0
    DotNET
    DotNET
    DotNET
    DotNET
    FGEN Soft Front Panel 2.7
    Gpib 13.0.35.159
    Gpib 13.0.40.159
    Gpib 13.0.45.159
    Gpib (64-bit) 13.0.35.159
    Gpib (64-bit) 13.0.40.159
    Gpib (64-bit) 13.0.45.159
    Image Processing and Machine Vision 13.0.0.49156
    Integration 13.0.35.242
    Integration 13.0.40.242
    Integration 13.0.45.238
    IVI Compliance Package 4.6
    LabVIEW 13.0.0
    LabVIEW Run-Time 2010 SP1 10.0.1
    LabVIEW Run-Time 2011 SP1 f2 11.0.1
    LabVIEW Run-Time 2012 SP1 f3 12.0.1
    LabVIEW Run-Time 2012 SP1 f3 (64-bit) 12.0.1
    LabVIEW Run-Time 2013 13.0.0
    LabVIEW Run-Time 8.5.1 8.5.1
    MathScript RT Module 13.0.0
    Measurement & Automation Explorer 5.5.0f0
    Measurement Studio Visual Studio 2005 Support - See individual versions below.
    Measurement Studio Visual Studio 2008 Support - See individual versions below.
    Measurement Studio Visual Studio 2010 Support - See individual versions below.
    Measurement Studio Visual Studio 2012 Support - See individual versions below.
    NationalInstruments.DAQmx 9.6.35.292
    NationalInstruments.DAQmx 9.6.40.292
    NationalInstruments.DAQmx 9.6.45.292
    NI FlexRIO 13.0.0f0
    NI I/O Trace 3.1.0f0
    NI Motion Assistant 13.0.0
    NI PXI Platform Services 3.2.3
    NI R Series Multifunction RIO 13.0.0
    NI Script Editor 1.3.4
    NI SignalExpress 7
    NI SoftMotion 13.0.0
    NI System Configuration 5.5.0f0
    NI TestStand 5.1
    NI Vision Run-Time 13.0.0
    NI-488.2 Software 3.1.1
    NI-DAQmx ADE Support 9.7.5
    NI-DAQmx Device Driver 9.7.5f1
    NI-DAQmx MAX Configuration 9.7.5
    NI-DCPower
    NI-DCPower Soft Front Panel 1.8.5
    NI-DMM 3.1.0
    NI-FGEN
    NI-HSDIO 1.9.5.0
    NI-HWS 1.5.1
    NI-IMAQ I/O 2.7.0
    NI-IMAQ Software 4.7.3
    NI-IMAQdx 4.2.0
    NI-Motion 8.5.0.3000
    NI-PAL Software 2.9.1
    NI-RFSA
    NI-RFSA Soft Front Panel 2.6.1
    NI-RFSA Soft Front Panel (Classic) 2.5.2
    NI-RFSG
    NI-RFSG Soft Front Panel 1.9.5
    NI-RIO 13.0.0
    NI-SCOPE
    NI-Serial Software 4.0.0
    NI-SWITCH 4.6.5f0
    NI-Sync 3.4.0
    NI-TClk 1.9.3
    NI-USI 2.0.1.5249
    NI-VISA 5.4
    NI-VISA Runtime 5.4
    NIvisaic.exe 5.4.0.49152
    NiVisaServer.exe 5.4.0.49152
    PID Control Toolkit 13.0.0
    PID Toolkit 2.1.0
    Profiler Toolkit 1.0.0
    Real-Time 13.0.0
    Report Generation Toolkit For Microsoft Office 13.0.0
    Run-Time 2.9.3
    Run-Time 1.8.5
    Run-Time 2.7.5
    Run-Time 1.9.5
    Run-Time 4.0.5
    SCOPE Soft Front Panel 4.0.5
    Services 13.0.0.49156
    Signal Processing Toolkit 7.0.2
    Soft Front Panel 4.6.5.49152
    SQL Toolkit 2.2.0
    System Identification Toolkit 2013
    Tdms 13.0.35.242
    Tdms 13.0.40.242
    Tdms 13.0.45.242
    Tdms (64-bit) 13.0.35.242
    Tdms (64-bit) 13.0.40.242
    Tdms (64-bit) 13.0.45.242
    UI 13.0.35.242
    UI 13.0.40.242
    UI 13.0.45.242
    UI (64-bit) 13.0.35.242
    UI (64-bit) 13.0.40.242
    UI (64-bit) 13.0.45.242
    UI.WebForms 13.0.35.242
    UI.WebForms 13.0.40.242
    UI.WebForms 13.0.45.242
    UI.WebForms (64-bit) 13.0.35.242
    UI.WebForms (64-bit) 13.0.40.242
    UI.WebForms (64-bit) 13.0.45.242
    Unit Test Framework Toolkit 13.0.0
    VI Analyzer Toolkit 13.0.0
    Visa 13.0.35.167
    Visa 13.0.40.167
    Visa 13.0.45.167
    Visa (64-bit) 13.0.35.167
    Visa (64-bit) 13.0.40.167
    Visa (64-Bit) 13.0.45.167
    Vision 13.0.20.101
    Vision 13.0.35.101
    Vision Builder AI 5.0.3
    Vision Development Module 13.0.0
    WPF.Controls 13.0.40.242
    WPF.Controls 13.0.45.242
    WPF.Controls (64-bit) 13.0.40.242
    WPF.Controls (64-bit) 13.0.45.242
    WPF.Controls.Design 13.0.40.242
    WPF.Controls.Design 13.0.45.242
    WPF.Controls.Design (64-bit) 13.0.40.242
    WPF.Controls.Design (64-bit) 13.0.45.242
    Name VersionAdvanced Signal Processing Toolkit 13.0.0C Series Module Support 13.0.0Common 12.0.20.258Common 13.0.35.190Common 13.0.40.190Common 13.0.40.190Common (64-bit) 13.0.35.190Common (64-bit) 13.0.40.190Common (64-bit) 13.0.40.190CompactRIO 13.0.0Configuration Support 2.9.3Configuration Support 1.8.5Configuration Support 2.7.5Configuration Support 1.9.5Configuration Support 4.0.5Core 13.0.0.242Core 13.0.0.242Core 13.0.0.242CVI 13.0.0CVI AddOns LabWindows/CVI Shared AddOnsCVI Run-Time 13.0.0.632Database Connectivity Toolkit 13.0.0DataSocket 13.0.35.242DataSocket 13.0.40.242DataSocket 13.0.45.242Design 13.0.35.242Design 13.0.40.242Design 13.0.45.242Design (64-bit) 13.0.35.242Design (64-bit) 13.0.40.242Design (64-bit) 13.0.45.242Development Support 2.9.3Development Support 1.8.5Development Support 2.7.5Development Support 1.9.5Development Support 4.0.5Digital Filter Design Toolkit 13.0.0DMM Soft Front Panel 3.1.0DotNET DotNET DotNET DotNET FGEN Soft Front Panel 2.7Gpib 13.0.35.159Gpib 13.0.40.159Gpib 13.0.45.159Gpib (64-bit) 13.0.35.159Gpib (64-bit) 13.0.40.159Gpib (64-bit) 13.0.45.159Image Processing and Machine Vision 13.0.0.49156Integration 13.0.35.242Integration 13.0.40.242Integration 13.0.45.238IVI Compliance Package 4.6LabVIEW 13.0.0LabVIEW Run-Time 2010 SP1 10.0.1LabVIEW Run-Time 2011 SP1 f2 11.0.1LabVIEW Run-Time 2012 SP1 f3 12.0.1LabVIEW Run-Time 2012 SP1 f3 (64-bit) 12.0.1LabVIEW Run-Time 2013 13.0.0LabVIEW Run-Time 8.5.1 8.5.1MathScript RT Module 13.0.0Measurement & Automation Explorer 5.5.0f0Measurement Studio Visual Studio 2005 Support - See individual versions below.Measurement Studio Visual Studio 2008 Support - See individual versions below.Measurement Studio Visual Studio 2010 Support - See individual versions below.Measurement Studio Visual Studio 2012 Support - See individual versions below.NationalInstruments.DAQmx 9.6.35.292NationalInstruments.DAQmx 9.6.40.292NationalInstruments.DAQmx 9.6.45.292NI FlexRIO 13.0.0f0NI I/O Trace 3.1.0f0NI Motion Assistant 13.0.0NI PXI Platform Services 3.2.3NI R Series Multifunction RIO 13.0.0NI Script Editor 1.3.4NI SignalExpress 7NI SoftMotion 13.0.0NI System Configuration 5.5.0f0NI TestStand 5.1NI Vision Run-Time 13.0.0NI-488.2 Software 3.1.1NI-DAQmx ADE Support 9.7.5NI-DAQmx Device Driver 9.7.5f1NI-DAQmx MAX Configuration 9.7.5NI-DCPower NI-DCPower Soft Front Panel 1.8.5NI-DMM 3.1.0NI-FGEN NI-HSDIO 1.9.5.0NI-HWS 1.5.1NI-IMAQ I/O 2.7.0NI-IMAQ Software 4.7.3NI-IMAQdx 4.2.0NI-Motion 8.5.0.3000NI-PAL Software 2.9.1NI-RFSA NI-RFSA Soft Front Panel 2.6.1NI-RFSA Soft Front Panel (Classic) 2.5.2NI-RFSG NI-RFSG Soft Front Panel 1.9.5NI-RIO 13.0.0NI-SCOPE NI-Serial Software 4.0.0NI-SWITCH 4.6.5f0NI-Sync 3.4.0NI-TClk 1.9.3NI-USI 2.0.1.5249NI-VISA 5.4NI-VISA Runtime 5.4NIvisaic.exe 5.4.0.49152NiVisaServer.exe 5.4.0.49152PID Control Toolkit 13.0.0PID Toolkit 2.1.0Profiler Toolkit 1.0.0Real-Time 13.0.0Report Generation Toolkit For Microsoft Office 13.0.0Run-Time 2.9.3Run-Time 1.8.5Run-Time 2.7.5Run-Time 1.9.5Run-Time 4.0.5SCOPE Soft Front Panel 4.0.5Services 13.0.0.49156Signal Processing Toolkit 7.0.2Soft Front Panel 4.6.5.49152SQL Toolkit 2.2.0System Identification Toolkit 2013Tdms 13.0.35.242Tdms 13.0.40.242Tdms 13.0.45.242Tdms (64-bit) 13.0.35.242Tdms (64-bit) 13.0.40.242Tdms (64-bit) 13.0.45.242UI 13.0.35.242UI 13.0.40.242UI 13.0.45.242UI (64-bit) 13.0.35.242UI (64-bit) 13.0.40.242UI (64-bit) 13.0.45.242UI.WebForms 13.0.35.242UI.WebForms 13.0.40.242UI.WebForms 13.0.45.242UI.WebForms (64-bit) 13.0.35.242UI.WebForms (64-bit) 13.0.40.242UI.WebForms (64-bit) 13.0.45.242Unit Test Framework Toolkit 13.0.0VI Analyzer Toolkit 13.0.0Visa 13.0.35.167Visa 13.0.40.167Visa 13.0.45.167Visa (64-bit) 13.0.35.167Visa (64-bit) 13.0.40.167Visa (64-Bit) 13.0.45.167Vision 13.0.20.101Vision 13.0.35.101Vision Builder AI 5.0.3Vision Development Module 13.0.0WPF.Controls 13.0.40.242WPF.Controls 13.0.45.242WPF.Controls (64-bit) 13.0.40.242WPF.Controls (64-bit) 13.0.45.242WPF.Controls.Design 13.0.40.242WPF.Controls.Design 13.0.45.242WPF.Controls.Design (64-bit) 13.0.40.242WPF.Controls.Design (64-bit) 13.0.45.242

  • 0xC0000005 Access Violation in cvirte.dll (SetWindowsErrorMode?)

    Hello,
    We will occasionally see a crash with our CVI LabWindows based 2010 SP1 application, a 0xC0000005 Access Violation exception thrown from within cvirte.dll. The app is working primarily from a spawned thread when the crash occurs. I've been able to get it consistently on a Win7 x64 VirtualBox VM and have some data that may be of use if someone there would like to investigate.
    When I track down the location of the instruction pointer (work below) it seems to be in the "SetWindowsErrorMode()" function (at least going by the exports in DependencyWalker):
    1. The IP is 0x687B5F1C at the time of the crash.
    2. The base module address for cvirte.dll is 0x68420000, so the IP is 0x395F1C bytes into the DLL.
    3. Using DependencyWalker on cvirte.dll and sorting by entry point indicates that the IP is inside of "SetWindowsErrorMode()" at 0x003938D0, which comes before "MinimizeAllWindows()" at 0x003984B0.
    Coincidentally, this crash happens in CVI 2013 F1 as well, the offset within "SetWindowsErrorMode()" is a bit different (0x264C past entry in 2010 SP1, 0x2D0C past entry in 2013), but locally the code looks the same in my VS2010 disassembler:
    CVI2010 SP1
    *Address *Code Bytes          *Instruction
    687B5F02 89 17                mov dword ptr [edi],edx
    687B5F04 8B 48 5C             mov ecx,dword ptr [eax+5Ch]
    687B5F07 89 78 6C             mov dword ptr [eax+6Ch],edi
    687B5F0A 89 4F 04             mov dword ptr [edi+4],ecx
    687B5F0D 89 58 5C             mov dword ptr [eax+5Ch],ebx
    687B5F10 C7 40 60 00 00 00 00 mov dword ptr [eax+60h],0
    687B5F17 5E                   pop esi
    687B5F18 85 DB                test ebx,ebx
    687B5F1A 74 09                je 687B5F25
    687B5F1C 8B 13                mov edx,dword ptr [ebx] <--- CRASH
    CVI2013 F1
    *Address *Code Bytes          *Instruction
    687CA2B2 89 17                mov dword ptr [edi],edx
    687CA2B4 8B 48 5C             mov ecx,dword ptr [eax+5Ch]
    687CA2B7 89 78 6C             mov dword ptr [eax+6Ch],edi
    687CA2BA 89 4F 04             mov dword ptr [edi+4],ecx
    687CA2BD 89 58 5C             mov dword ptr [eax+5Ch],ebx
    687CA2C0 C7 40 60 00 00 00 00 mov dword ptr [eax+60h],0
    687CA2C7 5E                   pop esi
    687CA2C8 85 DB                test ebx,ebx
    687CA2CA 74 09                je 687CA2D5
    687CA2CC 8B 13                mov edx,dword ptr [ebx] <--- CRASH
    I have dump files (mini, or mini+heap) for both builds if it would help.
    This bug seems semi-similar to the thread "Is InstallPopup not threadsafe?":
    http://forums.ni.com/t5/LabWindows-CVI/Is-InstallPopup-not-threadsafe/m-p/716822/highlight/true#M359...
    Just for posterity, I'll add the data for the 2013 build. IP is 0x687CA2CC, DLL Module address is 0x68420000-0x68A28000, so offset is 0x3AA2CC. "SetWindowsErrorMode()" enters at 0x003A75C0 in this dll, and "MinimizeAllWindows()" is at 0x003ACB20.
    Thanks-
    Baker

    Hi Kelsey,
    Apologies for the long response time, I didn't receive a notification for your post.
    > What does your application do?
    Our application is used in this context to setup and run our vehicle simulations on a Windows based PC.
    > And, what is it doing at the time of the crash?
    At the time of the crash a simulation is being launched and run on another thread from the default thread pool like this:
    CmtScheduleThreadPoolFunctionAdv (DEFAULT_THREAD_POOL_HANDLE,
        sRun,
        NULL,
        THREAD_PRIORITY_NORMAL,
        NULL,
        EVENT_TP_THREAD_FUNCTION_END,
        NULL,
        RUN_IN_SCHEDULED_THREAD,
        &sThreadFuncId);
    That spawned thread will load a simulation DLL, read some data as input, run the simulation, output the results, then close the DLL.
    As I noted earlier, I couldn't get it to happen on my desktop, but I could get it on the VM when I used a very slow storage device for the I/O of the simulation (a slow thumb drive attached to the VM). My boss was seeing the issue on his virtualized PC on his Mac, typically only when he used a slower storage device as well (network storage for example).
    > When you reproduce this issue in 2010 and 2013 f1, are you using the same computer or using different machines?
    Both of these crash dumps were produced on the virtual machine as described.
    > For each dump file, which version of LabWindows/CVI were you running? You can find the version number by selecting Help»About LabWindows/CVI within LabWindows/CVI. Which version of cvirte.dll do you have? This will be located in System32 and/or SysWOW64.
    The development environment installed was CVI 2010 SP1. So the 2010 dump was just using the runtimes bundled with that installation. I then installed the 2013 F1 runtimes to see if the same issue persisted.
    It's possible I did a clean install with the 2013 F1 dev environment, I will double check this tomorrow when I have access to the virtual machine.
    Thanks for looking into this--
    Baker

  • Using externally generated pixmap in Canvas

    I am evaluating how difficult it would be to use an external library for drawing images in LabWindows. The library comes with binaries
    only that were generated in MS Visual Studio, so I assume they can be linked loaded into LabWindows.
    Are there likely to be linking issues if the external libraries referenence some Microsoft library not included in LabWindows.
    Or does LabWindows have the full complement of Microsoft libraries so anything in Visual Studio will link?
    There is an API for drawing a image to memory and also drawing an image to a Hardware Device Context.
    The question is should I be able to use these functions when linked and called from a labwindows gui app to
    first draw the pixmap nd then copy the pixmap to a LabWindows Canvas?
    Canvases don't support alpha channels but the library drawing routing uses an alpha channel. 
    I am newbie to LabWindows.
    Here is the Labwindows function that looks like what I should use
    CanvasDrawBitmap
    int CanvasDrawBitmap (int panelHandle, int controlID, int bitmapID, Rect sourceRectangle, Rect destinationRectangle);
    Here are the external API functions
    // List of supported color formats for GM_DrawLayerListToMemory
    typedef uint32 GM_ColorFormat_t32; enum
        GM_ColorFormat_32Bit_ABGR   = 0,        // 32-bit color (alpha, blue, green, red)
        GM_ColorFormat_32Bit_ARGB   = 1,        // 32-bit color (alpha, red, green, blue)
        GM_ColorFormat_16Bit_565    = 2,        // 16-bit color (5 bits red, 6 bits green, 5 bits blue)
        GM_ColorFormat_NumFormats
    Draws one or more layers to the provided device context at the given location. If aWorldBounds is not NULL, at least the specified area will be drawn. The aspect ratio of the screen pixels will be maintained, so slightly more of the world bounds than specified may be drawn. If aWorldBounds is NULL, the entire specified layer or all of the loaded layers will be rendered.
    GM_DrawLayerListToMemory
    GM_Error_t32 GM_DrawLayerListToMemory
        GM_LayerHandle_t32*     aLayerList,     // List of layers to draw or NULL for all
        uint32                  aLayerCount,    // Number of layers in list (0 for all)
        GM_DrawFlags_t32        aDrawFlags,     // Flags controlling how the draw is performed
        const GM_Rectangle_t*   aWorldBounds,   // World bounds to draw or NULL for all
        GM_ColorFormat_t32      aColorFormat,   // Color format used in data buffer
        sint32                  aPixelWidth,    // Width in pixels to draw
        sint32                  aPixelHeight,   // Height in pixels to draw
        void*                   aDataBuf,       // Buffer to hold output color data
        sint32                  aRowWidthBytes  // Width of a single row in the array in bytes
    Draws one or more layers to the provided memory buffer at the given location. If aWorldBounds is not NULL, at least the specified area will be drawn. The aspect ratio of the screen pixels will be maintained, so slightly more of the world bounds than specified may be drawn. If aWorldBounds is NULL, the entire specified layer or all of the loaded layers will be rendered.
    GM_DrawLayerList
    GM_Error_t32 GM_DrawLayerList
        HDC                     aDC,            // Device context to draw to
        GM_LayerHandle_t32*     aLayerList,     // List of layers to draw or NULL for all
        uint32                  aLayerCount,    // Number of layers in list (0 for all)
        GM_DrawFlags_t32        aDrawFlags,     // Flags controlling how the draw is performed
        const GM_Rectangle_t*   aWorldBounds,   // World bounds to draw or NULL for all
        sint32                  aLeftPixel,     // Left pixel coordinate to draw to
        sint32                  aTopPixel,      // Top pixel coordinate to draw to
        sint32                  aPixelWidth,    // Width in pixels to draw
        sint32                  aPixelHeight    // Height in pixels to draw

    Samuel,
    Yes, you can call DLLs or Assemblies written in other languages in CVI. Check out our FAQ: Using Dynamic Link Libraries with LabWindows/CVI. In particular look at the sections on How Can I Call Third-Party DLLs from LabWindows/CVI and How Can I Use the Windows SDK from LabWindows/CVI. If you can get a bitmap from the DLL you are using, then you should be able to draw it to the canvas using the CanvasDrawBitmap. Take a look at the Alphablend example that ships with CVI for an example of how to use a bitmap with an alpha channel on a canvas.
    National Instruments
    Product Support Engineer

  • NI Developer Suite 2011 DS2 installati​on problem

    I got 4 cds of NI Developer Suite 2011, version DS2; But when I installed it, it paused after  DVD1.
    First, I checked many options, such as RT module, FPGA moudle, after DVD1, a message popped up said DVD2 should put in.
    I followed the message, put DVD2 in, then the installation procedure puased for 1 hr.
    Later, I tried to reinstall the developer suite 2011,  I only checked labivew core and meaurement studio 2010, and communicaiton option: labwindows CVI modulation , labwindows CVI spectruam module. This time, after DVD1, it showed DVD3 was needed. When I put DVD3 in, the installation paused too.
    I don't know why it is so difficult to install NI developer suite 2011, I need help. 

    I have found the full developer suite does take a very long time to install (several hours) with the disk swaps, I can only advise patience. If something is going wrong it will generally tell you in no uncertain terms
    TD 
    Please remember to accept any solutions and give kudos, Thanks
    LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7

  • Writing to the System clipboard

    This company uses LabVIEW 2012 and LabWindows 2010 in an Aerospace environment. The use of older versions is done to have commonality with their facilities across the globe. Thus, I cannot get them to upgrade.
    On their new test station, they have 14 serial ports to communicate with the unit under test. I have developed a LabVIEW serial port interface program that will allow them to communicate with those serial ports. I have the ini file configured to allow the user to run multiple instances of the executable, for as many ports as they desire, during their testing. One option that they requested is the ability to right click the mouse, have a menu display to select copy or copy all of the data to the clipboard so that they can paste the received data into a test report. I used the LabVIEW App Invoke Node function Write to Clipboard and Read From Clipboard to perform the task. However, I have the issue that this works on some instances and does not work on other instances of the executables. Since the code is the same, the user enters which port to connect to, I do not understand why I have this issue. It works fine on my PC which only has a single COM port.
    I decided to write two LabWindows functions to read and write to the clipboard using ClipboardGetText and ClipboardPutText. I call those dll functions from LabVIEW. The first call to the function ClipboardPutText works in the sense that the data is placed into the clipboard. However, I immediately get a fatal error and the process stops. (I did not save a screen image and the test stations are in use at this time). After that, none of the other instances will copy the data and they all result in a fatal error and stop. This is repeatable as I restarted the software numerous times as I tried to determine the cause.
    Since I do not have access to the code for the clipboard functions, I cannot determine if I need to configure something else related to the clipboard or the process attempting to read/write from/to the clipboard. I will continue to search but wanted to ask the experts in control of the clipboard software to determine if they have any recommendations on what may need to be added.
    For LabWindows, the only other call that I performed was a free command after I executed the ClipboardGetText, if the pointer to the text was not NULL.
    I will post this in both the LabVIEW and LabWindows discussion boards in case one or the other has a solution.
    Thank you for your help.
    I can provide a zip file, containing the source code, to NI personnel if you provide an email address. Since I am a contractor, I am not sure if the company’s policy allows global posting of their code, although I may be able to reduce the code to a minimum example, if necessary.

    I have done more testing in an attempt to clarify the error condition. I upgraded to LabVIEW 2014 on a Windows 7 SP1 system. I have enclosed some screen shots to show what I am doing.
    My software allows multiple copies, 14 in this case, versions of the executable to run at one time. The software controls serial ports. The enclosed image of the front panel, LabVIEW window.png, indicates the COM port, baud rate, and version at the top of the window. This first small control allows the user to enter a command to send to the port. The large bottom indicator displays the data received on the port. I have menu items, pressing the right mouse button, that allows the user to clear all of the data, copy selected data, or copy all data. I have enclosed images of the copy, copy all, write to clipboard, and read serial port parts of the code. I was only copying small amounts of data, perhaps less than 256 bytes.
    Here’s what I have noticed:
    If I execute the code on my desktop computer, only 1 COM port, everything works fine. The copy and copy all will place the data into the system clipboard which allows the pasting of the data into Notepad.
    If I execute the code on the test station, opening all 14 ports, we are using the NI serial card for all of the additional ports, the code works fine, as in item 1, for a couple of the executables but not the rest.
    If I select a subset of the data being displayed, highlighted in blue by LabVIEW, then right click the mouse selecting the copy, the blue highlighting goes away but the data is copied to the clipboard allowing me to paste into Notepad.
    If I right click the mouse selecting copy all, the data is NOT copied to the system clipboard so that I cannot paste it into Notepad.
    In the Write to Clipboard function, I write to the clipboard and then read the clipboard. I added code to display, in a popup window, what was written to the clipboard and what was read from the clipboard. The data was the same although the data was not on the system clipboard so that I could paste it into Notepad.
    I tried to select a subset of the data being displayed and then right clicking the mouse to do a copy all to see if that made a difference. It did not.
    I tried to make the Write to Clipboard function re-entrant to test that theory. Not change in the behavior.
    At one point, I tried to use LabWindows. I used the LabWindows clipboard calls and then tried calling the Microsoft clipboard functions directly. While those functions worked in LabWindows without a problem, I would get executable crashes when I tried to call my LabWindows functions from LabVIEW. If I commented out the actually code part, the call to the functions would return without crashing the executable. The issue was not in how the LabWindows functions were being called but something in the clipboard calls themselves. So, I decided that making a call using LabWindows offered nothing that I could use. I returned to using only LabVIEW and updated to 2014 to determine if that might solve the issue. No luck so far.I do not understand why, when I call the LabVIEW function to write to the clipboard, that it does not work for every executable of the multiple instances. Is there some other function that needs to be called prior to writing to the clipboard due to having multiple instances? Why does selecting a subset work when I do the copy but not when I copy all. If I am passing the data to write to the clipboard, why does selecting a subset and the copying only that subset work but the copy all does not? I do not understand how LabVIEW handles multiple instances and is they are truly considered separate processes.
    I seldom use these forums as I can get most of the code that I write to work as expected. Thank you for all of your help and suggestions.
    Attachments:
    LabVIEW window.png ‏25 KB
    Copy Menu Item.png ‏39 KB
    Copy ALL Menu Item.png ‏33 KB

  • Communicating through 1-Wire

    Hi.  I'm new to 1-Wire, and not totally familiar with CVI/LabWindows.  I am using LabWindows 7.0, and I want to communicate with the DS1920 device (http://www.hobby-boards.com) through the DS1982 serial device.  I have downloaded the iButton SDK (http://www.maxim-ic.com/products/ibutton/software/1wire/wirekit.cfm), and have also installed the OneWireAPI.NET_Setup.msi application program. 
    In short, I've downloaded various utilities, and I have example programs that I've found on these websites, but I simply want to be able to compile an example program with LabWindows/CVI. 
    I don't know much about working with drivers through LabWindows, but if I can simply get some kind of session with the DS1920 device (i.e. communicate with it in some fashion), then I can progress much more easily.  Currently, if I try to run any example programs that I've found on the websites for the 1-Wire product, I get many linking errors.
    Please provide me with basic instructions on how to set up some kind of working code to communicate through these devices through LabWindows.
    Thanks.

    You'll probably get a better/faster response if you post this to the LabWindows/CVI forum instead of the LabVIEW forum.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Entering numeric values with suffixes in Labwindows CVI (e.g 100 kHz instead of 100e3 or 100000 )

    is there any practical way of entering numeric values with suffixes in Labwindows CVI in order to prevent user from struggling with '0' es. 

    In LabVIEW there is another Display Format called "SI Notation" that is exactly what you're looking for.
    Maybe you can add a feature request in CVI Idea Exchange Forum and ask NI to add this Display Format in CVI too.
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

  • LabWindows 2013 breaks LabWindows 2012 code

    Valid executable written in LabWindows/CVI 2012 will not compile in LabWindows/CVI 2103.  The error is compiler out of memory.  The error syntax includes suggestions to fix this problem by basically segmenting code into smaller c files - rewrite the code.  In addtion new warnings are detected for each number cast - I am sure I can turn this off but why is it added?.  None of these issues occur with the code in 2012. Question is what has changed? and why?  What reason should I consider for going through the effort of rewriting my code to make it compile in 2013?

    Hello mpencke,
    Clang 2.9 (the compiler used by LabWindows/CVI 2013) might throw an out-of-memory message in 2 situations: when it literally runs out of memory or when it crashes. You could follow the memory usage to determine in what situation you might be. If the memory usage increases significantly (close to 2GB), then the out-of-memory message is indeed valid. If the memory usage is not increasing close to the 2 GB limit during the compilation process, then the compiler is crashing. 
    The CVI 2013 Patch f1 brings some critical fixes to the compiler. I suggest trying upgrading and see if the issue persists. If the issue does persist, you could try turning off run-time checking and optimisations. Another thing you could do is to track the code that's causing the issue or send us a stripped version of your project that exhibits the issue and we will investigate, possibly suggesting a work-around.
    Did turning of run-time checking work for you? 
    Best regards,
    =Nelu F. || National Instruments.

  • Writing a Compressed AVI File in NI LabWindows/CVI with the IMAQ Vision Acquisition

    I'm still facing some problems when I try to save pictures from a GigE Vision camera into a compressed avi-file in a LabWindows/CVI application on Windows7.
    The task is to grab images from the camera with 30 fps to monitor a process, evaluate the grabbed pictures to find certain characteristics of the monitored process and save them in an avi-file to have the possibility to load and evaluate them once again Offline if necessary.
    My questions: which compression filters can I get with the NI-Imaq Vision Acquisition and Vision Development Runtime 2012 SP1? Is a mpeg4 codec available to compress quickly and effective? Can I use a third party codec or only the ones delivered with NI-Vision?
    I posted the problem two times already, but there is little response up to now. Thanks

    The encoding algorithm, or codec, that's used for compression needs to present on your system. When I had done some research on this sometime back, I found that if your custom codec could align with the DirectShow architecture, then your codec would work with IMAQ AVI functions.The codecs that are available may vary from system to system, depending on what software is currently installed. Be sure to check out this article:
    Writing a Compressed AVI File with the IMAQ Vision Acquisition Software
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Message d'erreur Windows 7 - LabWindows 2012

    Bonjour
    Je souhaiterai savoir si dans LabWindows 2012, il y a la possibilité de faire apparaître les messages ou notification de windows au premier plan.
    Je vous donne un exemple:
    Sur une de mes applications il est demandé de connecter un appareil - type clé USB.
    Ce périphérique n'a jamais été connecté au PC, et nécessite un formatage afin d'être identifié et reconnu par Windows comme un périphérique de stockage.
    Windows fait donc apparaître un message d'information demandant si l'utilisateur souhaite formater son périphérique.
    Ce message se trouve au second plan sous le panel de mon programme CVI. L'utilisateur ne peut donc pas le voir.
    Existe t'il un moyen pour que ce message Windows apparaisse au premier plan?
    Merci
    PS:
    Je suis sous Windows 7 et utilise CVI 2012

    Bonjour M.MUIN,
    Je m'excuse de la réponse tardive, néanmoins après plusieurs recherches infructueuses, je me suis mis à éplucher les exemples de LabWindows/CVI afin de vous apporter une solution.
    Je vous recommande donc l'exemple "msgdemo.cws", disponible dans la recherche d'exemples de LabWindows/CVI, en effet celui-ci vous démontre comment autoriser votre "panel" à répondre à n'importe quel message Windows.
    Je n'ai pas eu le temps de le tester mais suis très curieux de savoir si cela correspond à la demande.
    Cordialement,
    Mathieu_T
    Certified LabVIEW Developer
    Certified TestStand Developer
    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;}
    LabVIEW Tour
    Journées Techniques dans 10 villes en France, du 4 au 20 novembre 2014

  • Recherche et connexion à un périphérique Bluetooth via LabWindows CVI?

    Bonjour
    Je cherche à savoir si il est possible d'effectuer une recherche de périphérique sous Labwindows CVI et de m'y connecter.
    Le périphérique en question est un appareil de mesure dont je connais le protocol de communication.
    Ce périphérique est considéré comme étant un port COM RS232 virtuel. Je communiquerait donc avec mon produit en utilisant les driver VISA.
    Une telle solution est elle possible sous LabWindows CVI?
    Si oui auriez vous des exemple?
    Je possède LabWindows CVI 2012
    Merci d'avance...

    Sorry I thought I was on the french forum. 
    Is there an other solution than the NI-VISA drivers to execute a Bluetooth communication on LabWindows?

Maybe you are looking for

  • How do I disable Lion and go back to snow leopard

    I up graded to Lion. Now my wireless router can't connect because it doesn't support Lion. I don't want to have to buy a new router. Can I disable lion and go back to snow leopard? P.S. I am new at computers so be easy on the terminology please.

  • Linked images in my Word document don't show up in RoboHelp

    I'm using RoboHelp 8 and Microsoft Word 2003 on Windows XP. I create a new WebHelp project. I added all the .png image files from my Microsoft Word directory to Baggage Files. I then used the Link>>Word Document function to add my Word document to th

  • Sorting rule for generating voucher number ina payment batch.

    Hi All, How does system generate the voucher number in a payment batch? In my system, some voucher number in a payment batch seem sorted by supplier name, some are not. I want to know is there any sorting rule for generating voucher number in a payme

  • System contro Pannel on Solaris 10 exist???

    I have as soon as installed for before the time Sun Solaris 10 Free, i do not find one control panel where to be configure my Hardware! for example: the Desktop Resolution it is blocked at 640 x 480 I suppose that it is a survey problem the SVGA CARD

  • Multiple personalit​ies when syncing bb calendar with outlook mac 2011

    Outlook mac 2011  meetings where I invite guests appear correctly both in my bb and mac outlook calendar.  Meetings where I invite no one "appointments" won't sync no matter what I try.  Has this happened to anyone else?