Read Differentiation Value in Real Time

HI!
I have a analog input, and I am going to read the differentiation
value of analog input in REAL time! I did try the differentiation.vi
in Labview before, unfortunately it didn't work properly! Can anybody
help me to solve this problem please! Thank you!

Hi,
If I understand correctlly, you want to differenciate [dx(t)/dt] the input
signal. To make this discreet, you must calculate the difference between
current sample and the previous sample, devided by the time difference (
DX/DT ).
so :
Value X1 on T1 (previous sample)
Value X2 on T2 (current sample)
difference = (X1-X2)/(T1-T2)
or in general: difference = (Xn - X'n-1') / (Tn - T'n-1')
Regards,
Wiebe.
"tom" wrote in message
news:[email protected]..
> HI!
> I have a analog input, and I am going to read the differentiation
> value of analog input in REAL time! I did try the differentiation.vi
> in Labview before, unfortunately it didn't work properly! Can anybody
> help me to solve this problem please! Tha
nk you!

Similar Messages

  • Reading excel files in real time

    Hello,
    I would like to have a labVIEW program which permits to read several excel files, and collect all data in a single excel file.
    I know that it is possible to write a program which can read multiple files.
    But I would like to know that if its possible to read files in a real time:
    for ex. each time there is a new excel file to read, the LabVIEW program read it automatically and add its data to the final file?
    Thank you and bests regards

    As Sam notes, it is certainly possible to merge Excel Files (I've done it, myself).  An oft-repeated Best Practice for Program Development, which I didn't understand nor start following until quite recently, is "Write the Documentation First".  In this case, you want to think carefully (and specify in a Document, which tends to "clarify your thinking") a number of issues:
    Where will you look for the Excel Files to be merged?  [Hint -- it's much easier if they are all in the same Folder).
    Where will you save the Merged File?  Will it be in the same Folder as the Source Files?
    How will the Merged File be named?  This can have an interaction effect with the previous points.
    What is the structure of the Source, and of the Merged, File?  Is it "obvious" how the Merge is to take place?
    Related to #4, are there Headers?  Multiple WorkSheets?
    How do you know when it is time to Merge?  Are you checking for new files periodically?  How often?
    In some ways, these "structure" questions are trickier to design and thornier to deal with than simply reading data from two Excel Files and writing the data to a third (which I'm calling a Merge).  Note that I'm assuming that you are really dealing with Excel files (.xls, .xlsx), for which I recommend using the Report Generation Toolkit.  If you are speaking about Comma-Separated Variable (.csv) files that LabVIEW calls "Spreadsheets", the above questions are still mostly relevant, but your approach will be a little different.
    Write yourself a Document, show it to us, and if you have ideas on how to do this, give it a try and show us your code -- we'll try to provide assistance if you "get stuck".
    Bob Schor

  • How to measure and plot RMS value of real time data?

    hi
    i need to measure and plot real time RMS value of EMG voltage. I made a VI. But I dont know why it didn't work. Can anyone please help me out? My VI is attached  in 2013 and 2011 both version. One sample data is also attached. Thanks at advance.
    Solved!
    Go to Solution.
    Attachments:
    RMS.vi ‏47 KB
    RMS_2011.vi ‏41 KB
    Sample Data.docx ‏20 KB

    You seem to select EMG voltage vs Angle(Z-axis). Is that really what you want? More resasonable would seem e.g. EMG voltage vs. time.
    If you want to process the 3D (xyz data), you probably need to add some more math). Why are you taking the absolute value? RMS does not care about the sign anyway, right?
    They you are trying an XY graph with a single point, because your Y value is only a single number. You need an equal number of points for Y.
    Here's a quick modification that graph EMG(mV) vs. time(ms) and takes the RMS of the EMG data. See if this gives you some ideas.
    Please provide more information what you want to do with the angles.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    RMS_MOD.vi ‏18 KB

  • Error when reading chars values when restricting time chars in Query

    Hi all,
    since a few days I am not able to restrict time characteristics in queries on a particular Multiporvider. I can restrict the time chars with variables but not with fixed values.
    I am getting the following error:
    Reading Characteristic Values -> Programm Error in class SAPMSSY1 -> Uncaught exception.
    The problem exists only on one particular multi provider, but when checking the MP it indicates no errors.
    Anyone experienced something similiar? I am appreciating your help.
    Thomas

    actually it is a problem associated with SAP GUI 7.0.
    A solution to this problem is
    Just replace the file wdbspres.dll with in the following location
    C:\Program Files\SAP\FrontEnd\SapGui.
    You can search for this file on google and download it.
    we also had faced this problem earlier...but after replacing the wdbspres.dll...it worked..
    i hope this helps you.
    pls assign points if this answer is of some help

  • TDMS database and treat its values as real time data.

    Hi,
    I'm newbie in using labview. Actually I wanna import data from TDMS database and treat it as real time data. Although I have done the first part which is importing the data inside the program by reading TDMS and selecting channels and groups, I couldn't find way for second part which is treating data as real time one. I tried Build Waveform, but it didnt work. Would you please help me to solve this problem ? I appreciate your helps.

    reza_amin,
    I don't understand your word "build waveform". If you write waveform data to a tdms file, you will read waveform data directly from the tdms file.
    If you are using LabVIEW 2012 (download from http://www.ni.com/trylabview), you could find a tdms example VI in "C:\Program Files\National Instruments\LabVIEW 2012\examples\file\plat-tdms.llb\TDMS - Concurrent File Access.vi". This example VI demonstrates how to write Sine Waveform into a tdms file and read the Sine Waveform from the tdms file.
    Hope this helps and enjoy your LabVIEW journey. :-)
    Best Regards,
    Bo Xie

  • Reading data from the Real-Time Infocube

    Hi,
        I am using the FM RSDRI_INFOPROV_READ_RFC to read the data from the Real time Infocube..
    But it reads only the Closed request. Is there anyway to read the open request data from real-time infocube via program.
    Please suggest.
    Regards,
    Meiy

    Hi,
    I would assume that the function module can read the data only if its available for reporting.
    May be you can try the following: You can close the request during the function module execution time and then reopen it. Not sure if this is possible.
    Bye
    Dinesh

  • 11gR2 Real Time Apply / open read only

    Hi,
    I have a single instance primary database with a physical standby. The release is 11.2.0.1.0.
    Max Availability mode
    LGWR SYNC transport
    Data Guard Broker configuration enabled
    Both the primary and standby database are registered with the Grid Infrastructure (Standalone installation on each server, no cluster)
    When I stop and start the standby database it seems to default to open read only using Managed Real Time Recovery.
    SQL> SELECT DEST_ID, RECOVERY_MODE FROM V$ARCHIVE_DEST_STATUS
    2> WHERE DEST_ID=2;
    DEST_ID RECOVERY_MODE
    2 MANAGED REAL TIME APPLY
    I do not want to Active Data Guard on this particular database. So I removed and added the database again using srvctl this time supplying the -s mount flag. Now when I stop/start the standby it opens in mount mode and MANAGED recovery which is OK.
    My question is why did the standby automatically get opened in read only. Is the a change in behaviour introduced along with Active Data Guard? Is the default behaviour for a database registered with Grid Infrastructure to simply start the database in open mode and becuase this is 11.2 standby this means open read only?
    Thanks

    Dear user234564,
    This has been introduced in Oracle Database 11g Data Guard New Features and it is called the Active Data Guard. With the new release you can open the physical standby database in read only mode and the real time apply will continue as it is on the mount stage. This ability has not been granted on 10g. So i think it could be the normal behaviour.
    11g physical standby database will be opened and the MRP process will still apply the archivelogs to the standby database. You can simply have it tested.
    Please refer;
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10700/manage_ps.htm#CHDGJEFF
    Let me give you a quick hint but it is off topic;
    The number of standby databases that a primary database can support is increased from 9 to 30 in this release.
    The capability to create 30 standby databases, combined with the functionality of the Oracle Active Data Guard option, allows the creation of reader farms that can be used to offload large scale read-only workloads from a production database.Hope That Helps.
    Ogan

  • Reading data from Real-time Infocube

    Is it possible to read data from the Real-Time Infocube by using the function module
    RSDRI_INFOPROV_READ

    Hi,
    If records from both the request should be read ie Request under processing(which is in yellow) and Request which is processed(Which is in Green) at a time. What should be done.
    Is there any function module which returns the records of both requests.
    Rgds,
    Ganesha

  • Real-time apply in Maximum Performance Mode Not Working

    We have configured physical standby database in maximum performance mode. It's working perfectly fine. Archive logs are being applied to the physical standby.
    We can open the DB in read-only mode, but real-time apply is not working. Physical standby database is lagging behind the primary db by an archive log. As soon as primary database generates an archive log, it's transported over to the standby and applied immediately by the media recovery process. But real-time redo is not working. Standby redo logs have been configured.
    On Physcial Standby:
    SQL> alter database recover managed standby database using current logfile disconnect ;
    Database Altered.
    SQL> select group#, DBID, status,first_time, last_time from v$standby_log ;
    GROUP# DBID STATUS FIRST_TIM LAST_TIME
    4 UNASSIGNED UNASSIGNED
    5 UNASSIGNED UNASSIGNED
    6 UNASSIGNED UNASSIGNED
    7 UNASSIGNED UNASSIGNED
    SQL> select * from v$dataguard_stats ;
    NAME
    VALUE
    UNIT TIME_COMPUTED
    apply lag
    +00 00:31:36
    day(2) to second(0) interval 22-JUN-2010 08:42:06
    transport lag
    +00 00:31:34
    day(2) to second(0) interval 22-JUN-2010 08:42:06
    As you could see from the output above, value of transport and apply lag is equal to the elapsed time since last archive log switch.
    ********* Standby init.ora
    db_name = CPRD
    db_unique_name = CPRDS
    instance_name = CPRD
    service_names = hrDBSBY.WORLD
    log_archive_format = CPRD%r%s.%t
    log_archive_dest_1 = "location=f:\orarch\hresysprod"
    log_archive_dest_2='service=hresysprod async db_unique_name=cprd valid_for=(primary_role,online_logfile)'
    log_archive_config='dg_config=(cprd,cprds)'
    fal_server=hresysprod
    fal_client=hresysprods
    standby_file_management=auto
    log_archive_trace=1
    log_file_name_convert = ('hresysprod','hresysprods')
    db_file_name_convert = ('hresysprod','hresysprods')
    remote_login_passwordfile = exclusive
    ******* Primary init.ora
    log_archive_config='dg_config=(cprd,cprds)'
    fal_server=hresysprods
    fal_client=hresysprod
    standby_file_management=auto
    log_archive_format = CPRD%r%s.%t
    log_archive_dest_1 = "location=f:\orarch\hrESYSPROD"
    log_archive_dest_2='service=hresysprods async db_unique_name=cprds valid_for=(primary_role,online_logfile)'
    log_archive_trace=1
    remote_login_passwordfile = exclusive
    Please advise.
    Thanks,
    jay

    Hi,
    In your case you are using ARC process for redo transfer as you have not specified any process in log_archive_dest_2 and default is arch.
    I will suggest you to use LGWR to transfer the redo to standby and also check the size of standby redo logs on standby is same to the size of online redo logs on primary
    Regards
    Anudeep

  • How do I read multiple channels at one time using labview with the Fluke Hydra Data Bucket 2620a using serial port?

    I need to take a reading of 15 channels about once a second. I can read one value at a time using the monitor function on the read values.vi driver, but this takes forever to read all the channels.

    I don't have this instrument but I took a look at the instrument driver and it appears that you can only configure one channel at a time to read from. You might want to take a look at the command set for this instrument and see if it allows for configuration of multiple channels. It could be that the instrument driver just doesn't have that built in.
    J.R. Allen

  • About using the labview in real time DAQ system

    Hi All
        I designed a DAQ board based on PCI bus by myself, using labview for my graphic display application software. DAQ board generate PCI interrupt every 20us(50kHz). then PC respond it and read the data from DAQ board, that means the sampling frquency is 50kHz. the DAQ driver is generated by NI-VISA. it goes well after installing. I am sure that VISA detecte the PCI interrupt and triger a PCI interrupt event every 50kHz.
        But I face a problem, labview can not respond reading data in a real time. so does labview can not be used in the real time system? or is there something wrong with other else? if that is true, how can I solve it?
        by the way, I read the VISA help document. found there are two ways to respond PCI interrupt. one is callback, the other is queuing. I use the second way. I beg your help.

    I think you can use buffered signals with some changes on your circuit, with real time can be hard to implement with not supported hardware.
    Best regards

  • How to read updated data from a real-time generated file?

    I have a question:
    I want to read the 10 mostly updated data from a real time generated data file. The data in this file is accumulated. how can i read mostly recently data to an applet? and further to using this data to draw a real-time graph? pls help
    kelvin t.l. tse

    Hi,
    I think there is no "typical" way. You will have to define a convention on how the new data are stored into the file, so as to know how to accessthem. If new data are simply put at theend of your file, you may use a RandomAccessFile to read only those lines that interest you (the 1 final lines).Otherwise, you should at least know how the data file is written.
    You can know if thedata file has been modified with the File.lastModified() method. This retrurns a long value corresponding to the date and hour the file was last modified. Store that value ito you appl. and perdiodically (use a Thread), compare that value with the value returned by lastModief(). If both value are NOt equal, then the file has been updated
    it's all a question of knowing how the data are stored into the datafie generated.
    Be also aware that you will probably have problem when your java appl. tries to read the file at the same time it is updated by the other application. I guess when theother application writes data into the file, you will not be able to read it. So, use try{} catch statements and first check to see if you can read the file with File. canRead(). If not, simply delay the reading process by asking a Thread.yield() or Thread.delay (1000)...
    vincent

  • Metric shows real time value but does not show historical data

    I am using OEM 12c.I am facing an issue and I don't know where to look for problem.
    I had created one customized metric for percentage flash recovery area through metric extension.I deployed to it target databases.
    When I check it through Database --> All Metrics it shows me real time value for metric,Collection schedule,upload interval and last upload time.IT is all fine.
    When I check metric value history,
    For all the columns like Last Known Value,
    Collection Time stamp,
    Average Value,
    High Value,
    Low Value
    it shows no data.It even does not show anything in Metric Value History graph.
    Even the metric test in Metric Extension works fine.
    All the client agents are uploading the the data to OEM successfully.
    Any help,guide is appreciated.

    bit late but there are two options on metric creation "Alerting Only" or "Alerting and Historical Trending" - I assume you need the latter to show history so was this option used?

  • Reading Real Time Encoding Stats

    Hi,
    Does anyone know if it is possible to read the real time encoding stats that is outputted on the screen via command line? It would be nice to be able to display this info on the screen to the user in an app that we are running.
    Any help or suggestions would be appreciated.
    Thanks in advance

    To add to what tst said, since you are expecting two bytes to make a 16 bit number, you have to combine these two bytes to make the 16 bit number. Just wiring the byte array will produce 8 values of 8-bit numbers. You can use the join numbers function (Functions - Advanced - Data Manipulation - Join Numbers) to combine two bytes from the array into one 16-bit number. You would have to index the array to get bytes 1 and 2 to join, then bytes 3 and 4 to join, etc... Or you could use Type Cast on the incoming string to convert to an array of U16. See attached vi.
    - tbob
    Inventor of the WORM Global
    Attachments:
    StringToBytes.vi ‏41 KB

  • How to create real time chart with candle stick for displaying Open, High, Close, Low values from BSE/NSE EOD data

    Please help with sample windows form C#.Net Example

    Hi Goutam,
    Please refer to the following link with examples: http://www.codeproject.com/Questions/234865/create-real-time-chart
    Hope this helps you!
    Regards,
    Mitch!

Maybe you are looking for

  • Material ledger and cost estmate

    Hi all Can any body tell me the impact on material ledger of deleting the current standard cost estimate from material master? The requirement has come for change the current standard cost from material master whom we have released on 01.01.2008 and

  • Script Repository "publisher could not be verified" error

    Hello, I'm trying to add a script to the script repository, but when I test it to download it, I get the "publisher could not be verified" error. My script is not signed. I do not get this error when downloading other user's scripts, even though thei

  • Best Ways to research a FI/CO topic ???

    Hello! I am relatively new in the SAP consulting world - I have been an Oracle Financials Functional Consultant till now. Just got my SAP FI/CO certification a couple of months back (after 4 months hands-on training) and am only now getting to use re

  • Service tax not include in service entry sheet

    Kindly help In service PO service tax porperly calulated but when we create service entry sheet with reference of PO At the time of service tax not included in amount or in Val tab in service entry sheet. we want Total value = Net Value + service tax

  • "I wish I knew then what I know now" - tips from Zen Xtra Veterans to Newb

    I've just purchased a 60 GB Zen Xtra and very much looking forward to building a library... I've been perusing the forum here and was hoping that some Zen Xtra veterans might offer their top 5 tips to a newbie While this is my first Mp3 player, I've