Is there a Text control in Measurement Studio for VC++?

I want to create a dialog with several text fields that indicate the status of my test. These fields will have different size fonts and text colors to begin with, then I want to be able to dynamically change the color depending on certain conditions. I think I know how to do it using the Microsoft edit and static controls, but it seems awfully painful. I've done this before with LabWindows and it was extremely easy. I've tried using the CWNumEdit control but obviously it doesn't let me display text-only strings. Is there a way to fool this control, or any other way to create a control similar to the Text control in LabWindows?? One that I can modify dynamically with a single call, rather than responding to multip
le windows messages.

I have done this where a CNiNumEdit control shows values, but I want it to show an Overload warning sometimes. You could use a similar technique to show text always in the control.
Example, inside the square brackets is a string in my stringtable, [ "OL" .]
If you set this as the FormatString of your CNiNumEdit control you just see OL in the control. The actual value (denoted by the dot) gets pushed outside the viewable area.
Billy H.

Similar Messages

  • Are there some "waveform measurements" componet in Measurement Studio for VC++ as in the LabVIEW ?

    I want to use some"waveform measurements" function , but I don't familiar with  LabVIEW  , 
    Is there a  corresponding  componet in  Measurement Studio for VC++ ? 

    the following webpage may give you some help:
    http://sine.ni.com/nips/cds/view/p/lang/zhs/nid/204741

  • Measurement studio plot data vs. date/time (Measurement studio for Visual Basic 6)

    Hi, I'm trying to do something that should be simple and appears totally possible but I can't get there.
    I'd like to plot some data on the y axis vs. the date/time on the x-axis.  I've looked at the samples, and tried modifying the chart properties but I'm doing something wrong and can't get it properly.
    Any chance someone has a very simple example of plotting a few points vs. date/time that they can share?
    Thanks for any feedback!!

    Hey Larrymcd,
    What format is your date/time currently in? That might help us find the best way to do this. I was able to find a few examples of plotting a graph with time on the X-axis:
    http://forums.ni.com/t5/Measurement-Studio-for-NET/Measurement-Studio-Graph-to-plot-with-time-scale/...
    http://digital.ni.com/public.nsf/allkb/FFC867DDE42029BA8625760300477BEB
    http://zone.ni.com/devzone/cda/epd/p/id/3334
    Hopefully some of these can point you in the right direction. If you have any more questions after checking those examples out, please let us know!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • 有measurement studio for visual c++ 6.0方面的资料吗?

    measurement studio for visual c++ 6.0在本论坛讨论很少,能给一些连接吗?

    您可以参考下面的链接:
    http://www.ni.com/support/toolsupp.htm

  • LV8,5 Dev Suite install, error "Measurement Studio for VS2003 not installed""

    Hi guys,
    Installing LabVIEW 8.5 Developers suite, installed LV8,5 OK, but all otehr products (CVI, Studio, etc) come up with error messages as per attached photo, "measurement Studio for VSXXXX not installed"
    When should I have installed this ? which DVD has this ?
    Any help apreciated
    Cheers
    Mathew
    Attachments:
    LV8.5Install.GIF ‏22 KB

    Do you want to install Visual Studio, CVI, etc.?  It looks like you are running the device drivers DVD, and must have told it to install All device drivers, rather than just the ones it determined you needed when it scanned your system.  So when it tries to install the device drivers for VS and CVI et al, it can't find that software on your PC.  If you want that software, they would be on other CD's in your Developer's suite package.  Install that, then run the Device Drivers DVD again.
    If you only want to install Labview, rerun your DVD for your device drivers again, and only install the features that it wants.  I find the device drivers DVD takes a long time to initialize, and I believe that is because it is scanning your PC to detect what other National Instrument products you have installed so it can populate the list of what drivers you need to install.
    Message Edited by Ravens Fan on 09-18-2007 11:46 PM

  • How can i understand all the functions provided in the measurement studio for visual c++?

    Hoew do i choose the AppWizard wich ensure i have the correct header files, libraries...? What is th eMFC ClassWizard use for? How can i more understand all the functions provided in this software?

    Hi,
    It all depends on what you want to do! but in general to use MStudio the best way is to select a NI Measurement Studio AppWizard this way you will have all the classes for the MStudio components to gether with a dilog based MFC application.
    The ClassWizard will help you create classes for the components of your user interface, you can use it with the MStudio components just the same way that you use it with any control in VC++.
    If you go to the start menu and programs you should see under National Instruments a link for MStudio where you can access the help file with all the information on the components and classes. However for specific tasks or questions the best way is to use http://www.ni.com/support.
    Good luck!
    Regards,
    Juan Carlos
    N.I.

  • Measurement studio for visual studio 2005

    Hello, I'm currently using an ELVIS-II with Visual Studio 2005 for the measurement studio. I'm attempting to light up the 8 LEDs on the right of the ELVIS-II using a connection to the DIO 0 - DIO 7 ports, and a Digital Output program created using the NIO DAQ Windows application. However after I compiled the program and clicked the "Write" button on the Form1.cs it displays a message saying "You must populate the data to write before writing the data" . Can someone explain to me what's wrong with the program? many thanks: )
    Attachments:
    LEDerror.JPG ‏174 KB

    So sorry, the code I've posted was sightly modified by me while trying to find a solution. This is the "unmodified" version. basically the "//" was removed before the "throw new System.NotImplementedException("You must populate the data to write before writing the data.");" line.
    Attachments:
    LEDRun0003.txt ‏2 KB

  • Is there a text-based FMS 3 installer for Linux?

    Just downloaded FMS 3 for Linux. Per
    (flashmediaserver_install.pdf) installer document, it implies that
    you must run some kind of X Window (Gnome or KDE) to in order to
    install the product. Is that true? If that is true, is there an
    alternative, such as a text-based installer? Thanks.

    No, there's isn't. You should install IIS 7 first, and then install 32-bit version OBIEE.

  • How do I print the displayed graph? I am using Measurement Studio for Visual Basic.

    a

    It is true that calling the PrintForm method is the easiest way to print your graph. However, if you wish to print only the graph, and not the rest of your form, there is a way to do this also.
    The CWGraph control, and some other CW controls, supports the ControlImage method which returns a Windows metafile containing an image of the graph. You can then send this image to your printer using environment-specific printer commands.
    In Visual Basic, use the Printer.PaintPicture command to send the metafile, and top and left coordinates to the printer. Then call Printer.EndDoc to flush the job to the printer:
    Printer.PaintPicture CWGraph1.ControlImage, 0, 0
    Printer.EndDoc
    In the above code, the second and third parameters specify the position of the image o
    n the page; you can also enlarge or shrink the image by specifying width and height. You may want to take a look at the Visual Basic PaintPicture function help for more details on this function.
    J.R. Allen

  • CWgraph Copy Chart to Clipboard / Measurement Studio for VB6

    does anyone know how to copy a chart generated by the CWgraph to Clipboard in VB6 and .Net
    thanks,

    Hey Mundo,
    If you are using the CWgraph in VB 6 the method to copy the image to
    the clipboard is Clipboard.SetData CWGraph1.ControlImage,
    vbCFEMetafile.  If you are programming in .NET, I would recommend
    using our .NET graphs rather than the activex graphs.   All
    of the .NET graphs have a method called ToClipboard() that will send
    the graph image to the clipboard.
    Pat P.
    Software Engineer
    National Instruments

  • I get a TypeLoadException WaveformPlot in Measurement Studio for Visual Studio 2005

    Thanks,
    Greg Filis
    Solved!
    Go to Solution.

    OK, I ran fuslogvw.exe and got the following log file for NationalInstruments.Common:
    *** Assembly Binder Log Entry (11/1/2010 @ 7:20:39 AM) ***
    The operation failed.
    Bind result: hr = 0x80070002. The system cannot find the file specified.
    Assembly manager loaded from: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
    Running under executable C:\source\Spotlight\Code\!Executables\Spotlight.SoftFrontPanel.vshost.exe
    --- A detailed error log follows.
    === Pre-bind state information ===
    LOG: User = HARRIS\gfilis
    LOG: DisplayName = NationalInstruments.Common, Version=8.1.20.235, Culture=neutral, PublicKeyToken=4544464cdeaab541
    (Fully-specified)
    LOG: Appbase = file:///C:/source/Spotlight/Code/!Executables/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = Spotlight.SoftFrontPanel.exe
    Calling assembly : Microsoft.VisualStudio.HostingProcess.Utilities, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\source\Spotlight\Code\!Executables\Spotlight.SoftFrontPanel.vshost.exe.Config
    LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Redirect found in application configuration file: 8.1.20.235 redirected to 8.5.20.149.
    LOG: Post-policy reference: NationalInstruments.Common, Version=8.5.20.149, Culture=neutral, PublicKeyToken=4544464cdeaab541
    LOG: GAC Lookup was unsuccessful.
    LOG: Attempting download of new URL file:///C:/source/Spotlight/Code/!Executables/NationalInstruments.Common.DLL.
    LOG: Attempting download of new URL file:///C:/source/Spotlight/Code/!Executables/NationalInstruments.Common/NationalInstruments.Common.DLL.
    LOG: Attempting download of new URL file:///C:/source/Spotlight/Code/!Executables/NationalInstruments.Common.EXE.
    LOG: Attempting download of new URL file:///C:/source/Spotlight/Code/!Executables/NationalInstruments.Common/NationalInstruments.Common.EXE.
    LOG: All probing URLs attempted and failed.
    This was the only one that said the operation failed.  I'm not sure what to do to fix this.  Please tell me what I need to do to correct this problem.
    Thanks,
    Greg

  • Using graphs in measurement studio

    I have written in multiple languages, and this �easy� �user friendly� software package has left me completely stumped. How on earth do you put data in to a graph and display it????? Can someone please show me code examples of firstly how to shove an entire array of numbers into a graph in VB.net using the new Measurement Studio and secondly how I could update a graph plot with a next acquired sample. Please help

    "Where would I find "Creating Measurement Studio Strip Charts, Scope Charts, and Graphs" document. if it is on the website it is extremeley well hidden even from its own search engine. Does this specifically talk about VB .NET and measurement studio"
    You can find this topic, as well as several other conceptual topics about the Measurement Studio .NET features with VB.NET/C#, in the Measurement Studio help that installs with Measurement Studio. You can find this help in two ways:
    Integrated into VS.ET 2003/MSDN Help - Go to the table of contents, then the "NI Measurement Studio Help" node.
    Measurement Studio standalone help - Go to the Start Menu, then Programs->National Instruments->Measurement Studio 7.1 for VS.NET 2003->Measurement Studio Documentation
    Once you're in the table of contents, you can find the topic above by navigating to:
    - NI Measurement Studio Help
    - NI Measurement Studio .NET Class Library
    - Using the Measurement Studio .NET Class Libraries
    - Using the Measurement Studio Windows Forms .NET Controls
    - Using the Measurement Studio Graph .NET Controls
    The topic above is the second link in the list. If you have Measurement Studio 7.1 installed, this link will take you directly there.
    "Using Measurement Studio ActiveX controls I wouldn't even know where to start, there is no AxCWGraph on any toolbar."
    AxCWGraph is the name of the interop wrapper that is automatically generated by VS.NET when you add CWGraph to your project, so you won't see it in the toolbox. WaveformGraph/ScatterGraph is what you should use in .NET applications if you have Measurement Studio 7.0 or higher. I only mentioned CWGraph because this was posted to the Measurement Studio for Visual Basic forum instead of the Measurement Studio for Visual Studio .NET forum, so it wasn't clear if you were using the Measurement Studio .NET controls or the Measurement Studio ActiveX controls.
    "If NI could just stick an example of exactly how to use VB.NET with measurement studio on displaying data and the various options available and stick it for all to see on the measurement studio home page it would be great."
    There are several examples that are installed with Measurement Studio 7.1. If you installed Measurement Studio to the default location, you can find this examples at:
    Program Files
    National Instruments
    MeasurementStudioVS2003
    DotNET
    Examples
    UI
    Graph
    "I write in over ten different languages and scripts and fluent in two of them. It worries me that I can't even find the front door let alone open it."
    I can understand how this could difficult if you were not aware of the Measurement Studio help and examples. Is it easier now that you know about this content that installed with Measurement Studio? If not, what else do you feel is missing?
    - Elton

  • Application distribution Measurement studio

    We have now developed a software application using Measurement Studio and VC++ for "capturing" live communication data from line as step 1 of the application and "analysing data" separately as step 2. We can do the 2 steps without any problem on a data acquisition machine. However, when we run the same application on a desktop PC (not a digitizer or not connected to digitizer) we expect the application to RUN only step 2. The question here is then, in order to set application up on a desktop PC (not a digitizer or not connected to digitizer) what changes I should do (in terms of un-tying NI scope acquisition functions)?
    NI Software : Measurement Studio for Visual C++ version 7.0
    NI Hardware : High-Speed Digitizers (Scopes) device PXI-5122
    Driver Version : NI Scope 2.6
    OS : Windows XP

    THanks for response.
    >>> Aha, I didnt realize that you were using the C++ scope classes. The scope driver does not >>> get loaded until the very first call to the scope class. So you would not need to setup >>> delay loading nor would you use LoadLibrary or GetProcAddress.
    Our application was developed using MFC VC++ 2003 .NET edition. Sorry I missed the details.
    >>> You will get an exception when you use the CNiScope constructor and if the system does >>> not have the scope driver installed.
    Exactly, I do get an exception when I use the CNiScope constructor. However, what I do is create CNiScope 2 times. The first time a dummy construction is done with function like this...
    bool CMainFrame:copeExists(void)
    bool scopeExists = true;
    CString errorMsg = "NiScope device absent.\r\nNo Scope controls will be available";
    try
    // Instantiate a scope to test is it exists
    CNiScope ProbeScope ("PXI1Slot2", false, false, "");
    catch (CNiIviException* e)
    e->Delete();
    AfxMessageBox (errorMsg, MB_OK | MB_ICONEXCLAMATION);
    scopeExists = false;
    return scopeExists;
    I use the returned boolean to identify if scope driver is PRESENT or ABSENT in the system. Using this boolean result I then do the actual scope dialog bar and CNiScope construction (the second time is when the actual CNiScope is created and used).
    If boolean is FALSE
    no scope dialog bar controls is created
    only the analyses dialog bar controls are created
    else
    application starts up with scope and analyses dialog controls
    >>> Are you using the .NET class libraries? Or is this just MFC code?
    Just MFC code with Measurement Studio
    >>> For a list of components that need to be distributed, refer to the Measurement Studio Help topic Distributing Measurement Studio Visual C++ Applications.
    This was helpful to the extent that I got the active X controls loaded and distributed with application. But analyses part of application crashes when it tries to use the CNi such as CNiMatrices, CNiReal64Vector. I found this using the debugged in Microsoft's VC++ .NET 2003.
    >>> Are you checking for exceptions when you start the analysis routines?
    I do have a few exceptions being checked. However, can you tell the exceptions you have in mind that need to be included.
    >>> Is this crash happening on the development machine or the deployment machine?
    The crash is happening only on machines NOT having scope drivers. I tried on a 2 machines.
    One WITH Measurement Studio and WITHOUT scope controls - it crashes
    Second WITHOUT Measurement Studio and WITHOUT scope controls - it crashes
    Is there something I am missing??
    >>> Could you provide more information about the crash, perhaps a code snippet or a sample app ( with only the analysis section).
    Here is code snippet....
    m_digIntpolRowLength and m_digIntpolCoeffRows are unsigned int types.
    m_farrowFilterCoeff is CNiReal64Matrix type. This is the first moment in application when a CNi is used. When the matrix elements are loaded with values, it crashes at the line
    m_farrowFilterCoeff(0,0)=0.00252;.....
    I know this may or may not give you whole lot of information. If we can go offline from discussion forum (becuase of proprietary information), I can provide more details about application etc. Thanks.
    void CDAQ_DigitalInterpolator::ResetLarge(void)
    m_digIntpolRowLength = c_digIntpolRowLengthLarge;
    m_digIntpolCoeffRows = c_digIntpolCoeffRowsLarge;
    m_farrowFilterCoeff.SetSize(m_digIntpolCoeffRows, m_digIntpolRowLength);
    m_delayLineBuffer.SetSize(c_delayLineBufferSize);
    m_delayLineSize = m_digIntpolRowLength;
    m_delayLinePtr = &m_delayLineBuffer[c_delayLineBufferSize - m_delayLineSize];
    /////Row 0//////
    m_farrowFilterCoeff(0,0)=0.00252;
    m_farrowFilterCoeff(0,1)=-0.0087823;
    m_farrowFilterCoeff(0,2)=0.0218283;
    m_farrowFilterCoeff(0,3)=-0.046127;
    m_farrowFilterCoeff(0,4)=0.0909993;
    m_farrowFilterCoeff(0,5)=-0.1884611;
    m_farrowFilterCoeff(0,6)=0.6283543;

  • 3D Graphs in Measurement Studio 2013

    Hi guys,
    I'm new to Measurement Studio and would like to create 3D graphs, however see from an old post that there are some limitations. What approaches can I take to creating 3D graphs with Measurement Studio 2013?
    Many thanks

    Hi CMScribe, 
    I've found a couple of examples that seem to use 3D graphs, have a look at them and see if any of these are helpful. 
    https://decibel.ni.com/content/docs/DOC-6352
    http://forums.ni.com/t5/Measurement-Studio-for-NET/Can-I-use-the-3D-graph-Active-X-control-within-Ne...
    There's a small section towards the bottom of this page too:
    http://www.ni.com/white-paper/2820/en/
    All the best
    Vsenior

  • Is the digital waveform graph supported in Measurement Studio?

    I have an application that could really use the LV-style digital waveform graph in Visual C++. Are there any plans to support the digital graph in Measurement Studio?
    Thanks, Bob

    Unfortunately, there is currently not an equivalent of LabVIEW's digital waveform graph in Measuremeht Studio for Visual C++. You can fake some of the features with CNiGraph. If you have Measurement Studio for Visual Basic 6.0 installed, you can see some examples of this in the VB DAQ\Digital\Digital Waveform and Digital Waveform Continuous examples. Also, attached is a sample Visual C++ 6.0 project that demonstrates how you can simulate some digital graph features with CNiGraph. There's also a screenshot attached that shows what this looks like. Hope this helps.
    - Elton
    Attachments:
    DigitalGraphExample.png ‏16 KB
    GraphDemo.zip ‏19 KB

Maybe you are looking for

  • ISE 1.2 Live Session View Empty

    We have a distributed ISE deployment (1.2.0.899 patch 7) with the PANs in one firewall context and the MNTs and PSNs in another firewall context. Everything is working smoothly except that when looking at the Live Sessions view in the PAN, it's empty

  • I can't find a way to get app store back on my imac

    The App Store was deleted by an idiot and now, I can't seem to find anywhere to download it.  I tried to get the old update, but it won't work since my software is up to date (or so it says). Can anyone tell me how I can get my app store back?

  • How to search OER for method signatures

    I would like to search OER for Service assets that have a specific input and/or output. I'm sure this is easy to do but am missing something. I was reading the description in the Sample Interface - Account Detail Interface shipped with OER and it say

  • Ovi Player only displays .mp3 files on my N97

    Hi all, I'm having problems with Ovi Player. First it caused severe problems with my music library app on the phone, which wasn't able to read any files from the file system. I managed to fix this by formatting the whole mass storage. Later, after im

  • ESS Country Spesific (PersonData)

    Hello We are using EP 7.0 SP 10 with ESS 600 SP 8. Our problem is that the Personal Data (Adress & Persondata) is not Country Spesific. We have removed some fields for the country group 20. This works fine in the GUI. But when accessing the Portal, a