How to extract of gain and offset by AnalogWaveform?

Hello

On a similar note to the posts at https://forums.ni.com/t5/High-Speed-Digitizers/How-are-offset-and-gain-in-the-niScope-fetch-function... and http://forums.ni.com/t5/High-Speed-Digitizers/Where-to-find-gain-and-offset-of-USB-5132-running-in-C... , I try to extract the file to output data from the gain and offset of our USB-5132 digitizer.  The file contains the event argument e.Result 'Fetch' and is sent to file in c# as follows:

binaryFormatter.Serialize (fileStream, e.Result);.

I want to read in the data file and to determine what the gain and offset of the digitizer.  I don't think I can use "Fetch" to read the file (is this correct)?  I'm reading as this waveform data:

AnalogWaveformrecords [] = binaryFormatter.Deserialize (fileStream) as AnalogWaveform[];

I think there should be a way to get the gain and offset because this routine can apparently do:

Private AnalogWaveformScaleRecords (AnalogWaveformrecords []) [];

Also, I tried to get the ScopeWaveformInfo like this:

Info [] ScopeWaveformInfo = binaryFormatter.Deserialize (fileStream) as ScopeWaveformInfo [];

but I got a null result in the structure.  This could have the right approach however?

Is there a way to get the gain and offset of the digitizer without using Fetch?  If not, is it possible to use Fetch reading data from a file, and then extract the gain and offset the usual way (from Fetch)?

Thanks for any thoughts on this.

Kind regards

Penny

I found a solution for this - get the gain and offset with extraction by using a different set of data.  Calibration seems stable enough to do this.

Thank you

Penny

Tags: NI Products

Similar Questions

  • Where is the gain and offset of USB-5132, running in c#?

    Hello

    I just read the post https://forums.ni.com/t5/High-Speed-Digitizers/How-are-offset-and-gain-in-the-niScope-fetch-function... on the gain and offset of the digitizer, to be used to rebuild data.  Like the other poster, I would also like to find the gain and offset of our USB-5132, but spin in c#.  Someone would be able to tell me the location of the gain and offset of our device, in the drivers c#?  (If I try to estimate myself parameters digitizer my reconstruction is OK but not perfect).  Thank you very much.

    Kind regards

    Penny

    All together.

    Info [] ScopeWaveformInfo = e.WaveformInfo;
    MessageBox.Show ("gain [0] is" + info [0]. Gain.ToString ());
    MessageBox.Show ("offset [0] is" + info [0].) Offset.ToString ());

    Thank you

    Penny

  • How to extract 1 ASA and put them in the new table

    Hello

    Can someone tell me how to extract a table and put in the new table. (eg. I have a table with no 1 to 1000, I would extract only 1, 30, 60, 90,...)  ?

    Please advise me.

    Thank you

    concerning


  • I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    Download button is disabled. What is the case for a free trial?

    Hey girijamg,

    I asked that you try to open a page because snippet Panel will be disabled until there is a html page is open in DW.

    Excerpt from Panel will be ready for the job that after any html page is open in DW.

    Hope it makes sense.

    Lalita

  • How to extract the number and other particulars

    I am trying to write a simple Select query that returns a list of
    Used EMPLOYEE_TABLE and in the second column names a count of the
    number of entries for each employee in the EMPLOYEE_ATTENDANCE table.

    Can anyone suggest how I might do this?

    For example:
    I have two tables EMPLOYEE_TABLE and EMPLOYEE_ATTENDENCE.

    EMPLOYEE_TABLE:

    emp_number emp_name
    1A
    2B
    3 C
    4 D

    EMPLOYEE_ATTENDENCE:

    emp_number emp_time
    1 8.00
    1 8.00
    1 8.00
    4 8.00
    4 9.00
    4
    4
    4
    3
    3
    3
    2




    Now my requirement is I want to retrieve the list of employees with emp_name and the number of days
    the employee came (ie the number of entries in the EMPLOYEE_ATTENDENCE table).
    Some, such as:

    A 3
    B 1
    A q
    D 5

    Select
    a.emp_name, b.emp_attendence
    Of
    Employee_Name has,
    (select emp_number, count (emp_number) "emp_attendence" of the employee_attendence by employee_number group) b
    where a.emp_number = b.emp_number;

    Kind regards
    Navneet

  • OpenScript: How to extract the StepName and StepResult to an external file

    Hello

    We try to capture the results of the tests in an external file (excel sheet) at the level of the group stage. Y at - there any built-in function/API that could be used to capture the StepName and the StepResult?


    Kind regards
    Nishant

    Hi Nishant,

    Try to use getStepResult () .getCommentString () and getStepResult () .getOutcome ().

    See you soon,.
    Jamie

  • How to extract the same song, several times using different bit rates or formats and store all the digital music files in WMP 12 default on the same HDD music library

    Using Windows Media Player 12 (w/under Windows 7), "can I ripping the same song, several times, using different bitrates & and/or formats and store all the digital music files in the music library by default WMP - 12, on the same hard drive?

    1.) #1 goal: tear up the same song repeatedly, w / "different rates" as a WMA file.

    2.) #2 goal: tear up the same song repeatedly, w / "different rates" as an mp3 file.

    3.) #3 objective: NOT to each subsequent copy (version) of the song, deleted & and/or replaced by the previous version of the song [even].

    4.) question Bottom Line Up Front--> is Windows Media Player 12 (included with the Windows 7 operating system) are able to achieve '#1 objectives; #2; & #3 above?

    5.) details/example: I want to tear the piece "Maria Maria by Carlos Santana" to my laptop as a Windows Media Audio [WMA] file.  In addition, I would like to rip the song 'Maria Maria' three several times with 3 different bitrates in format WMA; and, as an MP3 file.  Therefore, my final result wished (after the extraction process), will take place the four 4 audio files split up as follows: (a) 'Maria Maria by Carlos Santana'--> Format: file WMA; Ripped @128 Kbps bitrate.  (b) ' Maria Maria by Carlos Santana'--> Format: file WMA; Ripped to the "Variable bit rate; (c) ' Maria Maria by Carlos Santana'--> Format: file WMA; Ripped commissioning "Lossless." and (d). 'Maria Maria by Carlos Santana'--> Format: MP3 file. Ripped @256 Kbps bitrate.

    6.) my preference: I do NOT want to rename the file (s). {for example, 'Maria Maria by Carlos Santana' renamed/changed for--> "Maria_Maria_by_Carlos_Santana_128kbps.wma",...} 'Maria_Maria_by_Carlos_Santana_256kbps.mp3 '; etc.}.  In addition, I am not concerned about the additional disk space that will be consumed after multiple copies of the same song with different speeds of transmission and different formats.

    7.) my experience w / Windows Media Player 10 (w / the operating system of Windows XP): using WMP - 10, my goal (s) described above is not a problem at all.  Simply insert the CD purchased by Carlos Santana, containing the song "Maria Maria"... Select the desired Format (WMA; WMA VBR; WMA Lossless; or mp3)... Select the desired flow rate (WMA... 128/160/192kbps_mp3: 128/192/256/320 kbit / s; etc.) ; and click on the "RIP" button to start the copy process on the hard disk of of Carlos Santana's "Maria Maria".  This process (w / WMP-10) would result in having the same song, copied on the hard disk, with levels of quality different "audio" (via the different bit rate settings); regardless of the format (MP3/WMA) which was chosen.

    8.) my experience w / Windows Media Player 11 (w / the operating system of Windows XP): using WMP 11, to described above of my objective (s) could not be reached e-a-s-i-l-y.  The problem with WMP - 11 - in short - which was after the desired selection "Rip settings" tab 'Options' of WMP - 11 (i.e., Format & Bit Rate) and heart-wrenching piece wanted to {'Maria Maria by Carlos Santana'} a moment later/second, WMP11 remove / would crush the previous version of the song [even].  Therefore, the program would NOT allow the user to have multiple copies of the same song on the hard drive of the PC; which obviously restricts a user to have the freedom to choose what level of quality digital audio, they prefer to listen to.

    9.) the ability to have multiple copies [at my descretion] of the same song (on my hard drive) with different bitrates and formats in my music library, is important for me because it has a direct impact on "how I enjoy MY music ', and in what form (audio quality), I choose to listen to my music.  {For example, when I exercise and listening to my camera, digital audio player (Zune), a song ('Maria Maria by Carlos Santana'), will usually be torn off at a lower rate due to the unit of capacity reduction of storage - compared to the storage capacity of notebook PCs/desktop/external hard drives PC.}  However, when I listen to my music through my home cinema or entertainment system (which contains a hard disk dedicated with a large storage capacity), I prefer to load the entertainment system with digital music files that have been ripped to WMA... with the bit being rate-setting is for the: settings "WMA Variable Bit Rate" or "WMA Lossless.

    10.) there you have it.  This is my first post in this forum.  I hope that [detailed] explanations, will be sufficient to encourage these "with knowledge & the hands on experience" using Windows Media Player 12 (as well as with WMP-10/WMP-11 respectively), by providing a [step] "How-to"... "solution to my situation.  It would be highly appreciated.  I'm looking forward-'the solution' - and relevant suggestions & and/or community feedback regarding my request for assistance.

    * Thank 'All' (that would) in advance... For your time & Assistance *.

    Certainly, you can, but I would say that they be in different folders, for your convenience as well as Windows.  You can create one for each debit/format, then you will know who is who.

    In Windows Media Player, on the toolbar, select Tools, Options, Rip, and then select the flow you want first, rip music, then change the folder (higher on the same tab) and rip again... and so on and so forth.

    When you are at home on your home theater, you can use the 320 bitrate folder, when you transfer to the Zune, you can use one of the lower bitrate files (although I personally tear it up to 320 and let the Zune reduce as he wants, even with the iPhone via iTunes, hard drive space is not really a problem here) my server has several hard drives, and I can always add more if and when space is low!

  • How to download the app and extract the brother .cod files that it contained by program

    Hello

    I want to download and install a new version of my application programmatically.  I read the messages where all the .cod files application including .sibling .cod files are downloaded separately.  Is it possible to simply download the application file, for example Main.cod and extract all the brother .cod files contained (hand - 1.cod, hand - 2.cod)?

    Thank you

    Not sure that understand this issue.  Given that you have already unpacked all the brothers and sisters, then you know how at the server level and can provide information, your application can query.  Your application can read the jad file, or as the naming convention is well known, your application could try to get cod files with a suffix growing until it breaks.  Is that what you were asking?

  • Hi, I want to know how to extract and save the text highlighted on Acrobat Reader.

    Hi, I want to know how to extract and save the text highlighted on Acrobat Reader.

    Hi Eli Marto,

    I'm sorry, but it is not possible to extract text from a PDF file using the player.

    It can be done using Adobe Acrobat.

    Ref: export the comments AND highlighted text?

    Kind regards

    Ana Maria

  • How to extract a ttf from file file have this software? Please, help me and show the steps.

    Hello

    Please suggest me how to extract the file 'TTF' to a 'HAVE 'file with the help of the adobe Illustrator?

    Thank you

    Ankit Chugh

    988885156

    [email protected]              

    Ankit,

    "" "" "" but now let's look at the other face, assuming that we do not have the fonts in our machine and we will always look for file HAVE, so we have to buy these fonts, am I right on this point, I want to just be confirmed in this regard.? "" » »

    Yes, this is the case.

    You can use the file HAVE to is to establish the names of the fonts, as it appears in I like you did as shown in your #10 post, so you can buy (or just download them if they are free fonts).

  • Please addvise how to extract a blue sky of a property photo and place it on a picture of different property

    Please advise how to extract a blue sky of a picture of the property and place it on a picture of different property

    Concerning

    Tony

    See here:

    How to replace the sky in a Photo with Photoshop

  • How can I extract some pages and create the new document

    How to extract only certain pages of a document and create a new one with them?

    Hi honeybd744,

    You will need Acrobat to extract pages from PDF form and make a new PDF from these pages. If you do not have Acrobat, we invite you to try free for 30 days. Please visit www.adobe.com/products/acrobat.html for more information.

    Best,

    Sara

  • How to extract the signal from the waveform of my power level designated?

    Hi all

    How can I extract the signal of the waveform accroding to the power level? I read the Trigger & Gate .vi, but this vi retrieves the signal duration. I want to extract the signal depending on the power level.

    As shown in the following figures, the signal I want to deal with is between 130000 to 140000, if I Zoom, I can see the useful signal is between 135400 to 138200. The question is how to extract the signal in the area?

    I tried the sub_NoiseEst_And_Chop_Shell.vi in the example of Packet_based_link also, but this Subvi seems to be a bit slow. Can someone give me the best advice? Thanks in advance!

    I'm working on something similar, but have not had time to fully develop.

    My idea was to use an envelope detector (low pass filter) and then use a detection of energy VI on the envelope.

    Here is where I left

  • How to extract data from waveform

    I have prepared a VI for acquisition and analysis. I have data from NI 9203 manuplate (power source). I have to use a lot of channels and more than 1 sample of a channel so Daqmx read vi out of waveform module and it is not a choice for table 1 d. How can I this form to scale data and display 2 diffferent scale given in a graphic waveform?

    The DAQmx Read returns an array of waveforms.  Each waveform is t0, dt, Y components and optional attributes.  See the palette of waveform for tools to extract the components and build waveforms.

    To make your scaling that you do these things:

    1. Select the waveform you want to scale by using the Index table or index of waveform Array.vi.

    2. download the component Y of the selected waveform.

    3. resize it if Y' = m * Y = b, where is the original painting and the Y' is the matrix to scale.  You can use the standard digital functions for * and + because they work for arrays and scalars.

    4 build a new waveform using Y'.

    Lynn

  • Need urgent help! In my Vision Application, how to extract the parameters of the geometric model specified curve was generated by the template editor OR?

    I have an application of machine vision, in which the geometric pattern match technique was used to find the target in the images of type variant.

    as we know, we do a geometric model by model OR editor in the editor we can adjust the parameters of the curve specified settings to get the desired curves and we derive the custom box to ignore during the match. then we save the use of the same model in our application of vision.

    Now my question is coming. When I program my request for the geometric game. I have specified the parameters of the curve for the entrance of the IMAQ Advanced Setup learn ringtone 2, of course, I have to adjust this identical to the model, but I don't know how we extract the geometric model. I tried all the methods, for example, I can read data custom, IMAQ get characteristics of the geometric model(it's just for the basic functionality? so is there even a VI based edge?), even at anasys PNG file formats! But I can't read the info of the geometric model by myself!

    It is also illogical to adjust the CURVE SETTINGS manually again for the " IMAQ Advanced Setup Learn Pattern 2" after that I already have in the template editor OR!

    Hello

    Why do you need to specify the curve settings once again, if you have already built a model using the template editor? You don't need to use "IMAQ Advanced Setup learn geometric model 2 VI" to find games (see the attached example).

    You can wire the 'curve settings' control to 'IMAQ configuration geometrical game model 2 VI', but the values are not used if wire you a Boolean true to the node "use learning curve settings" (it's like that by default). To prove it, I enclose a small program with pre-created model (using the template editor) for a geometrical alignment. The model and the test of three images are also included.

    Try changing the settings of the curve with the 'use know curve settings' enabled, and you will see the corresponding score remains the same. Disable the Boolean control, then try to change the curve settings.

    Also take a look at the detailed help for "IMAQ configuration geometrical game model 2 VI", specifically the "learning curve parameters of use."

    I hope this helps.

    Best regards

    K

Maybe you are looking for