Acoustic Time of Flight Calculation with PCI-6034E

I'm trying to measure the amount of time sound takes to travel through a specific medium with Labview 7 and a PCI-6034E DAQ card. So far, I have the speaker connected to ctr0 and that generates the specific frequency that I want. I want to have the program run the sound and then stop it when I hit a button and then measure the amount of time it takes for the microphone to stop receiving the sound. I don't know how to use the analog input (from the microphone) to trigger some sort of timing device. This timing needs to be as accurate as possible. Thanks for your help.

I don't know what your fluid is, but I just looked up info on sonar which gives a propagation speed of nearly 1 mile/sec in water. That leaves you with <30 microseconds to traverse your 40 mm container.
Soooo...., I don't know if you can do your measurement with a 6034E. It's max sampling rate is 200 kHz or 5 microseconds/sample. I doubt that'll be enough resolution to reliably distinguish the varations in time-of-flight that you're after.
If you're stuck with the 6034E, you'll probably need to perform the measurement with one of its counters and then build a little external interface circuitry. There's several ways, here's one:
Use ctr0 to generate a single high pulse with a duration longer than your worst case time-of-flight. Use ctr0_out to switch on a transistor that allows your ultrasonic stimulus signal to get through to the speaker. ctr0_out should also be NAND'ed with a signal to be desribed in the next paragraph.
Run the mike signal into a comparator and let the comparator's output drive a latch. The idea is to produce a digital rising edge at the instant the mike first receives a significant signal, i.e., your stimulus. NAND this signal with ctr0_out and pass the result into ctr1_gate.
Configure ctr1 for event counting, set to count 'while gate is high'. (Under the newer DAQmx, the terminology is 'pause trigger.') Software select its source to be the internal 20 MHz timebase.
How it works:
Start ctr1 first, then ctr0. On the rising edge of ctr0's pulse, ctr1 will increment once every 50 nanoseconds (i.e., counting cycles of the 20 MHz internal clock). ctr1 will stop incrementing when the mike detects a sound level above the threshold you've set up in your circuit, driving the . The value of ctr1 multiplied by 50 nanoseconds is your time-of flight.
Then, software reset your counters, hardware reset the latch, change or manipulate your fluid, and try again.
There's very likely a simpler solution. Anyone?
-Kevin P.

Similar Messages

  • Thermistor wiring in cb-68lp with PCI 6034E

    I have a CB-68LP pinout board with a PCI 6034E card on a computer with XP and LabVIEW 7.0.  I have been using type K thermocouples to collect temperatures in a lab and have had no problems thanks to previous help.  I am now going to be moving my temperature collection out doors where I will need to run ~1000 ft of wire to reach my destination.  I want to switch from thermocouples to thermistors to save money on wiring.  I have done a little research on thermistors and there are still unanswered questions.  I know thermocouples connect differentially but I could not find information about how thermistors connect?  Since it is just measuring a change in resistance my guess was that it is single ended but I want to make sure.  That is the main question, if anyone has suggestions on current excitation values or possible problems that I might expect that would be great also.  Thanks

    Gorman,
    With NI-DAQmx and Measurement Automation Explorer there is actually a feature called connection diagram which will let you select your connection block and tell you exactly which pins you need to connect your sensor to, whether it is a thermistor or a thermocouple.  You can actually set up a thermistor measurement in Measurement and Automation Explorer for current excitation and voltage excitation seperately.
    For example, I created a current excitation thermistor task in Measurement and Automation Explorer running into ai0 (channel 0) and I clicked on the connection diagram tab at the bottom.  Here is the diagram that I got.
    As you can see, you just need to connect to pins 68 and 34. 
    There is also an example program that you can download, which is in LabVIEW.  Here it is.
    Hope all this helps.
    Regards,
    Message Edited by Raajit L on 10-12-2007 06:05 PM
    Raajit L
    National Instruments
    Attachments:
    thermistor_current.png ‏23 KB

  • Combining PCI-6034E with NI-4350

    I have an application requiring the measurement of 12 4-20mA signals and 8 K-type thermocouples.
    My proposal is to use a PC fitted with a PCI-6034E DAQ through a TBX-68 I/O Connector Block for the current signals, and an NI-4351 Temperature Logger through a TBX-68T Connector Block for the thermocouples. Can anyone foresee any problems with such a set-up? Are there any unforeseen difficulties I should be aware of?
    Control will be by LabVIEW.
    I am spending someone else's money from a very tight budget, so I need to keep the cost down and to get it right the first time.
    The original proposal was to use FieldPOINT gear but its temperature logging is a little slow.
    Thanks in advance for your help.

    Hi Ledge,
    How fast do you want the temperature logging to be that FP is too slow?
    Ben
    [email protected]
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator.

    There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator. However, when i lower it, my safari tab goes out of the screen. What do you guys think i should do? I'm getting very nervous.

    hey HAbrakian!
    You may want to try using the information in this article to adjust the behavior of your function keys to see if that resolves the behavior:
    Mac OS X: How to change the behavior of function keys
    http://support.apple.com/kb/ht3399
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Can I use Labview real time with PCI 6013?

    How much does Labview real time cost?
    Do i need to have some additional hardware to use labview real time with PCI 6013?

    You can not use the PCI-6013 board with LabVIEW Real-Time.
    We offer three platforms for LabVIEW Real-time. PXI embedded controllers, 7030 data-acquisition plug-in boards (7030/xxxx) and FieldPoint. For more information on these options go to www.ni.com/products and then choose Real-Time from the menu on the left. There are PCI versions of the 7030 boards. Each 7030 board has a data-acquistion board attached to it (6030E, 6040E or 6533). When you embed a LabVIEW Real-Time program on the 7030 you will be able to access the daughter board. You can not access other boards from the embedded program. If you want to use several daq cards in your real-time system I would recommend a PXI chassi and PXI daq boards.

  • Date&time Calculation with respect to Service&Response Profile

    Hi all,
    The scenario is  -  we are creating service request which is having service profile and response profile , according to these the First response time and to do by time are getting calculated. In this calculation system is considering the week ends,working hours per day and holidays ( which are defined in customizing).
    Now i want to do the same kind of calculation for some other purpose. like i have two timestamps i want to find exact time difference between those two by considering service profile and response profile.
    Example:
    Let's consider my service profile is 5X8 ( Mon - Friday and 8 hours per Day 09:00:00 to 17:00:00)
    and the response profile is 10X15 ( response should be in 10 hours and to be completed by 15 Hours )
    Suppose I'm creating the Service request by 23.03.2010  09:00:00 then system will give the response time like
    24.03.2010 11:00:00 ( on or before )
    ( it took 8 hours from 23.03.2010 and 2 hours from 24.03.2010 )
    Please give idea to get this logic how system calculates by considering service profile and response profile.
    Regards
    Chand

    Hi chand,
    Whateever logic you have told is 80 % correct. But you also need to consider the following thing.
    1. You need to define the factoy calender cosidering the holiday in the t code SCAL. and that need to be attched to your service profile
    2. Suppose your first respose time is 10 hours and 1st resolution time is 15  hours, it also needs to consider the holidays.
    Eg. if the Service call come on friday at 3.00PM , then the resopnse should go by Monday 5.00PM. Response will be by 2.00 PM on Tuesday (Provided these days are not the hoildays).
    Hope this clears your doubts.
    Regards,
    Uday Borse

  • Hello my Power Macintosh G5 2.7 DP (PCI-X) flashes and tell me theres a problem with the installed Ram! some times it powers on with no problems but now its saying there a ram fauilt and dont boot! any help here please thanks

    hello i have a powermac G5 it flashed lights tells me it has a Ram fault but some times it pwers on with no problems odd any one give me advice on this ? thanks

    Hi, while it could be the RAM, it seems more likely a RAM slot solder problem related to temperature.
    Does it do that when it's colder?
    If you're sure the RAM is good, try the Hair Dryer trick...
    http://discussions.apple.com/message.jspa?messageID=13240047#13240047

  • Calculate uncertainty of PCI-6034E

    Hallo, I am trying to calculate the overall uncertainty of DAQ System, which has a PCI-6034E board and an SCXI-1102B. I know about the accuracy calculator and I am trying to check my results using this tool.
    I use K thermocouples in a temperature range 30-90℃ in an ambient temperature of about 30℃, which corresponds to a input signal range 1,203mV-3,682mV.
    The calculation formula is: Absolute Accuracy = +/-[(Input Voltage x % of Reading)+ Offset +System Noise +Temperature Drift]
    At first I set to the accuracy calculator: DAQ device to PCI-6034E and SCXI module to none. Then I set for example 0.001203V and Average of 100 readings.The result is the following:
    According to the E Series User Manual (page 38 gain+resolution PCI-6034E) Absolute Accuracy=0,001203*0,0588/100+ (28,9 +2,75)*10^-6=0,03235mV
    which the same with the accuracy calculator.
    I I set to the accuracy calculator: DAQ device to PCI-6034E and SCXI module SCXI-1102B, then i do not get the same results about the absolute accuracy of the DAQ device.
    Accuracy Calculator:
    Me: DAQ Absolute Accuracy=0,1203*0,0588/100+ (100 +5,04)*10^-6=0,175mV which I a very large number. I assume that the input value is 0,1203 because the gain of the scxi 1120b is 100.
    What I am doing wrong?
    Furthermore, I cannot find detailed specification about scxi-1102b in the user manual (Offset in Single Point and in average of 100 readings).
    Thank you very much,
    Giorgos P.
    Solved!
    Go to Solution.

    Hello Ginos,
    I went over your calculations and you have calculated the accuracy correctly. The DAQ absolute accuracy at .5 to -.5 is .175mV but they have converted this value so that it has meaning to the orginal signal. The original signal acquired by the SCXI-1102B was multiplied by a gain of 100. After this gain, the signal is sent to the DAQ card to be digitized into your computer.
    In order to relate this digitized signal accuracy to the original signal, they divided it by the gain given by the SCXI-1120B module. This is why there is a factor of a 100 difference between the two.
    Jim St
    National Instruments
    RF Product Support Engineer

  • Code 10 pci 6034e

    Hello,
    I have a problem with my LabView and I'm running out of ideas how to fix it. In 2002 I designed a software for data aquisition based on LabView 6.1 using a PCI 6034E card. Since then everything was working fine. A few days ago I had to switch PCs.
    I installed LabView 6.1 on the new PC. Afterwards I shut down the system, plugged in the 6034E and reboot the PC. Windows discovered the new hardware succesfully and installed a driver from the LabView Driver CD.
    Unfortunately my device manager is telling me that the 6034E is producing a Code 10 error. Until now I have tried to install the newest driver from NI, reinstalling LabView and the drivers multiple times.
    The only difference I could encounter betweed the two PCs is that the old PC is operated with Windows XP SP 2 and the new one uses SP 3.
    Do you have any ideas what could cause the problem?
    Best regards,
    Theodor
    Solved!
    Go to Solution.

    Hello Tobias,
    thank you for your reply. I already tried installing the DAQmx 7.0 yesterday evening. It worked fine with the PCI 6034E. Unfortunately I couldn't use my programm any more, because some sub vi are incompatible with DAQmx above verson 6.9.3.
    However, I managed to solve the problem. There might have been a comflict between the PCI 6034E and the computers video card. I deaktivated the videocards PCI port in Bios and switched to on board graphics. Then I uninstalled all National Instruments software, for a fresh start. After a reboot, video card still disabled, I installed LabView 6.1 and DAQ 6.9.3. After inserting the PCI 6034E now, everything went flawlessly. Windows recognized the card and installed the drivers. According to MAX the card works fine and my programm is also running.
    After this I enabled the video card again, via bios. Still everything is working fine. I can't tell you how the video card could have caused the trouble, but one should keep this in mind for the future.
    Best regards,
    Theodor

  • Trying to use labview to analyse analog data from a jump on a force plate and measure peak force (at two points, initial land and 2nd land from jump). Also need to mark the time of flight (time off plate).

    Attached is a file of 3 trials of a drop vertical jump activity onto a force plate.  the subject stands on a platform off the force plate, jumps onto the force place and immediately jumps up as if going for a rebound.  I am able to run this data and obtain a waveform graph with no problems.  however, I need to be able to find the initial contact with the force palte, the peak of the drop, the intial time off the force plate (prior to the jump), the return from the jump and finally the second peak (landing from the jump). 
    I want to calculate the time of flight ( time off the plate and in the air after the intial drop) to calculate juimp height.
    I had someone write me a mathscript for it and it works well, however, I need to do it without mathscript as I do not understand mathscript (nor Labview!!).
    Please help
    Attachments:
    Jose_Index and shift register6.vi ‏130 KB
    NI post.docx ‏365 KB

    OK, but I'm not understanding what you're asking us to do... Are you asking us to explain what the MathScript code is doing? (It's searching the array for the elements when the values are above or below a threshold.) Are you asking someone to convert the whole MathScript code to LabVIEW (we are not a code-writing service), or you just want to be able to calculate the new stuff you want with LabVIEW?
    In the future, please do not post proprietary file formats. Most people do not have Word, or Word 2007 for that matter. Please post text files or PDFs. Thanks.

  • Data acquisition and frequency generation togather with PCI-6251 and LV8.2

    Hi friends,
    I am a new user of Labview. I am using LB8.2 with PCI-6251 .
    I have to generate frequency and then measure the data and then for next frequency and so on.
    i know that for this i have to use looping and that is not a problem. The real problem for measurement is to identify whether the frequency is been generated. if yes then measurements starts otherwise it should wait until it started. then after finishing the measurements send a signal to generator for changing the frequency and amplitude.
    Now these two things {generation and measurement} togather are not working correctly for me. so i make 2 diff file, one for generation and other for measurements <by modifying the examples>. I can run both file togather and it works. But it need lots off effort and time. I have to measure from 10Hz to 1000Hz in 2Hz frequency step and i cannt leave in between .
    can anyone help me how to syncronize these two togather .
    Trying to attatch. both the files here ..
    main_v1.1.vi --> for Measuring
    Oscilloscope.vi --> for waveform generation
    Attachments:
    main_v1.1.vi ‏150 KB
    Oscilloscope.vi ‏37 KB

    Hay thnx dude..
    I found the example and now it works
    once again thanks a lot

  • How to use external timebase for Two Edge Separation measurement with PCIe 6351

    Hi
    I am working with PCIe 6351 x series DAQ card.
    counter measurements.
    Here i need to measure the time/no edges between two edges. Falling to Raising of two signals.
    I got the measurement with internal time base.
    here i need to synchronize the measurements with external clock from the external setup.
    so i need to use that external clock,timebase for the counters.
    Any solution please..
    Regards,
    Hari

    First, the VI you mention is NOT for STC timer/counters. Therefore, it won't work.
    If you want to get the time interval between two edges, you want to use the Functions -> Data Acquisition -> Counter -> Count Events or Time VI. This will do the function you are looking for.
    Mark

  • Position Control of compumotor linear servo table and GV-U6E with PCI-7344

    I'm referring PCI-7344 (not 7334).
    I have the GV-U6E which is a drive only and does not possess control functionality. the drive only version does not store or use programs. So, serial commands can not be sent through COM port by LabVIEW even though A few basic commands can be emulated.
    I am trying to do position control as I mentioned. For example, the motor should move A point to B point exactly with a certain speed. The points must be aboulte position.
    I would like you to see the reference comment that I have been contacting with in your website forum.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000DD490000&USEARCHCONTEXT_CATEGORY_0=_14_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_14_&UCATEGORY_S=0
    Regard,
    Jin Ho Lee
    ----- Original Message -----
    From:
    To:
    Sent: Thursday, September 26, 2002 5:00 PM
    Subject: Re: (Reference#1549-QYW196) "Position Control of linear servo table and GV-U6E with PCI-7344
    >
    > Note: Your reference number is included in the Subject field of this
    > message. It is very important that you do not remove or modify this
    > reference number, or your message may be returned to you.
    >
    >
    > JinHo. Compumotor is a very popular brand, and I know of several customers
    > who integrate our 7334 with Computmotor drives. However, when you say that
    > the MAX configuration doesn't fit in the compumotor drive settings, are you
    > referring to the specs from the 7344? It looks like the 7344 and the
    > Compumotor will work well together through a UMI break out box. If you're
    > referring to specific commands that the Compumotor receives, I'd have to
    > know more about the protocol. If the Compumotor needs serial commands,
    > then you can send them through the computer's COM port from LabVIEW.
    > Please let me know exactly what kind of configurations you're trying to
    > set. The 7344 can be completely configured in MAX and LabVIEW.
    >
    >
    > Best Regards
    >
    > Kyle Voosen
    > Applications Engineer
    > National Instruments
    > http://www.ni.com/support
    >
    > ------------------------------------------------------------------------------
    >
    > Problem Description :
    > "Position Control of compumotor 406LXR linear servo table and GV-U6E(motor
    > drive) with PCI-7344"
    >
    > "Since I had the answers referring:
    > http://exchange.ni.com/servlet/ ProcessRequest?RHIVEID=101&RPAGEID=135&
    > HOID=506500000008000000DD490000& USEARCHCONTEXT_CATEGORY_0=_14_&
    > USEARCHCONTEXT_CATEGORY_S=0& UCATEGORY_0=_14_&UCATEGORY_S=0
    >
    > Wiring step was done well. However, I still have a problem that MAX
    > configuration doesn't fit in compumotor drive settings. Therefore, the
    > setup is shown below, and I want to know how I can set up PCI-7344
    > configuration in MAX or LabVIEW VI.
    >
    >
    > -----------------------------------------------------
    >
    > Uploaded from device address 0
    >
    > Gemini GV Servo Drive Setup
    >
    >
    >
    > Motor Setup
    > DMTR 1703
    > Motor ID (406-x-LXR-M-x-D13-x-x-x-x-E5-x-x-x)
    > DMTIC 2.48
    > Continuous Current (Amps-RMS)
    > DMTICD 0.00
    > Continuous Current Derating (% derating at rated speed)
    > DMTKE 17.6
    > Motor Ke (Volts (0-to-peak)/krpm)
    > DMTRES 10.10
    > Motor Winding Resistance (Ohm)
    > DMTJ 119.300
    > Motor Rotor Inertia (kg*m*m*10e-6)
    > DPOLE 1
    > Number of Motor Pole Pairs
    > DMTW 40.5
    > Motor Rated Speed (rev/sec)
    > DMTIP 7.40
    > Peak Current (Amps-RMS)
    > DMTLMN 3.4
    > Minimum Motor Inductance (mH)
    > DMTLMX 3.4
    > Maximum Motor Inductance (mH)
    > DMTD 0.000000
    > Motor Damping (Nm/rad/sec)
    > DMTRWC 0.23
    > Motor Thermal Resistance (degrees Celsius/Watt)
    > DMTTCM 20.0
    > Motor Thermal Time Constant (minutes)
    > DMTTCW 0.33
    > Motor Winding Time Constant (minutes)
    > DMTAMB 40.00
    > Motor Ambient Temperature (degrees Celsius)
    > DMTMAX 90.00
    > Maximum Motor Winding Temperature (degrees Celsius)
    > DHALL 1
    > Disable Hall Sensor Checking
    > DMTLQS 0
    > Set Q Axis Inductance Saturation
    > DMTLDS 0
    > Set D Axis Inductance Saturation
    > DTHERM 0
    > Disable motor thermal switch input
    >
    >
    >
    > Drive Setup
    > DMODE 2
    > Drive Control Mode
    > DRES 8400
    > Drive Resolution (counts/rev)
    > DPWM 16
    > Drive PWM Frequency (kHz)
    > SFB 1
    > Encoder Feedback
    > ERES 8400
    > Encoder Resolution (counts/rev)
    > ORES 8400
    > Encoder Output Resolution (counts/rev)
    > DMEPIT 42.00
    > Electrical Pitch (mm)
    > SHALL 0
    > Invert Hall Sensors
    > DMTLIM 1.5
    > Torque Limit (Nm)
    > DMTSCL 1.5
    > Torque Scaling (Nm)
    > DMVLIM 119.000000
    > Velocity Limit (rev/sec)
    > DMVSCL 119.000000
    > Velocity Scaling (rev/sec)
    >
    >
    >
    > Load Setup
    > LJRAT 0.0
    > Load-to-Rotor Inertia Ratio
    > LDAMP 0.0000
    > Load Damping (Nm/rad/sec)
    >
    >
    >
    > Fault Setup
    > FLTSTP 1
    > Fault on Startup Indexer Pulses Enable
    > FLTDSB 1
    > Fault on Drive Disable Enable
    > SMPER 8400
    > Maximum Allowable Position Error (counts)
    > SMVER 0.000000
    > Maximum Allowable Velocity Error (rev/sec)
    > DIFOLD 0
    > Current Foldback Enable
    >
    >
    >
    > Digital Input Setup
    > INLVL 11000000
    > Input Active Level
    > INDEB 50
    > Input Debounce Time (milliseconds)
    > INUFD 0
    > Input User Fault Delay Time (milliseconds)
    > LH 0
    > Hardware EOT Limits Enable
    >
    >
    >
    > Digital Output Setup
    > OUTBD 0
    > Output Brake Delay Time (milliseconds)
    > OUTLVL 0100000
    > Output Active Level
    >
    >
    >
    > Analog Monitor Setup
    > DMONAV 0
    > Analog Monitor A Variable
    > DMONAS 100
    > Analog Monitor A Scaling (% of full scale output)
    > DMONBV 0
    > Analog Monitor B Variable
    > DMONBS 100
    > Analog Monitor B Scaling (% of full scale ouput)
    >
    >
    >
    > Servo Tuning
    > DIBW 1500
    > Current Loop Bandwidth (Hz)
    > DVBW 100
    > Velocity Loop Bandwidth (Hz)
    > DPBW 40.00
    > Position Loop Bandwidth (Hz)
    > SGPSIG 1.000
    > Velocity/Position Bandwidth Ratio
    > SGIRAT 1.000
    > Current Damping Ratio
    > SGVRAT 1.000
    > Velocity Damping Ratio
    > SGPRAT 1.000
    > Position Damping Ratio
    > DNOTAF 0
    > Notch Filter A Frequency (Hz)
    > DNOTAQ 1.0
    > Notch Filter A Quality Factor
    > DNOTAD 0.0000
    > Notch Filter A Depth
    > DNOTBF 0
    > Notch Filter B Frequency (Hz)
    > DNOTBQ 1.0
    > Notch Filter B Quality Factor
    > DNOTBD 0.0000
    > Notch Filter B Depth
    > DNOTLG 0
    > Notch Lag Filter Break Frequency (Hz)
    > DNOTLD 0
    > Notch Lead Filter Break Frequency (Hz)
    > SGINTE 1
    > Integrator Option
    > SGVF 0
    > Velocity Feedforward Gain (%)
    > SGAF 0
    > Acceleration Feedforward Gain (%)
    > -----------------------------------------------------
    >
    >
    > Regards,
    > JinHo"
    > NI Software :
    > LabVIEW version 6.0
    > NI Hardware :
    > Motion Control device PCI-7344
    > Driver Version :
    > no
    > OS :
    > Windows 2000
    > CPU :
    > Pentium
    > RAM :
    > 128
    > Vendor :
    > DELL
    > Customer Information :
    > Jin Ho Lee
    > North Carolina State Univ.
    > US
    > [email protected]
    > Ph: (
    > 919
    > )
    > 512-9929
    >
    >

    Yes, we used an NI PXI-7344 motion control card with an NI UMI-7764 box connected to a Gemini GV-U12E servo drive. (which is a drive only.)
    We did positional control in absolute position mode.
    I can send you an AutoCAD schematic detailing how to connect the UMI-7764 to the Gemini GV servo drive.
    In regard to the Rs232 interface to the GV servo drive,
    the GV drive only model is "configurable" not "programmable". You can create unique GV configuration files with Compumotor's Motion planner then download the configuration via Rs232 using LabVIEW as desired. Or, using LabVIEW via Rs232 you can change individual GV drive parameters on demand,
    or use the GV's two analog outputs back to LabVIEW's analog inputs to measure commanded motor current or torque, etc.etc.etc

  • SSAS Multidimensional Time Intelligence YTD calculation showing BLANK for Date level

    Hi there,
    I am working with SSAS Multidimensional Cube, basically I have defined a Time Intelligence calculations for just YTD in the Cube, the calculation was created in the Calculations tab of the cube as follows:
    /*Year to Date*/
        [Dimension Dim Time].[Calendar Dimension Dim Time Calculations].[Year to Date],
    [Dimension Dim Time].[Year].Members, 
        [Dimension Dim Time].[Date].Members   
      =
      Aggregate(
                 { [Dimension Dim Time].[Calendar Dimension Dim Time Calculations].[Current Dimension Dim Time] } 
                 PeriodsToDate(
                                [Dimension Dim Time].[Calendar].[Year],
                                [Dimension Dim Time].[Calendar].CurrentMember
    My Calendar hierarchy is as follows:
    Year -> Quarter -> Month -> Week -> Date
    The problem I have is that when I am at Date level I am not getting the cumulative YTD value, instead I am just getting blank cells:
    Could anyone help me defining a Time Intelligence YTD calculation that works for all levels including the Date (highlighted in yellow above)?
    Thanks and best regards,
    Joss

    The only strange thing is the MDX script, I would have used this one instead (sse below) - but if this is not the issue, I would suggest you to isolate the issue in a simpler MDX script removing any other calculation.
    Also take a look at the DateTool solution for these calculations - I really don't like the wizard provided by the development environment, it has other issues but not something that should affect your calculation:
    http://www.sqlbi.com/articles/datetool-dimension-an-alternative-time-intelligence-implementation
    /*Year to Date*/
        [Dimension Dim Time].[Calendar Dimension Dim Time Calculations].[Year to Date],
        [Dimension Dim Time].[Calendar].Members, 
        [Dimension Dim Time].[Date].Members   
      =
      Aggregate(
                 { [Dimension Dim Time].[Calendar Dimension Dim Time Calculations].[Current Dimension Dim Time] } 
                 PeriodsToDate(
                                [Dimension Dim Time].[Calendar].[Year],
                                [Dimension Dim Time].[Calendar].CurrentMember
    Marco Russo http://ssasworkshop.com http://www.sqlbi.com http://sqlblog.com/blogs/marco_russo

  • Daily working hours calculation but Half an hour flexi before start of planned time & shortfall hours calculation

    Dear All,
    I want to calculate daily working hours but Half an hour flexi before start of planned time & shortfall hours calculation if a person didn't completed 9 hours job.
    We have different types of DWS, PWS & WSR for different PS/PSA & EG/ESG groupings.
    We have a requirement for Executives/Officers (E0-E8/ S1-S2) for only one PSA (1100) for only one DWS(GFLX). In this requirement I want to calculate daily working hours but Half an hour flexi before start of planned time & shortfall hours calculation if a person didn't completed 9 hours job.
    Please see the requirement and my configured DWS and PCR's in detail with example and suggest me the solution:-
    Overview
    I want to calculate (Please take the reference from DWS screenshot)
    daily working hours, but starting from first Begin Tolerance Time
    Shortfall of hours if 9 hours not completed, but again starting from first Begin Tolerance Time, although employee has come before Begin Tolerance Time
    I've configured one DWS as below,
    Requirement:-
    The planned shift timings is 9:30 - 18:30. Employees should work and complete 9 hrs in a day, but this 9 hours should be counted only from 9:00 (i.e. Begin tolerance time). It means. In time should not consider before 9:00.
    1. Suppose 1st day employee punch In time is 9:00 then he has to work up to 18:00, then only 9 hours of working will be completed & no shortfall will be calculated.
    In above case, if Out time is 17:00 then shortfall will be calculated 1.0 hours, because his working hours will be counted 8 hrs only.
    2. Suppose 2nd day employee punch In time is 9:45 then he has to work up to 18:45, then only 9 hours of working will be completed & no shortfall will be calculated.
    In above case, if Out time is 18:00 then shortfall will be calculated 0.75 hours, because his working hours will be counted 8.25 hrs only.
    3. Suppose 3rd day employee punch In time is 8:30 then he has to work up to 18:00, then only 9 hours of working will be completed & no shortfall will be calculated. (In between 9:00 - 18:00 ). Here In time is 8:30 but system should consider and count from 9:00.
    In above case, if Out time is 17:30 then shortfall will be calculated 0.5 hours, although he has worked 9 hrs.
    4. Suppose 4th day employee punch In time is 10:11 then he will be marked as Late Come(as per DWS) and then he has to work up to 19:11, then only no shortfall will be calculated, because he completed 9 hours.
    Now the below PCR is calculating Daily Working Hours,
    Now the below PCR is calculating Late Coming Hours,
    Overview
    I know that use of begin tolerance time is different in from my requirement. Please guide me if this DWS configuration will not work.
    As of now system is able to calculate Daily Working Hours (but not from the begin tolerance time), Late coming days and Late coming hours, but shortfall is not getting calculate properly.
    Please give me the idea how to write PCR for these requirement, I know that my ZDHR PCR (Daily Working Hours) needs to change or replace to fulfill this requirements.
    If you want any other details please let me know.
    Best Regards,
    Deepak

    Hi Sankarsan,
    After changing the function PTIP and I used GEN in PAR2, because in PAR3 error was coming.
    After the changes PCR is processing as below for three different IN time :
    1. when IN time is 8:45
    and in this case, ZES table No Time type is showing which is wrong because he worked from 8:45 to 18:30 it means 9:30 hours (calculation should start from 9:00 am).
    2. when IN time is 9:15
    and in this case, ZES table Time type 9002 is showing 9.25 hours which is correct because he worked 9.25 hours.
    3. when IN time is 10:30
    and in this case, ZES table Time type 9003 is showing 9.00 hours which is wrong because he worked only 8 hours.
    Pls suggest.
    Best Regards,
    Deepak

Maybe you are looking for

  • Using Rule 168, SWX_GET_MANAGER and Chief Position

    We have enabled standard SAP Travel Workflow WS20000040 - Approve Trip.   We are not currently using OM relationships A002 (Reports Line to) or B002 (Is Line Supervisor of).   We currently identify the Line Manager of the employee using the Chief Pos

  • Increasing time at end of transfer to new machine?

    I got a shiny new iMac and have been for hours now, transfering data from the old machine to the new one. I was quite happy when it got down to only 6 minutes left... then the the counter turned around and started going up for the past hour - with it

  • Changing Application Availability_Status in runtime environment

    I have a monthly process where team leaders review and approve some data. I want to have the Apex Application (F200) with an Application Status of 'Unavailable' except during the brief period (three days) that the data is published for action. I am c

  • Marketing Attributes(table)

    Hi In which table we will get  marketing attributes assigned to a business partner. Regards, Ajay

  • "Wine" & "Crossover Office" with Solaris 10 GA 03/05

    Hello Solaris - Friends, in Solaris there is the Windows - Emulator "Wine" Version 20041019 (I know, that's not an Emulator ...). Has anybody of you tested it with success ? Please, can you show me your Wine - config - file? And is there anybody, who