unscaling-scaling data waveform using coefficients of device

Hi all
I want to save data of TDMS waveform in i16. I use daqmx and material of the series M. these devices use several coefficients of device (for each channel!) to the scale of measurement data. Can someone tell me how to use these values of polynomial to turn my double waveform in an exact i16 waveform? (and vice versa)
Thank you!
AART-Jan


Tags: NI Hardware

Similar Questions

  • Access blackBerry Smartphones to backup data without using a phone smart blackberry. How does this work?

    I had a Blackberry 9700 and I made a back-up via Blackberry Protect App. My Blackberry is stolen and I want to transfer all data (approx. 600 phone numbers) from the back-up to my PC or to my Samsung Galaxy SII that I can borrow temporarily from a friend. Bottom-line: I need access to my back-up data without using a Blackberry device. How does this work?
    

    Hey Sourbag,

    Welcome to the community of BlackBerry Support Forums.

    You will need a BlackBerry to access these backup information. There is no way around it in BlackBerry Desktop Software.

  • How to extract data using bluetooth other device...

    Hi all

    First, I describe my problem:

    I want an application that extract the xml data in ECG device using bluetooth after accessing this data make some calculation and send it to the server... I am able to serach all the device compatible bluetooth after that, I am also able to connect from the particular device... (Now I use bluetooth Simple device as phone, pc or anything which is Bluetooth)

    Now the problem is... After connection of the device, I want to go get a (for example an image or text document.) file of the device connected using my camera...

    can anyone know how to extract data or file to another device that is currently associated with my camera... using BlackBerry device...

    Please help me to overcome this problem...

    Currently, I am working with Blackberry.6

    As suggested, I would recommend you try the samples provided.

  • OR PCI-6542: Creation of dynamic waveforms using the HSDIO library

    Hello!

    I have problems to understand how to create waveforms using the HSDIO library to run on a card PCI-6542. I need to create a program that activates a channel for 12.5 microseconds, waiting for a while (i.e. 100 samples) and activates another channel to 12.5 microseconds.

    This program must be used in a Multielement ultrasound system.

    Here the example of dynamic generation program that transforms the channels 0-2 on 1024 samples.

    /************************************************************************
    *
    * Example program:
    * DynamicGeneration.c
    *
    * Description:
    * Generates a simple model on the specified channel.
    *
    * Pin connection information:
    * None.
    *
    ************************************************************************/

    / * Includes * /.


    #include "niHSDIO.h".

    / * Sets * /.
    #define WAVEFORM_SIZE 1024

    int main (void)
    {
    ViRsrc deviceID = 'Dev1 ';
    ViConstString channelList = "0-2";
    ViReal64 sampleClockRate = 50.0e6;
    DataWidth ViInt32 = 4;

    ViUInt32 waveformDataU32 [WAVEFORM_SIZE];
    ViConstString waveformName = "myWfm";
    ViInt32 timeout = 10000; / * milliseconds * /.

    ViSession vi = VI_NULL;
    Error ViStatus = VI_SUCCESS;
    Bruno errDesc [1024];
    ViInt32 i;

    / * Initialize generation session * /.
    checkErr (niHSDIO_InitGenerationSession)
    Deviceid, VI_FALSE, VI_FALSE, VI_NULL, &vi));

    / * Assign channels for dynamic generation * /.
    checkErr (niHSDIO_AssignDynamicChannels (vi, channelList));

    / * Set up the clock sample parameters * /.
    checkErr (niHSDIO_ConfigureSampleClock)
    VI, NIHSDIO_VAL_ON_BOARD_CLOCK_STR, sampleClockRate));

    / * Query the data Width attribute * /.
    checkErr (niHSDIO_GetAttributeViInt32)
    VI, VI_NULL, NIHSDIO_ATTR_DATA_WIDTH, & dataWidth));

    / * Fill the waveform with ramp data * /.
    < waveform_size;="">
    {
    waveformDataU32 [i] = i;
    }

    checkErr (niHSDIO_WriteNamedWaveformU32)
    VI, waveformName, WAVEFORM_SIZE, waveformDataU32));

    / * Start the generation * /.
    checkErr (niHSDIO_Initiate (vi));

    / * Wait for all the generation * /.
    checkErr (niHSDIO_WaitUntilDone (vi, timeout));

    Error:

    If (error is VI_SUCCESS)
    {
    / * Print result * /.
    printf ("made without error. \n") ;
    }
    on the other
    {
    / * Get the description of the error and print * /.
    niHSDIO_GetError (vi, & error, sizeof (errDesc) /sizeof (petitioner), errDesc);

    printf ("\nError encountered\n===\n%s\n", errDesc);
    }

    / * log * /.
    niHSDIO_close (vi);

    / * prompt to go out (for the popup console windows) * /.
    to continue...\n");
    GetChar ();

    error return;
    }

    Issues related to the:

    How can I change the values in waveformDataU32 to create market reports (instead of just always on)?

    How to select the channel waveformDataU32 is applied to the?

    Thank you!

    Zachary Geier

    The waveformDataU32 table is an array of 32-bit integers. Each bit corresponds to a line on the device.  On the first clock cycle, this program outputs:

    0000 0000 0000 0000 0000 0000 0000 0000

    Then it displays the following, changing at each clock Pulse:

    0000 0000 0000 0000 0000 0000 0000 0001,

    0000 0000 0000 0000 0000 0000 0000 0010,

    ...

    and so on all the way up to 1023:

    0000 0000 0000 0000 00000011 1111 1111

    In the example that you include at the bottom, you set the least significant bit (LSB) to zero and one, actually only change one line on the output. To change all the lines, you must instead use 4 294 967 295 or 0xFFFFFFFF:

    < waveform_size;="">
    < 200){="" if="" sample="" number="" is="" less="" than="">
    waveformDataU32 [i] = 0; Disable channels 0-2
    }
    else {}
    waveformDataU32 [i] = 4 294 967 295; Otherwise turn on all channels to 800 samples
    }
    }

  • You don't you email / account that Roadrunner mail is used by another device?

    While reading my email yesterday a gray box appears on the screen that says "cannot get mail / Roadrunner Mail account is in use on another device, then a pop up says your software must be updated to 9.3.4... so, I press the button install... it starts to update... the thing is that I don't date my iOS to 9.3.4 the day of the update is out. I think it is 08/08/16...

    the update finished I read my email and I get page to configure an e-mail account, I'm looking for my roadrunner acct and he went...

    Today, I get the ipad3, I have time to work on the problem now... to my amazement my roadrunner e-mail account is back, rated and work.

    Everyone thinks I should be concerned about this chain of events... I'm always worried about hackers, any help appreciated. Thank you

    Sounds more like a messed up iOS upgrade than someone hacking into your device.

  • Synchronize data waveform and video [AVI]

    Dear users,

    I'm trying to match the time of a video using a high-speed camera and data waveform graphs to show what each frame in recording waveform graph. Video and data from the sensors triggered from the same source. Samples of the camera at 10 kHz while data acquisition to 80 kHz.

    I pressed on--video - display - frequency = 10000 [1/s] and start time 0 [s]. In addition, I chose the cursor of the curve to force the graph to start. Video with data are not synchronized as the video ends quickly so that the chart does not reach the Summit. Any ideas would be appreciated.

    Thank you.

    Hi StathPol,

    Check the 'Unit' property in the chain of the hour or the waveform delta x property, depending on whether you are using.  Perhaps your sensor values have a "ms" or something for the unit of time information string.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Create a waveform using PCI-6723 AO with various time intervals on the trailing edge of the sample of 200 Hz clock and 0.1% duty cycle

    I use the PCI-6723 card and I am trying to produce a model of waveform using the analog output channel. The wave consists of 5 different voltage levels. The main problem is that the first 4 voltage levels are supposed to have 926 microseconds time intervals and the time interval the last voltage level is supposed to be 1,296 milliseconds. In addition, the waveform must be triggered on the trailing edge of a sample clock of 200 Hz with a 0.1% Duty Cycle. Is it still possible? If so, any help would be greatly appreciated. Thanks in advance!

    Here is what I currently have, but it does not fulfill my purpose.

     int32   written;
        float64 data[5] = {-0.23, 0.38, 1.12, 1.78, 0.10};  //volts
        //long  time[5] = {  926,  926,  926,  926, 1296};  //microseconds
    
        // DAQmx Configure Clock
        DAQmxErrChk (DAQmxCreateTask("",&taskHandleFRQ));
        DAQmxErrChk (DAQmxCreateCOPulseChanFreq(taskHandleFRQ,"Dev3/ctr0","",DAQmx_Val_Hz,DAQmx_Val_Low,0,200,0.001));
        DAQmxErrChk (DAQmxCfgImplicitTiming(taskHandleFRQ,DAQmx_Val_ContSamps,1));
    
        // DAQmx Start Code
        DAQmxErrChk (DAQmxStartTask(taskHandleFRQ));
    
        // DAQmx Configure Code
        DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
        DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"Dev3/ao0","",-10.0,10.0,DAQmx_Val_Volts,NULL));
        DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"/Dev3/Ctr0Out",1000.0,DAQmx_Val_Falling,DAQmx_Val_ContSamps,5));
    
        // DAQmx Write Code
        DAQmxErrChk (DAQmxWriteAnalogF64(taskHandle,5,0,10.0,DAQmx_Val_GroupByChannel,data,&written,NULL));
    
        // DAQmx Start Code
        DAQmxErrChk (DAQmxStartTask(taskHandle));
    

    Bingo. This code seems to work much better. Looks like I had to reduce my number of samples per 1 to fit the waveform desired in 5 milliseconds of the sample clock delay.

    However, if someone knows a better way to achieve these results, I am open to all ideas.

    void CDevDlg::OnRdr1e1()
    {
        float64     data[4000];
        float64     volt[5] = {-0.23, 0.38, 1.12, 1.78, 0.10};  //volts
        int x=0,d;
    
        for(int v=0; v<4; v++)
        {
            for(d=0; d<741; d++)
            {
                data[x++] = volt[v];
            }
        }
        for(d=0; d<1036; d++)
        {
            data[x++] = volt[4];
        }
    
        // DAQmx Configure Clock
        DAQmxErrChk (DAQmxCreateTask("",&taskHandleFRQ));
        DAQmxErrChk (DAQmxCreateCOPulseChanFreq(taskHandleFRQ,"Dev3/ctr0","",DAQmx_Val_Hz,DAQmx_Val_Low,0,200,0.001));
        DAQmxErrChk (DAQmxCfgImplicitTiming(taskHandleFRQ,DAQmx_Val_ContSamps,800000));
    
        // DAQmx Start Code
        DAQmxErrChk (DAQmxStartTask(taskHandleFRQ));
    
        // DAQmx Configure Code
        DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
        DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"Dev3/ao0","",-0.5,2.0,DAQmx_Val_Volts,NULL));
        DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",800000,DAQmx_Val_Rising,DAQmx_Val_ContSamps,4000));
        DAQmxErrChk (DAQmxCfgDigEdgeStartTrig(taskHandle,"/Dev3/Ctr0Out",DAQmx_Val_Falling));
    
        // DAQmx Write Code
        DAQmxErrChk (DAQmxWriteAnalogF64(taskHandle,4000,1,10.0,DAQmx_Val_GroupByChannel,data,NULL,NULL));
    }
    
  • phone calls do not use the apple device

    I get phone calls, saying: do not use your apple device, are these legitimate calls... I'm afraid that I'm a target? I recall once and they wanted me to hang on to my desk top (I have not)... I can't afford to mess up, so I just haven't used :-/

    No, they are not legitimate calls, ignore them.

  • e-mail unavailable because "in use on another device?

    Once in a while I get a message on my iPhone 6 which I can not send because my my "account is used on another device. I use apple mail. The ides what it is?

    Thank you

    The server wishes to inform you that an another e-mail client POP3 is currently connected. POP3 does not supports multiple simultaneous connections.

  • The amount of data is used when you watch a movie online, a Wi - Fi connection?

    I have a MacBook Air, and I use a Wi - Fi sometimes connection for watching movies. I want to know how much data is used when I watch a movie of 2 hours to 720 p. I couldn't find a clear answer anywhere. Appreciate the answers. Thank you.

    15 MB/minute if you look at the video in 720 p, 34 MB/minute in 1080 p.

    3 GB per hour in HD.

  • loss of data on the mass storage device

    I installed a mass storage device (no driver needed} he first read although I couldn't get to some of the programs I had on the hard drive.) now he returned as damaged or unreadable. I restarted to go to properties and I get a {(code 28) I went to the supplier Web site, and he said: no drivers needed.} Is it possible to retrieve the info on hard drive? or should I stand and reformat drive losing all

    Hello

    1. you use any USB device to connect to the device?

    2. What is the brand and model of the computer?

    Error code 28 is due to drivers for this device is not installed on your computer.

    See the following for more information Microsoft article.

    Explanation of error codes generated by Device Manager in Windows XP Professional

    Try the following and see if it helps.

    Method 1:
     

    If you use a USB device to connect an external device, and then try connecting to another USB port and check if it helps.

    Method 2:

    Try to update the readers of Device Manager and check if it helps.

    a. Click Start, click right on my computer or computer, and click Properties.
    b. on the left pane, click Device Manager.

    c. the Device Manager. In the Details pane, in the list of devices, look for the device for which you want to install the driver software, and then double-click your device. The device Properties dialog box opens.

    d. in the device Properties dialog box, click the driver , and then click set to update driver. The Update driver software Wizard opens.


    Method 3:

    Hardware devices do not work or are not detected in Windows

    Keep us updated on the status of the issue.

  • new camera Sx500 IS... Battery Pack NB - 4 L can be used with this device instead of NB - 6 L?

    new camera Sx500 IS... Battery Pack NB - 4 L can be used with this device instead of NB - 6 L?

    Hi Merrileeruth,

    Unfortunately, the PowerShot SX500 is not compatible with the Battery Pack NB - 4 L.

  • Data recovery using Microsoft Money Standard bought in New Zealand

    I use Microsoft Money Standard bought in New Zealand.

    As a result of a malfunction of the hard drive, I installed a new and recovered all my data files.
    I reinstalled Microsoft Money, but Money files will not open.
    A message informs you that the file cannot be located or is read-only, I don't have the permission to open or it is write protected. None of this is true then I suspect it has something to do with Microsoft withdraws this product.
    I can see there are no version sunset for my version, so how I can I recover my data for use in Microsoft Money or importing to another product I need of course to buy at one time?

    Yay! Success.

    It's hotfix QFE, whatever they are, that became a problem when Microsoft has ceased to produce and support money.
    Users of the United States had a "Sunset Version" to allow them to continue to use the program, but international users have been left in the cold.
    Finally, Microsoft provided a download to help users with the UK or International English. Why they did not consider their international users from the very beginning, God alone knows that!
    For the Version of Money 2005 - published July 28, 2011
    For users of the International English Version of Money 2005 - published July 29, 2011
    I have downloaded and run the NASB and my Money file open immediately. Great!
    Now, I just need to look at what it takes to pass when I decide it is time to move from Microsoft Money.
  • "The port is used by another device. Printer does not print.

    I have a printer Canon D661 on an Ispiron Dell s 545 under Win XP SP3.  Everything worked fine until today when he leaves the impression.  I have uninstalled/reinstalled the printer through Windows and through the uninstalling Canon.

    I have downloaded the latest drivers from Canon, did all my XP, updates my Dell updates driver material and restarted several times than I can count in the process.

    I've stopped and started the print spooler.

    Still nothing will print.  The printer status window insists that "the port is used by another device.

    I ran impression of Microsoft Diagnostic tool, he says that's all right.

    It is a USB port, as the mouse and keyboard.  Nothing else.  I tried swapping USB ports between elements, no help.

    The printer works fine if I plug it into my USB netbook, so it's not the printer.

    I receive the error message even if the printer is connected to the office he "belongs" to.

    Until yesterday it worked fine, same print network jobs on other computers.

    I went home from 11:00 to 18:30 today.  Help?

    Thanks for the reply!

    I tried what you suggested, but it did not work.

    Finally, I got it going.  For some reason even if it was still installed on LPT1 on that question and two other computers, this computer has stopped working.

    I found the installer was not obvious choice to install on USB1 and that was when he started working.

    Interestingly, it works installed on LPT1 on two laptop computers when it is connected in fact on their USB ports.

    Thanks again.

  • When I try to scan with my CanoScan N640P ex scanner I receive a message indicating the Port to the printer that is used by another device. How can I work around this problem?

    When I try to scan with my CanoScan N640P ex scanner I receive a message indicating the Port to the printer that is used by another device.  How can I work around this problem?

    Hi ejp70,

    1. did you of recent changes on the computer?

    2. to when was the last time the scanner was working fine?

    3. you have any other printer\scanner connected to the computer?

    If you have any other printer\scanner connected to the computer, disconnect them and check if it works.

    I suggest that you uninstall and reinstall the scanner to the computer, also make sure that you install the latest drivers for scanner on Canon website.

Maybe you are looking for