Changing Chart Data Types

Hi,
I know this is a stupid question, but I can't figure for the life of me
how to do it. I want to create a histogram, so I stick a waveform chart
onto my VI. Fine, now I found the Moving Histogram PtByPt.vi example
(ships with LabView 7). It creates a histogram and the data it sends to
it is a cluster. This is very convenient because you just wrap your XY
data up into a cluster and send it into the chart. Right now I can cut
and paste the chart from this example, but if I didn't have the example
I'd create a waveform chat, create my cluster with my xy data and pass
it in. However, LabView complains about bad data types, because the
default input data type is a 2D array of doubles. HOW DO I CHANGE THE
DATA TYPE THE CHART ACCEPTS? I've been through every menu and property
that I can think of, what's the secret? I've had this problem happen a
couple of times and usually gotten around it by right clicking my lead
and then picking to create something from a list and when it's created
it's created with the right data type. However, it doesn't have that
option in this situation. So what do I do? I've included a junk of my
code for you to see if you want.
Thanks for any help,
Chris
Attachments:
Coincidence_v1.vi ‏53 KB

You've got two different types of graphs. You have the XY graph wired to the cluster and you have a regular (not XY) graph. The regular graph does not accept the same type of input as the XY graph. It accepts a 1D  x array, 2D array (multichannel) a waveform data type, an array of waveforms (multichannels), and a cluster that contists of a y array, x0, and dx (essentially a waveform data type)

Similar Messages

  • Can we change the data type of a field based on the value of the field

    HI Gurus,
    My Requirement is as below -- Could you please guide me
    in the Printable Adobe form -- for ex - as usual for dates fields in the Object Pallette the object type is a date/time field  and for quantity/currency fields corresponding fields are taken
    now in case the either the date, quantity or currency is initial in place of displaying 0.00 or empty date we need to display N/A (Not Applicable)
    for this I would like to change the data type of the field
    to put it simply --
    we need to change the data type of date field from DATE&TIME to Char type to hold N/A or  Quantity field to Char field to hold N/A
    how can we realize this in SAP adobe forms
    Thanks in Advace
    Ramchander Rao.K

    Hello Ramchander,
         You cannot change the data type of the field at run time in Adobe forms because the type of field you choose at the time of design level is associated with the data type itself.
    If you want to achieve your requirement, then your main idea should be to set the data type as CHARACTER itself while designing the field in the adobe form itself. CHAR field will comfortably hold the value of Calculation/amount field, Currency field, Amount, Date, Time HHMMSS, Unit Accuracy, Currency key, Floating point number, Numeric text, Client, Language and many other data types.
    After designing the field as TEXT field in Adobe form you have two options.
    Option 1:
    Select the Date field initially as type TEXT field or CHAR field in Adobe forms.
    Suppose the name of the field is TEXTFIELD1, then write the Javascript code on this field in Initialize event as below.
    if ( this.rawvalue == null )
         this.rawvalue = "N/A";
    If the field is not blank, then it will show the date. Else it will show "N/A".
    Option 2:
    Select the Date field initially as type TEXT field or CHAR field in Adobe forms. Do the formatting part in ABAP itself. It will increase the performance. Avoid Javascript as much as possible.
    Suppose you have a DATE variable l_dats of type DATS. Then take another variable l_date of type CHAR. Then write the below ABAP code.
    MOVE l_dats TO l_date.
    IF l_date IS INITIAL.
         l_date = 'N/A'.
    ENDIF.
    Bind the l_date to the TEXT field in the form.
    Even in this case, if the field is not blank, then it will show the date. Else it will show "N/A".
    But I will suggest you to use Option 2 of keeping the AMOUNT, QUANTITY, DATE, TIME fields etc as CHAR or TEXT fields in Adobe form and do the required formatting in ABAP itself.

  • How to Change the data type of infoobject from NUMC to CHAR

    Hi Experts,
    I have created an infoobject with data type as NUMC, i used in DSO as a key figure and i have loaded data up to PSA.
    Now i want to change the data type of this Info Object from NUMC to CHAR.
    Can anyone suggest me the solution for this issue.
    Regards,
    Venu Gopal.K

    Hi pavan/binu,
    I have not loaded data into DSO i just added IO in Key fields and i started editing this IO then im facing error like
    1.Master Data Table /BIC/PZCUSTOMER contains data: Characteristic ZCUSTOMER cannot be activated     
    2.SID Table /BIC/SZCUSTOMER contains data: Characteristic ZCUSTOMER cannot be activated
    Im also unable to edit the P & S tables in SE14.
    NOTE:I have data only in PSA and when im trying to load data to DSO Im facing these issues.

  • How to change the data type in the table ESLL for the field USERF2_NUM ?

    Hello Friends,
    I have a requirement in which one of the change is to convert the data type of the field 'USERF2_NUM' in the table 'ESLL'  from 'QUAN' to 'CHAR'. 
    How do i do it if i have an access to change it..........i think i should also check the impact of the change if done.
    Kindly tell me as my requirement starts with this small change.
    Regards,
    Rajesh Kumar

    Thanks for the reply Sowmya.
    I would like to know 2 things.
    1. Is it ok to change the data type of the field 'USERF2_NUM '  which is in the table ESLL. from quan to char.
    2.  The table ESLL  already has entries. if we change the data type from QUAN to CHAR what is the  effect on the existing entries of the table .
    Kindly reply me back.
    Thanks & Regards,
    Rajesh Kumar

  • Change the Data Type of a Standard Required Field

    Hello Experts,
    Need to know if is it possible to change the data type of a standard field. The field is marked as a required field.
    For example: If a standard field is an Object Picker and I would like to change it to a string field. Is it possible? How can I do it?!
    Many thanks,
    Igor Nakamura

    Hi Igor,
    Since you cannot hide a required field, what you can do is move the standard required field to someplace less noticable (like the bottom of the page) and then use a validation script to set it to some benign value.
    -Howie

  • Activation error while changing the data type of a field of a table

    hi friends,
    i am facing one problem while changing a data type of a field of a table.
    i just created one table(Yqm32) .i have assigned charcter data type to one field(ztotal_count) .now i want to change this charcter data type to numeric data type.
      while changing to NUMC data type activation error is comming as below.
    Table is not yet classified                           
    Field ZTOTAL_COUNT: Type change                       
      ALTER TABLE is not possible                         
    Structure change at field level (convert table YQM32) 
    Check on table YQM32 resulted in errors   
    Table YQM32 could not be activated                       
    (E- Structure change at field level (convert table YQM32)
    plz suggest.i need to change the data type from char to numc.
    Thanks & Regards

    Hi Pabitra......
    From the SE11 change the table as u wanted and then from menubar select
    UTILITIES--> DATABASE UTILITY
    It will open database utility
    there u select the Activate and adjust database button.
    then the database table will get adjusted.
    just try it once.........
    Suresh......

  • Change Cluster Data Type

    I might be asking a really silly school boy question here and to some degree I hope I am but could somebody tell me if its possible to change the data type of a cluster element? Let me explain.
    Here is a screen shot of my code:
    I read back my test data as an array of strings which I convert to a cluster, bundle then send off on its merry way to do other stuff, however the first element in the cluster is actually a path. As you can see I currently unbundle all elements, change the first to a path then re-bundle with the correct data types. Whilst somewhat messy, this used to be acceptable as I only had two other strings in the cluster, however due to expansion I now look at it and think that there must be an easier, more elegant way to do this if I just want to change one element.
    If this is the only way (or at least if no other simpler solution exists) then I could potentially keep the path a a string and do the conversion at the points that require it, however that would now require a bit of re-coding which I would like to avoid if possible.
    Hopefully I'm just not thinking hard enough on this one.
    Cheers for looking
    Mitch 
    Solved!
    Go to Solution.

    I have no idea what the rest of the code looks like and how much you can change so a few options:
    1.  Keep them all as strings, do the path conversion when you actually need the path.  I'll show you the trick I use to convert arrays to nicely labelled clusters below.
    2.  Make the cluster an object, keep the data as a string array and the accessors deal with indexing and path conversion.
    3.  Make the cluster hierarchial, separate the path and have a second cluster which is all strings. 
    4.  If you want you can jigger the string array and use some flatten and unflatten action.
    The top of the snippet is one way to jigger the string array to get a path for the first element in a flat cluster (should wire seamlessly to the rest of your code).  The lower code shows how I would convert a string array to a cluster so the labels are useful, same idea works for clusters which are given useless labels such as those from Array to Cluster.  (Fixed sized clusters with brown wires are easier to handle, simply Type Cast to the cluster with the same types and appropriate labels).
    Judging from your original post, you know when and how to Type Def the various clusters I show.

  • Problem regarding change of data type x to data type c

    Hi,
    Is there any way to change the data type x to data type c.
    w_end_record             TYPE x,
    SPLIT i_data_file AT c_delimiter INTO i_ekko-rtype
                                                i_ekko-ebeln
                                                i_ekko-bsart
                                                i_ekko-lifnr
                                                i_ekko-loekz
                                                w_end_record.
          macro_append_internal_table i_ekko.
    When I do syntax check in ECC6.0 it's showing the error "w_end_record"  must be Character type(C,N,D,T).The error is due to Unicode.
    I was using the class CL_ABAP_CHAR_UTILITIES but I am not able to find out appropriate attributes for it. Can anybody tell me the solution to resolve the problem.
    Is there any other to solve the problem.
    Thanks & Regards
    Prabhat

    Hi,
    Try following this peice of code.
    TYPES: BEGIN OF TAB_TYPE,
             TEXT(10)   TYPE C,
             XTEXT(160) TYPE X,
           END OF TAB_TYPE.
    DATA: TAB    TYPE STANDARD TABLE OF TAB_TYPE,
          WA_TAB TYPE TAB_TYPE.
      CONVERT TEXT TAB-TEXT INTO SORTABLE CODE TAB-XTEXT.
    Hope it works.
    Thanks,
    Sandeep.

  • Info Object: Change of Data Type (NUMC to CHAR)

    We have a scenario wherein one of the Info objects is defined currently as NUMC. Due to the change in the Source system, the info object is now defined with data type as CHAR. The info object in consideration is the "Cost element".
    As the current info object contains data, it will not be possible to change the data type from NUM to CHAR.
    Is there any pre-defined way of doing this data type change without loss of data (in the info object as well as the info cube(s) where the info object is used)?
    Regards
    Bala

    Hi Balakrishana,
       Try this:
    Insted of changing the definition of infoobject(NUMC to CHAR), why cant you change the data itself from CHAR to NUMC...?? If length is same.
       You can write a simple routine in transfer rules and you can convert.
    Hope it Helps
    Srini

  • Can't change column data type

    Hi, i am using Sybase IQ 16.0
    I have created a table, when I want to change one of the data type for a column for example from char to varchar, the list box is grey color and not allow me to change.
    Right click table > Properties > Columns > Data Type
    I have granted all permission for dba, but still not able to edit. (please see the attached file)
    Any help?
    Thanks.

    Hi Nelson.
    You can not change the datatype of an existing column.
    The doc reference is here: Altering Tables
    "After you create a column, you cannot modify the column data type. To change a data type, drop the column and recreate it with the correct data type."
    If you already have data in the column, you can try this:
    create the new column with a slightly different name
    copy the data in to the new column
    drop the original column
    rename the new column to the old column's name.
    --Kirby

  • The output of my mathscript node is not changing the data type ?

    hi
    iam attaching my .vi iam having problem that my math script function is not changing it data type in its output
    iam uisng labview 2009
    what reason it will be?/
    thanks
    Attachments:
    mathfunct.zip ‏4 KB

    First off, there is a dedicated mathscript forum that might be better to get your problems answered. (I see if I can have this thread moved from the LabVIEW board, else you can re-post over there.)
    I see the same problem that (1) the outputs have no datatype and (2) all datatypes are greyed out, so they cannot be selected manually. (The input is trivial, just wire something and it will adapt).
    I am not a text programmer, but I suspect that there is something wrong or incompatible with your code. I have not looked at the statements. Is this copied from an existing matlab program, for example?
    LabVIEW Champion . Do more with less code and in less time .

  • How to change the data type of an item in administrator

    Hi,
    A summary folder was created. One of the item in the summary folder is a sum. That sum item was created in the business area (based on another item). I can't refresh that summary folder because it gives me an oracle error (Ora-12008 and Ora-01401 the value is too large for the column). The column that this item is based on is of data type Number(13). How can I fix this problem without changing the column's data type of the original table? I already tried altering the data type in the EUL table via TOAD.
    Thanks!

    You really don't need to sum the item before hand if you are going to create a summary!

  • XI settings, change of Data Types and XI still maps old structures

    Hi,
    I have defined XI scenario, where synchronous WebService is being called, and XI calls RFC function module, which returns data. It was working perfectly, until
    I have changed the order of few fields in Data Type and added a few new (exactly as the changes in RFC function module).
    And now the WebService returns exception, on the first field added to the interface:
    <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:MT_BMS_Response/CUSTOMERS_PERSON/TITLE. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at
    TITLE is added field.
    I have reactivated everything one by one again, clear cache from Integration Builder and Integration Directory, but it does not help and still old structures are being used in XI.
    I have tested the Interface Mapping and all fields are transformed correctly.
    Please help as it comes a little urgent and I have run out of ideas what to do to refresh the customizing of data types?
    Thank you in advance!

    Hi Peter,
    Yes, I am calling RFC function module from XI.
    After I changed the interface of RFC in SAP, I have imported this RFC once more to XI in Integration Builder and new structures appeared.
    And exception returned is that first new field added to the RFC and Data Type and so on, returns an exception.
    And returned XML structures (in message monitoring) appears to be still old structures.

  • Change of data type in Include

    Hi,
    all I found out that there is an include program in which all the Data type for that Function module is present, However it states that
    THIS FILE IS GENERATED BY THE FUNCTION LIBRARY**
    NEVER CHANGE IT MANUALLY, PLEASE!**
    DATA ORG_XY TYPE CHAR30.
    Then how to go about Changing it,I want to make it char65 Its a Remote Function Call.

    Hi Sanjay,
    This include program is generated by the library, so do not change the contents of the include manually. Instead you create a new data type from SE11 of CHAR65. The changes would be automatically applied in this include.
    Naveen.

  • Change of Data type in Fuction Module

    Hi,
       I have a Function Module XYZ and it contains field Custline of datatype char30.
       Now I want to change it to Char65 i.e  Character type with 65 length. I get a Error message stating that Type Char65 does not exist whereas when i check in se11. I can see that data type.
    Thanks in Adv

    HI all I found out that there is an include program in which all the Data type for that Function module is present, However it states that
      THIS FILE IS GENERATED BY THE FUNCTION LIBRARY**
      NEVER CHANGE IT MANUALLY, PLEASE!**
    DATA ORG_XY TYPE CHAR30.
    Then how to go about Changing it, Its a Remote Function Call.

Maybe you are looking for

  • Aperture Crash Message

    Aperture 3 exporting a slideshow and my external hard drive dropped pulling it from my Macbook Air. The Hard drive was fine and I have access to my aperture library etc. Next time I booted into Aperture I received this message: Aperture has detected

  • Wpa enterprise help

    I have a MacBook, that is running leopard. I am having trouble connecting to my schools wpa enterprise wireless. I am regestered to access the wireless, but am having trouble connecting. I think my problem is that i dont know how to tell the computer

  • CRM 2007 - Customer Fact Sheet

    Hi Gurus, i've been looking for customer fact sheet screen but can't find any in the standard account master screen in CRM 2007. any help really appreciated JD

  • Sap-wd-arfc-useSys

    Hi , I have tired to change the RFC destinations of the model that was created in design time , using the url parameter sap-wd-arfc-useSys as specifed in : http://help.sap.com/saphelp_nw04/helpdata/en/f4/651741f163f023e10000000a155106/content.htm but

  • Content was blocked because it was not signed by a valid security certificate. ie 10

    Content was blocked because it was not signed by a valid security certificate.