How to create sine wave and step input using cwgraph in VB 6.0

hello..
i'm doing my master's project now. i'm stuck on how to create a sine wave and a step input using the cwgraph using VB 6.0. please help. thanks.

hello..thank for the reply.
i'm having problem with my coding using cwgraph. can anyone help. everytime i do the full compile, there's error.but it can still can run, but can't convert to application form.for your info, i'm using RTscope and cwgraph to plot graph.the error is in the cwgraph coding.below are part of the coding with error. and can somebody tell me how to add cwgraph component in the VB? i try adding component, but it's not in the list of component,and i've browse for it already too.i'm doing the software at home, but i'can run it at my lab cause cwgraph component is not listed.please help.
Dim countTime As Integer, count1 As Integer, countFreq As Integer, countVolt As Integer
Private Sub cmdRun_Click()
If cmdRun.CausesValidation = True Then
cmdPause.CausesValidation = False
tmrOsc2.Enabled = True
tmrOsc3.Enabled = True
Else
cmdPause.CausesValidation = False
tmrOsc2.Enabled = False
tmrOsc3.Enabled = False
For count1 = 0 To 100
Data1(count1) = 0
Data2(count1) = 0
RT1.Value(1, count1) = 0
RT1.Value(2, count1) = 0
RT1.Refresh
CWGraph2.Plots(1).PlotY count1 ' THIS CODING HAS AN ERROR ...
CWGraph2.Plots(2).PlotY count1 ' THIS CODING HAS AN ERROR ...
Next count1
End If
End Sub

Similar Messages

  • How to create a partner and header record using CRM_ORDER_MAINTAIN?

    Hi any one knows how to create a partner and header record using the function module CRM_ORDER_MAINTAIN??
    I tried to  create a record, but i only managed to create a header record and the partner record is not reflected in the transaction.  Why is that so? is there any indicator that i need to include?
    Thanks..
    Jen

    Hi Jen!
    I use this FM and it works perfectly.
    Use this to create a partner:
      gs_partner-ref_handle    = '0000000001'.
      gs_partner-ref_kind      = 'A'.
      gs_partner-ref_partner_handle = '0001'.
      gs_partner-partner_fct   = '00000001'.
      gs_partner-partner_no    = NO_PARTNER. "number of the partner, bu_partner
      gs_partner-display_type  = 'BP'.
      gs_partner-no_type       = 'BP'.
      gs_partner-kind_of_entry = 'C'.
    *  ls_partner_l-ref_handle    = '1'.
      gs_partner-ref_guid      = '00000000000000000000000000000000'.
      APPEND gs_partner  TO gT_partner .
      ls_input_field-ref_kind  = 'A'.
      ls_input_field-logical_key   = '0001'.
      ls_input_field-objectname  = 'PARTNER'.
      ls_input_field-ref_handle  = '0000000001'.
      ls_input_field_names-fieldname = 'DISPLAY_TYPE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'KIND_OF_ENTRY'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'NO_TYPE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'PARTNER_FCT'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'PARTNER_NO'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      INSERT ls_input_field  INTO TABLE  gt_input_fields.
      clear ls_input_field-field_names[].
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
      EXPORTING
    *    it_schedlin_i   = gt_schedlin_i_com
        it_partner      = gt_partner
    *    it_sales        = gt_sales
    *      it_orgman       = gt_orgman
    *      it_appointment  = gt_appointment
    *      it_ordprp_i     = gt_ordprp_i
    *   it_product_i    = gt_product_i
    *      it_activity_i   = gt_activity_i
    *      it_pridoc       = gt_pridoc_com
      CHANGING
        ct_orderadm_h   = gt_orderadm_h
    *   ct_orderadm_i   = gt_orderadm_i
        ct_input_fields = gt_input_fields.
    *      ct_doc_flow     = gt_doc_flow
    *      cv_log_handle   = gv_log_handle.
    Hope it helps u,
    Regards,
    Mon.

  • How to create snapshot portlet and snapshot query using server API

    How to create snapshot portlet and snapshot query using server API
    Regards
    Dheeraj

    Hi Sebastian,
    I have used the query and it is working fine. but, How could i include the headers of the query also in to the Excel Sheet.
    RehaanKhan. M
    see the method discussed here
    http://sqlblogcasts.com/blogs/madhivanan/archive/2008/10/10/export-to-excel-with-column-names.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to create sine wave?

    How do you create a simple sine wave in Logic, and how do you change the frequency?
    Logic noob deluxe

    Try the Bitcrusher plugin.
    But, dude, I get the feeling that to indulge yourself in your noob-ism will wear very thin very quick, and if your next question is where the Bitcrusher is and where you have to click and then how you can use it and what the controls do and after that how you can record what it does, then it might happen that noone will bother to read anymore let alone reply.
    We can hold your hand only so far and ultimately you must decide on your own where to click, what to try and when to think.
    How about getting some 1:1 tuition to get you up and running ? It's infinitely easier for one person sitting next to you than for a bunch of folks scattered allover the globe which try to read your mind.
    Christian

  • How to create  Service Order  and then Invoice    using   IW31

    I  have  problem  to create   Service Order  and  then Billing,
                   could  anyone tel me ,what is process  flow.
    Thanksa in Advance.

    Hi Suniel,
    PLease take a look at:
    Re: Problem  to create  Service Order  using   IW31 and  then Invoice  for that
    Best regards,
    demas

  • How to create a template and child pages using mockup designed in Fireworks

    I have created a website in Fireworks, and exported it to use in Dreamweaver.  How do I use the Master page in Fireworks as my template page in Dreamweaver?  When I bring in the .htm files from fireworks, it tries to bring in the entire page.  I have taken 25 hours of online training for Fireworks and Dreamweaver through Lynda.com, but there is not a specific video that tells you how to get your website from Fireworks into Dreamweaver if you want to utilize the Template and child page features.

    Use Fireworks to crop, slice and optimize images only.  DO NOT allow any graphics app to generate your HTML code for you.  This results in poorly formed code and rigid layouts that invariably fall apart when you attempt to edit them in DW.  Fireworks / Photoshop generated pages are for quick prototypes or design comps to show the client.  They do not work well on production sites.
    Taking a Fireworks comp to a CSS Layout in DW
    Part 1 - Initial Design
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Part 2 - Markup preparation
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt2.html
    Part 3 - Layout and CSS
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt3.html
    DWT Template Basics -
    http://forums.adobe.com/message/2926278#2926278
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How to create remote monitor and control webpages using cFP2220

    Hi all,
    I'm fresh user using compact field point. I would like to make cfp2220 as a web server, so other PCs can using IE to monitor and control through web browser.
    Moreover, does the webpages support security? and how to setup?
    Thanks,
    Regards,
    Robert

    Hi Robert,
    You can use LabVIEW Web Services to set up a system like you describe, and there is also information available on how to secure your Web services.
    I hope this is helpful.
    Regards,
    Stephen S.
    National Instruments
    Applications Engineering

  • How to create A web services step by step and their uses

    How to create A web services step by step and their uses with their T-Codes
    pls dont send any links
    thank you
    Regards,
    Jagrut Bharatkumar Shukla

    Hi
    Use the Tcode <b>WFWS</b> to create the Web service
    enter the Transaction to whih you wants create the web service and save
    Regards
    Anji

  • How to measure time difference between zero crossing of a sine wave and rise time of a pulse on a same graph?

    I have a 50Hz sine wave and a pulse signal on a same graph. The phase difference between two is between 0-90 degrees.
    Now I need to calculate the time difference between (when the sine wave crosses zero volts) and (when the pulse rises). The frequency will stay approximately same for both signals.
    The application is for a three phase generator. In simple words, when the time difference between the zero-crossing of sine wave and the pulse rises increases, that means that the load on the generator has increases.
    I am a beginner user of LabView (version 9, 2009), maybe it is a very simple problem but I've been pulling my hair out for the last few days and coudln't figure anything out. Any help would be greatly appreciated. I am using DAQ USB-6008 to measure these voltages and pulse from the generator and a sensor
    I have attached a jpg (a graph that i just made with excel to explain). The time 't' is what I am trying to measure
    Cheers
    Awais 
    Message Edited by awais.h on 03-30-2010 11:20 PM
    Message Edited by awais.h on 03-30-2010 11:21 PM
    Solved!
    Go to Solution.

    Hi
    Thanks for the code but I'm afraid it won't work. Like you said the probability of choosing a value that is on both graphs may not happen. This is something that I would like the code to do automatically.
    But I did use the previous code posted and made some modifications to it and it seems to work perfectly. Now the next thing is to be able to get just that one value that tells you the first time difference.
    Here is what I get using that code.
    As you can see from the t Values. I only need the one that is highlighted. If there is a way to filter out the rest it would be great.
    I was thinking of a while loop and as soon as the value is higher than 3E-5 it would store the number and stop the loop, but I'm not too familiar with arrays in labview.
    Here is the the code modified.
    As you can see, it wasn't that big of a modification and it still is your code.
    I will keep trying.
    Thanks for the help
    Attachments:
    FinalShockSpeed.vi ‏55 KB

  • How To Create A Technical And Business Systems For Web AS ABAP ???

    Hi Experts,
    How To Create A Technical And Business Systems For Web AS ABAP ???
    Please Let me Know All the Step-By-Step Process to Create ????
    Points Will be Given
    Regards
    Khanna

    Hi Sumit,
    When U Told the thing that first time to execute the RZ70 and All i Did this in XI System
    So I got An Entry for the Technical System for XI System.
    Now i Deleted that and Executed RZ70 in R/3.
    When I Executed RZ70, I got this Error.
    <b> "RFC Call failed: Error Opening an RFC Connection "</b>.
    Now I am Unable to see Any Technical System  Under Web As ABAP. It's Showing Empty Now.
    Please Let me know
    Regards
    Khanna

  • How to create a package and add a file?

    Hi all,
    I am new to Java and very much much confussed with how to create a package and then include some files any help will be very thankfull.
    Thanks for your help
    kka.

    Steps for creating a package in java are as follows:
    Choose a base directory for your classes. For example, you might choose c:\java\packages. Type the following command:
    set CLASSPATH=%CLASSPATH%;c:\java\packages
    Create subdirectories for each chapter or section, if you don't already have them.
    For each of the classes in the subdirectories, add the following line to the very top of each file:
    package directory-name;
    where directory-name is the name of the subdirectory the class file is located in.
    In other directories you may have class files that need to access one of the classes in another directory (package). To do this, write one of the following at the top of the class that needs the other class:
    import subdir.*;
    or
    import subdir.classname;
    Use the class by name in the new class file.
    Note that you can create sub-packages by creating subdirectories of the original subdirectories, and inserting package statements at the top of the java files in those directories.
    Hope this helps!

  • How we create custom infotype and how to configure with its subtypes.

    hai abap-hr gurus,
    how to create custom infotype and how to configure with its subtypes. when i am creating infotypes i am not getting how to configure subtypes.
    plz help me for this with an example code.
    thanks..
    kiran kumar

    Hi Kiran,
        Please fallow the below steps to create the custom infotype. If you have any quires let me know.
    For Creation of Infotype first Go to Transaction PM01, Enter the custom Infotype number which you want to create, it should be a 4 digit number and have to start with 9xxx.
    then select the `Employee Infotype' radio button
    after that select the `PS Structure Infotype'
    then click on Create… A separate table maintenance window appears
    then Create a PS structure with all the fields you want on the infotype
    Save and Activate the PS structure
    now Go back to the initial screen of PM01
    Click on `All' push button. It takes a few moments
    Click on `Technical Characteristics’. Infotype list screen appears
    Click on `Change'(pencil) button
    Now select your Infotype and click on `Detail' (magnifying glass) button
    Give `T591A' as subtype table & also Give `T591S' as subtype txt tab
    Give your subtype field as subtype field & Save and come back to PM01 initial screen
    Click on `Infotype Characteristics' … Infotype list screen appears
    Click on `Change' (pencil) button & on New Entries
    and then Enter your Infotype number and short text Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference
    to fill yours). Now save ur entries
    Now the Infotype is created and ready to use.
    If you want to change the layout of the Infotype as per your
    requirement…
    In the PM01 initial screen…Select `Screen' radio button and give
    2000 as the screen name, then click on edit.
    In the next screen.. Select `Layout Editor' and click `Change'.
    Screen default layout appears…here you can design/modify the
    screen..change the attributes of the fields..etc.
    Save and activate. (Don't forget to `Activate at every level)
    Regards,
    Ramakrishna kotha.

  • How to create the Cash Flow  step by step?

    How to create the Cash Flow  step by step?

    Run S_ALR_87012271 (menu path A/C-FA-GL-Info System- GL Reports - BS/PL/Cashflow-general-cash flow)
    In the screen enter the year & Company code, & execute. you will reach to another screen.
    Click on the "FORM" & you will reach another screen having various forms. The form related to Cash flow is already highlighted.
    Go to EDIT-General Data Selection - Change the financial statment version pertaining to your company
    Then, click on each line item in the form which is being displayed and enter corresponding GLs.
    Save it & execute S_ALR_87012271
    Hope this solves your problem.

  • How to create a function group (step by step)?

    I would like to know how to create a function group, step by step.
    step 1 do....
    step 2 do ...

    also,
    Go to SE80 for creating a function group.
    Also have a look at below link.
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ef5454211d189710000e8322d00/frameset.htm
    i.e.
    TCODE - SE80
    Choose - Function Group ,it wil ask to create..
    Create and then activate..give a name starting with Z .
    Other way is go to tcode SE37.
    In the menu,there is a option in sub menu for creating function group.
    Just create it by clicking that and give names starting with z or y.

  • How to create charasteristic value variable step by step please?

    How to create charasteristic value variable step by step please?
    I searched the previous threads it is not listed.
    I will assing points to only valuable information.
    York

    Hi Les,
    http://help.sap.com/saphelp_nw04/helpdata/en/ac/789b3c4d4d8d15e10000000a114084/content.htm
    In the left hand side of the query designer, find your char and under than there will be a button with text called Characteristic Value Variables. Right click this and choose New Variable. This will open the variable wizard. You need to follow the screen to define a technical name and description, the processing type, the user entry options and if the variable will accept single or multiple values, and also if you want to set a default value.
    Hope this helps...

Maybe you are looking for

  • Remote access vpn going through another firewall segment

    Hi, Can i know that when use remote access vpn connect to asa firewall inside interface, after that the remote access vpn is it can connect to another firewall segment , the firewall segment is behind the inside interface?

  • Can a pc user have an iCloud?

    My husband just got an iphone 5 but has a pc computer.  Can he access the family iCloud from his pc? He has an iTunes account and the phone was synching to that, however, we'd like him to have our iCloud on his phone to keep up with the family calend

  • Simple report

    coding for simple report

  • Can't edit project aspect snapshot

    When I select project>snapshots in the inspector I can create and delete snapshots with no problem. However I can not edit any existing snapshots when ever there is more than one snapshot existing (edit button obviously dimmed if only one snapshot ex

  • Return rows when there is a certain difference between dates

    Hello. I have table called #president# pres_name birth_date and #winner# name year_elected I would like to have all presidents returned, who where under the age 50 when they where elected. year_elected is only a 4 digit number; 1924 etc while birth_d