Linear between two sliders from a signal of a NOR-instruments via the DAQ Assistant

Hello!

I currently have a problem som with my labview code. I am doing regression on a specific part of my chart. The graphics consist of a signal from one OR cDAQ-9178. Currently I can get live data in a graph (raw Signal) and then "zoom in" on the part of the graph as im intrested in by two sliders and then display the results in a new graph (adjusted Signal). Now, a desire to make the regresion in the new graph. How can I do this the best way?

Note maybe I'm a beginner to labview so my code a little offshore.

Best regards Maurlind

Hi maurlind,

I got it, the function derived from the linear adjustment could not handle that many on the x-axis. I edited the VI so that the large number is suctracted for adjustment, i.e. the table will now begin at zero time for adjustment. This will not affect your locations, only the algorithm .

Try it now with the files I've provided. The file "pm_mod2_Rawsignal test.vi" should be used with 'test3.lvm' (your data). The file "pm_mod3_Rawsignal test.vi" is the same as "pm_mod2_Rawsignal test.vi", but he is willing to work with the simulated data. The file "test3.lvm" is your data, but the file is slightly modified to work on my system.

Edit "pm_mod3_Rawsignal test.vi" to shake with your acquired signal as you did with the first file that you received from me.

Tags: NI Software

Similar Questions

  • Implementation of the linear adjustment between two sliders

    Hello

    I'm trying to implement a linear between two sliders fit as I am with altogether 4 sliders. I want to implement an adjustment linear between slider 2 & 3. Please help me how to implement and to find a slope. I also enclose my code.

    Hey Brad,

    Saw that you contacted me then here is the solution.

    In fact Cameron has already mentioned the solution above.

    In any case what it what it should look like when you implement it:

    Note: The while loop is just a claim that the output are not in the right order.

    Koen

  • Can I synchronize the activity of health between two watches from Apple?

    I have two Apple - one for work, one for out watches. If I change watches in the middle of the day, the follow-up of the first watch of activity is not synchronized with the second watch. Is it possible to enable this so that the follow-up activity is specific for the whole day?

    Thank you!

    N ° it is not possible to synchronize the activity of health between two watches from Apple.

  • In Labview 8.5, what happens if the input signal exceeds the scope of the signal defined by the DAQ Assistant?

    Hi all

    This should be a pretty simple question, but I can't seem to find the answer online and currently do not have the functionality to test this:

    I'm using LabVIEW 8.5 and have a VI that imports data from sensor through the DAQ Assistant. In the configuration tab, there is a range of signal input. What happens if my sensor exceeds this range? I get a warning? The default value is the maximum (or minimum)? I was interested in writing a code to display an error that I approach the limits of this range, but did not know if I also need to include code to display an error if the scope is exceeded as well.

    Thanks for the help,

    Tristan

    Hello, Tristan,.

    The behavior depends on the selected range and the device you are using.

    If you are using a device with a single input range is valid, we will use this range, even if you set a smaller minimum and maximum in the DAQ Assistant.  So, if your device only supports ±10V and you set the range to ±8V, you will still continue to get valid data after your top sensor 8V until what you approach 10V.  When you reach the limit of the extent of your device, the output will be 'rail', and simply return the maximum value until the signal is less than the maximum value again.

    Note: A device that is nominally ±10V usually has a go-around (such as ±10.2V) which are usually specced in the manual.

    However, if you use a device with several ranges of entry then things become more complex.

    NOR-DAQmx player will choose the smallest range that entirely covers the interval you choose.  For example, suppose that your device supports the following input range: ±0.2V, ±1, ±5V, ±10V and you choose 0V - 3V as the range in the DAQ assistant.  The NOR-DAQmx driver will focus on the input range and the list of the entry lines that your hardware supports and choose the smallest encompassing the entire range that you set.  This would be the ±5V, because this is the only beach that contains up to 3V.  Thus, all between ±5V input signal is returned and none outside this range will be 'rail' to the maximum or minimum value.

    We do this because using small beaches make more efficient use of the resolution of the ADC.  So, we try to use the most effective range based on what you ask without picking up a range that will make you miss data.

    Let me know if I can clarify it more.

  • Switch between the graph and the table as in the DAQ Assistant

    I was wondering if it is possible or if anyone has any success making a user interface, such as the DAQ Assistant, where you can switch between a graphical output or an array of the recorded signals.  I would like to have this feature in my code .VI.  From now on, I'm just a waveform graph in my front panel.  I'd love to be able to alternate between this waverform table and a table of output values. I have attached a few screenshots to explain what I mean.

    Hello

    Personally, I like the TAB ideas that have been validated, but you can also use property nodes and the visible value.

    Good luck.

    Steven

  • Simulate signals wired to the DAQ assistant for USB-6009 device

    Hello

    I'm trying to send a signal to the DAQ Assistant Express VI.  I watched the movie "Generating a Signal" on the Web site of NOR (www.ni.com/academic/students/learnlabview/generate.htm) and I have my Signal simulate connected directly on the DAQ Assistant, as shown in this film.  In my case, the DAQ Assistant sends the signal to a device USB-6009.

    However, I received this message:

    Error-200077 occurred to the DAQ Assistant
    Possible reasons:

    Requested value is not supported for this property value. The value of the property may be invalid because it is in conflict with another property.

    Property: SampTimingType
    asked the value: Sample clock
    You select: On-demand

    If I select 'On Demand' in my DAQ assistant and run the vi everything works beautifully.  However, I need my DAQ assistant to be configured to generate a waveform AC continuous, not output a single alternating current rippling.

    What happens here?  I did not have this problem before on other devices of NOR. I am using LABView 2010.

    Please answer.

    Thank you.

    double post

  • Replacement of simulate signal VI with the DAQ assistant

    Hello

    I have a VI fucntioning, where signal comes 2 simulate VI signals and is being recorded.

    I replaced that with the DAQ assistant. I want to know if the wiring is correct and if it will give me the same result as the simulated VI.

    Thank you.

    Hello Andy,

    Thanks for the reply, yes I did that as well, another way to do it is the 'split signal VI' that automatically separates the signal into 2 channels, most of the high sons being Ch 0

    S

  • How to find values between two months (from January to the month prompted)?

    Hello

    I need to create a filter on the name of the month. That is to say of January of the year for the 'guest' month of guest of dashboard.

    Ex: If I ask year and month of year in 2013 and March respectively. I should get values for Jan 2013, 2013 Feb and March 2013.

    I can't try one between because that it only works on numeric values.

    I can't have a number of months in prompt because this isn't the condition and I am not allowed to.

    I tried the below query report filter

    «Sun - times» "" Fiscal month "< = (select"Dim - time". "" Fiscal month "where"Dim - time. " ("' Name of the fiscal month ' = @{PMonth}) PMonth where is the Variable of presentation" for months ".

    But it's not working

    Help, please

    Thank you

    If it is 11g then try to use the column twice.

    Thank you

    http://cool-bi.com

  • Problem with difference of calculation between two dates from Monday to Saturday

    Hello

    I need help to change a function return number you dates, including Saturday hours (09:00 - 14:00), Monday to Friday (09:00 - 21:00);

    This is my code;

    CREATE OR REPLACE
    FUNCTION TEST2 (FECHA_INICIO DATE, DATE FECHA_FIN)

    RETURN NUMBER IS THE NUMBER OF HORASTOTALES;
    date the date;

    BEGIN
    If)
    SELECT date, to_char (date, 'DY', 'NLS_DATE_LANGUAGE = ENGLISH') dia.
    (SELECT to_date('FECHA_INICIO') + LEVEL - 1 date
    OF THE DOUBLE
    CONNECT BY LEVEL < = (FECHA_FIN - FECHA_INICIO))
    WHERE TO_CHAR (DATE, 'DY', 'NLS_DATE_LANGUAGE = ENGLISH') not IN ("SAT") THEN

    with t as)

    SELECT CASE LEVEL
    When 1 then greatest (fecha_inicio, trunc (fecha_inicio) + 9 / 24)
    to another level - 15 + trunc (fecha_inicio) / 24
    end fecha_inicio
    case connect_by_isleaf
    When 1 then least (fecha_fin, trunc (fecha_fin) + 21 / 24)
    Another trunc (fecha_inicio) + level - 3 / 24
    end fecha_fin
    of the double

    connect by level < = trunc (fecha_fin) - trunc (fecha_inicio) + 1).

    Select sum (more large (fecha_fin - fecha_inicio, 0)) * 24 horas
    in horastotales
    T

    WHEN TRUNC (FECHA_INICIO) - TRUNC (FECHA_INICIO, 'iw') < 5;

    RETURN HORASTOTALES;

    ) ELSE IF
    Return HORASTOTALES + 5;
    END;

    concerning

    Hello again,

    Using this function, which makes me ask properly, what hours, my problem is that I can not include Saturday hours;

    create or replace FUNCTION TEST (FECHA_INICIO DATE, FECHA_FIN DATE

    )

    RETURNS the NUMBER IS horastotales NUMBER;

    BEGIN

    with t as)

    SELECT CASE LEVEL

    When 1 then greatest (fecha_inicio, trunc (fecha_inicio) + 9 / 24)

    to another level - 15 + trunc (fecha_inicio) / 24

    end fecha_inicio

    case connect_by_isleaf

    When 1 then least (fecha_fin, trunc (fecha_fin) + 21 / 24)

    Another trunc (fecha_inicio) + level - 3 / 24

    end fecha_fin

    of the double

    connect by level<= trunc(fecha_fin)="" -="" trunc(fecha_inicio)="" +="">

    )

    Select sum (more large (fecha_fin - fecha_inicio, 0)) * 24 horas

    in horastotales

    T

    When TRUNC (FECHA_INICIO) - TRUNC (FECHA_INICIO, 'iw')<>

    RETURN horastotales;

    END;

    Example:

    SELECT TEST (TO_DATE (January 7, 2013 09:10 ',' DD-MM-YYYY HH24 '), TO_DATE (February 7, 2013 09:00 "," DD-MM-YYYY HH24 ')) horas

    OF THE DOUBLE

    output: 11, 8 hours

    Then try to add parts of your function, to get what I want, but it gives me compilation errors

  • Collection of data from more than an instrument via the same labVIEW program

    Hello

    I have a program whereby I collect data on a scale of and save the data in the text file. Now, I need to collect data of three identical scales and save the data. I wonder if it is possible to do so in the same program? I mean how to manage three ports and save three different text files?

    I enclose the current program. Communication with the scale series and I use VI:s. thanks in advance for the help = VISA)

    This is easily possible with a single program, and there are several ways to do so.  I recommend the following:

    1. Take data from these devices in a separate loop (this could be in a separate - VI, as well).  These loops should be state machines if you can start and stop the acquisitions in a clean way.  This assumes that the instruments are on separate ports.  If they are on the same port, you probably want to use the same loop.

    2. Write to the file in a single loop.  This, too, should be a state machine.

    3. Queues to send data from the acquisition of loops to the loop of file I/O.

    4. Use still another loop for your user interface.  It must contain a structure of the event.

    To do this, you will need to learn more about the State machines and producer/consumer architectures.  Start with the help of LabVIEW, then search these forums.  There are a multitude of implementations of State machines and producer/consumer architectures.  If you have the time, I highly recommend you learn and to use the classes in LabVIEW (requires LabVIEW 8.2 or later).  This will facilitate your work in the long term.

    Let us know if you encounter any problems...

  • CAN I turn stop wireless to router but always send signals to an external antenna via the port?

    Can I stop/start of my Wired main WRT54G wireless and always send the signal through a WAP browser & directional external antenna plugged into the hub?

    How to allow only my own devices to use my bandwidth?

    Using WPA password on WRT hub.

    Drive Blu - Ray and AT & T Microcell Tower allow other titles-WPA2...?

    Can I block the antenna attached to the main hub of sought but allow the port to send signals at access point?

    Shields of aluminum foil over the main router antenna would cease its output signal? (if I remove them to allow the occasional portable navigation)

    If you want, you can disable the feature on your primary router WRT54G wireless and use WAP to send the wireless signal.

    Open the router configuration page and go to the Wireless tab, change the mode of network to people with reduced mobility. Save the settings.

    If your wireless network is secure only your wireless computer can connect to the wireless network and use the bandwidth. So, make sure your wireless network secure.

    Consult the manual for your Bluray and AT & T Tower and see if they take in charge WPA2.

  • Calibration of thermocouples in the DAQ Assistant, using data from spreadsheet?

    Hi all

    For my first application LabVIEW, I'm looking to automate the calibration of thermocouples by measuring their response at different temperatures in a dry well Sizer. I get temperatures of thermocouples six by SCXI 1303/1102/1600 and have six channels put in place in one of my subVIs in the DAQ assistant.

    I compare these values to temperature calibrator that I am acquiring by VISA series in an other Subvi. All these values are written in a .csv file.

    Can I import these data into the DAQ Assistant to use for calibration? Is there a simpler way to associate with the channel calibration data? Currently, I could manually copy - paste the cells on the worksheet in the calibration sheet, but that seems just silly.

    If there is everything that I could provide to help solve the problem, let me know!

    Thank you!

    Hi Zoysiamo,

    It is possible to automate the calibration screws DAQmx at a lower level, in particular the DAQmx channel property node. Using you can specify advance nationwide and the values on the scale for your channel. I recommend you take a look at this example of the community. The property node configuration will be similar to, as illustrated below:

  • How to transfer files from PC to Instrument via the LAN by SCPI?

    Dear all,

    Suggestions and procedures?

    Thank you very much!

    I find the method to do it.

    I have summarized the produre below:

    1. open source host controller (fopen) file

    2 get the queue size (fseek)

    3. create the order header (: MMEMATA)

    4 copy the file on the instrument (viWrite)

    Thank you for the answers.

  • I work from home, how can I make Bittorrent via the wireless when I connect the ethernet to work

    Hi people,

    I know that the network connection with the lowest metric is chosen for the Internet, but it's killing Bittorrent as soon as I plug the ethernet cable.
    When I need to force traffice via the wireless I can use ' route add Pei *.» *. *. * mask etc. etc."but this only works for single IPs, such as streaming radio stations etc.   What I really need, is a sort of local proxy that I can specify in uTorrent, then use that IP to route via the wireless.
    Someone at - it ideas of how I could do this?  I read about SSH/socks etc. but it is a little confusing.
    See you soon... Buzz

    Hi Buzzcut50,

    I suggest that you contact the support of torrent of bits for more information.

    http://www.BitTorrent.com/help

  • Try to use the capabilities of the Web from TOSHIBA camera with an external device via the USB port.

    Toshiba Web Camera software that came with my new Qosmio X 505 - Q880 is very useful, and I would use it to take pictures with an external camera connected by a USB cable (camera is a Kodak DC290, in case this is useful).  Is it possible to use the webcam with anything other than Toshiba built in webcam?  Now that I'm typing this, it seems a question more appropriate for the Toshiba site, but I guess I'll try here first.

    Toshiba Software is for Toshiba hardware.

    Go to the Kodak Web site and are looking for software for your Kodak camera.

    Or as you say, ask Toshiba.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for

  • OS data and the window of TimeCapsule

    I want to read and write data in timecapsule window Os.  What should I do and what it takes? Thank you very much for you're help a friend.

  • Equium M70 - only modem not channeled through Windows Mixer

    I try to save my phone line, but some setting that I use the windows mixer recording section 'phone' does not work. It seems that the modem allows you to completely bypass the table of mixing and outputs directly to the speaker in a software that use

  • Satellite L655-12 q - CD/DVD-rom can't burn CDs

    Hello I use a Satellite L655-12 q, model number short PSK1EE.It has a tsstcorp CD/DVGW, type ts-L633c. My rom reads and burns DVDs fine, but can not read or burn CDs, especially when the size of the files involved is small. Can someone please help?Th

  • Pavilion dv6: blue screen problem

    GET THIS EACH THEN & NOW THE SCREEN AND MUST SHUT DOWN LAPPY. PLEASE HELP WITH THE SOLUTION!

  • Satellite A350-13 a - where to find XP drivers

    Hello I´d as change my OS from Windows Vista to Windows XP but I Don t find drivers for windows XP on my laptop Satellite A350-13 has can someone help me?