Wendy L
-
Posts
2 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Wendy L
-
-
QUOTE (crelf @ Oct 28 2008, 04:03 PM)
I'm confused - are you trying to call LabVIEW from Visual Studio, or are you trying to call LabWindows/CVI? LabVIEW and Labwindows/CVI are two very different things.Hello banderson,
LabWindows/CVI does install two Visual Studio project wizards:
LabWindows/CVI Project - A project for creating an application that incorporates the LabWindows/CVI run-time libraries
LabWindows/CVI Conversion - Converts an existing LabWindows/CVI project into a Visual C++ project
These appear in the Visual C++>>LabWindows/CVI section of the New project dialog in Visual Studio (once you install LabWindows/CVI).
These wizards do not support Visual Studio 2008.
We are actively working on a new version of LabWindows/CVI that will support the latest version of Visual Studio (i.e using CVI libraries in VS08, and using the VS08/MFC 9.0 compiler within CVI). This version should release by the end of the year.
Also, since it seems that you are a C/C++ Visual Studio developer, something to note is that we are also actively working on releasing a version of Measurement Studio that supports C++/MFC 9.0 in Visual Studio 2008 (class libraries, Data acquisition and instrument control APIs, integration etc). This release will come out the same time as the new version of CVI referenced above. If you have SSP, you'll get the new version automatically. If you need beta versions of CVI or Measurement Studio, feel free to contact me at wendy(dot)logan(at)ni(dot)com.
Note: .NET in VS 2008 is already supported by Measurement Studio, NI-DAQmx, VISA, GPIB, and the modular instruments drivers such as NI-Scope.
Thanks
Wendy L
Product Manager - LabWindows/CVI and Measurement Studio
Visual Studio 2008 with Labview command
in Calling External Code
Posted
QUOTE (bandersen @ Nov 2 2008, 07:48 AM)
Hello,
Just to clarify, the .h files should be from LabWindows/CVI not from LabVIEW. These are two separate National Instruments products.
But the reason you are still receiving the error is because you are trying to plot a waveform to a numeric control.
int nNewCtrl = NewCtrl(panelHandle,CTRL_NUMERIC,0,10,10);
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);
PlotWaveform is meant to be used to plot an array of data to a LabWindows/CVI graph.
For further reference, the "Using LabWindows/CVI Libraries in External Compilers" topic of the CVI help mentions that the -10 error means that you are passing the wrong control type to the function.
Thanks