Visual Studio 2008 with Labview order, use of PlotWaveform commando

Hello

I want to use the Labview/CVI following commando: PlotWaveform in Visual Studio 2008.

But I get a return-10 error when I try to use PlotWaveform.

I use the following code:

#include "stdafx.h".
#include
#include
#include
#include
#include
#include
#include
If (InitCVIRTE (0, 0,0) == 0)
Returns - 1; Not enough memory

int panelHandle is NewPanel(parentPanel,"Graph",top,left,height,with);.
printf ("panelHandle: %d\n",panelHandle); ")

int nNewCtrl is NewCtrl(panelHandle,CTRL_NUMERIC,0,10,10);.
printf ("nNewCtrl: %d\n",nNewCtrl); ")

DisplayPanel (panelHandle);

int PlotWaveform_RETURN_VALUE = PlotWaveform (panelHandle, nNewCtrl, myArray, 4, VAL_DOUBLE, 1.0, 0.0, 0.0, 1.0, VAL_FAT_LINE, VAL_DOTTED_SOLID_SQUARE, VAL_SOLID, 1, VAL_RED);
printf ("PlotWaveform_RETURN_VALUE: %d\n",PlotWaveform_RETURN_VALUE); ")

RefreshGraph (panelHandle, nNewCtrl);

When I run the program is the result:
panelHandle: 1
nNewCtrl: 2
PlotWaveform_RETURN_VALUE:-10

I get a graphic image but no graphics. And the frame that displays is not working properly.

What is the problem with the function PlotWaveform, what is him Error-10 show ?

BR
Benjamin

Benjamin,

This error means that you place an order for wrong type for the function in question. And that's because you create a control of type CTRL_NUMERIC instead of CTRL_GRAPH or CTRL_GRAPH_LS.

Luis

Tags: NI Software

Similar Questions

  • Oracle 11 g connection pointing ASP. net in visual studio 2008

    Hi all,

    My application uses data in a project to the asp dot net oracle 11 g. It was basically a project developed ASP. net with sql server as a database. but this need for oracle 11 g database. I complete work on db, but I m getting the connection problem in visual studio (2008) with oracle 11 g .

    I know that this requires an oracle.data.access driver, nt do know what version is it?

    I have this dll. but the version of it may be earlier. This is why it is not working properly

    I have 11 g installed on the server computer and we can only use it only on the browser, I have a global.asax file in my project of dot net in this respect the chain is written as but I m doing of error, something like ora10cc.

    1st I do not know, I have to download version odac, I link to do this,

    http://www.Oracle.com/technetwork/database/Windows/downloads/index-101290.html

    but which version exactly, this page is so confused, for oracle 11 g and visual studio 2008 version will be perfect

    and then where the dll will be there. After completing the installation, is that I have to install this configuration?

    a further confusion, where I have to install this odac, on my computer system. or on the side system server, I just need this dll file.

    Yet one thing, is there a mistake in my connection string,

    my connection is the following

    "Persist Security Info = False; User ID = system; Initial Catalog = LabTrack; Server = Comp-34; Data Source=192.168.1.61\oracle11g; Password = abcd1234; Privilege DBA = normal; »

    192.168.1.61 ip address of the system, where is my oracle 11 g install,

    and comp-32 is my user name

    labtrack is my db name

    Is it need the name of the provider ?

    sumbody please help me

    I m be problem in from 3 days

    If you can contact me on [email protected] If not answer me here,

    Thanks in advance

    Best regards, Caroline Grondin

    On the download page of that link you, click one of the links. The next page will be contain real downloads more download/install instructions for each version. You can click on one of these links to install instruction and see the system requirements for this version. The configuration system requirements will tell you want Oracle and Visual Studio versions, he works with.

  • Tracing with Visual Studio 2008 works only the 1st time

    Hello

    I use Visual Studio 2008 and TestStand 4.1.1.

    I have a c# dll and I'll call a function of TestStand.

    In VS, I "join to deal with...". "and choose to attach it to TestStand. I start my sequence and VS to get to the point break that I set myself in VS.

    Everything is great.

    Now if I "Stop debugging", I do some changes for my dll, recompile all right and reattach to TS, everything seems ok.

    But if I start my sequence, do not strike my breakpoints and step runs without me trace in my c# code.

    The only workaround is to close TestStand, restart it, reopen the sequence and reinstall VS on it, then works again my breakpoint.

    What's wrong? I wouldn't restart TestStand whenever I do change the dll and reattach. I tried to unload all modules also with no success.

    I do something wrong or solutions to avoid restarting TestStand after changes to the c# code and you want to draw it.

    Thank you.

    Hi Matt,

    First of all, I tried to replicate what you experience following your instructions, but I couldn't recompile the DLL after the stop debugging in Visual Studio, because the DLL was still in use in TestStand.  After I unloaded all the modules, I could recompile.  I then re-attached and saw what you were doing.  So, to get around him, I tied to the process in a slightly different way.  In Visual Studio, I went to tools' attach to process, and then chose the seqedit.exe process.  Before mounting, I pressed the Select button on the right side of the dialog box in the middle of changing the type of code we are debugging.  Select the radio button "Debug these code types" and verify that "Managed".  This will ensure that the debugger attaches only to managed code (c#).  After I did, I could run my sequence again without having to restart TestStand.

    I would like to know if it works for you.

  • What is Measurement Studio 7.1 compatible with Visual Studio 2008?

    I'll be able to use v7.1 Measurement Studio with Visual Studio 2008, VB.net?

    Thank you

    Joe

    Hello Joe,

    Measurement Studio 8.5 was the first version using Visual Studio 2008, VB.NET.

    NickB

    National Instruments

  • I need a copy of Visual Studio 2008 while I have the same version of Crystal Reports that are used by one of my clients.

    Buy Visual Studio 2008

    I need a copy of Visual Studio 2008 while I have the same version of Crystal Reports that are used by one of my clients.

    Can I buy Visual Studio 2010 with MSDN Essentials and then download and use Visual Studio 2008

    Hello

    Welcome to Microsoft Windows 7 answers Forum!

    Thank you for visiting the Microsoft answers Forum.

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums

    I hope this helps.

  • Memory minimum allocation for Vista Business Edition with Visual Studio 2008 VM?

    Long time listener, first time caller...

    Please excuse me if this question is answered somewhere else, I tried from Google and it came only with a response that was sort of what I was looking for, but was specific to a Macbook with Fusion...

    I want to create a Vista Business Edition (SP1) virtual machine with Visual Studio 2008 (which I think also is delivered with SQL 2005 Dev Edition) and I was wondering what the minimum memory allocation should be for this in order to make it work properly?

    Thank you

    Jim

    Hello and welcome to the forums.

    Amount of minimum support from Microsoft for Vista Business is 512 MB and 768 MB or more recommended for Visual Studio.  1280MB is the minimum.  Personally, I do not want anything less than 2 GB to a virtual machine with Vista and Visual Studio - 1 GB each.

    One of the great benefits of virtualization is that you can start this virtual machine with 1.5 GB and try it.  If the memory is not sufficient, then it is simple to give another 0.5 GB to the virtual machine and try again.

    Good luck!

  • wink for IMAQdx Visual Studio 2008

    I am using the sample of component project in Visual Studio 2008, c# snap.  This is the sample project that came with the installation of the software OR.  When I try to capture an image of the camera, I get a message error "interface passed or the session is invalid '.  I checked my name of the interface of the software NOR and that's okay.  I have a Basler A601f camera connected via firewire.

    Any help would be great.  Thank you.

    Ah, which is why you must use IMAQdx to work with Firewire.

    I use mostly LabVIEW to program with IMAQdx, so I don't know what kind of examples are available. I recommend to install the latest version of the software for Acquisition of Vision to get the most recent examples shipped. You can check for errors in the forums or on ni.com.

  • Windows Update has detected an error code 80200053 for the installation of the updates for the update of security for Microsoft Visual studio 2008 and 2010.

    Hello

    I received an update for security update for Microsoft Visual Studio 2010 (KB2542054) and the security update for Microsoft visual studio 2008 Service Pack 1 (KB 2538241). This updates have been detected by windows update on my laptop. However, when I tried to install these updates, they detect an error code 80200053, windows update encountered an unknown error. I need help with this ASAP. Thank you.

    Hello

    Step 1:

    You can read the following article and try to reset the Windows Update components and check.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Step 2:

    You can also check the links below and try to download and install the stand-alone package with updates:

    Microsoft Visual Studio 2010 RTM MFC security update

    Microsoft Visual Studio 2008 Service Pack 1 MFC security update

    Hope this information is useful.

  • FDK11 supports Visual Studio 2008?

    We use a client based on 10 FDK in the IDE of Visual Studio 2008. Now the same client does not work with FDK 11 but if I convert the application in 2010 it works. If FDK 11 does not support the VSTS 2008 or a lower version?

    Hi Venketraja,

    According to FDK, FDK11 requires VS2010. My own experience, I have found it is true, as I have been unable to build a client FDK11 with VS2008. So now, I have the two IDEs installed without any problems so far, although both are open at the same time. Also, I'm using VS2010 Express, which was free. Apparently, there are some components of the project that cannot create the Express version, but as long as they are there because it's an existing project, it works OK.

    Russ

  • Integration of Pro * C/C++ (11g) in Microsoft Visual Studio 2008

    Hello

    I need help to integrate the Pro * C/C++ (11g) in Microsoft Visual Studio 2008
    There is an Oracle Documentation on this subject, but is for Oracle 10 g and Visual Studio .NET 2003: (http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28427/pc_ahintegrat.htm#i634207)
    This information is not control for Visual Studio 2008.

    Using the steps defined in the old documents:

    * 1.*, specifying the location of the Pro * C/C++ executable: THIS SEEMS OK
    (Tools-> Options-> projects & Solutions-> directories of VC ++-> Executable files-> (like: C:\app\Orahome\bin))))

    * 2, specifying the location of the Pro * C/C++ header files: THIS SEEMS OK
    (Tools-> Options-> projects & Solutions-> directories of VC ++-> Include files-> (like: C:\app\Orahome\precomp\public))))

    * 3.* adding .pc files to a project: IT SEEMS OK
    (Project-> add-> element Visual C++-> Source-> select the .pc file)

    * 4 adding references to a project .c files: THIS SEEMS OK
    (Project-> add-> element Visual C++-> Source-> create a .c file)

    * 5, adding the Pro * C / C++ Library for a project, IT SEEMS OK

    * 6 custom specifying Compiler Options is it OK?

    Project settings-> Page properties file.pc-> Config Propierties-> C/C++-> general-> include additional directories: C:\app\OraHome

    Project settings-> Page properties file.pc-> Config Propierties-> C/C++-> results-> name of the object file file: $(ProjDir)------$(InputName) .c

    * 7 adding Pro * C/C++ in the Tools Menu WHERE IS procui.exe?

    Tools-> External Tools-> add-> Pro * C/C++

    Title: Pro * C/C++
    Command:?
    Argument: $(TargetName)
    Initial directory: $(WkspDir)

    Please help regard footnote 6 and 7. Thank you

    Hello

    VS2008 is not supported with Pro * C and 11 g. ttp://download.oracle.com/docs/cd/B28359_01/install.111/b32301/toc.htm#BGBEEBAD

    There is no procui.exe today, which was abolished in 10.2. You will need to use the command line version now (proc.exe)

    For custom build options, I have always understood the command line exactly necessary to precompile the particular file and pasted all in the part of the command of the "pre Build Event" line... for example:

    
    proc parse=full iname=sample1.pc oname=precompiledsample1.c include="d:\oracle\product\11.1.0\db_1\oci\include" include="d:\oracle\product\11.1.0\db_1\precomp\public" include="d:\PROGRA~1\MICROS~1\VC98\include" include="d:\PROGRA~1\MICROS~1\VC98\PlatformSDK\include"
    

    It will be useful,
    Greg

  • Re: Cannot install Visual Studio 2008 on Vista 32-bit

    Hello

    I have a satellite P200 with Vista Home premium SP1 and I need to install it on Visual Studio 2008.
    When the install wizzard starts it checks the compatibility of the computer and could not return this:

    "Setup has detected that this computer does not meet the requirements to install this software. These conditions must be met before you can install Microsoft Visual Studio 2008 Professional Edition - ENU
    Requirements and software prerequisites
    Windows XP Service Pack 2 update information
    You must install this service pack to complete the installation. Visual Studio requires the installation of this service pack before you install Visual Studio"

    So the only solution I have is to exit the installation wizard, so I can not install VS2008

    It seems that someone else has the same problem with a Toshiba Satellite also! See http://forums.microsoft.com/MSDN-FR/ShowPost.aspx?PostID=3392455&SiteID=12
    Microsoft product support has apparently no solution and find it strange!

    So please help me, I absolutely need of VS2008 to work and I change my laptop only because failed to install VS2008

    Thanks a ton in advance for

    Pascal

    Post edited by: pfo69

    Hi mate,

    Sorry, but just because one person in a MSDN forum has randomly the same machine you, does not mean that there is a related problem of the machine. Technically in comparing it s absolutely the same material as in an office and so why Don t you contact Microsoft technical support?

    It seems that it is certainly unwanted Microsoft and has NOTHING to do with Toshiba hardware or software, so please see MS support sites or give them a call, because it s THEIR software which won´t operate according to THEIR operating system.

    Welcome them

  • Measurement Studio for visual studio 2008 8.1.2

    Hello, I installed Visual Studio 2008 and I use the Visual C++ 2008 him.  However, Measurement Studio 8.1.2 (which I have) do not natively connect to VC 2008.  I tried to manually add the box controls to tools... but namespace NationalInstruments.UI.WindowsForms seems not to be there?  Maybe I need to change something somewhere?  Any help would be most appreciated.

    Defiance-

    If I understand correctly, you are trying to add references to assemblies .NET Measurement Studio for a C++ 2008 project. Is this correct?

    In this case, when you have created your project, you chose one of the models in the CLR (see screenshot) category?

    If so, then to add references to assemblies Measurement Studio, you go into the Visual Studio point Project menu > properties and select common properties > structure and references > add a new reference. MStudio 8.1.2 assemblies should appear in the list. If this isn't the case, you can navigate to them. They have installed by default on \Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Assemblies\Current. Make sure that you add all required dependent assemblies (usually NationalInstruments.UI.dll and NationalInstruments.Common.dll).

    Also, you should be able to create a box Tools tab and add controls.

    If you try to do something else, could you give more details on exactly the type of project you want to create?

    David Rohacek

    National Instruments

  • DAQ Assistant does not appear when starting a new project in Visual Studio 8 with Measurement Studio

    Hello

    I have installed a system with the following configuration:

    Windows 7 Prof

    OR MAX

    Visual Studio 2008 Standard

    Measurement Studio 2013 (evaluation)

    Device drivers OR Feb 2013

    When I start a new project in Visual Studio, I can choose a model with NEITHER Windows forms application. After that I get an overview of the classes, but after that, I get no DAQ assistant. What Miss me as is actual references in the Toolbox, with the exception of the buttons and graphics of NOR.

    Someone at - it a solution for this problem?

    Thanks in advance,

    Erik

    Dear Erik,

    I saw the same problem and I think that you can solve with the installation of the DAQmx 8.8 and make sure to include the Visual Studio integration.

    If you have any questions just reply to this email.

    Have a good time.

    Kind regards

    Hossein

  • Do not see the Option Measurement Studio Visual Studio 2008 project

    I just installed Measurement Studio 2010 sp1 for Visual Studio 2008, but I don't get the option Measurement Studio Visual Studio 2008 under any .net language project. I have to configure something else?

    Thank you

    I use the professional version of Visual Studio, and YES that's what I wanted. In fact just, I solved the problem by removing and then reinstalling Measurement Studio.

    Kind regards

  • Microsoft Visual Studio 2012 with Oracle database

    Hello!

    I'm a developer Oracle of Pakistan. Currently, I have a lot of desktop applications. Now, I want to develop web applications for which I think to use Microsoft Visual Studio 2012 with Oracle Database 11 g on the back-end.

    Please guide me on the software/hardware required for Microsofot Visual Studio 2012 and also to confirm the compatibility between Microsoft Visual Studio 2012 with Oracle database.

    Concerning

    Mohammed Uzair

    Oracle APEX developer

    Oracle applications developer

    + 92 (333) 7058754

    Hello

    I suggest you post the same question in the Microsoft Visual Studio category in the Microsoft MSDN forum for assistance.

    http://social.msdn.Microsoft.com/forums/en-us/category/VisualStudio

Maybe you are looking for

  • HP Pavilion h8-1132sc: Geforce GTX 960 works do not with h8-1132sc model? (BIOS?)

    Hey. I just bought a new graphics card (Geforce GTX 960) for my computer. After replacing my old and my pc startup, I'm stuck at the blue HP screen, with 1 beep and then 3 beeps and nothing happens. I can google myself to, many people speak the BIOS

  • Quit Skype...

    Please see attachment... I unchecked "start Skype when I start windows" in the General settings. And I just restarted the system and shows the Skype in the start menu. Please tell me why this is happening?

  • run sequence file locked

    Having some trouble getting a lock file sequence (password protected, not visible) to run (TS2012): Saved the file of sequence like password protected / locked / not visible. It seems that not visible in the sequence editor and user interfaces. I can

  • Can't boot from USB Flash Drive on Yoga 13

    I had a USB bootable with linux on it live and I tested it it works on another computer but I can't get my Yoga to boot from it. I wet to settings-> General-> advanced startup and then I clicked on the option USB but the computer is restarted, he sai

  • Damage Server Power Edge R520

    Salve, Sono a Técnico del reparto di assistenza tecnica di Leonardo Company S.p.A. This pervenuto in riparazione e con Power Edge R520 Server service tag 10SZJY1 dove this hanno una reported damage sui of ram modules. Being it is fuori co in vorremmo