Extract random portion of signal

If I am loading a signal from an LVM file, is there a way to extract a random portion of the signal?  Just some background, I will be loading multiple files in through a for loop/case structure, and each of the files may be of different lengths, so I won't know ahead of time how long the signal is.
thanks,
George
Solved!
Go to Solution.

LVM includes the number of points in each segment header.  You can get this by reading and parsing the header yourself.  The spec is located here.  The Express VIs presume that, being an ASCII file, LVM files are relatively small.  As such, the entire file is read into memory by the Express VI.  You can use the array or waveform VIs to easily extract a portion of this.
If you have huge files and this creates a memory issue, you can parse the file yourself.   Look for the ***End_of_Header*** line.  The next line is the column headers, followed by the data, one item per line.  The bad news is that lines can be a variable number of characters long.  This can make searching a long file for lines a very slow process.  One option is to read the file in 65,000 byte chunks and process these serially to get the data you want (this is what LVM does internally to convert from ASCII to data).
This account is no longer active. Contact ShadesOfGray for current posts and information.

Similar Messages

  • How do I extract a portion out of a picture?

    how do I extract a portion out of a picture? I need to be able to cut out cows in a field and place them on the moon instead.
    Thanks

    Hello Halle,
    You can extract the audio form a movie clip by selecting the clip that you want the audio from then go to the drop down menu Modify > Detach Audio and then you will see the audio in green and then can move it to where you want it to be. Take a look at the article below for more information how to extract the audio from a video clip. Let me know if this helps
    iMovie (2013): Add only the audio from a video clip
    http://support.apple.com/kb/PH14710
    Regards,
    -Norm G. 

  • Extract a portion of a video file

    I want to extract a portion of an existing video file. A movie is an hour and I would like to take the five minutes 0:10:00 to 0:15:00. The film does not need to be / should not have to be recoded. Is that possible? thx
    Windows 8 x64, Premiere Elements 11

    My understanding of your question is that you want to save a 5 minute section to a new file... correct?
    Some reading that may help
    Importing Video http://forums.adobe.com/thread/1065281
    -and project settings http://forums.adobe.com/thread/1112086
    Saving & Sharing http://forums.adobe.com/thread/1051093
    Sharing for Computer http://forums.adobe.com/thread/1058237
    Steve's Basic Training Tutorials... steps are the same for several versions
    -http://forums.adobe.com/thread/537685

  • In full xml i need to extract some portion of xml and i need to store

    Hi this is the xml i will get i need to store from olife tag please suggest some idea how to do
    <TXLife>
    <UserAuthRequest>
    <UserLoginName>UserId</UserLoginName>
    </UserAuthRequest>
    <TXLifeRequest>
    <TransRefGUID>0099962A-BFF3-4761-4058-F683398D79F7</TransRefGUID>
    <TransType tc="186">OLI_TRANS_CHGPAR</TransType>
    <TransExeDate>2008-05-29</TransExeDate>
    <TransExeTime>12:01:01</TransExeTime>
    <InquiryLevel tc="3">OLI_INQUIRY_OBJRELOBJ</InquiryLevel>
    <InquiryView>
    <InquiryViewCode>CU186A</InquiryViewCode>
    </InquiryView>
    <ChangeSubType>
    <ChangeTC tc="32">Update / Add Client Object Information</ChangeTC>
    <!--TranContentCode tc = 1 (Add)
    tc = 2 (Update)
    tc = 3 (Delete)
    -->
    <TranContentCode tc="1">Add</TranContentCode>
    </ChangeSubType>
    <OLifE>
    <SourceInfo>
    <SourceInfoName>Client Profile</SourceInfoName>
    </SourceInfo>
    <Activity id="Act1" PartyID="Party1">
    <ActivityStatus tc="2">In Progress</ActivityStatus>
    <UserCode>123456</UserCode>
    <Opened>2010-08-17</Opened>
    <ActivityCode>CP10001</ActivityCode>
    <Attachment>
    <Description>LastScreenName</Description>
    <AttachmentData>CP Create</AttachmentData>
    <AttachmentType tc="2">OLI_ATTACH_COMMENT </AttachmentType>
    <AttachmentLocation tc="1">OLI_INLINE </AttachmentLocation>
    </Attachment>
    <OLifEExtension VendorCode="05" ExtensionCode="Activity">
    <ActivityExtension>
    <SubActivityCode>CP20001</SubActivityCode>
    </ActivityExtension>
    </OLifEExtension>
    </Activity>
    <Grouping id="Grouping1">
    <Household>
    <EstIncome>90000</EstIncome>
    </Household>
    </Grouping>
    <Party id="Party1">
    <PartyTypeCode tc="1">Person</PartyTypeCode>
    <EstNetWorth>250000</EstNetWorth>
    <LiquidNetWorthAmt>120000</LiquidNetWorthAmt>
    <EstTotAssetsAmt>400000</EstTotAssetsAmt>
    <Person>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <MarStat tc="1">Married</MarStat>
    <Gender tc="1">Male</Gender>
    <BirthDate>1965-05-07</BirthDate>
    <EducationType tc="3">Associate Degree</EducationType>
    <Citizenship tc="1">USA</Citizenship>
    <NetIncomeAmt>70000</NetIncomeAmt>
    <DriversLicenseNum>D123456789</DriversLicenseNum>
    <DriversLicenseState tc="35">New Jersey</DriversLicenseState>
    <ImmigrationStatus tc="8">Citizen</ImmigrationStatus>
    <DriversLicenseExpDate>2012-05-25</DriversLicenseExpDate>
    <OLifEExtension VendorCode="05" ExtensionCode="Person">
    <PersonExtension>
    <NoDriversLicenseInd tc="0">False</NoDriversLicenseInd>
    </PersonExtension>
    </OLifEExtension>
    </Person>
    <Address>
    <Line1>125 Finn Lane</Line1>
    <City>North Brunswick</City>
    <AddressStateTC tc="35">New Jersey</AddressStateTC>
    <Zip>08902</Zip>
    </Address>
    <Phone>
    <PhoneTypeCode tc="1">Home</PhoneTypeCode>
    <DialNumber>732456789</DialNumber>
    </Phone>
    <Phone>
    <PhoneTypeCode tc="2">Work</PhoneTypeCode>
    <DialNumber>732987654</DialNumber>
    </Phone>
    <FormInstance id="Form1">
    <FormResponse>
    <ResponseText>No</ResponseText>
    <QuestionType tc="1009800001">Is the Client/Owner with an interest in the account either: (A) a senior military, governmental, or political official in a non-U.S. country, or (B) closely associated with or an immediate family member of such official?</QuestionType>
    </FormResponse>
    <FormResponse>
    <ResponseText>Yes</ResponseText>
    <QuestionType tc="1009800005">I am familiar with the product(s) being sold and have determined proper suitability. For deferred variable annuity purchases only: I have reasonable grounds for believing that the recommendations for this customer to purchase/exchange an annuity is suitable on the basis of the facts disclosed by the customer as to his/her investments, insurance products and financial situation and needs.</QuestionType>
    </FormResponse>
    </FormInstance>
    </OLifE>
    </TXLifeRequest>
    </TXLife>
    i need to get output like this
    <OLifE>
    <SourceInfo>
    <SourceInfoName>Client Profile</SourceInfoName>
    </SourceInfo>
    <Activity id="Act1" PartyID="Party1">
    <ActivityStatus tc="2">In Progress</ActivityStatus>
    <UserCode>123456</UserCode>
    <Opened>2010-08-17</Opened>
    <ActivityCode>CP10001</ActivityCode>
    <Attachment>
    <Description>LastScreenName</Description>
    <AttachmentData>CP Create</AttachmentData>
    <AttachmentType tc="2">OLI_ATTACH_COMMENT </AttachmentType>
    <AttachmentLocation tc="1">OLI_INLINE </AttachmentLocation>
    </Attachment>
    <OLifEExtension VendorCode="05" ExtensionCode="Activity">
    <ActivityExtension>
    <SubActivityCode>CP20001</SubActivityCode>
    </ActivityExtension>
    </OLifEExtension>
    </Activity>
    <Grouping id="Grouping1">
    <Household>
    <EstIncome>90000</EstIncome>
    </Household>
    </Grouping>
    <Party id="Party1">
    <PartyTypeCode tc="1">Person</PartyTypeCode>
    <EstNetWorth>250000</EstNetWorth>
    <LiquidNetWorthAmt>120000</LiquidNetWorthAmt>
    <EstTotAssetsAmt>400000</EstTotAssetsAmt>
    <Person>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <MarStat tc="1">Married</MarStat>
    <Gender tc="1">Male</Gender>
    <BirthDate>1965-05-07</BirthDate>
    <EducationType tc="3">Associate Degree</EducationType>
    <Citizenship tc="1">USA</Citizenship>
    <NetIncomeAmt>70000</NetIncomeAmt>
    <DriversLicenseNum>D123456789</DriversLicenseNum>
    <DriversLicenseState tc="35">New Jersey</DriversLicenseState>
    <ImmigrationStatus tc="8">Citizen</ImmigrationStatus>
    <DriversLicenseExpDate>2012-05-25</DriversLicenseExpDate>
    <OLifEExtension VendorCode="05" ExtensionCode="Person">
    <PersonExtension>
    <NoDriversLicenseInd tc="0">False</NoDriversLicenseInd>
    </PersonExtension>
    </OLifEExtension>
    </Person>
    <Address>
    <Line1>125 Finn Lane</Line1>
    <City>North Brunswick</City>
    <AddressStateTC tc="35">New Jersey</AddressStateTC>
    <Zip>08902</Zip>
    </Address>
    <Phone>
    <PhoneTypeCode tc="1">Home</PhoneTypeCode>
    <DialNumber>732456789</DialNumber>
    </Phone>
    <Phone>
    <PhoneTypeCode tc="2">Work</PhoneTypeCode>
    <DialNumber>732987654</DialNumber>
    </Phone>
    <FormInstance id="Form1">
    <FormResponse>
    <ResponseText>No</ResponseText>
    <QuestionType tc="1009800001">Is the Client/Owner with an interest in the account either: (A) a senior military, governmental, or political official in a non-U.S. country, or (B) closely associated with or an immediate family member of such official?</QuestionType>
    </FormResponse>
    <FormResponse>
    <ResponseText>Yes</ResponseText>
    <QuestionType tc="1009800005">I am familiar with the product(s) being sold and have determined proper suitability. For deferred variable annuity purchases only: I have reasonable grounds for believing that the recommendations for this customer to purchase/exchange an annuity is suitable on the basis of the facts disclosed by the customer as to his/her investments, insurance products and financial situation and needs.</QuestionType>
    </FormResponse>
    </FormInstance>
    </OLifE>
    Edited by: LRAJESH on Oct 21, 2010 1:50 AM

    What have you tried? I know previous links that have been supplied to you on other questions have shown examples of extracting XML fragments from an XML document. Also, which version of Oracle (4 digits).

  • Iam developing an applicatio​n using NI-DAQ(AT-​MIO-16E)ca​rd on vc++ environmen​t.My requiremen​t to extract amplitude of AM signal(1kh​z(4step waveform) on 70Mhz carrier).M​r Ben suggested about sampling.

    My application is having a device that takes 1khz and 500Hz clock and 70Mhz carrier.And generates AM signal(1khz(4stepwaveform)on70Mhz).
    each step of 250 micro sec.
    Iam using couter0 and 1 outputs of NI-DAQ card for generating clock.
    I need to generate a clock through card and syncronously i should acquire the 4 step levels
    of incoming AM signal(1khz(4 step) on 70Mhz)in each cycle.And i should generate error voltage like e1=(step1-step3) volts
    e2=(step2-step4) volts
    for each cycle i need to generate e1&e2
    I am planning to use
    DAC0 and DAC1 pins on ni-daq card for sending errorvoltages.
    For implementation of whole thing.what
    ni-daq functions should i use.
    I am planning to use DAQ_Rate and DAQ_Start functions for sampling the incoming signal.
    counter functions for generating clock.
    Mr Ben suggested about sampling AM signal.
    that is about 40khz.10 samples for each step.
    I need some help regarding how to interface the incoming signal(AM signal) with the card.
    could it possible to connect signal directly to ni-daq card one of the analog input channels?.
    regarding sycronization of clock and sampling of
    incoming signal please help me.
    thank you for ur help

    Your two best resources for developing any Data Acquisition application are the manuals for your board and the examples shipped with NI-DAQ. Your board's manual should have information regarding wiring. That is, it has a section dedicated to how to connect signals to your board.
    The examples shipped with NI-DAQ show several Input/Output methods. These should give you a general idea (if not a specific application to your project) of how a Data Acquisition system would look (AI config, start, read, close, etc). These examples can be found in the \examples directory.

  • Random strength in signals

    I've been having my wireless router for about 6 months already, yet I've been encountering this odd problem for the past month. For 5+ months my GIGA-BYTE Wireless LAN card Status would be good(best status), and the signal strength would be at Excellent(5/5 bars) as well. But for some odd reason my signal strength for the past 2 weeks would just be Excellent during start up for about 2 minutes, then it would drop to low-good afterwards. Last week my friend had to go on my comp to transfer a few of my games onto a external HD that he brought into my house(I wasn't at home at the time). Being the tech-guy he is, when I came home(he left about a half an hour before I came home)my internet signal became it's original self =D(100% Excellent signal at all times, Wireless Status: Good). Just 2 days ago the horror came back, it's back to low-good signals as well as week-normal Wireless-card status. Is there anything I can do to fix this? And what in fact did my friend do to restore my signal strength? -By the way the "low signal strength, and the low-good wireless card status" speed is quite impressive, but it's not as near as fast as it's previous self. -My internet would disconnect a few times as well.
    Message Edited by ntrisKKT on 06-15-2008 10:48 PM

    Check the adapter in any other computer & then see if it works or not ...
    Also you can try upgrading the drivers of the adapter & observe the connection ....

  • Best way to extract a portion of audio from a DVD-Video ?

    Thanks

    This VOB-EDIT ? http://www.videohelp.com/tools/VobEdit
    I'm on mac, any alternative ?
    Yes it comes from a DVD Recorder. 

  • Retrieve/Extract a portion of a string

    In a table I have a field with formula data. What I need to do is locate the “IF|” in the formula field and retrieve the data between the “IF|” and the next “|“ following the “IF|”.
    Formula data:
    IF-.16
    (1.03*IF)
    ((IF)+.0959)
    Expected results:
    PIPE Xx Kk ML
    OLO Kk
    TEN LA 500
    I am using SUBSTR and INSTR but have only been partially successful. So far I have been able to separate the remainder of the data after the IF| using code below but have been unable to separate the data between the two |.
    select substr(formula,1,instr(formula,'IF|')+2), substr(formula, instr(formula,'|')+1)
    I am working in 9i. Can someone help with this problem?

    One solution could be
    SQL> select x,
      2         substr(x, instr(x, '|',1,1)+1, instr(x, '|',1, 2)-instr(x, '|',1, 1)-1)
      3  from (
      4  select 'IF-.16' x from dual union all
      5  select '(1.03*IF)' from dual union all
      6  select '((IF)+.0959)' from dual
      7  )
      8  ;
    X                                 SUBSTR(X,INSTR(X,'|',1,1)+1,INSTR
    IF-.16    PIPE Xx Kk ML
    (1.03*IF)        OLO Kk
    ((IF)+.0959) TEN LA 500
    SQL>

  • I need to extract a portion of a string

    Hi, I have a string like "abcdef-ghik". I need to return "ghik" only. I have vb background and I could use Substring and Instring functions to do that. How can this be done in Java?

    Hi, I have a string like "abcdef-ghik". I need to
    return "ghik" only. I have vb background and I could
    use Substring and Instring functions to do that. How
    can this be done in Java?
    String extractPortion(String original) {
      return "ghik";
    }Now, obviously, that's a really stupid solution. But it meets the very vague requirements you provided.
    You've already been given an answer based on a reasonable guess about what you want, but really you should be more clear.
    Will it always be "start-end" and you want everthing after the "-"?
    What if start or end contain a "-"? Will that ever happen, and if so, what do you do?
    Or is it not the "-" that matters but some character index? Do you just want the last 4 characters?
    If you can't specify your requirements clearly, it will be impossible for you or anybody else to write code that correctly meets them.

  • Extraction of a portion from graph

    I have to extract a portion from Graph .
    I know the starting and ending point in x-axis and i have to know the y-axis values.
    I have used "extract a portion of signal " express VI  but am not getting the values correctly. 
    There is a picture with this, in which the portion in red box is the part i have to extract.
    @nk
    Solved!
    Go to Solution.
    Attachments:
    Untitled.jpg ‏57 KB

    Hi uday ,
    Thank you for a fast response .
    The VI in the above link shows how to extract a portion of graph with use of cursors. In my VI the user won't do anything . Everything should happen automatically.
    First of all.
    1.I have detected the peaks in my graph using a peak detector VI. This process have given me the position of peaks in terms of time (i.e x-axis units).
    2. I have added a constant offset time like 0.005 sec to each time value and then I provided that value as the starting point of extraction .
    3.The length till which the extraction should be done is also kept constant.
    4. I just need the amplitude vales of that particular part so that I can use them for my further calculations.
    For clear information I am adding  a picture of my graph in which the areas I have to extract is perfectly marked inside red box.
    @nk
    Attachments:
    Untitled.jpg ‏57 KB

  • Extract a signal portion

    Hi,
    I am new to Labview and trying to extract a portion of a signal. I can display the analog signal catured by an A-D card (Signal A)connected to PCI slot. I can capture another signal from the parallel port (Signal B) which I want to use for timing. Its a digital signal with two levels. I want to capture a portions from Signal A based on the time duration from Signal B and store them in a 2-D array or a matrix, so that I can use it as an image for further processing.
    1. how to implement a counter to count number of pulses from signal A? I can convert it for boolian output if necessary.
    2.how can I use that counter to extract portions from Signal B?
    eg;  extract signal from pulse 1 to 10 and store them in a first row of 2-D array
    extract pulse 21 to 30 and store them in the second row of the same array and so on.
    Or is there any other way to cordinate these two signals so that I can save the reqiured samples from signal A to a 2-d array?
    A to D card is not from NI and I cannot use DAQ blocks.
    Any help would be highly appreciated. If you can provide VI block diagrams it would be better as I am not that familiar with Labview. This is my first application in Labview.
    Thanks and regards,
    Ravi.

    Hi Fana,
    at first you could use a simple "greater or equal" function to find all parts of the waveform that exceed your limit. Then splitting the array should be easy...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Extract automatically a portion of a signal

    Hi, i'm trying to extract a portion of a signal automatically. I've extract it manualy using 2 cursors. I'm interested how can i point the cursor using an indicator. Basically, i have a signal and i want to find the index (index 1) when the signal grows above 0.01, and also when the signal goes below 0.01(index 2). and cut the part before index 1, and also cut the part after index 2. I will attach  a photo to be more clear.   
    Thanks. 
    Attachments:
    manually extraction.JPG ‏50 KB

    Hi Fana,
    at first you could use a simple "greater or equal" function to find all parts of the waveform that exceed your limit. Then splitting the array should be easy...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Program terminates at random (No signals raised, no exit(),no crash report)

    My program will occasionally terminate at random. No signal is ever raised, no crash report is ever generated and the only place exit() exists in the source code is in the signal handler (which is never called). This is getting somewhat frustrating as I cannot replicate the issue, It happens completely at random (or what appears to be random). Any idea what could cause this?

    Also, you should post more details, such as app type (iOS/OS X), what you're doing, compiler warnings/errors, and details about your system (hardware/software). Click on "My Public Profile" to the right (after you log in) to begin.
    *Check out my blog—Cups of Cocoa*

  • Extracting portions of the timeline from iMovie to create a 'Sound File'

    Hello
    I recently used my Cannon GL2 as a field recorder to record 16 bit audio sound effects.
    I'd like to extract certain portions of the timeline to create various 'Sound Files' which will be used later (as sound effects), in either iMovie, or FCE HD.
    In iMovie HD, the only method I'm familiar with to extract a portion of the timeline to a 'Sound File', is to FIRST export that portion to a Quicktime File. Then I use 'Sound Studio 2.2.4' to import the Quicktime File. In Sound Studio, I can then create either an AIFF File, or Wav File.
    From there, I open iTunes, and import the Wav File. Now I convert that Wav File to an MP3 (if I need to compress the size of the file).
    I know I can import Raw DV Video Files (Captures), into Garage Band, but then I can't export that edited project into a Sound File.
    But I do know I can use Garage Band to edit (EQ), a portion of the timeline, then Export that portion (as I explained above). But I'm still going through some extra steps .....
    With all I'm mentioned, perhaps I need to get another software program in order to eliminate a step on my way to exporting a portion of a Video timeline from either iMovie, or FCE, and get straight to creating a sound file suitable for later import back into FCE, or iMovie?
    Thanx for your comments
    Mike

    Hey Piero
    Comestah?
    I'm an Italiano too My Granparents are from Bari
    Well yes thank you - that certainly answered part of my question
    Now I wonder if I can extract just a 'PORTION' of the timeline? I tried to insert division points without actually cutting out all the unwanted stuff, and highlighted just that portion, but the Audio Extract process reverts back to extracting the ENITIRE timeline. So I guess I'd have to actually cut and delete all the unwanted parts, then 'save as' to that NEW iMovie project reflecting just that edit in order to extract JUST that audio piece?
    I wonder if the process is more precise in FCE?
    Gracias
    Mike

  • Signal Extraction & Making time delayed copy

    I am considering there are three signals in  my environment but I am interested in getting the signal having frequency 4 KHz.I am adding a Band Pass filter to extract that particular tone and making a delayed copy.Unfortunately I am not getting the output.Check my VI.Suppose if I have unknown signals in the environment and and I want to find out how many of them are are there and what are their frequencies, can we find ?can we visualize independently?
    Attachments:
    Signal Extraction and Time delayed signal.vi ‏144 KB

    Hello,
    I apologize for the confusion of what you were looking for.  I was able to offset the X-Axis of one set of data using a XY Graph instead of just a Waveform graph.  See the attached VI.
    Regards,
    M. Whitaker
    ni.com/support
    Attachments:
    Offset the X-Axis for One Set of Data.vi ‏144 KB

Maybe you are looking for

  • Sync no longer working

    The Players: Pre2, Touchpad, Exchange 2010, and apparently other phones too (no idea what, but at least one is a Droid). Some phones do sync, so it is not universal. It also is not limited to one OS as at least one droid is working. The Problem: Ever

  • JSP is not refreshed

    Hi, After I changed the JSP program and reload the page from the browse, I still get the old image. What's the problem? Thanks.

  • Can this router fall back to 3g if 4g is not available?

    We recently purchased this router to work remotely. However some of the places we are at have only 3G service. Phone seem to work with 3G receiving data, but our 4G LTE router will not connect. I've looked through the setting in the router, but can't

  • Regenerate decision tree for transfering to unicode system.

    Hello, We upgraded the system to a unicode system and we're getting runtime errors using PB infotypes (pb20/pb30) for the generated forums in the decision tree. The error thrown is unicode compatability, If I make a "false" change in a certain decisi

  • Popping up in small window

    Hi all, Lifetime newbie award winner Phil here! I want a link to open in it's own new window. I can do that no problem. But I want that window to be a set size, say 400*500 and preferably without the users browser toolbars included, if at all reasona