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

Similar Messages

  • NI Measurement Studio UI components for Visual Basic 6.0 message box

    Hey All,
    North West Quality Analyst was recently installed on my LabVIEW development machine. Whenever I launch NWQA I get a dialog box to install "NI Measurement Studio UI Components for Visual Basic 6.0" for program called "Program Name."
    I cancel out of the install and I can use NWQA just fine. However, I would like to eliminate the install attempt. Any ideas on how to do that?
    I've tried to find the installer file on the Distribution discs, but on the two that I thought it would be on, "Measurement Studio Enterprise Support for Visual Studio 6.0" and "Measurement Studio Enterprise Edition" the file named "MStudioUIDemo.msi" was not found.
    Thanks,
    -Andrew

    Below is the text from the event viewer warning...
    Detection of product '{7B0F253A-C7A2-4335-B041-99868E9EDEE8}', feature 'UI_Controls', component '{A44FC66B-252B-11D4-A77B-00104B6CE77D}' failed. The resource 'C:\WINNT\system32\CWHlpBtn.ocx' does not exist.
    I have lots of stuff installed on the computer... MS Office, Codewarrior, Roxio, IE, MatLAB, etc.
    Looking under MAX, I have the following NI software installed.
    LabVIEW 6.1 (Advanced Analysis, Application Builder, Database Connectivity Toolset), 7.1 (Advanced Analysis, Application Builder), Runtime 6.0, 6.1, 7.0, 7.1, MAX 3.1.1.3003, NI-488.2 2.20, NI-CAN 2.2f2, NI-DSA, NI-IMAQ, NI-Motion, NI-PAL, NI-Switch, NI-USI, NI-VISA 3.2, Measurement Studio 6.0 (For Visual Basic(ActiveX User Interface, ActiveX 3D Graph, ActiveX DataSocket, ActiveX IMAQ))
    The Dell box is running Window's 2000.
    I found a listing under "Computer Management" -> System Information -> Software Environment -> Loaded Modules
    that seems to have all the installed apps and such. I can send that to you privately if you desire.
    Thanks,
    -Andrew

  • How can i measure the transmision time in gpib with visual basic with more precision if i use time() function?

    I want to take a measurement of the time that i use to make a gpib transmision in a Visual Basic program,i use the function TIME() to take the time in the begining and other time in the end,but this way only give me precision of seconds, and i want miliseconds,can i use other function,other way?
    Can answer in spanish?

    Try using GetTickCount() API function, which provides millisecond precision. If you need more precise timer, try using QueryPerformanceCounter() function.
    Makoto

  • Look for visual basic 6.0 code for measuring audio signal in PCI 6052E card,such as THD(total harmonic distortion),signal-to-noise etc.

    Hope receive NI measurement studio with visual basic engineer's favor in a early date!

    This is just the nature of the while loop in the VB code. The processor is going to execute this loop as fast as possible. The DoEvents in the loop allows the processor to perform other operations if needed. Try opening MAX or some other program and drag windows around at the same time the code is executing. You will notice that the processor load will shift away from the VB6 program to other processes.
    If you want to avoid this try adding a function similar to sleep in the while loop. However, this will slow the speed of your program and I would not recommend it, because the program is designed to run as fast as possible, but still allow other programs to execute.
    I hope this helps.
    Joshua

  • How do you access data on a Time Machine backup for a different computer?

    The hard disk on my daughter's computer is having problems - it may be broken.  If so, it may take a while to get the computer working again.
    The information on the disk has been backed up to our Time Capsule using Time Machine.  I can see the backup file sitting on the server.
    How can I get access to the information in the file from my computer?
    I have read that it is possible to browse other user's backup files from Time Machine by holding the Option key when clicking on the Time Machine icon in the status bar.  This produces the menu choice "Browse other backup discs ...".  When I select that option, I am given a choice of backup files, including my own file and my daughter's file.  When I select my daughter's file, I go into Time Machine.
    However, there is no data available to me.  There is no timeline, and the windows behind the current finder window are all black.  The same thing happens if I select my own backup file.  (Entering Time Machine the normal way works fine.)
    So, as far as I can tell, the "Browse other backup discs..." option is non-functional.
    Is there some other way to access the data in that file?
    I'm also concerned that when I finally get her computer working again, which may involve erasing the disk and re-installing the OS, or perhaps even replacing the disk entirely, that the repaired computer won't be able to access her backup file because I might not be able to recreate here username/uid with the same credentials as originally setup.

    Hi,
    Thanks for the response.  Unfortunately, following the directions on that page does not help.
    As I interpret it, I should be following the steps in the green box.  I can get to the point where I am asked to select a backup file, and my daughter's backup file is one of the options.  When I select that file, I am taken to the Star Wars interface.
    In that interface, I can see a finder window in front.  Behind that finder window are a series of other finder windows, as one would expect in the interface, but instead of being normal finder windows, they are simply black rectanges of the same size.  I can browse within the front finder window, but that browsing is limited to the contents of my computer.
    However, I did discover something interesting.  If I follow the instructions in the pink box, which tells how to mount the disk image of the backup file, I am able to browse within the mounted backup file using a Finder window without entering TimeMachine at all.  (Which to me is a big plus, since I think that the "Star Wars" interface is very bad.)
    Of course, my daughter's file system is a mess.  I'm going to have to give her some organizing advice.  I'll also have to sit down with her after school to see if we can access the files that she needs.
    Bottom line - I don't know at this point whether this is going to work, but mounting the backup file seems to have produced some progress.
    Thanks,
    Geoff

  • 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

  • How to read data after using the PRINT function in visual basic

    I know the benchlink can capture the spectrum analyzer screen for me, but I want to integrate it into my application. I use NI spy to detect the communications from the benchlink and put it into my application. After sending the "PRINT 0" command, my "ilrd SpectrumAnalyzer, temp, 500" command doesn't work, giving me EARG error. Does anyone knows if it is because I can not define the temp to be string or some other problem?
    b.t.w, the communications I get from NI Spy actually read some unknown characters from the instrument, what kind of data it is? Any idea how to use it?
    thanks.

    Hello elm,
    This is completely dependent on your instrument; if you are getting the data then you are halfway there. Look in your instrument's programmer's reference manual to see if they mention how the picture is encoded in bytes. There are so many different ways to encode a picture in binary that speculating and guessing would probably never yield the true result. If there is no mention in the manual, contact the instrument manufacturer.
    Sorry I could not be of more help.
    Scott B.
    Applications Engineer
    National Instruments

  • How to generate n random dates between 2 time periods

    Hi,
    I'm trying to write a method that generates n random dates between 2
    time periods. For example, lets say I want to generate n random dates
    between Jan 1 2003 and Jan 15 2003. I'm not sure how to go about
    doing the random date generation. Can someone provide some direction
    on how to do this?
    The method signature should look like this.
    public String[] generateRandomDates(String date1,String date2,int n){
    // date1 and date2 come in the format of mmddyyyyhh24miss.
    // n is the number of random dates to generate.
    return dateArray;
    Thanks.
    Peter

    first take a look at the API concerning a source of randomness (Random might be a good guess), then take a look at stuff concerning dates (Date might be cool, maybe you will find some links from there).
    Who wrote this stupid assignment?

  • Why can't visual basic 6 load CWDAQ.OCX in the example programs? I am using the latest Measurement Studio 6 and VISTA OS.

    Can someone help me with getting controls to work with Visual basic 6 in an Vista environment?  I cannot get the examples to work that use the CWDAQ.OCX control.  I did a search on my computer and the file is not even there.  What functions are in CWDAQ.OCX?  Is there a descriptions of what functions are included in this control and other controls?  It is not obvious where to find these descriptions. 
    I did install Measurement Studio 6 with all the options for Visual basic 6.
    I am new to programming NI cards with visual basic so any help in getting me started will be greatly appreciated. 
    I need to talk to a PCI-6110 card in visual basic 6.  I would like to preprogrammed the D/A fifos, store to two analog inputs simutaneously, and use some of the digital I/O.  Can someone direct me the direction as to what controls I need to use?
    Thanks in advance for any help or guidance. 
    Tony

    Hi Tony,
    So the reason you can't find the CWDAQ.OCX ActiveX controls in VB 6.0 in Vista is because that is a Tradtional DAQ (legacy) control meant to work with the Traditional DAQ Driver.
    The Tradtional DAQ drivers aren't officially supported in Windows Vista (KnowledgeBase 4FDH4MZN: Traditional NI-DAQ (Legacy) for Windows Vista OS) and so the CWDAQ.OCX controls don't get installed.
    However, the good news is that the PCI 6110 is a newer card that uses our newer driver, NI-DAQmx. DAQmx is supported in Vista and you can communicate to your card from VB 6.0 using DAQmx in Vista.
    There are several examples that show you how to communicate using DAQmx in VB 6.0.
    These can be found in:
    <Users>\Public\Documents\National Instruments\NI-DAQ\Examples
    This is also mentioned in the following Knowledgebase article:
    KnowledgeBase 47CCSQ5B: NI-DAQmx, NI-VISA and NI-488.2 .NET Example Locations
    Also, the DAQmx functions are documented in the following locations:
    Start»Programs»National Instruments»NI-DAQ»NI-DAQmx C API Visual Basic 6.0 Help
    Start»Programs»National Instruments»NI-DAQ»NI-DAQmx C Reference Help
    Hope this helps!!
    Message Edited by Jervin_J on 06-05-2008 02:58 PM
    Jervin Justin
    NI TestStand Product Manager

  • Stored Procedure w/ binary data parameter problems in Visual Basic

    Howdy all.
    I am having a problem calling stored procedures with a BLOB parameter. I have tried changing the paramater other data types to see if it would work, but with no success. I am calling the stored procedure from Visual Basic using ADO. I am using the Oracle ODBC Driver, Release 9.2.0.4.0. I have tried changing the setup of the ODBC a good bit because that has fixed several problems for me in the past; however, it did not fix my current problem.
    Here is what I am trying to do. I have a function like the folowing:
    <BEGIN --------------------------------------->
    CREATE OR REPLACE FUNCTION PAGEFORMATSINSERT(
    p_ObjectFormatCode_ID      IN RAW DEFAULT NULL,
    p_PA_ID      IN RAW DEFAULT NULL,
    p_Name      IN VARCHAR2 DEFAULT NULL,
    p_FormatData      IN BLOB DEFAULT NULL,
    p_PF_ID      IN OUT RAW )
    RETURN INTEGER
    AS
    BEGIN
    INSERT INTO PAGEFORMATS (PF_ID, ObjectFormatCode_ID, PA_ID, Name, FormatData) /* <---- this FormatData column is a BLOB column */
    VALUES     (p_PF_ID, p_ObjectFormatCode_ID, p_PA_ID, p_Name, p_FormatData)
    END PAGEFORMATSINSERT;
    <END ----------------------------------------->
    The FormatData parameter has a data type of BLOB. In my Visual Basic, I have my ADODB.Command object. I am setting the CommandText of the Command object to "{? = call PageFormatsInsert(?, ?, ?, ?, ?)}". In order to set the parameter value for the BLOB data type, I am calling the AppendChunk function of the Command object - passing it a Byte array.
    I am getting the folling error:
         ERROR: -2147467259 [Oracle][ODBC][Ora]ORA-06550: line 1, column 13:
         PLS-00306: wrong number or types of arguments in call to 'PAGEFORMATSINSERT'
         ORA-06550: line 1, column 7:
         PL/SQL: Statement ignored
    If I change the FormatData parameter to a LONG RAW parameter, I get the following error:
         ERROR: -2147467259 [Oracle][ODBC][Ora]ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error
         ORA-06512: at line 1
    I am at a loss as to how to get binary data into by Oracle database. I need to do it using stored procedures. How can I set up my stored procedure or table to do what I want it to do? Should I change my table definition? Are there some settings in the ODBC connection I can tweak? How can I get the stored procedure to accept my call from VB ADO?
    Any help would be appreciated.
    wally

    Thanks for the idea, but I don't get how I am supposed to get my binary data to the stored procedure using the stream. I have a binary array that I want to pass to a stored procedure. I want to be able to use the same Visual Basic front end with out MSSQL database as with our Oracle database.
    I am using the ADODB Connection and Command and RecordSet objects. Currenlty our front end calls the ADODB.Command(ParamNumber).AppendChunk function passing it the binary array. Somehow, the SQL Server driver does the magic in order for the MSSQL stored procedure to work correctly. I need to know how to do one of the following:
    1. Get the Oracle driver to do the same magic.
    2. Set up the Oracle stored procedure so I don't have to change the VB front end.
    3. Change the VB front end so that it works with both MSSQL and Oracle.
    wally

  • Windows Azure Tools for Visual Studio 2013 - v2.2 install fails on Windows Server 2012 R2

    Microsoft Visual Studio Professional 2013
    Version 12.0.21005.1 REL
    Microsoft .NET Framework
    Version 4.5.51641
    The installation completes without any errors on my VM running Windows Server 2012 R2, however its not recognized in VS2013 ? It also breaks the Publish functionality when I try and publish a web site to my hosting provider.

    I tried install, uninstall, reinstall cycle several times without success. Any help would be greatly appreciated.
    here is my About info:
    Microsoft Visual Studio Professional 2013
    Version 12.0.21005.1 REL
    Microsoft .NET Framework
    Version 4.5.51641
    Installed Version: Professional
    LightSwitch for Visual Studio 2013   06177-004-0444002-02824
    Microsoft LightSwitch for Visual Studio 2013
    Microsoft Office Developer Tools for Visual Studio 2013 ENU   06177-004-0444002-02824
    Microsoft Office Developer Tools for Visual Studio 2013 ENU
    Team Explorer for Visual Studio 2013   06177-004-0444002-02824
    Microsoft Team Explorer for Visual Studio 2013
    Visual Basic 2013   06177-004-0444002-02824
    Microsoft Visual Basic 2013
    Visual C# 2013   06177-004-0444002-02824
    Microsoft Visual C# 2013
    Visual C++ 2013   06177-004-0444002-02824
    Microsoft Visual C++ 2013
    Visual F# 2013   06177-004-0444002-02824
    Microsoft Visual F# 2013
    Visual Studio 2013 Code Analysis Spell Checker   06177-004-0444002-02824
    Microsoft® Visual Studio® 2013 Code Analysis Spell Checker
    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
    ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
    For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
    ASP.NET Web Frameworks and Tools 2013   5.0.11001.0
    For additional information, visit http://www.asp.net/
    BusinessObjectEditor   1.0
    Information about my package
    CodeRush for Visual Studio   13.2
    Common Azure Tools   1.0
    Provides common services for use by Azure Mobile Services and Windows Azure Tools.
    CreateLayoutWizardPkg   1.0
    Create layout wizard.
    DevExpress.ExpressApp.Design.DesignDynamicPackage   1.0
    DevExpress VSIX Package
    DevExpress.ExpressApp.DesignPackage   1.0
    DevExpress VSIX Package
    DevExtreme.Design   13.2.6
    DevExtreme Visual Studio integration package
    DXCore for Visual Studio   13.2
    DXCore for Visual Studio
    PreEmptive Analytics Visualizer   1.2
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
    SQL Server Data Tools   12.0.30919.1
    Microsoft SQL Server Data Tools
    Windows Azure Mobile Services Tools   1.0
    Windows Azure Mobile Services Tools
    Workflow Manager Tools 1.0   1.0
    This package contains the necessary Visual Studio integration components for Workflow Manager.
    XtraReports package   1.0
    XtraReports package

  • Request for visual studio that is compatible with windows 7

    I have installed many visual studio i.e, 2012,13 and they did not work in my system with windows 7 OS.Please kindly guide me with the 2010 or 2008 version so that i can develop my apps using it and please make sure that i contains all the specification
    of the visual studio 2010 / 2008.Thank you.

    I believe you are confusing an end product with an editor.
    All the editors written in the Visual Studio Library will work (allow for the creation of programs and websites on a computer) on Windows 7. The real question is what are you creating for the end user? Which version of .Net does it target?
    Visual Studio stopped becoming a .net version specific editor as of Visual Studio 2008, which at that time then allowed for different version of .net to be created, (.Net 2 and .Net 3, 3.5). Visual studio verison 2010 can create .Net 2, 3.5,
    and 4.  VS2012 can create all that 2010 can do and create .net 4.5x applications.
    So a better question would be which version are you targeting for .Net?
    Since Visual Studio is an editor, I recommend going with the latest one which can create programs to target .Net2 - .Net 4.5x. Try the latest Community edition
    which has just been released and is free to use as long as you are not a large corporation.
    William Wegerson (www.OmegaCoder.Com)

  • VS.PHP vs PHP TOOLS for Visual Studio : which is the best ?

    Hi,
    I love Visual Studio. I use it since 2006 for c#, asp, WinForm project, etc. I have a question about PHP / Simple Web dev : 
    Which is the extention between VS.PHP and PHP TOOLS ?
    What i need :
    - Intellisence (auto completion all PHP core class and functions and major extention, project lib class and functions)
    - Powerfull debug, with break points etc...
    -Web server integartion (apache, nginx, mysql) 
    - Live edit over FTP
    - Publish over FTP the file projet
    - MySQL Integration (design tools, etc ?)
    [- Integration of some platform like Drupal or Wordpress (intellisence and debut)
    - Integartion with other HTML/Javascript framework (jquery, angular etc.) ]
    - CONTROL + K + D indentation for all documents
    Thanks for your opinion.

    Hi nicpulse,
    Thank you for posting in MSDN forum.
    Since this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation
    and Help System, and Visual Studio Editor.
    >>VS.PHP vs PHP TOOLS for Visual Studio : which is the best ?
    Based on your issue, since the PHP Tools and VS.PHP are involved to the Extensions tool,
    this extension tool is out of support range of this forum.
    In my option, I think that there have no specified answer about which is the best in the
    VS.PHP vs PHP TOOLS for Visual Studio.
    It is just depend on which is appropriate for your requirement, so I suggest you can see the feature about the VS.PHP and
    PHP Tools. And then choose which extension tool is appropriate your requirement.
    https://visualstudiogallery.msdn.microsoft.com/F5CFBE65-D843-4C96-8F24-2C169676504Chttps://visualstudiogallery.msdn.microsoft.com/6eb51f05-ef01-4513-ac83-4c5f50c95fb5
    In order to resolve your issue better, I suggest you post this issue to
    PHP Tools
    for Visual Studio or
    VS.Php for Visual Studio, click “Q AND A”, you will get better support there.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • CRVS2010 Beta - How do you hide the Group Tree for Visual Studio 2010

    Would anyone know how to hide the group tree in the Crystal Reports viewer for Visual Studio 2010.  I have tried
    DisplayGroupTree="False" and found the property doesn't exist in the new version for VS 2010.  I have search in the designer options and found nothing.  Note this report is for ASP.net.
    Thanks
    Dave.
    Subject modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Sep 15, 2010 8:55 AM

    A simple search using the search box in the top right corner of this web page would have come up with the following KBase as one of the 1st - if not the 1st hit (for once, we beat Google    ).
    [1183704 - How to display or hide the Group Tree in CrystalReportViewer control through code in Crystal Reports 2008|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133383333333733303334%7D.do]
    - Ludek

  • How to measure and plot RMS value of real time data?

    hi
    i need to measure and plot real time RMS value of EMG voltage. I made a VI. But I dont know why it didn't work. Can anyone please help me out? My VI is attached  in 2013 and 2011 both version. One sample data is also attached. Thanks at advance.
    Solved!
    Go to Solution.
    Attachments:
    RMS.vi ‏47 KB
    RMS_2011.vi ‏41 KB
    Sample Data.docx ‏20 KB

    You seem to select EMG voltage vs Angle(Z-axis). Is that really what you want? More resasonable would seem e.g. EMG voltage vs. time.
    If you want to process the 3D (xyz data), you probably need to add some more math). Why are you taking the absolute value? RMS does not care about the sign anyway, right?
    They you are trying an XY graph with a single point, because your Y value is only a single number. You need an equal number of points for Y.
    Here's a quick modification that graph EMG(mV) vs. time(ms) and takes the RMS of the EMG data. See if this gives you some ideas.
    Please provide more information what you want to do with the angles.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    RMS_MOD.vi ‏18 KB

Maybe you are looking for

  • Can You Set-up a Sub mail Address Folder?

    I'm switching from Microsoft Outlook Mail to the Apple address and I wondering if there is a way to set-up a sub address folders like I can do in Outlook. See example? Business - Services for My Business - My customers - Personnel services - Etc. Any

  • How to extract sub string value from a string?

    Hi, I need to know how can i extract sub strings from a main string, something like this: main variable-------->"2087-5E2SE-19-JG7BC" i want to split it into like this: sub_main_1 variable---------> "2087" sub_main_2 variable---------> "5E2SE" sub_ma

  • Add button in "Due List for Purchasing Documents" Screen

    Dear All, I need to add one button on "Due List for Purchasing Documents" Screen in customer view. Can you please suggest BADI for adding this button. Thanks

  • Verified by visa does not work

    When trying to use Verified by Visa, it no longer recognizes our password. Instead, it allows you to try to provide the password 3 times. It then locks out and forces us to reset the password. This new password then works for the one transaction bein

  • Creating new Clinet in Trial ABAP 702 version

    Hi All, ive sucessful instal SAP NW Trial version, but to play my own scenarions i need to create additional clients. I maintained them in scc4, i see them in t000 table, but i cannot log in, iv used all passwords that i could use, but i failed, can