Read number of channels dynamically

Hi ,
I have a test file in .dat format.  Normally we will have 4 channels. Time, Accleration1 and Accleration2, Upper Limit and Lower limit.
Where I plot Time v/s Accleration1 and Accleration2.
In future, test file may contain Accleration 3, Accleration 4, .. Accleration 10. So, how can I make a script to dynamically read the number of channels that are loaded to a data portal and plot all of them on report.   (whichever is existing. )
I read in help to use globusedchn. How can i use it in script.
Should I have to use ny looping statements? please help.

Hello RSH,
There is a function in DIAdem REPORT to do exactly what you are asking for, which is to dynamically plot n number of channels in a file based on however many channels are contained in a file.
First of all, we need to make sure you data is stored as Waveforms, not channels which is done by using the "Numeric Channels <-> Waveform Channels" function in DIAdem ANALYSIS (this can be done in a Script too):
Once all your channels are Waveforms, we can move on to REPORT.
Go to the Settings menu in "REPORT" and switch on the "Curve Expansion" mode:
I have thre Waveforms loaded called "Noise", Noise1" and "Noise2" in my DataPortal
In your Axis Layout, delete the group reference and add a "*" to the end of the channel name:
Here is the result, which will dynamically add channels based on how many "Noise*" channels are in the DataPortal:
Hope that helps,
     Otmar
Otmar D. Foehner
Business Development Manager
DIAdem and Test Data Management
National Instruments
Austin, TX - USA
"For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

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

  • How to Read from multiple channels

    Dear Sir
    I am acquiring data using FP-RTD-122 using OPC Client software. I ahve made one socket for that and i am using command
    CWDataSocket1.AccessMode = cwdsReadAutoUpdate
    CWDataSocket1.URL = "opc://localhost/National Instruments.OPCFieldPoint/FP Res\FP-RTD-122 @1\Channel 0"
    CWDataSocket1.Connect
    v = CWDataSocket1.Data.Value
    where v is a variant type.But this is 8-channel RTD so how can i read values from all channels using single socket connection Because at presnt i have to use 8 sockets for all eight channels.

    At least as of FieldPoint 4.0 and earlier (I do not know about 4.0.1 or later), the OPC Server did not support multiple channel analog items. Thus to read all eight channels of a FP-RTD-122 module, you would need 8 separate socket connections. For discrete modules (boolean), the "All" tag, is treated as a single 8 or 16 bit number.
    Regards,
    Aaron

  • 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 we create Communication Channel Dynamically at runtime

    Hi Experts
    Can we create Comm Channels during run time, If yes can any one help me out how to create....?
    My requirement is
    we get a file called manifest file. This file has list of file names and paths.
      step 1. XI has to read manifest file
      step2: from manifest file XI has to read file names and create comm channels dynamically to read these files
      I am looking for option to create comm channel dynamically.
    we need to determine sender dynamically.
    Advance for your Replies
    Regards
    Venkat Anil
    Edited by: Venkat Anil Gannavarapu on Jun 1, 2010 6:29 PM

    Hi,
    or you can just write a script that will take the file from the path and put it in one directory for PI to fetch
    this should not take longer then 15 mins to create such a creature
    Regards,
    Michal Krawczyk

  • Surround bounce - how do you select the number of channels?

    When doing a surround bounce, Logic is always giving me a 5.1 even though I want a different number of channels. I have my surround setup selected in audio preferences, and it seems like it should bounce using that same config, but it does 5.1 either interleaved or split. I don't see any options for number of channels in the bounce window.
    Any ideas? It seems like this worked in earlier versions of Logic, but with the latest I can't get any other number of channels.

    Found where it's set in the app, but looks like it's buggy in 9.x. I went back and checked 8.x and it works fine there.
    Anyone want to try it out? Under project settings->surround format, you should be able to set a format and then do a bounce with Surround Bounce and Interleaved selected. In L8, the bounce would be the number of channels selected in project settings, but in 9, it looks like it always bounces 6 channels regardless of settings.
    If someone could take a minute and test it out, I'd really appreciate it - I'll be reporting it to apple but I'd like to make sure it's not just my system. Thanks.

  • 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

  • Determine number of channels on a DAQ card

    Is there a function to determine the number of channels on a given DAQ card?

    I found no native function to get this attribute; you can use DAQmxGetDeviceAttribute with DAQmx_Dev_AI_PhysicalChans attribute to get a list of available channels on a device and then parse the string counting channels. The following lines can be executed in the Interactive Execution window: provided the device name is correct they count how many input channels are present on the board:
    #include <ansi_c.h>
    #include <utility.h>
    #include <NIDAQmx.h>
    static int i;
    static char msg[512];
    static char *token;
    DAQmxGetDeviceAttribute ("Dev1", DAQmx_Dev_AI_PhysicalChans, msg, 512);
    i = 0; token = strtok (msg, ",");
    while (token) {
    i++;
    token = strtok (NULL, ",");
    DebugPrintf ("# of channels: %d\n", i);
     The same function has equivalent attributes for analog outputs, counters and digital I/O lines / ports.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • DIADEM is not reading data into channels

    Hi
    I am trying to read a tdms file into DIadem through data Navigation.This conatins 12 columns of data.But when it is loaded it creates large number of channels with lengths (arb~200).I tried to create the data pluggin but the small windows are showing unidetified symbols.Is this due to any setting is not set properly

    I assume that the file contains a lot more columns/channels than you thought.
    This might habben because you created a new groups every time you wrote a new chunk
    instead of appending to an existing one
    group1.mychannel
    group2.mychannel
    will result in two channels.
    Could you make sure your write code does append instead of create.

  • Number of channels

    I have this Dial Peer:
    dial-peer voice 12 pots
    destination-pattern 12T
    inward-dialing
    port 2/0:D
    My question is:
    Is there a way to make the calls using this DP use a certain number of channels?
    For example 14 to 23?
    Thanks in advance.

    this might be what you need -
    The customer had two different users and he wanted to split a single T1 PRI service between these users so that one user would use certain B channels and the other user would use different one for outwards calls on the CME router.
    The phone company was able to assign these B channel groups with different number ranges for inwards calls.
    There is a new feature in 12.4 code that allows you to define individual timeslots of the PRI and assign them to different trunk groups. These trunk groups can be used instead of a voice port in a POTS dial peer, so you can direct calls to very specific B channels on the PRI. Following is a config that demonstrates this feature using an E1
    controller E1 1/0
    pri-group timeslots 1-31
    trunk-group Customer1 timeslots 1-10
    trunk-group Customer2 timeslots 11-20
    trunk-group Customer3 timeslots 21-30
    dial-peer voice 1 pots
    description - enable DID on group 1
    incoming called-number .
    direct-inward-dial
    trunkgroup Customer1
    dial-peer voice 2 pots
    description - enable DID on group 2
    incoming called-number .
    direct-inward-dial
    trunkgroup Customer2
    dial-peer voice 3 pots
    description - enable DID on group 3
    incoming called-number .
    direct-inward-dial
    trunkgroup Customer3
    dial-peer voice 5500 pots
    trunkgroup Customer1
    description - Customer 1 : access code 771
    destination-pattern 771
    dial-peer voice 5501 pots
    trunkgroup Customer2
    description - Customer 2 : access code 772
    destination-pattern 772
    dial-peer voice 5502 pots
    trunkgroup Customer3
    description - Customer 3 : access code 773
    destination-pattern 773
    In this case, Customer1 users would dial 771 as an access code, Customer2 would dial 772 and Customer3 would dial 773. These access codes would 'steer' the call to the appropriate timeslots on the PRI.

  • Device Number and Channel Number?

    What exactly are device number and channel number?  I am assuming device number is the number given to the DAQ board (i.e. "1") and that channel number is the number on the screw terminal board where the signal of interest is located.  Is that right? 
    I've read about it in the help menu but am still confused (I am relatively new to LabVIEW)

    Device number is the number given to the DAQ board.  You can use MAX (Measurement and Automation Explorer) to verify the device number.  It will be displayed in the device's property window.  Channel number depends on the device.  If you have a 16 channel Analog Input DAQ, your channel numbers will range from 0 to 15 (or maybe from 1 to 16, depending on the board).  It may NOT be the same as the screw terminal on the connecting block.  The documentation that comes with the board and the terminal block should show which channel goes to which screw terminal.
    - tbob
    Inventor of the WORM Global

  • How to read an xml file in OSB using file protocol where reading file path is dynamic.

    HI,
    We have to read a xml file from a location and write into Db.
    Here reading file location is dynamic .
    Please suggest

    Hi
    With open dataset you can open any file on the application server. So it should be working, but maybe you are looking for:
    CALL TRANSFORMATION my_transformation
           SOURCE  XML xml_string
           RESULT  ROOT1 = field1
                   ROOT2 = field2.
    Best regards,
    Guido Koopmann

  • 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

  • How to call communication channel dynamically? Please help!

    Hi Experts,
       BizTalk -
    > XI -
    > SAP SYS01
                          XI|----
    >SAP SYS02
       We are integrating Biztalk with SAP via XI. BizTalk send rosattenet PIP via JMS adapter to XI. XI then sends the PIP data to SAP system using RFC adapter.
       In the PIP we have a parameter for plant code. Now if plant code is 'ABC' then we need to send the data to SAP SYS01 else if plant code is 'XYZ' then send the data to SAP SYS02.
      In other words we have RFC communication channel one each for each SAP system.
      This is like calling the communication channel dynamically based on palnt code.
      How can we do this in XI? Please help!
    Thanks & Regards,
    Gopal
    Edited by: GOPAL BALIGA on Jan 12, 2009 7:35 AM

    this is a typical case for a XPATH based conditional routing. note that your receiver will have binding with the interface and the communication channel
    ref:
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

  • How to display a certain number of channels...

    Hi!
    I am using LabVIEW 8.5 and I am trying to display a certain number of channels using multiple channels ...
    I can display them in a graph, but I am displaying the 16 analog input channels
    that NI 6024E have and I need to display only the channels that have something
    connected to them (I do not know which channel will have something connected to
    it). If they have a signal (temperature), I will like to display that channel/s in a graph and save that  channel/s in a txt file. If not
    I do not want to show or save the channel/s.
    How can I do that using DQA Assistance?
    I am able to do all this using one channel, I can display in
    a graph, I can save it in a txt file, but I am not able to do it for n number
    of active channels only. Any advice or suggestion will be appreciated.
    Sincerely,
    Julieta.
    Solved!
    Go to Solution.

    Hi,
    I am trying to give the user the opportunity of selecting how
    many channels he/she want to connect to the board… Now I only have two channels and I know what
    those channels are, but I want to do something that allow the user to select
    the channels that he/she needs (maybe the 16 or maybe only 3 or 7). I saw that
    in older versions of Labview there exists in Analog Input a “AI MULT PT” that
    maybe could allow me to input there specific channel (I am using 8.5 version of LabView).
    I am doing this to detect the channels, but it is not even
    close of how it supposes to be, because the user can not select… I just want to
    display the channels the user select and calculate the mean only for those
    channels.
    Any suggestion advice will be appreciated…
    Sincerely,
    Julieta.
    P.D.: My English is not so good…
    Attachments:
    Temperature.PNG ‏15 KB

Maybe you are looking for

  • Can not view PDF's after upgrading to FF 4.0.

    Using FF3.6 I downloaded an Add-On that allowed me to view .pdf's directly in the browser. Now having upgraded {?} to FF4.0 I can not view automaticaly, nor are these Add-On's available for 4.0. What do I do?

  • Adapter and/or converter

    for all apple products that have that big white block (used to charge the product), i know its an adapter, but is it a converter? i read somewhere that someone went to a different country and tried to charge their computer and burned out their logic

  • Issue with Export of 4.6D System

    Hi guys, I am trying to run an export on 4.6D using Oracle 9.2, but unfortunately I get the following message in my INSTGUI.. Would anyone have any ideas on how to solve this issue? I've read that we need to check if the users have permissions or are

  • Hotspot click  in methods for alv grid list

    Hi all , i written a program for grid display and hotspot click. but it is not capturing the value at the event hotspot click, please anybody help me in capturing the value in the following code. it will be great will it happens soon. REPORT zag_tabl

  • Open Hub Destinations - Write directly to a table on 3rd party DB.

    Hi All, Is there way to create a table in the Non SAP system ( like 3rd party DB ) using Open Hub Destinations? If yes what are the steps. Thanks, Hima