04-19-2010
04:00 PM
- last edited on
05-11-2010
08:39 PM
by
Laura F.
10-20-2010 10:59 AM
The following is what I need for Measurement studio for VS2010. I need efficiency and speed, high quality code behind compateble to VC++ native codes.
1,
How to display a char* array with NI graph control?
My developing environment is VC2005sp1 + MeasurementStudio8.1.1.
It seems that PlotY could only accept CNIVector type as input data source and PlotY could not accecpt char* array or unsigned int array as input data source. Is it true?
My data is stored in a large char* array. Each character(or Byte) of this array represents a value point. The size of this char* is of LARGE_INTEGER type. How could I display every Bytes of this char* array with NI graph control?
My code looks like this:
CNiReal32Vector mNIVectorforDisplay; // NI vector for display.
// pYDisplay is the points of char* array. liSizeofField is the size of this array, which is of LARGE_INTEGER type
mNIVectorforDisplay = CNiReal32Vector(liSizeofField.QuadPart, (char*)pYDisplay);
// The above two line can work through, while the following trigers an error.
pWaveGraph->GetPlots().Item("Y").PlotY(mNIVectorforDisplay);
Would you plz tell me how to realize this scenario?
I’m looking forward to your response and kindly help.
Thank you.
2,
I partially solve this problem now. I use "for" loop and "=" operator to fufill the task, which is quiet slow and looks ugly.
The code looks like this:
for (int i=0; i<1000; i++)
{
mNIVectorforDisplay[i] = *(LPBYTE)((unsigned char*)((pYData)+i));
}
m_Wave.Plots.Item("Y").PlotY(mNIVectorforDisplay);
My question is : Could NI Graph control support native C++ arrays and pointers, not wrapped CNIVector** class.
I go through some of the code behind, I found that inside the CNIVector** class constructor, low efficient "for" loop and "=" operator are used to convert a C++ array to
wrapped CNIVector** class. This manner could not be attractive in the need for speed and efficiency.
Who can tell me how to solve this problem?
10-21-2010 03:43 PM
This thread is meant for suggestions and comments, so we'd like specific questions to be in their own thread.
Please continue this question at http://forums.ni.com/t5/Measurement-Studio-for-VC/How-to-display-a-char-array-with-NI-graph-control/....
Thank you!
07-08-2011 10:58 AM
I'm using Visual Studio for developping image processing algorithms in the medical domain
07-08-2011 03:36 PM
My company wants me to develop a spreadsheet which can be shared over the office with many feature like login is need for the user.Record the chanages made by the user ,No ohther user can modify other user information etc.Can anybody suggest nice website to learn more about Vb script
07-09-2011 11:25 PM - edited 07-09-2011 11:26 PM
I am using Visual Studio 2010 to implement an inhouse application for the company. Works good so far and is happy with the product.
07-10-2011 02:35 AM
My project is a somehow like a oscilloscope with image analyzer, which is specially customized for video analysing purpose. At the very begining, I tried to use VC2005 + measurement studio. But later I gave up this way. The reason is :
1, Graph control of NI don't seem to support image processing.
2, Graph control needs tedius and time wasting type conversion between C++ raw data types and NI specific data types, which is bad for efficiency of the application.
Later I use an open source image processing control to fullfill my work. Now the application works well with nice UI and high efficiency. So, my opinion is, VC is the best choice. You should use measurement studio only when you don't have better choices in VC.
08-02-2011 06:48 PM
The FDA makes available nutritional metrics on thousands of different kinds of foods. Their 'database' is about
17 large flat files. I using Visual Studio to:
1) Import refreshes of the data into a denormalized My SQL DB to make it available for a meal planning application
2) produce normalized views of the same data in CSV files for analysis in Excel
09-05-2011 12:34 PM
I am also switching from express edition 2008 to 2010, is there any formal guide to do this for the measurement studio?
09-07-2011 06:54 PM
Unfortunately, we do not have a formal guide for upgrading from Visual Studio 2008 to 2010. The process should be smooth with a few minor caveats.
Visual Studio 2010 is designed for .NET 4.0. It supports .NET 3.5 projects, but you should keep in mind version conflicts when developing new applications. Also, Measurement Studio 2010 will install with integration into Visual Studio 2010. If you are using Measurement Studio 2009, you will need to take a few extra steps as documented in the KnowledgeBase Article: Using Measurement Studio 2009 with Microsoft Visual Studio 2010. Also keep in mind that Measurement Studio cannot integrate into the Visual Studio Express version as described in the KnowledgeBase Article: Measurement Studio Support for Visual Studio Express Editions.