Get a ref to a newly-created channel script

I'm a noob to scripting tiara and it's been well over a decade since I did any significant vb coding, so please forgive me for what is inept.

I use the function ChnFiltCalc to operate my data by a low filter pass, and this function automatically creates a new channel containing the signal filtered at the end of the group.  In the data portal that I would move the new channel so that immediately follow the unfilitered channel, it is, however, ChnFiltCalc is not a reference to the new string.  In addition, the new channel may or may not use the name I assigned to it (Tiara will add a number if it's a duplicate name) and based on what I read in the help files, it may be the element with the largest index.

Is there a standard way of robust way get a reference to the new channels created by the functions?

Hi Rose Dalban,.

My personal preference must first obtain a channel object variable when you create the target channel in the Group and the location of the channel (TargetChannelIndex) that you want to be (where the name of the desired channel will be unique), then go this channel object variable to the order of ANALYSIS in his channel of target setting.

' Set Group = Data.Root.ActiveChannelGroup
' Set Group = Data.Root.ChannelGroups (1)
Set Group = Data.Root.ChannelGroups ("DesiredGroupName")
Set RChannel = Group.Channels.Add ("result Channel", DataTypeFloat64, TargetChannelIndex)
Call ChnFiltCalc (XChannel, YChannel, RChannel,...)

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

  • How do I get the handle to the newly created line

    Hello
    I have a classic table with button to add a line, property of AutoText on the bean table is true.
    I need to get a handle to the newly inserted row, once I click on Add button line.
    I tried getCurrentRow and also vo.last (), but it does not work for me.
    The new line is always added last (which is normal) but the cursor always go to the first row of the table that of why I guess currentRow don't get me the newly inserted row.

    How can I put the cursor on the new line or get the current line add after click on the button in the row.
    The workaround I use so far is defined the AutoText to false and then manage the button Add a new rank by rank to create on the VO but I want to assure you that the reverse also works.

    Thank you
    Anatoliy

    Hello

    We can create a line in 2 ways:

    (1) setting the Autoinsertion property to true.
    (2) dynamically by code

    -wht im saying is that you can set the value of the attribute using the nd method 2 only. (Autoinsertion to false)

    Concerning
    Meher Irk

  • Error-50303 occurred at ELVISmx_DAQmx create channel %2528AI-Resistance%2529.vi%253A1

    Hello

    I used the myDaq in my electronic class earlier today and the suspect, I have damaged the myDaq. I had an external power supply connected to my circuit on a Protoboard - the circuit was not directly related to +/-bus on the protoboard, but the Council itself was hung in the myDaq.

    I noticed this caveat statement myDaq Manual:

    Power supplies
    Caveat! Do not mix the power nor myDAQ with power of external power sources.
    When you use an external power supply, remove all connections to the power supply terminals on
    NEITHER myDAQ.

    Since then, I get the following error message when I try to take my multimeter (NI Elvismx) readings:

    Error-50303 occurred at ELVISmx_DAQmx create channel %2528AI-Resistance%2529.vi%253A1

     

    This message means that I damaged the myDaq? Could I have generated too much current with voltage circuit / applied and brought to save in the myDaq? If so, it would damage the myDaq or are there internal safeguards in order to protect the device (i.e. recognizing when internal resistance reduction) and trigger an error code (i.e. could reset you HAVE resistance)?

    I am new in the field of electronics, so please forgive me for any obvious incorrect statement above!

    Also, I went then to download the troubleshooter of myDaq - I managed to unpack the file, but it would not be completed installation (i.e. the 'next' button is grayed out on the summary screen, the only options to the choices were 'save' and 'Cancel').

    Thanks in advance for any guidance/direction you can give me!

    Sincerely,

    Melissa

    Found a miracle solution!

    Under the tools NI MAX button, there is an option to select "reset Configuration data".

    After selecting this, he reset the Configurations OR and restarted my computer. I noticed that when I reopened NI MAX, I had more options to choose when I click on the myDaq device (i.e. before I could only choose 'Save' and 'Refresh'... now I have more options including a reset, self-test function, test panels, etc.).

    I was able to use my features NI Elvis DMM and no longer see the error message (just did a simple test with a resistance).

    See you soon!

    -Melissa

  • DAQmx (Version 9.1) Create Channel for accelerometer will NOT convert m/s ^ 2

    I use DAQmx create channels for accelerometer to get results in the unit (m/s ^ 2)

    It worked until DAQmx Version 8.9.

    Now, I tested it with DAQmxVersion 9.1 and the results are in g (not converted to m/s ^ 2!)

    I use wth .vi DAQmx Create Channel (I-acceleration-accelerometer) entries

    units = m/s ^ 2

    sensitivity units = V/g (there is no sensitivity unit V /(m/s^2) available)

    sensitivity sensitivity value in V/g =

    I have read the data with

    . VI DAQmx reading (analog 2D DBL NChan NSamp)

    In DAQmx<= 8.9="" the="" double="" numbers="" are ="" correct="" converted="" to="">

    but in DAQmx 9.1 not (values are in g and low by 9.81)

    My solution is the following change

    units = g

    sensitivity units = V/g

    sensitivity = sensitivity value in V /(m/s^2)

    Then the double numbers are not converted, but m/s ^ 2.

    And this work in all versions of DAQmx.

    The problem is:

    An older program that uses the settings of the first and tested with DAQmx<=8.9 will="" get="" wrong="" measurement="" result="" with="" daqmx="" 9.1="" and="" no="" error="">

    Peter

    Hi Peter,.

    I'm not in my office at the moment and I can't try it by myself, I have forwarded your request to one of my colleagues, I hope he will contact you soon.

    Sorry for the delay,

    Tobias

    The language of MAX settings depend on the regional settings of your Windows operating system. See the following page:

    http://digital.NI.com/public.nsf/allkb/9893C1767C93D20E86256F49001CDA92

    Kind regards

    Tobias

  • Cannot access records two newly created on the USB.

    * Original title: Chaos Pendrive

    My USB got two shortcuts (with the files icon): "found.000" and "recycled".

    All records are now shortcuts (for cmd or anything in system32).
    I have no data (excluding files that were not in all cases).
    I can't get into folders, which is obviosly (records are now shortcuts).
    It's my size of USB as before the accident.
    What should do?

    Hello

    Thanks for posting your query in the Microsoft Community Forums.

    According to the description of the problem, it seems that you can not access both files newly created in your USB key.

    This issue could be due to a spyware infection. I propose to run online scan and check if it helps.

    Connect the USB stick to the USB port and scan it using the Microsoft Safety Scanner and perform the analysis complete on your computer.

    Online scanner.

    A quick way to search for viruses is to use an online, such as the Microsoft Safety Scanner scanner. The scanner is a free online service that helps you identify and remove viruses, clean your hard drive and generally to improve the performance of your computer.

    To run the Microsoft Safety Scanner:

    a. go to the page Web of the Microsoft Safety Scanner Download scan.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    b. click on Download nowand then follow the instructions on the screen.

    Important: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Please post back with the State of the question, so that we can help you further.

  • What is a request only to create channels once?

    Dear all,

    An application can receive push message, only need to create channel once and use the token to grow in the future?

    Or is it necessary to create the channel whenever the application is started?

    Thank you

    Dong

    For the example you gave, there is a signal to handle this: simChanged() (https://developer.blackberry.com/native/reference/cascades/bb__network__pushservice.html#function-si...

    Apparently, there are other cases where it can happen as well, and it looks like this area is badly managed and documented. I said a case is where the user has used a backup to restore their device (or a new device), in which case the channel will be lost and must be re-created.

    If your application is run frequently, I wouldn't advise create a channel every time, but as far as I know, is what most people do. (I'm relatively new to push stuff so don't take my words as expertise).

    If you have a way to detect that the channel can must be created using your application logic, such as if an application should normally receive many grows every day but one day happens without any entry in, then maybe it's the best approach.

    Manage backup/restore... not sure. If you could follow (recorded in your data folder) the latest version of the OS and type device that the application was running and that the changes, which would cover sometimes, but obviously not everything.

    Note that 10.2 seems to have some additional possibilities in the API that can be useful in this area, although I have not yet tested. (Including the reconnect() and the other connectionClosed() things... but it doesn't seem to be specifically on the channels, so it is unrelated.)

    Last but that occurs to me: at least save a timestamp indicating when the latest creation of the channel and don't bother doing it again if the application is running in a short period of time after that, as a few hours. I think that's what I'll do in my application until we can get more details on those situations where the channel can be lost.

  • Cannot open a session to the newly created user account

    I created a new standard user account via account management/accounts/user control.  When I log into the admin account and try to connect to the newly created account, I get the error message "the service user profile Service has no logon" "could not load user profile.  Click OK and it disconnects.  I can still log on to all the other 5 accounts that I created after I implemented this new laptop (preinstalled with windows 7).  When you click on a new account the first time, the system should establish the office and create the user records.

    I went into the Admin account and checking the application event log.  Event ID 1509 "Windows cannot copy file C:\Users\Default\ to the C:\Users\New Test Account\ location.  This error can be caused by insufficient security rights network problems. "DETAIL - access is denied.

    I solved my problem.  The index was at the event journal entry.  The permissions on the folder C:\Users\Default screwed up. (not sure how that happened).  I compared the authorization for this folder on my laptop win 7 with permissions for the same folder on my computer vista laptop.  Computer laptop win 7 has a few additional entries.  I deleted them and now I can create and open a session on new accounts on the laptop win 7.

  • How to get data in the procedure after CREATE TABLE table1 AS SELECT * from table2

    Hello

    can any body tell me how to get the data in the new table created in the procedure. because it gives following error.

    • Error (47,21): PL/SQL: ORA-00942: table or view does not exist

    tableName: = "BCKUP_" | TO_CHAR (sysdate, 'ddmmrrrr');

    tableDDL: = 'CREATE TABLE' | tableName. "AS SELECT * FROM Table1 where to_char(MSG_IN_TIME,''dd-mon-rrrr'') < sysdate - ' | daysNumber;

    EXECUTE IMMEDIATE backUpDDL;

    COMMIT;

    DELETE FROM Table1;

    How to select the data in the newly created table. as...

    Select * from ". tableName;

    Do not choose anything to get the number...

    Just after backupDDL EXECUTE IMMEDIATE, simply refers to SQL % ROWCOUNT - who will be the number of lines.

    Oh and DDL engages automatically, your commitment is redundant.

  • How to increment a NumericField value on a newly created sheet?

    I'm pretty new to javascript so please forgive me if this is considered basic.  I made a button in LiveCycle Designer that duplicates the current page that contains a numeric field called "Image1Text".  I want to increment the value of the field on the newly created page.  I tried a lot of different things, but all I can get it to do is increment the value to the original page instead.  Any suggestions?

    Code for my button:

    parent.instanceManager.addInstance (parent.index);

    xfa.host.pageDown ();

    This. Image1Text.RawValue = parseInt (Image1Text.rawValue) + 1;

    Nevermind, I think I've worked it.  I had to put the new instance to a variable first.

    var oNewInstance = parent.instanceManager.addInstance (1);

    oNewInstance.Image1Text.rawValue = parseInt (Image1Text.rawValue) + 1;

  • Add vm newly created in the domain

    I searched on the net for days trying to figure out if it is possible to add a virtual machine created in our area, but I'm running into some problems. I do not know if this is possible. I have an admin account I run this script slot but that didn't matter, because the model vm are not actually a member of the domain for the account have any privledges. Here is the script I use:

    $domain = "xxxx".

    $domainpw = "xxxxxx".

    $username = "xxxxxxx".

    function {JoinDomain

    $domain = "domaine.net".

    $domainpw = "localadminpassword".

    $username = "localadminusername".

    $servers = (get-Content servers.txt)

    $servers | ForEach-Object $_ {}

    $DomainUser = $Domain + "\" + $Username

    $OU = $null

    $ComputerSystem = gwmi Win32_ComputerSystem - ComputerName 10.2.4.205 - Credential localadminusername

    Write-Host $ComputerSystem

    $ComputerSystem.JoinDomainOrWorkGroup ($Domain, $domainpw, $username)

    }

    }

    JoinDomain

    So, as I said, I tried to run it with my domain administrator account and encounter an access denied error. So I changed the - credentials to a local user on the newly created virtual machine name and enter the password for the account when prompted. However, I always encountered access denied error. Any ideas on that? Is it still possible or I'm wasting my time?

    It works for me:

       $ComputerSystem.JoinDomainOrWorkGroup($Domain,$DomainPassword,$Domain + "\" + $Domainusername,$null,$FJoinOptions)
    
  • Other users but admin is not able to connect to a newly created application

    Hello

    My customer has created a new application and only admin users have used until now. Now, they have configured the user rights to a group of people "Sales" but none of the people in this group of users are able to connect to the new application. They get the following error message: "year error occurred while processing this page.» See the log for more details. If please close the current tab and launch the application again. »

    I should advice them on the phone, I have no access to this environment right now myself. The 'Sales' people are able to connect to the old application. You have any suggestions what could be harming the user the rights, roles, etc. ? And the error message refers to Essbase journal or... ?

    Thank you very much for your suggestions!

    PLS, check that the application is not in the section Maintenance (administration-> application-> settings) mode is default settings for newly created app

    Published by: vvipirailo on May 30, 2012 21:50

  • Cannot SELECT newly created tables

    Hi all

    Summer faced with granting permissions to the newly created tables.

    I designed a database in Toad DataModeller and generated the script data out of it.

    After you run the script, I can see the tables in schema browser Toad but cannot run a query on those.

    If I run for example - "* select * users *; I get an error "ORA00942 - Table or view does not exist.

    But if I create a new table in Toad itself (table Assistant creation of usage, I can do SELECT without any problem.

    There is no difference in the table creation script generated by the Toad and toad Datamodeller.

    I tried to connect as SYSDBA and ran ' * GRANT ALL ON USERS TO TEST. " (The TEST is normal user).

    I got all kinds of permissions for the TEST user account... But still it's not working. :(

    I put the table creation script and the creation of the user script... If that helps.

    Please suggest.

    Please share the script. With the assumption that you are connected to the same pattern on the same instance of two different tools, my guess is the name table (and possibly the names of the columns) are in quotes and have been spelled in cases - this is why you are not able to query these tables.

  • newly created missing folders

    I recently created a new folder under Inbox and transfer emails in there.
    I now looking emails but can not find the files.
    If I do a search for emails, I can find them, but the file is still not under Inbox.
    I also followed the thunderbird email on my ipad. The folder newly created with emails exist on the ipad, but I can't always see it on my PC.
    Any help, please?

    IMAP accounts cannot be converted pop e-mail accounts You must configure them as if they are separate e-mail accounts. But other methods allow you to access the messages on the server, it would be preferable to use the IMAP protocol.

    First of all, you can check the Inbox subfolder that you created is actually subscribed.
    Right-click on the name of the e-mail account in the folders pane, and then select 'subscribe '.
    You should see a list of all available records.
    Make sure that the new subfolder of the Inbox is subscribed.
    Click OK

    Please confirm that the subfolder is subscribed.
    If you were to sign up to see the subfolder, and then this should fix the problem.

    If the subfolder is already subscribed, do synchronize you all or only specified folders subscribed?
    'Tools' > 'Account settings' > 'Synchronization & storage' for the imap e-mail account.
    OR
    right on mail account in the folders pane, and then select "settings".
    then select: 'Synchronization and storage' for the imap e-mail account.

    See info at this link about the options to all folders to synchronize or specify individual folders.

    If you have selected "Keep messages for this account on this computer", then all the files will be synchronized.
    If it is not selected and you don't want all the selected, then you must click on the "Advanced" button to see the list of folders to synchronize.

    The selection and click on all the ' OK.

    now that the subfolder is subscribed and synchronized, it is displayed in the folders pane?

    If everything is agreed and synchronised, but shows always do not...
    As you use IMAP, this is where you would place these files and profile records.
    You see the files in the folder of your profile?

    Make visible the hidden files and folders:

    In Thunderbird

    • Help > troubleshooting information
    • Click on the view file"" button.

    A new window opens to display your content profile folder name.

    • Close Thunderbird now - this is important.
    • Click the folder «ImapMail»
    • Click the name of the mail account file

    If you synchronize your folders subscribed then you would see mbox files that contain emails.
    MBOX files will have the same name as the folder.
    MBOX files have no extension.
    name of the folder.msf files are just indexing of files that have no emails.
    name of folder.sbd records are present when there are subfolders in a specific folder.

    If a subfolder of the Inbox would unfold in the folder "Inbox.sbd".

    • Click on the folder "Inbox.sbd".

    You can see a file without extension (file mbox with emails) that has the same name as the subfolder is missing?
    If so, find the *.msf file that has the same name as the subdirectory and delete this indexing .msf file.

    Now restart Thunderbird and to report on the results.

  • Why don't iTunes12.4 see newly created pdf in iBooks?

    I want to sync newly created pdf stored in iBooks1.5 for my iPad Air iOS9.3.2.

    I have to use iTunes12.4 to synchronize between iBooks on my iMac and iPad Air.

    I don't want to rent per month storage in the icloud.

    Why the iTunes12.4 can not see all the newly created pdfs stored in iBooks1.5?

    iTunes can see old files pdf, pdf all simply not newly created old as one or two months ago.

    Does anyone know how to trash iBooks Cache if it exists?

    I know how to trash the plist file. This does not help, when I did it.

    Hello there, blackxacto.

    Looks like you're eager to synchronization of PDF files on your iPad Air without using iCloud services. The following Knowledge Base article offers some great information on it:

    Use iBooks with PDF documents on your iPhone, iPad or iPod touch

    Synchronize and save PDF files

    The first time you open iBooks once you upgrade to iOS 9.3 or OS X 10.11.4, you will be prompted to use iCloud. Learn more about the timing of your books and PDFs using iCloud.

    You can also add PDF files to your iTunes library on your computer by drag-and - drop the PDF file in your iTunes library. The files will be displayed when you prepare your device to synchronize. If you use OS X Mavericks or later, drag and drop your PDF documents into your library to iBooks using iBooks for Mac. All files PDF or iBook in your iBooks library are available to synchronize your device iOS through iTunes.

    To synchronize a PDF from your computer to iBooks on your iPhone, iPad or iPod touch:

    1. Select your iOS device. (Learn how to synchronize with iTunes.)
    2. Under settings, click on books.
    3. Select Sync books.
    4. If iTunes is set to sync only the selected books, make sure that there is to check the box next to the PDF file you want to synchronize.
    5. Click on synchronize.

    You can also use iTunes to back up your PDF files. To transfer a PDF file on your computer and save them, transfer purchases from your device iOS to your computer. These files are not in an iTunes backup. Learn more about what is included in iTunes and iCloud backups.

    There are a few additional information in PDF and compatibility available here:

    On iBooks

    Download books from other sites

    iBooks supports the ePub file format, format PDF, MP3 audiobooks, AAC audio books and audible.com audiobooks. iBooks author books are supported in iBooks 2.0 or later on the iPad, iBooks 4.3 or later on iPhone and iPod touch and all versions of iBooks for Mac. Audio books is supported in iBooks 4.3 or later on iPhone, iPad and iPod touch.

    If you want to add books, audio books and PDFs from outside the iBook Store or audible.comto iBooks, they must be devoid of DRM. You can sync using iTunes 10.5.3 or later version. Some PDF files is not compatible with iBooks.

    The books you download from the Kindle Store and other books that aren't in a standard format are not compatible with iBooks ePub DRM.

    Thank you for reaching out to the communities of Apple Support.

    Kind regards.

  • Error-200431 occurred at .vi DAQmx Create Channel (I-acceleration-accelerometer)

    Hello

    I tried to use DAQmx Create Channel to accelerometer and yet it responds with error (see below). When I use max OR to measure the accelerometer (I-acceleration-accelerometer), there is no error, and I see that acceloremeter works.

    OR PXI-1042 and I use OR-4462 card to measure vibration vith acceloremeter.

    Error-200431 occurred at DAQmx Virtual Channel Create

    Possible reasons:

    Physical channel selected does not support the type of measure required by the virtual channel you create.

    Create a channel to a type of measure that is supported by the physical channel, or select a physical channel that supports the type of measure.

    Property: I. MeasType
    Requested value:
    You can select: sound pressure, voltage: Microphone, accelerometer, Position: Eddy Current proximity probe, Force sensor: IEPE, speed sensor: IEPE

    Task name: _unnamedTask<104>

    Hi serdaryilmaz,

    I'm not sure why the accelerometer mode does not work, but it works very well in normal mode - it maybe has to do with the accelerometer, you?  Whatever it is, if it works with the voltage mode, I am happy that we found a way to make it work.  Is this an acceptable work around you?

Maybe you are looking for