Copy of a dataset of new channels within a script

Hello

I am trying to copy specific data between two sets of values (which are specified in the script) X and then draw a curve regression for them.

I managed to set the values of cursor and create a group, but the only way I can see to copy is to define indicators and to copy the data points that can be made in a script (as far as I see)

Research on the forum suggested using the value of the coordinate x to find the line but the data I use has several values of Y to coordinates X which means it won't work as it only returns the row in the first finds it.

Any suggestions? Copy data to the new channels would be the most useful solution, but if I can calculate a regression between the two x values line then I might be able to work with it.

Here is the code as it is:

Dim MyFileNames, iCount, sheet, space, graphics, curve, chlength
Call FileNameGet ("ANY", "FileRead", DataReadPath, "data TDM (*.tdm)", *.tdm ","All.lst", True,"data selection"")
MyFileNames = Split(FileDlgFileName,"|")
ICount = 0 to Ubound (MyFileNames)
Call DataFileLoad (MyFileNames (iCount))
Next

Call View.LoadLayout ("view1")

Set the sheet = View.Sheets (1)
Set area = Sheet.Areas (1)
Area.DisplayObjType = "CurveChart2D".
Graph of the value = Area.DisplayObj
Call Graph.Curves.RemoveAll
Define the curve = Graph.Curves.Add ("Y_Accel", "Strg_Angle")

Sheet.Cursor.Type = 'band '.
Sheet.Cursor.X1 = - 0.1
Sheet.Cursor.X2 = 0.1

"This is where I would copy the flags data points

Chlength = CL ("CopyYStrg_Angle")

Call ChnApprXYCalc ("CopyXY_Accel", "CopyYStrg_Angle", "Y_Accel_Strg_Torq_approx", "Strg_Torq_approx", "Full score area", Chlength, 1).

Set the sheet = View.Sheets (1)
Set area = Sheet.Areas (1)
Area.DisplayObjType = "CurveChart2D".
Graph of the value = Area.DisplayObj
Define the curve = Graph.Curves.Add ("Y_Accel_Strg_Torq_approx", "Strg_Torq_approx")

And the plot so you can see what I need to complete (automatically good!)

Thanks a lot for your help

I managed to do this without the help of flags by manually setting data in new channels with an if function, according to Brad code here http://forums.ni.com/t5/DIAdem/Can-I-copy-data-points-from-a-VBScript/m-p/1048090#M11359

Just changed the if function to check if the data was between certain values rather than checking if they had reported (could not get the chnflagset command to work)

Tags: NI Software

Similar Questions

  • Max of each channel enter a new channel

    I'm doing a script in 11 tiara which takes the maximum value of the first 50 channels and puts these 50 values in a new channel.

    I first tried the ChnPeakFind command, but it is creating too many new channels.

    So I resorted to the ChnPropValGet (Group/channel, "Maximum") command.

    For I = 1 to 50

    MyChannel = "[1]" / "+ I"
    CurrentMax = ChnPropValGet (MyChannel, "Maximum")

    Missing order here to add "CurrentMax" to a channel

    ' MsgBox (CurrentMax)
    Next

    I encounter two obstacles here:

    1. education MyChannel = "[1]" / "+ I does not work, because I don't flatten automatically"

    2. I can't understand how to add value to an existing channel

    Normally the files help quickly make me go, but not this time.

    I look forward to your suggestions!

    Thanks in advance,

    AART-Jan

    Aart-Jan Hello!

    Try this code:

    Option Explicit

    I have
    MyChannel
    CurrentMax
    nChnMax

    ChnAlloc("Max",50,1,DataTypeFloat64)
    nChnMax = CNo("Max")

    50
    MyChannel = "[1] / [" & I & "'"] ' "

    CHD (i, nChnMax) = ChnPropValGet (MyChannel, "Maximum")

    Next

    ChnCharacter (nChnMax)

    Matthias

  • No video with new channels such as CNN, MSN - never happened before - new computer

    All of a sudden there is no video with my news channels - CNN, MSN, etc... Everything is there but not video!

    try a system restore a few days back and see if things return to normal.
     
     
    Barb
     
    MVP - Windows/entertainment and connected home
     
     
    Please mark as answer if that answers your question
     
     
     
     
  • CAN frame channel Conversion Library - add new channel will not convert on channel

    I hit a roadblock with the Conversion CAN frame v1.0.2 channel library.  I don't think I properly use the 'Add New Channel' vi because it always causes the frame on the canal to fail.  The channel to the conversion of image works fine.  I joined the Panel front and a simple example block diagram.  This VI returns the following error during the conversion of the chassis on the channel:

    Error 8702 is produced to convert image to Channel.vi

    Possible reasons:

    A call to the library met with a null pointer.
    Ensure that all entries in the VI have a valid value.
    In the case of tables, make sure the table is not empty.

    Any help would be appreciated!

    Thank you

    This issue is resolved by upgrading to the Conversion CAN Frame Channel 1.0.3 library and place the frchconvlib.dll file in the C:\Windows\system32 directory.

  • I got a new computer (an old dies) new a windows vista and I have to disable the old computer before I load the same copy of Vista on my new computer. If yes how can I do this?

    I got a new computer (an old dies) new a windows vista and I have to disable the old computer before I load the same copy of Vista on my new computer.  If yes how can I do this?

    If Vista is preinstalled on your OLD computer, it is classified as an OEM license and is not transferable.

    The license of Vista OEM is related to the original computer it is installed on and dies with the computer.
    You cannot transfer it to another computer/laptop

    If a license of Vista at retail, you can transfer it to another computer/laptop.
    But it can only be installed on one computer at a time.

    A single license is a single Installation.

    If it is a retail Vista license, read the information on the clean install and then reactivate it:

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    See you soon.

    Mick Murphy - Microsoft partner

  • Data guide new channels are not

    My cable co has added a few new channels about two months ago. I've added new channels to the guide, but the data don't download the guide.

    Any thoughts?

    Thanks for the replies. It turns out that I looked at the guide today and all new channels are now here without input from me. I guess the system just finally caught up.

    Bob

  • Directory disappeared when I copied the directory to the new machine

    I bought a new computer and was moving files from one to the other. I copied an entire directory - subdirectories and files - on the map, and then copied that data on the new machine. The original computer runs Vista. The new computer running Windows 7.

    When I did this, the directory has been eliminated from drive C visible on the original Vista machine. So I tried to overthrow: all that the copy of the new machine back to the existing one. When I did, the existing machine informed me that the files that I had to put on her already existing. I could not just see them. That's nice!

    So, I tried a search in Windows Explorer for files that I knew. Do they not appear unless I did a 'Advanced' search and checked the box "Include non indexed files hidden and system (slower). They came, and so did the directory that I had tried to find.

    This leads me to think that I should re - index the first machine, which is something that I discovered clicking around. However, I'm a little scared of this and thought I'd better ask first. As you can imagine, it's frustrating, because I'm just a regular computer user and not someone who knows a lot about the details. Thanks for any help.

    Win7 has its mysteries.

    Here are a few things to try:

    option 1 - type the address in the address bar in the Solution Explorer and see if the invisible folder will appear again on the list of folders.

    -If Yes, then sometimes the case will resume on the list of files.

    -also check its properties and see if the folder attributes are set to 'hidden '.  you could try to switch the hidden on and out attribute to see if it committed the file to be seen again.

    workarounds are:

    option 2 - create a new folder on the drive as MyFiles and copy the contents of that unstable.  then delete this unstable, c:\files.   If it is still not visible by the browser, then try the delete command via the console drive prompt.

    option 3 - create a shortcut of desk top of the page with the address in the unstable folder which will give you quick access

    option 4 - create a new folder, as MyFiles and copy your files to another computer.

  • How to copy the recovery on the new HARD drive partition, HARD drive failed?

    Hallo,

    I have a Compaq Mini netbook with Windows 7 Starter.

    The HARD drive has failed and it is not repairable. However, it seems that the recovery partition is OK.

    I want to buy a new HARD drive, install the driver on the netbook, and then use the tools/recovery partition to install windows 7 on a new PC.

    So, the question is simple: how to copy the recovery for the new HARD drive partition?

    Hello s91066.

    If your hard drive of your laptop doesn't have? If this is the case, what do you mean by the "recovery partition is ok? I doubt that this laptop has two hard disks, so if you are able to see this partition of your hard drive may still work.

    You will need a set of recovery disks to restore the partitions on the new drive. If you can start Windows, which you can probably not with a dead hard drive, you can follow these steps if you can get into Windows.

    If you are unable to boot into Windows, you need a set of disks. You can order it directly from HP. The number of the United States / Canada is 1-800-474-6836. If you are in another domain, you must visit HP's Support around the world to find contact information for your region.

    I hope that is useful; have a great weekend!

  • Half of the blades fell when creating a new channel of uplink port?

    I have a pair of 6248UP fiber interconnection (A and B) with blade servers connected. The switch upstream is Nexus7k. Fabric A and B each right has now a channel of uplink port to the Nexus switch upstream. I add a new Nexus switch to connect to the interconnection of fiber. The plan is to have uplink some VIRTUAL networks for Nexus one pass and uplink some VIRTUAL to the second Nexus switch networks.

    After that I configured the new Nexus switch with a channel port (only allowing some VIRTUAL networks) and corresponding port created on fabric channel A and B, new ports-channels have increased. However, half of the blade servers were down after that. What could be the reasons for this problem? Is it because half of the blades have been pinned dynamically on the new channel port, but the new port-channel side Nexus allow only some VIRTUAL networks?

    Is there a way to configure the Channel ports on fiber to interconnect with only the trunk through some VIRTUAL networks? for traffic from the server would not be sent to the port-channel where VLAN server is not allowed?

    Thank you

    In general, all NICs for/vhba of a fabric are declining, if all uplinks of this fabric are declining.

    It's not clear to me, what you're trying to achieve?

    If you create a global VLAN (for the two fabrics), this vlan is automatically inserted in all dependent North trunk links, unless you configure a leaking installation

    (http://www.cisco.com/en/US/solutions/collateral/ns340/ns517/ns224/ns944/white_paper_c11-692008.html)

    Create a new vlan on UCS requires of course also this vlan is created on the switch connection and vpc by default allows all the VLANS. Could it be, that the vlan not appeared on the switch and was therefore not upward on the trunk?

  • Lost many channels after running a new "channel scan".

    My Windows Media is a digital cable without a box set.  I could watch about 20 different channels.  Yesterday, I ran the scan just to see if any new channels were available.  I can now look at a total of six!  Anyway is to return to the prior game to the top?  I tried to restore my computer set, but it does not help Media Center...

    I lost my local news, etc.  I really want to go back.

    Hello

    The following link can help you!

    http://www.mychannellogos.com/pages/default.aspx

    http://www.howtogeek.com/HOWTO/10808/Add-TV-channel-logos-to-Windows-7-Media-Center/

    http://www.avsforum.com/t/1250607/Windows-7-Media-Center-Setup-Guide-knowledge-base-support/4320

  • Is it possible to transfer this up-to-date copy of Windows on my new PC?

    Original title: build a PC if I need a new copy of Windows?

    As the title says I'm building a new PC, the new SSDS etc.. I am currently using Windows 8 that came preinstalled on my store bought HP PC, is it possible to transfer this up-to-date copy of Windows on my new PC, or I have to buy a new one?

    Cinna

    Hello Cinna,

    You found since the OEM copy of Windows cannot be transferred to another computer, and, unfortunately, there is no work around either.

    If you are going to build your own PC, then I suggest a full commercial copy (not an upgrade) of the operating system rather than an OEM. At least, with a retail copy it can be transferred to a new machine providing that you remove the copy from the old machine.

    Although, when I buy a new PC, the machine is supplied with a copy OEM I always buy a commercial copy to allow me to move the operating system to a new computer should all arrive at the older one. Plenty of retail copies are more expensive, but worth the extra expense, especially if, like me, you're updating your computer regularly.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • Copy the titles in the new session and preserve the placement/time clip

    I have several sessions of dialogue that I need to combine into one. When I copy and paste in the new session the second piece and so forth slide up to 0. How can I avoid this and do everything to stay in his place?

    Session of orig

    After pasting audio track 2 and 3 new session slipped up to 0

    I thought about it. I selected all the titles (Ctrl A) one click right selected "locked in time" and then paste to 0 on the new session.

  • If I have a copy of Photoshop CS6, can I get a copy to download for a new computer?

    If I have a copy of Photoshop CS6, can I get a copy to download for a new computer?

    Hi martinw24566911,

    you are free to install and activate Photoshop CS6 on two computers, but you can use them in even
    time. All the CS6 Apps and their installers can be found here: Download Adobe Creative Suite 6 applications

    Kind regards
    Maurice

    This answer was helpful? Please consider marking it as 'Useful' or 'Right answer' (as appropriate) to help future customers with the same problem. Thank you!

  • I just installed my copy of cs5 in a new computer windows 10 - How can I get it to recognize my NEF files, as it did in my old laptop?

    I just installed my copy of cs5 in a new computer windows 10 - How can I get it to recognize my NEF files, as it did in my old laptop?

    Could you please install the DNG Converter, and then it should help

    Installation link: Adobe - Adobe Camera Raw and DNG Converter: for Windows

  • How can I legitimately move a copy under license to a new computer?

    That s it!

    Thanks a lot for your help!

    / Lars

    KL den 2015-11-19. 17:04, abhissha skrev:

    >

    You talked

    by abhissha

    https://forums.Adobe.com/people/abhissha?et=notification.mention> /in

    Re: How can we legitimately move a copy under license to a new computer? in

    Adobe community /-see reference of the abhissha to you

    https://forums.Adobe.com/message/8194032?et=notification.mention#8194032>

    >

Maybe you are looking for

  • I want to change my username to the forum

    Years, I got my apple ID as my username in the support forum. Then I connected and discovered he had changed, and Apple seem somehow taking my name from my account from credit card or something.  I want to change it back, I'm really annoyed by this l

  • "timing" on the RS-485 bus

    I read all the resources of communication series here but could always use a context / known Council about my application. Here is some information: (1) we communicate with the instrument through a USB RS485 converter. I see the instrument NI Max and

  • System Tool virus

    Tonight, my computer has been hijacked by a program simply called system tool.  He locked most of my access to other programs. has a big red warning on my desktop screen. promises to fix this problem for an amount of 1 year of 59.95.  Supposedly to p

  • Problems with games on Toshiba satellite pro

    Hi, I had a game called euro truck Simulator and my cell phone doesn't work there. I then tried other games and DVD, but this isn't one of them pick up. my laptop is a Toshiba satellite pro I'm sorry but I don't know what the numbers are. Help, pleas

  • HP Pavilion Media Center TV PC became start longer than the next day!

    I have a HP Pavilion Media Center TV PC. It works fine until last Friday, 10/02/2012. The machine became unbootable plue. On the eve of the machine stopped properly. (We always shut down the computer at night.) Now when I turn on the machine, I hear