Series quick reading of the channel group properties

Hi, can someone please advice what is the fastest way to extract about 400,000 files channel group properties? Currently I use DataFileLoadRed with only the Group of channels that interests me and channels stripped down to a single value by setting the no. intervals of 1 and SectionBegin / end of 1/2. Suggestions for improvements? PHEX

An alternative would be to open all files with the following code.

Option Explicit

dim groupindex : groupIndex = 1 ' you can also use a groupname instead
dim groupProperty : groupProperty = "description"

' include this in a loop over all your files
dim filePath : filePath = "C:\temp\example.tdm"
dim store : set store = navigator.ConnectDataStoreByParameter("TDM", ""& replace(filePath, "&", "&") & "")
dim propVal : propVal = store.RootElements(1).Children(groupindex).Properties(groupProperty).Value
MsgBox propVal

The files are open and your properties are extracted. Potentailly datafinder approach should be more fast but if you don't get that market this may be a way out.

Tags: NI Software

Similar Questions

  • FF4 does not show quick reading of the articles of the site functionality

    On some sites such as huffingtonpost.comnews, the main items are associated with a picture. When you place your cursor on the upper right corner of the photo, a 'Quick read' option is displayed. By clicking on which displays a brief summary of the article. The quick play option appears in FF3 but not now that I installed FF4.

    It seems to work for me, see screenshot.

    Try to upgrade to the latest version which is 4.0.1 by clicking help | About Firefox | Look for the updates.

    If the problem persists then, try running Firefox in Firefox to solve the issues in Safe Mode. If it works properly in this configuration, then one of your modules is the culprit.

  • Can I read out the channel of AI to control ao channel?

    Hello

    I use a USB-6211 to acquire two voltage signals synchronized to an LVDT (ai0) and a load cell (ai1). LVDT signal and load cell already amplified and conditioned before travelling in the ADF. LVDT and scale read displacement and force on a rod having position is controlled by a linear actuator. The actuator is controlled by a voltage waveform coming out of the 6211 (ao0). Is it possible to reference each input signal (one or the other, perhaps based on a Boolean value) to control the amplitude with the output signal?

    For example, if I wanted to move the stem a specific distance or press the stem into something with a certain force, could I refer to the distance or the strength of the input signal of the channels to set the amplitude of the signal ao AI?

    I guess what I would really like to do is to close the loop on the actuator so that it knows where it is in terms of force and distance. Is it possible using this material?

    USB-6211 (http://sine.ni.com/nips/cds/view/p/lang/en/nid/203190)

    Best,

    amproctor

    If you do a sample or wave? I have not found a typical...

    See the wink, it's here Sample sample. The Subvi icon has your correction formula.

  • Remove the port from the channel-group

    I met a strange problem with port aggregation, where I decided to remove a port of a port channel and put it in another, but in my SNMP tool, it still belongs to the old channel of port and the new at the same time.

    Port channel was created using:

    (config) #interface gigabitEthernet 0/1/22

    (config-if) trunk mode #switchport

    (config-if) active in mode #channel-group 1

    Then passes through

    (config) #interface gigabitEthernet 0/1/22

    (config-if) #no active mode channel-group 1
    (config-if) active in mode #channel-group 2

    I have also that when I pull up some information on configuring etherchannel.

    #show interfaces gigabitEthernet 0/1/22 etherchannel

    Port status Up Mstr Assoc in Bndl

    Group of channels = 2 Mode = active = Gcchange-

    Port channel = GC Po2 = - port-channel Pseudo = Po2

    Port index = 0 load = 0 x 00 Protocol = LACP

    Flags: S - device sends slow LACPDUs F - device sends Rapids LACPDUs.

    A - unit is in Active mode.        P - peripheral is in passive mode.

    Local information:

    LACP Admin Oper Port Port port

    Port flags State priority key number

    Item in gi1/0/22 SFT bndl 32768 0 x 2 0 x 2 0 x 117 0x3D

    Partner information:

    LACP Admin Oper Port Port port

    Key priority indicators Dev ID Age port key number status

    Item in gi1/0/22 SFT 32768 0817.35e4.2c80 26 s 0x0 0 x 2 0 x 118 0x3D

    Age of the port in the current state: 164d: 21 h: 32 m: 44s

    This could be a problem with my (observium) snmp tool or are there additional measures to eliminate a port of a group of channels? Reboot of the switch?

    System image file is "flash: c2960s-universalk9 - mz.150 - 2.SE4.bin.

    Hello

    I would say that it is related to the snmp tool, once you remove the port of the chain earlier and added to the new, which will be to the one, it is impossible that an interface will be less than 2 different port channels.

    Also there is no need to restart the switch or something like that, you can use the following commands to verify that the interface is now part of the new channel group:

    Show etherchannel summary

    Show interface execution item in gi1/0/22

    With these commands, you will see that the interface belongs to the Group channel 2, and the order that you set above shows that the interface belongs to po2.

    Hope this helps

  • compare files with the same structure of channel / rename channel(-groups)

    Hello

    I have several groups ch with many channels in the file of each measure.

    Now, I need to display/compare Channels 2 or more files of measures in a chart. (channel 'speed1' to the file 'measurement1' vs 'speed1' to the file 'GCA2' channel)

    So I import 2 files in the browser und have the same structure of string twice. To distinguish between the channels of the two files I want to rename the channels by script and add the file name of the channel-group name.

    Is this a common way to compare measurement data in files with the same channel names and structures?

    In the affirmative. How can I make a script?

    Thank you very much in advance!

    Ski

    Hi Ski-Fahrer,

    each channel has a name of the institution.

    Data.Root.ChannelGroups ("Name" or Index). Channels (Index or "Name"). Name

    You can assign a new name like this:... Name = "NouvNom".

    I don't think it is necessary to rename the channels. If you do not forget the files. If you want to rename something I only rename the ChannelGroups by adding a date or a serial number.

    Kind regards

    Philipp K.

    AE | NOR-Germany

  • The data read into the buffer HAVE lack samples at the beginning

    I use a box USB-6251. The program implements two channels of AI (read I and Q) on a single task and one channel on another task. The channel uses the ai\SampleClock as its clock, so that both are synchronized. C creates a digital pulse periodic rising edge (a clock basically) which is used as a trigger on an external function generator. The signal from the unit after going through some material, external signal processing is ultimately what is read by the channel of GOT it.

    We know from the relevant signals, they seem to be correctly synchronized scope. IE, the analog signal to read arrived on the channel of the AI of the acquisition of data more or less instananeously when the trigger is activated. If there is a delay, it is of the order of microseconds.

    However, when I read in the buffer of HAVE (repeated FiniteSamples), waveform, I always come back has a section of samples at the beginning that seem to be returned of the first actually read data-point (see attached image). This delay is of the order of milliseconds (it varies with each series).

    I want to totally eliminate this delay. The signal should be a sinusoid which begins to sample 0 and is continuous through until the last sample read.

    I put the code below.

    Installation program:

    Create analog read the task
    analogReadTask = new Task ("analogReadTask");

    Create the virtual channel for the component I
    analogReadTask.AIChannels.CreateVoltageChannel (initParams.AddrI.ChannelAddress, 'I', AITerminalConfiguration.Differential,-4, 4, AIVoltageUnits.Volts);

    Create the virtual channel for the Q component
    analogReadTask.AIChannels.CreateVoltageChannel (initParams.AddrQ.ChannelAddress, 'Q', AITerminalConfiguration.Differential,-4, 4, AIVoltageUnits.Volts);

    To set the clock for the analog readings
    analogReadTask.Timing.ConfigureSampleClock (string. Empty, initParams.SamplingRateHz, SampleClockActiveEdge.Rising, SampleQuantityMode.FiniteSamples, Totalechantillons);

    Create the mult-channel drive
    analogReader = new AnalogMultiChannelReader (analogReadTask.Stream);
    analogReader.SynchronizeCallbacks = false;

    pulseWriterTask = new Task ("pulseWriterTask");

    Creating a digital output channel that provides the trigger to the U/S system
    pulseWriterTask.DOChannels.CreateChannel (initParams.AddrUsTrigger.PortLineAddress, "US trigger", ChannelLineGrouping.OneChannelForEachLine ");
    pulseWriterTask.Timing.ConfigureSampleClock ("/ SampleClock/AI/Dev1", initParams.SamplingRateHz, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples, samplesPerPulse);
    pulseWriterTask.Stream.Buffer.OutputBufferSize = samplesPerPulse;
    pulseWriterTask.Stream.WriteRegenerationMode = WriteRegenerationMode.AllowRegeneration;

    pulseWriter = new DigitalSingleChannelWriter (pulseWriterTask.Stream);

    pulseWaveform = new DigitalWaveform (samplesPerPulse, 1, DigitalState.ForceDown);
    pulseWaveform.Signals [0]. The States [0] = DigitalState.ForceUp;

    analogReadTask.Control (TaskAction.Verify);
    pulseWriterTask.Control (TaskAction.Verify);

    From reading:

    analogReadTask.Start ();

    Start writing the digital pulse, however it will not start
    until the AI/SampleClock begins, so implicitly synchronizing the two tasks
    pulseWriter.WriteWaveform (pulseWaveform, true);

    analogReader.BeginReadWaveform (Totalechantillons, readerCallback, analogReadTask);

    Result (should be a sinusoid from end to end)

    Always seems to solve these problems, shortly after their validation.

    The problem has start the digital task AFTER the analog task. In the small delay between the two lines of code running, read analog had already begun, and so some of the impulses of the AI/SampleClock were missed by the task. The order of departure between the two tasks of switching solves the problem.

  • Writing to the nodes property DAQmx channel does not refresh the channel values

    Hi all

    I have a riddle.  I created a task programmatically in LabVIEW and programmatically added several analog input channels to the task.  It's easy.

    I wish that my user must be able to modify the individual channels within the task.  To this end, I created a set of screws that allow it to change the settings appropriate to the channel (for example, if it is a channel of thermocouple, it can change the type of thermocouple, CRC value, etc... If it is a strain gauge channel, it can change the coefficient of fish and so on).  These screws all works beautifully, like the VI where they live.

    The specific question that I have is that writing to the channel property nodes refreshes not communication channels.  See the images below.  The first image is the code that needs to define new channels of communication:

    Note that immediately after setting the property nodes, I read their values back, just to see what comes out back.

    The second image is an image of the public Service immediately after the execution of this VI.  Note that the values read from the channel property nodes did not updated to match to the set of values, but instead kept their initial configuration values:

    What I am doing wrong?  I fought this for a few days now and I'm stumped.

    Thanks for your time!

    Diane

    Hi, Diane.  A week ago, I also had a problem changing the channel properties (not sure that our situtions are exactly comparable, but...).  My 'solution' to want to change the appearance of the task was to just throw the original task and recreate all the elements of the task from scratch.

    I've not done enough 'experiments' to work when you can and cannot change, but am now much more cautious...

    Bob Schor

  • How controls are grouped in the front pannel "write basic series and Read.vi.

    I wonder how the controls are grouped on the front. An example is the "basic series write and Read.vi. The rocker of Scripture and the 'rope to wirte' are grouped in a raised area. I couldn't move individual out of this box control when I tried to arrange the controls. How they are grouped and how do I move them individually?

    Thank you.

    Select the Group of controls you want to Group/Ungroup and select the option group/ungroup as shown above.no wonder in this

  • TDMS read fails on the channels of different lengths

    Experts in LV...

    It seems that there is an error in the PDM to read functions.   I have a TDMS file generated by a built executable, this file has a group of 9 channels.  Channel 5 is data taken at a higher rate (IE 20 MHz) compared to the date in the other 8 channes (1 Mhz).  1 Mhz channels have 110 000 points, of course, the 20 Mhz channel has 2 200 000 points.

    If I read this by using the playback feature TDMS passing an array of the names of Channel 9.  It runs and returns a table of 9 waveforms with Y0 dt values correct and the correct.  However Channel 4 (the 5th string, that long) a garbage in the data for all points since the stop the 110 000 in other channels.  This trash is as numbers-10 ^ 304 and zero.  The first 110 000 points are correct.

    The file itself is not damaged.  If I read the file in a loop 1 channel at the time, and to build the table of waveforms I get all 9 waveforms and the correct data of variable length.  A trivial example to read the actual data file is attached with the data file (I hope that boards that leave be attached).  Intrigue albums has corrupted data to read it all-in-one and the bottom has the accurate version of loop data.  The waveforms of tables on the left show that corruption occurs precisely at the location 110 000 table where the other tables

    Yes, the data file is too long for the forums.  You can get the program file and the simple example data

    TDMS error.zip

    No Council or if it is a real mistake.  I don't see anything in the documentation that I'm doing something wrong.  The fact that it returns a length of valid array and no error code is leads me to believe it's a bug of LV.

    Hi sth.

    Thank you for your results. The issue you reported is for playback of several channels of scaling in staircase once. (PDM read on several channels in staircase of unscaling works very well). The .tdms file, you provided, including the scaling of the data.

    I can give you two workaround solutions. The first is what you mentioned, read each channel of scale inside a loop. The second is that always read all channels once, but rank all length strings in descending order. (The first is the channel with a maximum length; the last is the channel of a minimum length).

    Kind regards

    Jie

    OR R & D

  • Using the channel of the flaws with the reading of data

    Is it possible to substitute a model output when I want real data playback using the stim profile editor?

    I understand how to use the flaws of the stim profile editor to replace an unique to a single value output channel, but is there a way to "fault" of the channel to the data I read (.csv file)?

    Don't know how I missed that...  Exactly what I was looking for.

    Thank you
    Matt

  • How to select two channels and send to a series to write using the loop of the case

    I had a series write who have different orders to different situations. The same reading series should read both. How can I do it. Means that if I have a 500\r\nZ of the chain. I have a case, it should be - Zand 500\r\n other case + 500\r\n Z. But for boyh these cases must be read with a write serail. How can I do ITI. Help, please

    You can't guarantee that these two conditions would not be affected at the same time.  You will need to send a separate command for each condition.

    In addition, using EQUALS on floating points is dangerous.  You could never get the condition because a little really low could be turned off.

  • How to stop the series 'VISA read' the sends packets instead of bytes available.

    Dear Labvillians,

    Highlights:

    How can I stop series "VISA read" send me packages rather bytes?

    Background:

    I have a system which publishes series of 14 bytes on a semi-regular interval packets.

    At busy times, the producer of these these queues of data packets, effectively producing Super-paquets multiple of 14 times larger than 8 packages (112 bytes) bytes.

    My protocol handler is designed to process bytes, packets, or packets Super.

    Now, my request has multiple devices and the order of message processing is essential to the proper functioning.

    My observation is that read VISA waits until the end of a package / super package before moving the data to the application code. (See chart below)

    My expectation is that VISA read should give me bytes available, get too smart for itself and not wait for a package.

    .

    I noticed this on PXI, PC shipped, PSC and, more recently, cRIO

    I've experimented with Scan interface the cRIO rate, which helps to reduce the backlog of packages but don't decide to package under read byte.

    I understand that a solution is FPGA code write to handle and pass the bytes by R/T-FIFO, and there are some great examples on this site.

    Unfortunately, it does not help with FPGA devices not.

    I have also dabbled in the event based sequential reads, but he is evil on vxWorks devices.

    Any help is appreciated

    It is helpful to sometimes talk to yourself.

    I hope that is useful for someone sprinkle in the future

  • updated win XP to win 7 because I can't delete cannot read from the folder properties, so I can't update

    I downloaded the package from windows update, but now when I'm trying to update the system, the folder where things are stored is read only and I can't remove it (I tried attrib and it does not work either) and so I can't update. Help, please!

    Unlike all the intuitiveness, the 'Read only' attribute on a folder as read in the Properties menu has absolutely nothing to do with any attribute "read only".  Microsoft explains in the following article:

    "You can not view or change the read-only or the attributes of system files in Windows Server 2003, Windows XP, Windows Vista or Windows 7"
      <>http://support.Microsoft.com/kb/326549 >

    HTH,
    JW

  • How to read 4 similar channels at the same time with the MCC

    Hello

    with the mcc libraries and a card PCi-6034 classic (by calculation of the measure), I want to read 4 analog channels at the same time. I have a "scope" with 4 channels.  How to read 4 channels at the same time with the mcc?

    MF

    Hello MF.

    Thank you for using OR support.  I guess you try to program in LabVIEW.  Where exactly did you get the MCC library of?

  • Adobe *.pdf files can be opened in Internet Explorer, the default program can not be changed to acrobat reader in the properties or select 'Open with'

    Adobe *.pdf files can be opened in Internet Explorer, the default program can not be changed to acrobat reader in the properties or select 'Open with'. Cannot change the default program of Adobe in the file association list.

    I have the latest version of Adobe (9.3.3).

    Hello

    Don't forget to log on as an ADMINISTRATOR

    Use this utility to unassociate the. PDF and then re - associate with Adobe Acrobat Reader.

    How Unassociate a Type of Extension file in Vista and a utility to help
    http://www.Vistax64.com/tutorials/91920-unassociate-file-extention-type.html

    How to set default Associations for a program under Vista
    http://www.Vistax64.com/tutorials/83196-default-programs-program-default-associations.html

    How to associate a file Extension with a program Type in Vistahttp://www.vistax64.com/tutorials/69758-default-programs.html

    How to view and change an Extension of filename on Vista
    http://www.Vistax64.com/tutorials/103171-file-name-extension.html

    Restore the Type Associations by default Vista file extensions
    http://www.Vistax64.com/tutorials/233243-default-file-type-associations-restore.html
    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

Maybe you are looking for