Name of channel

Hello,
I've not gone near DIAdem for a while, and now am sat here confused over something which is probably pretty simple.
In part of my script, I want it to go through all my channels, and greate a separate group with the name of the original channel... then I will go through and do some more advanced analysis in each group. The part which is causing problems is creating the groups in the first place.
I have something like this:
dim x
for x=2 to GroupChnCount(1)
    Call GroupDefaultSet(1)
    nameofgroup=ChnNameGet(x)
    Call GroupCreate(nameofgroup,x)                
next
Yet all I get is "Variable is undefined: 'ChnNameGet'
What am I doing wrong??????
Thanks!
Solved!
Go to Solution.

Hi Matthias,
I'm flattered that you asked me a question
I used CNoXGet() very frequently in DIAdem versions prior to 11.0, but less so now that we have the Data.Root object.  With ChnName() and most "normal" DIAdem functions that take Channel references (string) as parameters, you can provide either a variant of subtype integer filled with the global Channel number or a variant of subtype string filled with the Channel reference.  The Channel reference usually contains the full Group/Channel path ("[1]/Revs"), but DIAdem will still also accept the older Channel only ("Revs") referencing.  When using either the global channel number (integer) or the Channel only (string) approach, you run the risk of not referencing the channel you really meant.  So if given the choice between that and using CNoXGet(GroupIndex, ChannelIndex), the CNoXGet() function is much more reliable and also particularly convenient for looping through all the channels of a particular Group.
Now in DIAdem 11.1, though, all the main DIAdem functions accept a Channel object variable in the parameter that used to accept the channel reference, so creating and using Group and Channel object variables has become the norm for me, like this:
Set Channel = Data.Root.ChannelGroups(1).Channels("Revs")Call ChnSmooth(Channel, Channel, 50, "symmetric") 
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • Toshiba 32W1333DN: buttons moving/deleting/edit name for channels missing

    Hello,
    I just bought 32W1333DN in Sweden.
    But I cannot change the position of channels in the channel list.
    Both the Quick start guide that comes in the box with the TV and the online manual has images and details about how to move channels/delete channels and edit channel names in the channel list.
    I am supposed to go into
    Menu->Channel List->Edit Channel List.
    Once there I select channels and perform tasks by selecting buttons.
    But those buttons are not there where I look at my TV.
    Instead of buttons for *OK* / *Move* / *Delete* / *Edit name* / *Lock* I only have *OK* / *Lock*.
    What is going on?
    In settings, Program version is *V.2.1.4A*, and Software upgrade *V.2.1.9x*.

    Hi
    Please take a look into the user manual
    [Toshiba 32W1333 user manual|http://www.toshiba-om.net/LCD/PDF/English/W1333-32-English.pdf]
    Page 17 provides info about Channel List, Sorting Programmes and Programme Locking.
    For example to move the single channel in the list you should do the following:
    The channel order may be changed to suit your personal preference.
    Select Channel List from the main menu and press OK button.
    Select Edit Channel List to manage all stored channels. Use Up or Down and OK buttons to select Edit Channel List.
    Select Move option in the channel list and press OK button.
    Edit Number screen will be displayed. Enter the desired channel number by using the numeric buttons on the remote control. If there is a previously stored channel on that number, a warning screen will be displayed. Select Yes if you want to move the channel and press OK.
    Selected channel is now moved.

  • DAQmx - merging device name and channel names ?

    Hi all,
    There is probably a extremly simple solution to this, but I didn't manage to find it !
    I use LabView 2009 and 2010.
    I'd like to concatenate the strings "Dev4" (device chosen by the user in the GUI) and e.g. "PFI0" to get a string that I could connect directly to a DAQmx vi.
    Is it possible to do that ?
    Thanks a lot for your help !
    JB
    JB

    Hi,
    I'm back again with this problem.
    Concatenating strings works fine for strings like "Dev3/ai0" for example, like this:
    but when I try to do the same kind of thing for a ai trigger source (in my case "/Dev3/PFI1"), it doesn't work. Here is how I try to do it:
    When I put a probe on the wire at the far right of the screen capture above, I get what I want, ie "/Dev3/PF1", but no trigger are received and there is no error message. Everything works fine when I simply use a constant like this:
    I don't really understand why it doesn't work. Any clue ?
    Thanks for your help !!
    JB

  • VIEW won't display channels with same names

    Hello,
    We have recently installed DIAdem 2010 and are beginning to find channel name problems that we didn't have before with 9.1.
    Traditionally we have always set the name-oriented channel references to 'only channel name' and we have never had any problems when displaying multiple traces in VIEW. Now, we find that when we display more than one trace in VIEW with channel names that are repeated we get problems with the axis system display dialogue box. This dialogue box tells me that the X and Y channel names AND NUMBERS are the same for all three traces when in fact the data displayed is different. If I try and change one of the channels it immediately reverts back to the first channel with that name.
    I have attached a screen dump to help explain. The image shows a VIEW window with three speed time histories from three separate data files that have been loaded together. The three X channels will all be named 'time' but will be channel numbers 1, 4 and 7. The Y channnels are all 'speed km\h' and are numbered 2, 5 and 8. However, the dialogue box shows that all three traces are made from channels 1 and 2 despite the three traces appearing different. If I change one of the 'time' channels from number 1 to, say, number 4, then it reverts back to number 1 as soon as I move the focus to somewhere else in the box. Version 9.1 never had this problem.
    If I swith the name-oriented channel references to '[group index]/channel name' then the problem goes away - even thought the data displayed in the graph is the same!
    I'm not entirely clear on the reasons for settling on 'name only' references - probably historical - but I am even less clear on the effect of switching to '[group index]/channel name', particularly with the many autosequences that we use.
    Is this a bug that can be fixed?
    Regards, Si.
    Attachments:
    VIEW.jpg ‏236 KB

    Simon,
    The DataFinder is a database that DIAdem installs that integrates directly into the NAVIGATOR, so that you can easily query data files/groups/channels or compile properties from multiple files into correlated curves on a graph, etc.  You might be interested in the ability to look inside your data files in the NAVIGATOR to see the group/channel structure and their properties.  This is particularly interesting if you wan to load selected groups/channels from one or more files.
    Here are the feature description files,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    New Features from DIAdem 9.1 to 2010.zip ‏69 KB

  • Does wildcards work with channel names?

    Hi,
    I´m trying to use the wildcard "*" in the name of channel to get its index.
    I have the channels:
    Filtered - b00 - Axial MGT
    Filtered - b01 - Axial ME
    Filtered - b03 - Radial MGT ...
    The begin of the channel name is always the same, but the end is undefined.
    I´m trying to use this line, but I get the msg "The index Filtered - b00* does not match any elements in the list."
    Data.Root.ChannelGroups(1).Channels("Filtered - b00*").Properties("groupindex").Value 
    Plz
    Help

    Hi Lawrence,
    You can't use a wildcard in the Channels collection that way, because there could be more than one channel with that name... which group index should DIAdem return if there is a channel named that way in each of the 3 groups in the Data Portal?
    Instead, use the GetChannel or GetChannels method:
      Set Channels = Data.GetChannels("Filtered - b0*")FOR i = 1 TO Channels.Count   Msg = Msg & Channels(i).Properties("groupindex").Value & vbCRLF
    NEXT ' i 
    MsgBox Msg 
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to name channels

    Hello,
    I'm currently using DAQ assistant to record voltage from Channels 0, 1 and 2 and  display the values of each channel on a table, each column representing a channel. i.e first column is  channel 0, second column is channel 1 and so on.
    The problem is that if I want to deactivate channel 0 or delete it from the DAQ assistant then all the other channels get renamed and move one place up. Thus instead of having the first column of my table blank (since I deleted channel 0) I have the last one where channel 2 was suppose to be displayed.
    Is there any way to assign names to channels and those names to be fixed. i.e Channel 1 has to be always channel 1.
    Thank you in advance
    intra

    i think this is not a problem of activated / deactivated channels...you create by DAQ an 2D-array, one dimension the channels, one dimension the time. So if you have 3 channels, you get an array of 3 columns. Deactivating one channel leads to an array with 2 columns. By plotting, you get in the first column of your list the first channel in your array...the names of the channels should rest the same..
    THINK G!! ;-)
    Using LabView 2010 and 2011 on Mac and Win
    Programming in Microsoft Visual C++ (Win), XCode (Mac)

  • How can I select a channel on the RT target with a VI on the host?

    Maybe I'm trying to pound a square peg into a round hole, so please let me know if I'm abusing LV, but ...
    I'm trying to parameterize our RT VI app that deals with digital output channels.  We use the same basic VI for multiple configurations.  The only thing that changes is the channel allocations.  So for instance, actuator 1 is on port0/line5 for one configuration and port1/line2 in another.  I really don't like the idea of modifying the VI every time we have a new configuration because it makes configuration management insane.  If I make a change to the basic VI, now I have to upate N copies of the VI and hope I catch everything.
    So I'm making the main app VI read an XML configuration file that specifies all the allocations.  Sounds great at first, but how do I create the XML file?  I created a VI that manages the data in the VI, allowing the user to add/remove channels and edit the name and channel and then save it to an XML file.  The configuration is comopsed of an array of clusters, with the cluster containing the name and DAQmx channel.  My intent was to let the user select the channel from the list of valid channels by using the DAQmx Global Channel control.  But the problem is, the configure VI runs on the host, which doesn't see any of the channels because they are on the RT target.  But if I try to run the configure VI on the target, it refuses to deploy because I have GUI widgets.
    Is my approach fundamentally flawed?  Is there a better way of parameterizing our VI?  Or is there a trick to getting access to the valid channels on the host VI?  The information MUST be available because after all, when I modify a target VI and select a global channel constant, I'm doing this on the host.
    Thanks,
    Keith.

    Hi Keith,
    you can handle the channels like "normal" strings. See the attached picture.
    Hope it helps.
    Mike
    Message Edited by MikeS81 on 07-25-2008 06:46 AM
    Attachments:
    Unbenannt1.PNG ‏6 KB

  • How to search a property value in a TDMS and return the group name.

    Hi.
    Please help
    I want to search a TDMS file by property value and then return the group names or channels.
    I am using labview 8.2 with the connectivity toolkits.

    The error # is -2558
    I try to close the TDMS file before it reach the search part but still give me the error code -2558
    Attachments:
    search and read property value per group.jpg ‏77 KB

  • Write to Text File - unflatten channel string

    Hi all,
    This is my first post on the forums!  It's been very helpful for me but I have not been able to find a solution to my (simple) problem.
    Operating system: Windows 7 (64-bit)
    Labview 2012 Full Development
    I'm using the DAQmx unflatten channel string to get the names of the channels, and when I Write to Text File, I get the names of channels to be displayed vertically, ie a new row for each channel in a column.  I'd like to "transpose" this, but obviously you cannot transpose a 1d array.  Any ideas on how I can do this?
    Any and all ideas are appreciate, thank you in advance,
    -AK
    Solved!
    Go to Solution.

    Show us how you are doing this.
    My guess is that once you get the data, you have linefeed characters separating the channel names rather than some other delimiter such as a comma or a tab.
    Depedning on how you are going from the channel names to the file (a string, an array of strings, Write to Spreadsheet File, Write to Text file, ....) will determine the best way to fix the problem for you.

  • Communication channel parameters are not tranported in CTS+ transport

    Hi,
    My scenario is MDM to jms.
    we have configured the cts+ transport in our system.
    We transported the ESR and ID objects from development to Quality.
    But in the sender mdm communication channel the everything is getting transported except Repository password.
    when i checked in the quality system the Repository password was blank.
    And receiver jms communication channel details are in
    dev system
    IP Address or server Name:135.12.14.12
    server port                          :3321
    Queue manange name       :RRTYRKB
    channel name                  :KDIEKE.MDM
    Quality System
    IP Address or server Name:localhost
    server port                        :1414
    Queue manange name       :QM_hostname
    channel name                    :S_hostname
    i want know  whether this is  the case when we do the cts+ transport?
    if it is the case should i edit the objects in the Quality sysem(which i don't want to do).
    Thanks.
    Regards,
    Muniyappan.

    Hi,
    >>>if it is the case should i edit the objects in the Quality sysem(which i don't want to do).
    communication channel attrubites always get reset in the new env - TEST, PRD, etc.
    and you always need to fill them once more - this is the normal way
    otherwise - would you like to use DEV parameters on PRD system ?
    maintaining the channel attributes is a typical task on all landscapes
    Regards,
    Michal Krawczyk

  • Do I really need to create virtual channels in data neighborhood in order to access my pci 6034E?

    Hello all,
    This may sound a little weird, but I would like to know how to configure my 6034E without having to create virtual channels in data neighborhood. Reason being, the data is often lost when users update or search for new instruments in Measurement and Automation.
    I have tried using the AI CONFIG.VI, which gives me all the attributes I need...set channel name, device name, device channel, input mode, sensor/actuator type ect..  When I connect the AI READ.VI the value read back is incorrect. Matter of fact as an exapmle, the power supply could be off and I still read 10 Volts. But when I have created a virtual channel in data neighborhood, the data read back is correct.
    Is there another way to read back data but not have a virtual channel in the data neighborhood?
    Thanking you in advance,
    Demo

    Duplicate post

  • Making a spot color channel of a selection

    I want to make a spot color channel out of the current selection.
    How can I use the seletion to make the new channel?
    tell application "Adobe Photoshop CS6"
        activate
        set useropacity to 50
        set teller to 1
        set userchannelname to "kleur " & teller
        set kleur to foreground color
        tell current document
            make new channel with properties {kind:spot color channel, name:userchannelname, channel color:kleur, opacity:useropacity}
        end tell
    end tell
    Maurits Brock

    tell application "Adobe Photoshop CS5"
      activate
              set useropacity to 50
              set teller to 1
              set userchannelname to "kleur " & teller
              set kleur to foreground color
              tell current document
      copy
      clear
      make new channel with properties ¬
                                  {kind:spot color channel, name:userchannelname, channel color:kleur, opacity:useropacity}
      paste
      invert selection
      clear
              end tell
    end tell

  • Axiom 25 percussion pads -- MIDI routing to different channel strips?

    Hi all, and sorry for the noobie question! This is a very helpful forum.
    I found a thread back in November that asked a similar question, but the thread is archived and I couldn't reply.
    I've got an Axiom 25 MIDI controller going into Mainstage 2 via USB. This keyboard has eight percussion pads. I've got those pads transmitting on MIDI channel 10, and the keyboard transmitting on channel 1 (verified by the midi monitor at the top of the Mainstage edit screen).
    I would like to get percussion sounds from the pads and keyboard sounds from the keys. I've set things up in Layout so that there are separate keyboard and percussion pads, and I've gone through the "learn" process and specified channel 10 for the percussion pads, etc. None of this seems to matter as far as what sound is produced, at least not yet.
    The question I have is whether using my single MIDI controller, I am limited to using one playback instrument at a time and using multitimbral input to it, or if there is an easy way to "route" to multiple channel strips containing distinct instruments based on the midi transmission channel from the Axiom (i.e. channel 10 for the percussion pads, 1 for the keys).
    I did RTFM without luck. I hope I've expressed the question using clear & proper terms -- I'm new to this so please be patient with me, and thanks in advance for your reply.
    -Rob

    It seems to me like this should be easily accomplished. My suggestion is to use the MIDI Activity Indicator (looks like a little round light), since you're on MS2. Here are the steps that I'd follow, although I don't have my rig in front of me so it's all by memory:
    - In Layout mode, create two MIDI Activity Indicators: one that is assigned to Channel 1, and one that is assigned to Channel 10. I would name them "Channel 1" and "Channel 10" so that they're easily identifiable in Edit mode.
    - In Edit mode, create a patch with two channel strips: one for your drum sounds and one for your keyboard sound.
    - Assign the Channel 1 indicator to your keyboard sound channel strip, and assign the Channel 10 indicator to your drum sound channel strip.
    Give that a try!

  • How to overwrite channels in diadem 9.0

    Wie kann man in Diadem 9.0 Kanäle manuell oder per VBS-skript überschreiben?

    Hi WBH,
    I fear that I do not fully understand your question. If you drag the channels you're interested in from the Data Portal into a table in the new VIEW panel, you will see the data much like it was displayed in the old DATA "Channel Contents" tab. At this point you can double-click on one of the table cells and type in a different value, thus interactively overwriting values of an existing channel.
    You can do the same thing programmatically without having to create a VIEW table. In fact, nothing has changed programmatically-- the ChD() and ChDX() functions still work just like they used to. In addition to the DIAdem 8.x style channel number/name addressing
    [ ChDX(50, 12) ] or [ ChD(50, "Revs") ]
    you now also have the option of addressing cha
    nnels by their group name and channel name
    [ ChD(50, "Engine Measurements/Revs") ]
    Note that the ChDX() command can ONLY take channel numbers, while the ChD() command can take either channel numbers, channel names, or the new Group/Channel names referencing. Also note that the ChDX() function is MUCH faster.
    Let me know if that did not answer your question,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Fail to deploy the channel xml

    Anyone can quickly help me? I tried to deploy channel to portal server, but it complains the parent container not found, however I did find from IS amconsole. Here is error info and address channel xml
    Thanks in advance,
    dpadmin modify -m -p "JSPTableContainer" -u "uid=amadmin,ou=people,dc=canada,dc=sun,dc=com" -w password -d "dc=canada,dc=sun,dc=com" AddressBookChannel.xml
    ERROR: Failed to find channel/container: parent=JSPTableContainer, channel/container=JSPTableContainer.
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <!DOCTYPE DisplayProfile SYSTEM "jar://resources/psdp.dtd">
    <Container name="JSPTableContainer" provider="JSPTableContainerProvider">
    <Properties>
    <Collection name="Personal Channels">
    <String name="AddressBook"/>
    </Collection>
    <Collection name="channelsColumn">
    <String name="AddressBook" value="3"/>
    </Collection>
    </Properties>
    <Available>
    <Reference value="AddressBook"/>
    </Available>
    <Selected>
    <Reference value="AddressBook"/>
    </Selected>
    <Channels>
    <Channel name="AddressBook" provider="AddressBookProvider">
    <Properties>
    </Properties>
    </Channel>
    </Channels>
    </Container>

    see the below link (same problem):
    Deploying Virtual Shop Lite
    I think it may be a BIG BUG.
    You can see it by yourself.

Maybe you are looking for

  • SSO between Portal Application and Portal Admin Tool

    Hi All, We have a requirement for implementing SSO between a Portal application and Portal admin tool. We are using WL Portal 8.1 SP4. Here is the reason for this requirement - A user logged-into Portal Application needs to login to Portal Admin tool

  • Unable to get MSE status.

    My WCS reported the MSE was disconnected. Then i checked the mse status. [root@SHWIPS01 ~]# service msed start Starting MSE Platform MSE Platform is already running [root@SHWIPS01 ~]# service msed status STATUS: MSE Platform is up, getting the status

  • Error while Txcode creation ?

    Hello, I have copied the whole F-28 Txcode program to my own customized program ZSAPMF05A. I have created the Txcode for this program from SE80 where i have given the SCreen number as 103, the screen number which i want to start. But it is displaying

  • Burnt a disc now can't eject it, please help, thank you.

    I can't eject a disc after I burnt it. Maybe someones knows how to fix this problem. Thank you.

  • Adobe captivate 7 PPT with question answer problem....

    when a question is answered incorrectly such as Question #2, it returns to slide #8, after it goes through slide #8 it repeats question #1.  Can we make sure it never repeats a question that has been answered correctly? ( Adobe captivate7 ) Please so