Dynamicall​y Changing Number of Channels in Chart

Hi,
I have a simple question about a labview programming issue. I am
trying to modify an NI Example program for demonstrational purposes.
I am using the Multi-plot real-time chart example program (link below)
from the NI website. I have changed your example for the chart to
display the data in the stacked plot mode. How could I modify it to
vary the number of traces dynamically. Is this possible? My goal
would be to use a series or radio buttons to control viewing 4, 8 or
16 channels, in real time. All of the code and programs I have seen
have channel display statically in the begining setup. Is there a
property node of the chart that controls this?
Thanks
John
http://zone.ni.com/devzone/explprog.nsf/6c163
603265406328625682a006ed37d/5ac3fd88cb3815f0862566​57007542ee?OpenDocument

Mark,
I would appreciate if i could see some code. Would you please email
it to my hotmail address.
Thanks
John
On Mon, 4 Feb 2002 07:40:27 -0800 (PST), markwysong
wrote:
>There's not really a property node. I've done this before, but it's
>not exactly straight forward. If you stretch the window that shows
>the trace names and colors, you can show more trace names and colors.
>Make sure that this is big enough to handle the max number of traces
>that you'll need.
>
>Next, in your code, make a property node for the chart. You'll need
>to set all the trace colors to transparent to begin with, then change
>them to a predefined color depending on how many traces you have. You
>do this by using the property node, setting the active plot, then
>
changing the color (and name, too). Then you just wire the plots to
>the chart, and it should display it. I can show you some of my code
>that performs these functions if need be.
>
>Mark

Similar Messages

  • Dynamically Changing Number of Channels in Chart

    Hi,
    I have a simple question about a labview programming issue. I am
    trying to modify an NI Example program for demonstrational purposes.
    I am using the Multi-plot real-time chart example program (link below)
    from the NI website. I have changed your example for the chart to
    display the data in the stacked plot mode. How could I modify it to
    vary the number of traces dynamically. Is this possible? My goal
    would be to use a series or radio buttons to control viewing 4, 8 or
    16 channels, in real time. All of the code and programs I have seen
    have channel display statically in the begining setup. Is there a
    property node of the chart that controls this?
    Thanks
    John
    http://zone.ni.com/devzone/explprog.nsf/6c163603
    265406328625682a006ed37d/5ac3fd88cb3815f086256657007542ee?OpenDocument

    To accomplish your goal, the example VI needs to be modified a little bit. I've made one such modification and attached the modified file. I hope it helps. Please note that nothing shows on the Front Panel Until you press one of the control buttons.
    Attachments:
    Modified_Multi-plot_real-time_chart.vi ‏138 KB

  • Generic calculations with changing number of channels

    Hello,
    I would like to make some basic calculations with a flexible number of channels. The point is that I get an error if I specify channels which are not existing in my calculations. For example :
    CCh("[1]/CNV",2)-CCh("[2]/CNV",2)+CCh("[3]/CNV",2)-...
    I think it should be possible to do it by using a script, but do you have any idea how to do it only with the calculator?
    Thank you in advance
    Jérémy
    Solved!
    Go to Solution.

    You can do easily by using Recoding mode for VBScript described in the following KB:
    http://digital.ni.com/public.nsf/allkb/B769AE10EDB656D28625692D00583166?OpenDocument
    Paolo_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • How to change number of records displayed in Web service: Query_view_data

    Hi experts
    I´m using webservice Query_view_data to fill a Xcelsius model with data.
    The Bex Query contains appr. 300 records but the webservice returns only 50 records. When I test it it says "displaying 50 of 312 records".
    When I tried ABAP FM RRW3_GET_QUERY_VIEW_DATA it gave all 312 records.
    Does anyone know how I can change this setting so that all 312 records are displayed in the webservice?
    Best Regards
    Kenneth

    Mani,
    I have changed the properties of the chart as you said and gave 4 decimal places. If my actual data value is 0.787989, i would expect it to result 0.7879 but the outcome is 0.7800. It is replacing the other two decimal places with 0's rather than the actual number. Is this a bug in OBIEE or am i doing anything wrong?? Is there any other way to do this. Please let e know...
    Thanks,
    vnk
    Edited by: user8708843 on Aug 18, 2010 8:03 AM

  • How do I get the number of channels available in DIAdem using VBScript?

    I want to know the last number of the available channels in DIAdem-DATA using VBScript. If there are not enough channels, I'll allocate new ones using ChnAlloc.
    For the first run of the script, I do know there're 60 channels, but in a second run I might have created the additional channels already (if the script didn't fail) and I don't want to do the allocation a second time. So I need to know the number of the last channel. Unfortunatly I didn't find any function in the help providing this number.
    Thanks,
    Carsten

    Hi Carsten,
    I have a few thoughts for you plus some useful code. Bear in mind that you can change the number of static DIAdem channels (by default 60 of length 8192) as well as the number of available dynamic channels (by default 1000) to whatever you want. These memory matrix settings get stored in your Desktop.DDD file (DIAdem's ini file), so that each time you launch DIAdem it will create the channels according to your specifications. The maximum number of channels of all types that DIAdem can have is 65536 (2^16).
    Secondly, don't forget that you can address channels by name or by number. If the channels are named distinctly, addressing channels by name is the most reliable method. If you use ChnAlloc() to allocate new channels, and you want to address those new channels by channel number, you MUST use CNo() immediately after creating the new channel in order to find out that channel's number. It will not always be the next available channel number, because the next available channel may not be long enough. ChnAlloc() will latch on to an existing channel if it can find one long enough, and it will create new channels only if it finds none of the existing channels suitable.
    In the VBScript I attached to this email you will find all the DIAdem variables which contain information about the maximum available channels and the maximum length of each channel (not its currently set length). Note that DIAdem's data matrix is divided into 8 submatrices, each with 2 GBytes of addressable memory (2^31 Bytes). Each submatrix can have multiple static channels assigned to it. DIAdem's dynamic channels come first from DIAdem's application RAM (Windows allocates no more than 2 GBytes per application) then from the Windows swap file for its virtual memory
    Now, in addition to the variables which tell you the maximum possible channel count and lengths, another very useful variable is "GlobUsedChn", which returns the highest channel number currently filled with some amount of data.
    Ask if you have additional questions,
    Brad Turpin
    NI
    Attachments:
    View_DataMatrix.VBS ‏2 KB

  • Can't make a selection of my pathes even if i have set a program change number for each one.Why is that happening?

    Hi everybody!
    I send program change messages from my midi controller and the messages are accepted by mainstage 3 as shown in the midi message window,but i can't make a selection of my pathes even if i have set a program change number for each patch.Why is that happening?
    I use a novation SL mki or a KORG Triton Le or a m-audio axiom 49 as midi controllers.The program change messages are transmitted by all the devices i mentioned above and shown as received in the midi messages window of mainstage 3.
    Has anyone the same experience?

    Hi
    Have you selected the correct device as the Program Change device and MIDI channel in the Concert Inspector?
    CCT

  • What is meaning Changing ALE Inbound Channel Registry...

    what is meaning Changing ALE Inbound Channel Registry
    can any body give sample scenario.
    thx.
    sudhakar

    Hi,
    When inbound IDocs are processed, a unique serial number is generated for each object channel (field CHNUM) and communication link. The ALE layer determines whether a given IDoc can now be posted or whether other IDocs have to be posted first. The serial number for each received IDoc is exactly one whole number lower. Any gaps in the sequence will mean that IDocs are missing, either because the transfer did not work, or because earlier IDocs were not posted successfully.
    In this case the IDoc is assigned status 66 and must be posted again with the program RBDAPP01.
    Objects are assigned to messages and channels by the application.
    Transfer errors (IDoc sequence mixed up) and inbound posting errors (IDoc cannot be posted due to Customizing errors) no longer affect the sequential order, because serialization corrects these errors.
    The inbound channel registry is maintained in transaction BD103. The serial counter number should be one less than the IDoc in the queue expected to be processed. PURCHASE ORDER message types come under this category of serialization of IDocs.
    ~ Bineah.

  • WRT54GL: setup suddenly won't let me change the wireless channel anymore

    I have a Linksys WRT54GL version 1.1. The firmware is 4.30.11 (European version).
    In the Basic Wireless Settings I can't change the Wireless Channel. It remains at channel 1, and I simply can't alter it.
    This is strange, because in earlier firmware versions, I was able to change the channel without any problems at all. I would like to continue to use this firmware version. How can I solve this problem?
    Thanks in advance, Pjotr.
    Message Edited by pjotr123 on 04-01-2008 10:25 AM

    Not a browser thing; I tried Firefox, Epiphany and Konqueror. I found the solution, however!
    Apparently a small bug in the firmware, but it can be circumvented. Changing wireless channels becomes impossible when in the Advanced Wireless Settings, SecureEasySetup is disabled.
    So all you have to do to change wireless channels, is to enable SecureEasySetup. You have to keep it enabled, however: disabling it after a successful channel change, reverts the wireless channel to number 1 again and keeps it locked again.
    For the time being (until Linksys fixes this bug), I will have to be satisfied with channel 1. Because I dislike the one-button-security thing SES, and I prefer to define my own security manually. Also I fear an accidental button-pressing.... :-)
    Thanks anyway for your assistance.
    Greetz, Pjotr.
    Message Edited by pjotr123 on 04-01-2008 10:24 AM
    Message Edited by pjotr123 on 04-01-2008 10:30 AM

  • How to find Change number for a Material

    Hi,
    If we know the material number and Revision level then how can we find the Change Number of that material.
    Is there any table in which i can find Change number for a revision level or is there any Function module available.
    Regards,
    Vaibhav

    Hi Vaibhav,
    Is there any table to find the change number and revision level of a material. I have change number and material and revision level coming from external system. But i need to check that with SAP whether it exists or not.
    Is there any table link to find whether a material has change number.

  • Error while changing BOM with change number

    Hi ALL, Please help me with followed error message, I am using ECM. I created ECR and converted to ECO and then released.
    Object management record cannot be generated
    Message no. 29046
    Diagnosis
    You want to change the BOM with the entered change number.
    One of the following situations triggered this error message:
    1. The indicator that allows automatic generation is not set for object type BOM in the change master.
    2. The indicator generation only on initial creation is set for object type BOM
    3. You are processing a change request.
    System response
    The system checks whether the indicator object management record will be generated is set in the change master.
    If the indicator generation only on initial creation is set, the system checks whether the BOM exists in the system.
    Procedure
    If you are authorized to change the change master, execute the following steps:
    For 1.)
    Set this indicator for object type BOM or create the control record in the change master.
    For 2.)
    If the BOM already exists in the system and the generation only on initial creation indicator is set, the system can no longer generate the control record automatically.
    In this case you have to add the object control record to the change master first, then you can change the BOM in relation to the change number.
    For 3.)
    You cannot generate any object control records for a change request.

    Hi
    With your question regarding changing BOM with change number  it looks lke there may be problem in defining the Object types,objects.Moreover whenever converted to ECO you need to enter into cs02 tcode for changing the bom with relevant change number and valid from date.
    Hope this gives you a clear idea.let me know if you need anyfurther inputs.
    Regards
    Praveen

  • Change number in material master required steps to use

    Hi All.
    Thanks in advance sap  mm dudes.
    Need steps in sap mm material master change number.
    creation of change number  and usage  of change number
    Display of list of changes.
    Regards.
    parameshwar

    Dear Parameshwar,
    1.I assume you have created a change number without release key in CC01.
    2.In CC02,for the same change number goto object types and include the check box against material for the first 3 check box and
    save the change number.
    3.Now check in MM02 for any material master changes or I would suggest you to create a new change number with valid from
    date as current date,include the settings for material under object types and then check in MM02.
    Check and revert.
    Regards
    Mangalraj.S

  • Need to fetch  change number for tcode IA06

    Can anyone please tell me how do I fetch the change number (Aennr) in case of tasklist chage? Tcode IA06?
    I am using FM CP_EX_PLAN_READ which returs me change number..but it is not populated....
    Plz help.

    hi check this..
    check the table AENR for the aennr values...
    here is an example for this fm..
      call function 'CP_EX_PLAN_READ'
         exporting
              plnty_imp        = i_plnty
              plnnr_imp        = i_plnnr
              plnal_imp        = i_plnal
              sttag_imp        = i_sttag
              cuobj_imp        = i_cuobj
              parnt_imp        = i_parnt
              i_plant          = i_werks
              tca11_imp        = ls_tca11
         tables
              plmz_exp         = lt_plmz
              plpo_exp         = lt_plpo
         exceptions
              not_found        = 1
              plnal_initial    = 2
              others           = 3.
    regards,
    venkat

  • How to fetch the latest change number from CDPOS Table..?

    Hi All,
    im trying to fetch teh change number from CDPOS with the below select, but my requirement is always i wants to fetch the latest change number.
              SELECT SINGLE objectid changenr FROM cdpos
                     INTO wa_cdpos
                     WHERE objectid = wa_e1kna1m-kunnr
                     AND ( tabname = 'KNA1' OR tabname = 'KNVV')
                     AND   fname = 'AUFSD'
                     AND ( value_new = '01' OR value_new = space ).
    Please let me know how to achive this..?
    Ashok

    try this way
    "           SELECT SINGLE objectid changenr FROM cdpos
    "                 INTO wa_cdpos
               SELECT objectid changenr FROM cdpos
                      INTO table t_cdpos
                      WHERE objectid = wa_e1kna1m-kunnr
                      AND ( tabname = 'KNA1' OR tabname = 'KNVV')
                      AND   fname = 'AUFSD'
                      AND ( value_new = '01' OR value_new = space ).
    SORT t_cdpos by  changenr Descending.
    read t_cdos index 1.    "this is the latest change
    Prabhudas

  • Change the size of a chart in runtime in LV7.1?

    Is it impossible to change the size of a chart in runtime in LV7.1? I can only see that the properties width and height is readable. It would be very neat to have these properties writable so one can change the size of for instance charts in run-time.Is it impossible to change the size of a chart in runtime in LV7.1? I can only see that the properties width and height is readable. It would be very neat to have these properties writable so one can change the size of for instance charts in run-time.
    Regards/Lars

    Thomas,
    You wrote,
    "Yes, you are right, it has just effect to the plot area." (bold added).
    That is not the case I found. Those properties do change the plot area BUT the rest of the chart adapts around that area so the WHOLE chart re-sizes.
    See attached.
    Confused,
    ben
    Message Edited by Ben on 11-09-2005 07:37 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Re-size chart.JPG ‏30 KB

  • Why does the sampling rate for my DAQCard-70​0 max out at 6578Hz regardless of the number of channels I'm sampling?

    My DAQCard-700 is acting funny. I am using LABView 6.0.2 on a Dell Inspiron 8100 laptop for continuous analog input. For some reason my DAQCard-700 won't let me acquire multiple channels unless I create virtual channels in max and then run AI Config with a list of the virtual channel names. That's fine (but weird), but I max out my sampling rate at 6578 Hz, which is the max sampling rate if I would have sampled all 16 (Referenced, single-ended) AI channels. But I'm not -- I'm sampling 6 channels, as proven by the "number of channels" indicator in AI config and just looking at my data. If I sample just one channel, I can get up to 105248Hz. Is my card f
    ried, or am I missing a hidden setting somewhere? I have the latest NIDAQ.

    Hello;
    By the description of your problem, everything is pointing us to a hardware failure.
    There aren't any tricks to acquire multiple channels with that card.
    The best way to go about this is to have NI to fix the board for you.
    Regards
    Filipe

Maybe you are looking for

  • Scheduling agreement, unnecessary delivery schedule lines

    Hello We use Scheduling agreements for purchasing spare parts. The MRP run checks the warehouse requirements and creates delivery schedule line to scheduling agreement. Now the MRP run creates unnecessary delivery schedule lines to scheduling agreeme

  • How to load a text file in a Java swings application

    hi, I am trying to retrieve a Java code(or say any text from an existing file) and display it in a swing application. I am not able to do so. Please help me.

  • Error -50 when trying to sync purchases back to iTunes

    I'm a UK iPhone user (no relevance) and tried the iTunes store last night for the first time. I browsed, purchased and downloaded an album without a hitch. A warm feeling all over when things just 'work'. I've come to charge the phone today and it ha

  • Problem with Fork

    Hi, I have created a Scenario using a fork step Which has 2 branches. The first branch consits of a  Transformation and a send step with in a switch statement. The second branch consists of a Transforamtion, Send (synchronous), Send (synchronous) , T

  • Can't get my game controller to work on my iMac 27 inch running osx lion

    I've bought several controllers from game stop and none of them seem to work on my iMac, I have a couple first person shooters including duke nuke em' but I'm hesitant towards buying more because of the controller issue, the Xbox 360 controller doesn