Get channels to tiara 10.1


Hi Zueger,

The data object was introduced in DIAdem 11.0, so here is how you can write code to loop through all the channels of the default group in DIAdem 10.x or an earlier version:

Dim j, maxLen, Chnum

For j = 1 TO GroupChnCount (GroupDefaultGet)

Chnum = CNoXGet (GroupDefaultGet, j)

maxLen = MinV (maxLen, ChnLength (ChNum))

Next ' j

Brad Turpin

Product support tiara

National Instruments

Tags: NI Software

Similar Questions

  • How can I get channel z (zero) data encoder with a NEITHER-9411 in scan mode?

    Hello

    I use a cRIO to read a quadrature encoder, and I need z-Canel (zero channel) data using a NOR-9411 in scan mode.

    Chassis: NEITHER cRIO-9074

    Module C-series: 9411

    Encoder: EIB H25 series (model # XH25D-SS-1440-ABZC-28V/V-SM18)

    Now, I installed it using in scan mode and the properties > Configuration parameters of specialty as follows:

    Lifestyle specialty: Quadrature

    Input filter: disabled

    Time base of speed: 4096us

    Index Mode: Disabled

    This replaces Position0 position 1, Velocity0 and Velocity1 module instead of et0, DI1 channels, etc.  It works well to get a reading of the speed, but not the Z.

    I need to know Z as in the rest of my program calculations depend on.  (For this encoder Z is a digital signal that goes low when the encoder reaches 360 °.  It is also a very fast signal.  7200 RPM, it has a width of approximately 3.3us pulse.

    How can I get the data Z in Scan Mode?

    Agile Hello,

    The mode setting of index is the only way to access the Z channel in Scan Mode.  If selected the position will reset when the z channel is detected and the phase of the two other channels corresponds to your selection.

    It seems that you have the real z signal elsewhere in your code.  You may use the position data to generate the Z channel for this purpose?

    Let me know if you have any other questions,

    Sebastian

  • How to get channel Index

    Hello DIAdem users,

    I want to search for a particular string in the name of the channel and once I found this string in a channel'sname so I want to have his index. How can I achieve that?

    Concerning

    Option Explicit

    protected groupObj: for each groupObj in data.root.ChannelGroups
    protected chObj: for each chObj in groupObj.channels
    <>inStr (1, chObj.Name, "ei", vbTextCompare in) then
    MsgBox chObj.Name & "" & chObj.ChannelGroup.Properties ("index"). Value & "" & chObj.Properties ("groupindex"). Value
    end if
    Next
    Next

    To determine the code to read these properties, you can drag and drop it from script properties window.

  • Cannot get channel 73 to my Dish Network box

    Original title: window media tv tuner

    I need ch 73 for dish net work but media cannot find it when scanning

    Hello, rsum12

    To add, if you configure Media Center to control your box, unfortunately you won't be able to because Media Center won't go very high.

    The only solution would be to set the antenna source and change the appropriate channel (73), but unfortunately it will not control the box.

    If you want to leave a comment in this regard, you can do it on the following link: http://mymfe.microsoft.com/Windows%207/Feedback.aspx?formID=195

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Get channel number after a character

    Hi all

    Can someone help please how to get a number after a specific symbol (' # ')?

    For example to get the FIRST digit after the hash tag with empty space ("credit memos # 134062 - credit invoice in its entirety due to calculationRe 133758 incorrect charged car and van 130463Crew")

    necessary result from above: 134062

    Kind regards

    Alex

    SQL> with t
      2  as
      3  (
      4  select 'Credit Memos # 134062 - Crediting invoice 133758 in full due to incorrect calculationRe invoiced 130463Crew car and van ' str
      5    from dual
      6  )
      7  select regexp_substr(str, '#[[:space:][:digit:]]+') val
      8    from t;
    
    VAL
    ---------
    # 134062
    
    SQL>
    

    Edit: Removed the vertical bar symbol (|). See Frank's response below. Go with this approach if you're on 11.1 and above.

  • Get channel information

    Hello

    I am trying to retrieve the channel information of a file .psd in binary mode. I am able to extract the number of channels and their names, but not their types (I mean if it is a spot color channel or a mask). The documentation I've found is from 1997 and some things are not the same with the newer versions. Do you know how?

    Thank you very much

    Anna

    I was wrong about information that is not not bulk of 1077 image resource.

    It is not documented (in the documents, I watched), how to read correctly.

    With much help from others I thought about it.

    The data are almost the same in block 1007, but not exactly.

    The differences are:

    (1) additional 4 bytes a beginning, that contain the version number (which seems to be 1).

    (2) the table of structures DisplayInfo loses the 1 byte of padding at the end of each structure. (now, that's 13 bytes per structure instead of 14)

    struct DisplayInfo

    {

    color space of Int16;

    Int16 color [4];

    opacity of Int16; 0.100

    tank mode; Alpha = 0, inverted alpha = 1, = 2 place

    };

    The alpha information is the last byte of the DisplayInfo structures.

  • Get channel number

    Hello

    I have a problem with a select.

    I need to compare two string columns. First column includes only a number of 9 characters:

    '001234567'

    Second column includes the text where somewhere in this text is the number 001234567.

    'Hallo1 001234567'

    I need to extract the character number of 9 big off the chain. I thought by using regular expression could help me.
    SELECT
      REPLACE(REGEXP_REPLACE('hallo 001122334', '[a-z]', ''),' ') "REGEXP_REPLACE"
    FROM dual;
    But it would exclude the number 1 after Hallo:
    Result: '1001234567'

    The number I get is always 9 characters long.

    Thanks in advance,

    Tobias

    Something like that?

    SELECT regexp_substr('hallo1 001122334', '[0-9]{9}')
    FROM dual;
    
  • Get channel numbers

    Hi all

    I'm trying to get the number of a field in a query. All my results are as follows:

    "Transfer from 1500015162706' OR '1500015162706 transfer and more text here."

    I'm rather new to oracle and a little surprised that there is no function list in Oracle. A way to enter this group of numbers would be greatly appreciated. Or at least pointers.

    Thank you

    Bill

    In fact, there is a generic solution:

    with t as (
               select 'Begin transtaction. Transfer from 1500015162706' txt from dual union all
               select 'Begin transtaction. Transfer to 1500015162706 and more text here.' from dual union all
               select 'Begin transtaction. Transfer to 1500015162706.99. End transaction.' from dual union all
               select 'Begin transtaction. Transfer to .99. End transaction.' from dual union all
               select 'Begin transtaction. Transfer to 1500015162706. End transaction.' from dual
              )
    select  regexp_substr(txt,'(\d+\.{0,1}\d*)|(\.\d+)') num
      from  t
    /
    NUM
    ------------------------------------------------------------------
    1500015162706
    1500015162706
    1500015162706.99
    .99
    1500015162706.
    
    SQL> 
    

    SY.

  • Generation of weather in TDMS for measures of multi channels channel

    Hello world

    I have to write an application with five measures will at the same time... then it must be saved in TDMS each channel being its own channel of time just after she... IE sequence of the canal as below

    Channel group

    Measurement1

    (EDT) 1

    GCA2

    TIME2

    Measurement3

    Time3

    Measurement4

    Years.4

    Approvisionnement5

    Neuve5

    Each time channel should have "dt" for its number of measure...

    So far, I m succesfull in the measuring channel recording only all the... But I have no idea how design for each measurement time line...

    I tried to get the time I receive the data using functions as below

    GetSystemDate (month & day, &year);)
    GetSystemTime (& hours, minutes & seconds);
    sprintf (timeStr, ' %d/%d/%d % 02d: % 02d: % 02d ", day, month, year)
    hours, minutes, seconds);

    This will generate the channels of chain of time... but my requirement is of data type ' Date/Time' used on larger scale of the axis in tiara...

    Any help

    Thank you

    HS

    HS,

    There are two ways to store calendar for a channel information in a PDM file.

    You can only use the first method if timing information is regular (spaced), which means that it can be described with the only values t0 and dt.  This method translates a single channel in tiara which contains data values and stores the calendar as properties on the channel information.  Note that in this case DIAdem will treat time as relative values with no basis of absolute time values. The properties you must set on the channel are:

    (1) wf_start_offset (mandatory), the type is TDMS_Double, contains the time value t0 of the first data point of some units that you use and can just be 0 if your t0 value has no meaning other than as a reference for all other values of time in this channel point

    (2) wf_increment (required), type is TDMS_Double, contains the dt in whatever units you use

    (3) wf_samples (mandatory), the type is TDMS_Int32, contains the number of samples in the waveform

    (4) wf_xname (Optional), type is TDMS_String, contains the name associated with the x-axis of time and will be used by the tiara to label the x-axis in tracing this waveform

    (5) wf_xunit_string (optional), type is TDMS_String, contains a string that describes the x-axis of time units and will be used by the tiara to label the x-axis when tracing of this waveform

    You can set the properties above using the TDMS_SetChannelProperty function.

    You can use the second method for regular or irregular (not also spaced) timing information.  This method translates a channel with your data values and a separate second channel which contains the absolute timestamp values. From your original post, more like what you want.  In addition to your data channel, you must create a channel of timestamp.  Call TDMS_AddChannel with a data type of TDMS_Timestamp to create your channel of timestamp.  Call TDMS_AppendDataValues with the values of type CVIAbsoluteTime to write the Timestamp values in this channel.  You can create individual type timestamp values CVIAbsoluteTime by calling the functions of absolute time in the ICB Utility Library, such as GetCurrentCVIAbsoluteTime and CVIAbsoluteTimeFromLocalCalendar.

    I hope this helps.

    -Jeff

    NEITHER

  • Tiara 2015 fails to start (Win 7)

    Whenever I try to start DIAdem 2015 on my Windows 7 computer, I get the error ' tiara: DIAdem.exe - Entry Point not found ". Here is a picture of the screen of the error.

    I tried to reinstall both camps tiara but get the same error. (I also tiara 2012 on my PC and it worked fine before, now who is also giving the same error).

    Also DataFinder.exe doesn't and fails with the same error. One of the messages said to reinstall OR ICU from the DVD DIAdem will correct this problem. I found NEITHER-ICU Version 15 on the DVD and tried to install it, but the installer would not install 15 NOR-ICU and says that it cannot install because a newer version is already installed. I can't find OR ICU under control panel > programs and features >, so I can't uninstall the ICU-OR corrupt that is probably causing all these errors.

    Can you please help? Thank you.

    Hello RagMan,

    I agree that the ICU is probably damaged. It seems that you have a mixture of old and current ICU binary on your hard drive, which causes this error.

    It's very special and I like to discuss possible solutions with you - of course, I'll post the result here.

    Please post here your e-mail address so I can contact you.

    Thank you, Dieter

    National Instruments Engineering GmbH & Co. KG

  • Application function rounded to the whole of the channel

    I have a channel in tiara with a large amount of values (36,000,000) contain the values on 13 decimals.

    I would like to round the value to about 4 or 5 decimal places max.

    Can someone help me understand how to do this in DIAdem.

    Example:

    0.3784729837492-> 0.37847

    I want this for each value in the channel.

    can someone help me understand how to do this?

    Thanks in advance,

    Tom

    From D-cubed method of work, but with 36,000,000 points given, it will take a lot of time.  Use the calculator.  Copy this function in the ECU for analysis, and it will happen almost instantly.  Replace the 3 by the desired number of decimal places.

    Ch("[1]/Channel") = Round (ch("[1]/ChannelToBeRounded"), 3)

    If you need a VB Script:

    Dim ChannelToRound, DecimalPoints

    ChanneltoRound = "[1]" / ChannelToBeRounded " ' set the channel to round here"
    DecimalPoints 6 = ' specify the number of decimals

    "This will create a new channel called"Channel"in Group 1 with the rounded values

  • Write to channel outside custom device

    Hi all

    I am writing a custom device to control some aspects of my definition of system (more specifically another device custom).  I can't solve this problem because I can't find a way to write about a VeriStand channel located outside my custom device.

    Help to get channel reference data (which I usually use to get a data reference so that I could use the channel for the data set Reference.vi) says expressly that I can't get write access to a channel outside of my custom device.

    Is it possible for me to get write access to a channel outside my ring custom?

    I realize I can create system to the output channels of my device custom maps, but I'm not crazy a whole bunch of mappings of system because they are not very visible, and I would like that the user only need to use my configuration pages.  I also realize that it's probably possible to create these custom mappings by my setup of device programming, but I was not brave enough to venture down this road again...

    I use VeriStand 2011 SP1 and LabVIEW 2011 SP1.

    Thank you

    Chris

    Project engineer

    Certified LabVIEW Developer

    BaseNodeType is part of the Assembly SystemStorage, that something is used internally and is not intended for use by the public.  The publicly documented API is the API of ZFS, which has documentation available and a little easier to use.

    In the ZFS API, there is a class called "Utilities" that has a (Source channel, Destination) AddMapping method and a ClearMapping(Channel Destination) method.  These work as expected and disable the mapping entirely (not only the creation of an invalid mapping with value null, like your screenshot).  It would be better to add and remove mappings.

    However, if you want to stay with your existing code, I think you can accomplish what you want by removing the method "SetDataSourceValue" and replaching with a method "RemoveProperty.  The name plugged into "RemoveProperty" will remain the same ("DataSource").  This actually completely erases the mapping of the string instead of remapping it on channel zero.

    Kind regards

    Devin

  • Problem writing to the buffer of the device

    Hello

    I have a problem with writing the values to an analogue output. You can see the following code.

    So my problem is, when I call the function PostHolding (0.004), I put a few values in a table and the end of this function, I write the table in the buffer of the device to the analog output.

    The call is the following: DAQmxErrChk (DAQmxWriteAnalogF64 (taskHandle, (PostHoldingTime * sampling rate), 0, 10.0, DAQmx_Val_GroupByScanNumber, PostHoldingArray, NULL, NULL));

    I checked the table and the number of values for each channel, and there is all right.

    So now I come to the loop and the if clause (table a good values). With generatePatter(), I generate a pattern, it is a global. The return value shows me how many values are in the model. When I call now DAQmxErrChk (DAQmxWriteAnalogF64 (taskHandle, (newPointer-g_Pointer), 0, 10.0, DAQmx_Val_GroupByScanNumber, g_TotalPattern, NULL, NULL)); He should write my new model similarly in the buffer of the device. When I start the task I would see the first table in the PostHolding function, then the second table of the second function. And here is the problem that I always see the table from the PostHolding function, but not the second of the generatePattern(). I don't know where is the failure.

    I have the same problem, when I call the function (green in the picture) PostHolding after calling generatePatter(). Here, I see the signal from the generatePatter() function but not the signal of the PostHolding function.

    I hope someone can help me?

    Best regards

    Hello

    Thank you for your response. I already found the failure. When you create a channel, you must say how many samples gets channels. I forgot to calculate additional examples to my first sample.

    DAQmxCfgSampClkTiming (taskHandle, "", DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, SampleRate, samples);

    Best regards

  • How to create and use using the .csv file?

    I have one makes IAM csv file to create use... What are the steps to follow.

    I am looking for this last 3 days... .data is not updated in the database.

    I hope that iam not creating do not properly use...

    Please send to [email protected]

    Hello musunurudiadem,

    Have you tried the process in these documents?

    http://www.NI.com/white-paper/13758/en/

    http://digital.NI.com/public.nsf/allkb/AB28139F280CC3E586257563005B9664

    In the first link, if you click on the boxes of the flowchart need you for the step-by-step procedures for a different part to get data in tiara.

    As your data is in a CSV file, you may be able to use the wizard:

    http://www.NI.com/white-paper/13789/en/

    If you cannot use the wizard, here are some resources for programming your own plugin:

    http://www.NI.com/white-paper/13803/en/

    Kelsey Johnson

    Technical sales engineer

    National Instruments

  • LabVIEW control Interface 54645d, please help!

    Hi, I can't get the two signals of track or to at least get channel 2 on my labview interface signal, I get two signal on the physical oscilloscope traces and when I try and run the labview interface it only shows channel 1. I was able to save data in an excel to CSV file and get a signal (channel 1), but now I am trying to get a second signal or if not possible, to achieve at least a signal of channel 2 on another window, please help, spent time searching for solution, but came to no solution and don't know how I can get this signal displayed. If anyone knows how I can get this works or if they can test on a physical oscilloscope to meet, I would really appreciate it. Please I am again asking for help. Thank you.

    Working w / Hardware: HP/Agilent 54645D Mixed signal Oscilloscope, Interface module of 54657A module attached to the oscilloscope, connected to a PCI-GPIB, GPIB cable using the function/arbitrary function generator HP 33120 A signal generator.

    A screenshot of the material (oscilloscope/function generator and front panel Interface) and my current VI is attached. Please if you can help me get a second signal of channel 2, I'll APRECIATE it thanks.

    John

    Hi John,.

    Since you are using a scope and an IVI driver, you will not be able to use the reading VI waveform to acquire two signals. However, you can use the initiate and extract the screws to acquire the signals of the two channels. You will first use the VI launch referring to both channels, and then, you follow this command with the Fetch VI for each channel individually. This article in the knowledge base I linked below gives a more thorough description of the reason why you cannot use the VI of waveform of reading for both channels:

    Using a Driver of Instrument specific scope IVI to acquire multiple waveforms at the same time:http://digital.ni.com/public.nsf/allkb/9FC2291D4CF6851A862567B30050AB12

    I hope that this helps explain the behavior you're seeing.

    Best regards

    Anna

Maybe you are looking for

  • I want the old back Firefox!

    Basically I don't like the update. Not at all.The orange firefox button disappeared, the legs are given a circular shape and it shit. How can I change the appearance of back?

  • Change the crossfade mode model

    Hello I recently made a few records in view model, that I've used a lot of Logic Pro 9. It is nice to have the option to choose the best parts of various beaches. This worked very well in Logic Pro 9, but now it automatically inserts a crossfade. I l

  • Y580 - what is the difference between 'Blu-ray/DVD Combo' and 'Blu-ray/DVD-RW?

    Can writer "Blu-ray/DVD Combo", I want to say burn on nine DVD disc?

  • error 0 x 80004005

    When windows starts, I get the message that windows mail cannot be started because msoe.dll could not be prepared. I get an error message 0 x 80004005. Please tell me what to do to fix

  • Dell U2711 green pixels

    Hey,. I have more than 3 years old Dell U2711 monitor and for a few months now my monitor has started to show the mobile green pixels on half of the screen. The problem is not in the cables, because I see the pixels even when I'm browsing in menu mon