Sensor Programming

I am doing kinect sensor project to generate point cloud And
I have to get the shortest distance (value of z in point cloud) between object and Sensor.
I am having problem in getting the right values of z means ditance of object from the camera.
I got some values in milimeter but those are coming .09 like that .That is wrong.
I have used the function NuiTransformDepthImageToSkeleton() for getting the image depth in front of the camera.
This is the method I am getting the data
long* depth2rgb = (long*) depthToRgbMap;
NUI_IMAGE_FRAME imageFrame;
NUI_LOCKED_RECT LockedRect;
if (sensor->NuiImageStreamGetNextFrame(depthStream, 0, &imageFrame) < 0) return;
INuiFrameTexture* texture = imageFrame.pFrameTexture;
texture->LockRect(0, &LockedRect, NULL, 0);
if (LockedRect.Pitch != 0) {
const USHORT* curr = (const USHORT*) LockedRect.pBits;
for (int j = 0; j < height; ++j)
std::ofstream fout3("XYZW_Value_MM.txt");
if (fout3.is_open())
fout3 << "X" << "\t\t" << "Y"<<"\t\t"<< "Z" << "\t\t" << "W" <<
std::endl;
for (int i = 0; i < width; ++i)
// Get depth of pixel in millimeters
USHORT depth = NuiDepthPixelToDepth(*curr++);
// Store coordinates of the point corresponding to this pixel
Vector4 pos1;
Vector4 pos = NuiTransformDepthImageToSkeleton(i, j, depth << 3, NUI_IMAGE_RESOLUTION_640x480);
long double x, y, z, w;
x = pos.x ;
y = pos.y ;
z = pos.z ;
w = pos.w ;
fout3 << x << "\t";
fout3 << y << "\t";
fout3 << z << "\t";
fout3 << w << std::endl;
// Store the index into the color array corresponding to this pixel
NuiImageGetColorPixelCoordinatesFromDepthPixelAtResolution(
NUI_IMAGE_RESOLUTION_640x480, NUI_IMAGE_RESOLUTION_640x480, NULL,
i, j, depth << 3, depth2rgb, depth2rgb + 1);
depth2rgb += 2;
texture->UnlockRect(0);
sensor->NuiImageStreamReleaseFrame(depthStream, &imageFrame);
It is not giving right value .Please suggst.

All Kinect distances are in millimeters. You will need to convert the depth values to inches yourself. Review the depth basics samples for the code needed to pull the depth value point from the depthframe. If you are using the packed version of the depth
frame, you need to ensure you right shift by 3 to remove the lower 3 bits for the player mask.
To get real world coordinates, you need to use the coordinate mapper and map the depth frame to SkeletonSpace. The Depth3D samples demonstrates this.
Carmine Sirignano - MSFT

Similar Messages

  • Real-time Sensors Program

    It's not as grand as a package management wrapper, but...
    Here's the code for a simple C program that will run sensors much like top. I'm sure there's something better out there but I'm not an uber coder yet so, this is my contribution
    #include <ncurses.h>
    #include <stdlib.h>
    #include <string.h>
    int main()
    int ch;
    int exch = -1; /* halfdelay assigns -1 to getch() */
    int fileid;
    char filepath[50];
    char filebuf[50];
    char sysbuf[50];
    FILE *fp;
    /* avoid different users trying to access the same temp file
    by creating random file names */
    srand( ( unsigned int ) time( NULL ) );
    fileid = rand();
    strcpy( filepath, "/tmp/sensorsrt-");
    sprintf( filebuf, "%d", fileid );
    strcat( filepath, filebuf );
    initscr();
    raw();
    noecho();
    halfdelay(1);
    curs_set(0);
    while ( exch == -1 ) {
    /* Check buffer for input to exit loop */
    exch = getch();
    /* run bash command to create temp file with sensor data */
    sprintf( sysbuf, "sensors > %s", filepath );
    system( sysbuf );
    /* open file; if not, exit gracefully */
    fp = fopen( filepath, "r" );
    if ( fp == NULL ) {
    perror( "Cannot open input file" );
    exit(1);
    /* Print file to screen buffer */
    while (( ch = fgetc( fp )) != EOF ) {
    if ( ch == 194 ) continue; /* check for strange characters, you may need to edit this line */
    printw( "%c", ch );
    printw( "Press any key to exit" );
    /* Print file buffer to screen */
    refresh();
    /* Sensors updates about once every 2 seconds */
    sleep(2);
    /* Check buffer for input to exit loop */
    exch = getch();
    fclose( fp );
    move(0, 0);
    endwin();
    /* remove file from /tmp, as it is no longer needed */
    sprintf( sysbuf, "rm %s", filepath );
    system( sysbuf );
    return 0;

    funny. I also made a 2 player snake game a while ago.
    game link: http://home.hccnet.nl/l.vrooland/spel/lineGame.html
    and i also tried to make it multiplayer. (i think a lot of old arcade games have a good multiplayer potential)
    I didnt get very far. I guess that was because i went way to fast. (i wanted a lobby, server, ....)
    after a while i tried again. i made a 2 player space invaders type of game. AND IT WORKED. the game isnt complete yet (no sync, hit detection or score system) but you do see the enemy ship move and shoot.
    this game consisted of 1 application that can act as server or client.
    1 client enters a port number (serversocket) and waits, and th other an IP an port number (socket) and connects. after connection the game starts.
    i had a TCP/IP connection. a string would be sent over the socket with every move ("left","right","stop","shoot")
    i can put some pieces of code here if you want it?
    or i gan give the .java file.
    im not working on it anymore. i now use it as a template for bigger projects.

  • Graphic problem - hardwar, OS or driver problem?

    Dear all Mac's
    I have an MacBook Pro (from February) which has a strange problem: Once in a while, when running Windows, the display goes black. It is not entirely black (as in no power to the screen) but just black. When I turn the computer off and on, the display is still black (ie. not the gray startup color) and I can't get into the boot menu. Only when I remove the power cable and the battery and reinserts, I can get a boot menu back. I though it was a Vista problem, but now I have downgraded to XP and I have the same problem. I have tried installing a temperature sensor program, but I don't think heat is the problem. In Vista, I also tried using other nvidia drivers but with the same result.
    Has anyone experienced anything like this?
    Could it be due to the buggy GPU's I have read entered some of the MacBooks? I have so many colleagues who have the same configuration running without problems so I mostly expect hardware problems at the moment?
    Best,
    Lars Ribe

    Check out these threads:
    http://discussions.apple.com/message.jspa?messageID=8264928#8264928
    http://discussions.apple.com/message.jspa?messageID=7770216#7770216
    I'm also starting to suspect it's an Nvidia GPU issue. But I have found, at least under Vista, that upgrading the Nvidia drivers to the latest version and disabling the Bluetooth Helper service do seem to reduce the occurrence of this issue, if not completely fix it. I do use some bluetooth devices, but find the bluetooth helper service is only required for pairing new devices, so you can enable it manually as necessary.

  • What temperatures are acceptable for the CPU and Graphics card?

    I have Intel Xeon X5400 series CPUs and a Nvidia graphics card.  
    It is interesting to monitor the temperatures but only if you know what temps matter...
    What temperatures are acceptable for the CPU and Graphics card? 
    I was not sure if this is the document of choice for the CPU or not. I was not sure I was decifering it correctly either. 
    http://download.intel.com/design/xeon/datashts/318589.pdf
    Any one know what we should be watching for as far as what is too hot? 
    I have a ThinkStation D10.
    Did not see this in the user manual but could have missed it. 

    I found my specs:
    Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz
    You are correct. An E series. 
    I was so focused on the upgrade to the X5420 that I forgot what the system came with. 
    So what should I set my sensor high value to on my sensor program that shows up on the panel (taskbar)?
    For the E5405 or the X5420? 
    SIDE NOTE: where can I get 2 E5420s or better cheap? 
    Not ready to give up my filters just yet. I live in a dust factory! 
    My girl friend sews really nice bags but creates sewing dust and fuzz. 
    And well there are natural fibers everywhere...
    So other than the the X5492 (150watts),  the X5482, X5472,  X5470, X5460, X5450 are all 120 watts.
    Like the bulk of the X series...
    The E5405, E5410, E5450, E5440, E5420, E5430, E5470, E5462, E5472 are all 80 watts.
    The L series seems to all be 50 Watts.  
     For many the other Processors see this:
    http://www.intel.com/products/processor/xeon5000/specifications.htm?iid=products_xeon5000+tab_specs
    Message Edited by VitalBodies on 12-06-2008 08:46 PM
    Message Edited by VitalBodies on 12-06-2008 09:03 PM

  • U330 Diagnostics Program and Keyboard Sensor Issues

    I'm sorry if this has been posted before but I've been searching for awhile now and can't find it.
    I was wondering if there was any type of diagnostics program for the U330 to test my cpu, fans and the general hardware. 
    Also i was wondering if anyone else with the U330 notices any keyboard sensor issues. Such as, I have to press firmly in the middle of the keys for it to register. Or I have to press firmly on the "T" or "Y" button for it to register the click. It's  very bothersome and I was wondering if anyone else with a U330 has a similar issue?
    Message Edited by droptopmetro on 05-15-2009 01:01 AM

    What do you mean by testing cpu/fan/ram? You can test cpu by OCCT or S&M and you can test RAM by memtest86+
    Regarding keyboard - you should have it replaced, it's a common faoult in some ideapads.
    //help will save the world

  • Drivers for over the air programming for labview in wireless sensor network

    Hi all ,
    In my earlier post, I had requested for information regarding the drivers for Wireless sensor network( WSN) in Labview. I was successfully able to configure my WSN using Labview. thanks to all for the support and help.
    However I have a new querry now. I have developed a WSN testbed with more than 1 mote and more than 1 sensor. all the motes  are spread out and they communicate with the base mote. the base mote is connected to the gateway and the gateway is connected to the PC where labview and moteview are installed.
    Now I need to confure the motes ( ie load a software on the mote which is not connected to the PC) . Is it possible with labview ?
    I mean does labview support this kind of a structure .? Say for ex i have a mote with id = 10 and that mote is one hope away from the base mote ? can i still configure that mote remotely ?
    thanks!

    Hey anilhk,
    When you say "load the software on the mote" do you mean actually reflashing the firmware on the sensor? If so, there is currently no functionality for this in the Crossbow driver. LabVIEW is certainly capable of doing this, but in order to get the functionality, you may have to program it yourself. The Crossbow driver source code is available to view and using the programming documentation from Crossbow you could make modifications to the driver for your own use.
    Regards,
    Chris Delvizis
    National Instruments

  • Help in the programming of the Hc-sr04 ultrasonic sensor

    Hi im new in labview, i have to connect the HC-SR04 ultrasonic sensor to the SensorDAQ, and i have to measure the distance betwen the sensor and an objetc, i have done a little program but the distance is very erratic, and i have seen an example but i dont underestand all the code in the example, so i dont know how to change it to do what i need, later today i will put the to vi's, the one i did and the one i have found, my code is very short adn the code i found i terrible long.
    If my program is bad, can you tellme where adn why? or is not the code the sensor requieres please tell me.
    If the example i add the code i really need can you explain me all the parts, and how to change it in order to function with the sensordaq.
    Can you tell me how to wire the sensor to the sensor daq? i will add my connection diagram and photos so you can help me.
    I have to make a tank sensor with the data of this sensor, and control a stepper motor with it, if the level is less than 20% use the stepper to open a valve, is its gratter than 80% close the stepper.
    Other thing i need is when the level of the tank is gratter than 80% another mottor, non steper have to be turned on and must be running for a set time. when this set time is over a signal of "empty the tank" must be displayed.
    I think is a lot of help what i need, i have wired the stepper mottor(bipolar 4 wires motor)  and i make it run, i dont know how to make it run in either direction so I have to fix this.
    I'm going to add photos and my vis later today, please helpme, the most important thing is to make the sensor to work.
    THANKS FOR THE HELP.
    Solved!
    Go to Solution.

    Hi nmerzul.
    There are two ways to perform DAQ tasks. One is with the DAQ assistant (the one that you are using) and the low level steps (the one of the example). Basically they both work the same. The difference is that you can configure all the settings in one step with the DAQ Assistant and with the other method you can do it step by step. I modified the example with a lot of notes so you can understand the functionality of each step.
    Now, to help you with the wiring of the sensor and the DAQ, could you tell me what DAQ you are using? 
    Thanks
    Francisco S.
    National Instruments
    Field Engineer
    www.ni.com/soporte
    Attachments:
    distance sensor counter (notes).vi ‏89 KB

  • Hello, I trying to create a program that would run a household furnace. I can't find a way to set timers for the ignitor,flame sensor and blowers. Any thoughts.

    Hello, I'm trying to create a program that would run a household furnace. I can't find a way to set timers foe the ignitor,flame sensor and blowers. Any thoughts would be greatly appreciated. Thanks, primetime

    In the detailed help for the event structure there is a link to caveats and recommendations for using event structures.  It is a good starting point.
    It is courteous to let the Forum know when your questions are related to a school assignment or homework.  We are glad to help you learn LabVIEW, but do not do your homework for you.
    You have learned the major disadvantage of the sequence structure: It must run to completion before anything else can happen.
    If you are building a state machine (typically a while loop with shift registers enclosing a case structure with one case per state) and having trouble with timing, then think about your requirements. Apparently you have some time delays, but under certain conditions you must terminate a delay/wait and do something else.  One way of doing this is to have a Wait state.  The wait state has a short delay, determined by the minimum time you can delay responding to a changed condition, and a check to see if the required elapsed time has occurred.  If the time has not elapsed, the next state is the Wait state again.  The state machine can repeat any state as often as necessary.  So a 15 second delay could be implemented by going to a Wait state with a one second wait 15 times. Any error or new command will see a response in no more than one second.
    Lynn

  • Programming Ultrasonic sensor HC-SR04

    Hi
    I'm trying to calculate the distance. I'm using an NI USB-6008 card. It has only one counter. So I'm going to find the digital out and then create a counter (in program). How do I program using only one counter (of the ni 6008)? I need configuration help too.
    Please help.

    Hi kdm,
    again: read the specs of both devices, sensor and USB6008. Compare the specs to understand, what you can achieve with this combination - and what doesn't fit…
    - You can read TTL signals with an AI too. The AI has the advantage of hardware-timed operation with a max sample rate of 10kS/s giving you a timing resolution of 100µs. You can detect echo pulses of atleast 100µs length - but only in 100µs steps (aka resolution). Will this fit for your application?
    - The PFI0 ONLY acts as falling edge counter. That's it. No time measurement. No starting on rising edge and no stopping on falling edge. Just counting falling edges. Will this fit your application?
    AGAIN: Compare the specs of both devices, sensor and USB6008!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Sensor motor program

    Hi.
        Currently im using Epos 50/5 microcontroller to program a motor and sensor. For now i have successfully program a motor and its able to move.
        Right now, im trying to connect a sensor so that when the motor move to a certain degree, the sensor will detect it and stop the motor.
       The sensor is a digital sensor which can give value of 5v or 0v.
       Right now i can control the motor, and configure the input of the sensor but i don't know how to get the sensor data whether if the sensor is 5v or 0v inside the labview..
        The attach are picture of some of the program. I don't know hot to get the 5v or 0v of the sensor to be applied to the motor.
     Im a newbie to labVIEW and i hope that someone can help me thanks.
    Attachments:
    sensor pic.docx ‏29 KB

    Hi DSBlue,
    Unfortunately we are not familiar with the EPOS hardware and library so I don't have the solution. However, there are 2 similar threads that I hope can help you.
    How to detect a photomicrosensor in LabView directly?
    limit switch program for EPOS
    Looks like it might not be possible to display the sensor data value, but you should be able to use your sensor as a limit switch for the motion control.
    I would recommend approaching Maxon to see if they can help.
    Regards,
    Boon Chen

  • Sensor output as input to java program

    hi , pls tell me how to use output from infrared senors as input to java program..................???????
    mail me the code at [email protected]

    Hi,
    Check the following syntax:
    SUBMIT <rep> TO SAP-SPOOL
    [<params>|SPOOL PARAMETERS <pripar>]
    [ARCHIVE PARAMETERS <arcpar>]
    [WITHOUT SPOOL DYNPRO].
    Ex:
    The following executable program is connected to the logical database F1S:
    REPORT SAPMZTS1.
    TABLES SPFLI.
    GET SPFLI.
    NEW-LINE.
    WRITE: SPFLI-MANDT, SPFLI-CARRID, SPFLI-CONNID,
    SPFLI-CITYFROM, SPFLI-AIRPFROM, SPFLI-CITYTO,
    SPFLI-AIRPTO, SPFLI-FLTIME, SPFLI-DEPTIME, SPFLI-ARRTIME,
    SPFLI-DISTANCE, SPFLI-DISTID, SPFLI-FLTYPE.
    The following program calls SAPMZTS1 and sends the output to the spool system:
    REPORT SAPMZTST NO STANDARD PAGE HEADING.
    DATA: VAL,
    PRIPAR LIKE PRI_PARAMS,
    ARCPAR LIKE ARC_PARAMS.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
    LAYOUT = 'X_65_132'
    LINE_COUNT = 65
    LINE_SIZE = 132
    IMPORTING
    OUT_PARAMETERS = PRIPAR
    OUT_ARCHIVE_PARAMETERS = ARCPAR
    VALID = VAL
    EXCEPTIONS
    ARCHIVE_INFO_NOT_FOUND = 1
    INVALID_PRINT_PARAMS = 2
    INVALID_ARCHIVE_PARAMS = 3
    OTHERS = 4.
    IF VAL <> SPACE AND SY-SUBRC = 0.
    SUBMIT SAPMZTS1 TO SAP-SPOOL
    SPOOL PARAMETERS PRIPAR
    ARCHIVE PARAMETERS ARCPAR
    WITHOUT SPOOL DYNPRO.
    ENDIF.
    Regards,
    Bhaskar
    Edited by: Bhaskar Chikine on Sep 9, 2008 4:33 PM

  • Filtering P2P programs by IPS sensor

    Hi,
    I tried to stop P2P programs by enabling all signatures of P2P. some programs were stopped like Kaza but may other programs like lime-wire and others were still working. I tried to modify the signatures to add ports of regex to it but I couldn't find any information about this programs. can any one help me with that issue.
    Thanks.

    You could get some help from the regex built-in the ASA firewall and try to add them in IPS. Also looking at the signature definitions of the open source snort IPS might also help.
    show run all regex (for the ASA)
    Regards
    Farrukh

  • Ajuda com logica de sensores

    Boa tarde,
    Sou leigo em Labview, estou precisando fazer um projeto onde tenho 2 sensores, quan o 1 for atuado comecar a contar o tempo e so parar qnd o  2 atuar, ai com o tempo eu calcular a velocidade e aceleração.
    ate agora eu ja montei o circuito dos sensores, fiz uma logica no labview tb, nao como eu queria... a minha funciona da seguinte maneira, qnd eu aciono o sensor ele começa a contar o tempo, mais qnd desaciona ele para a contagem... ele so deveria parar qnd o sensor 2 fosse acionado.
    Em anexo segue o que fiz, espero que alguem posso me ajudar, estou bem perdido com o Labview.
    Estou usando um arduino UNO e o toolkit para fazer o programa.
    qq coisa meu e-mail: [email protected]
    Att.
    Rafael
    Anexos:
    2 sensor 26-4-13.vi ‏17 KB

    Rafael,
    Você enviou apenas a VI principal. Ficaram faltando algumas sub-VIs. Mesmo assim, pelo que pude entender o acionamento do sensor 1 é sempre antes do sensor 2. Assim, aconselho a fazer uma máquina de estado sequencial simples com as seguintes etapas:
    Inicialização: valores, comunicação serial, etc.
    Espera acionamento do sensor 1
    Guarda momento do acionamento do sensor 1
    Espera acionamento do sensor 2
    Guarda momento do acionamento do sensor 2
    Calcula e apresenta tempo decorrido
    Encerramento: fechar comunicação serial, etc.
    Se você não sabe como montar uma máquina de estado simples pode simplificar mais ainda colocando cada passo em um quadro (frame) de um Flat Sequence.
    André Manzolli
    Engenheiro Mecânico
    Certified LabVIEW Developer - CLD
    LabVIEW Champion

  • The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or

    I have taken the cfdump for tmpqry and it shows all data for
    the range ( No error at this step ) . But when we exceute this
    dbquery we get below mentioned error .
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    senerio:
    I am using createobject to create a reference for component
    and call MDArraySort function in the cfc and getting this error .
    'The system has attempted to use an undefined value, which
    usually indicates a programming error, either in your code or some
    system code.
    Null pointer is undefined.... '
    i am using this code in a cfc file.
    <cffunction name="MDArraySort" Returntype="query"
    access="public" >
    <cfargument name="colArray" type="array"
    required="true">
    <cfargument name="colNames" type="string"
    required="true">
    <cfargument name="colSort" type="string"
    required="true">
    <cfargument name="sensorIDs" type="string"
    required="true">
    <cfscript>
    var tmpqry = Querynew(arguments.colNames);
    var qRow = QueryAddRow(tmpqry, Arraylen(arguments.colArray)
    </cfscript>
    <cfloop from="1" to="#Arraylen(arguments.colArray)#"
    index="qRowIndex">
    <cfscript>
    sIndexinSensorIDs = colArray[qRowIndex]["SENSOR"]&"##";
    Temp_readin_code =
    colArray[qRowIndex]["READING_CODE"]&"##";
    QuerySetCell(tmpqry, 'SENSOR', sIndexinSensorIDs,
    qRowIndex);
    QuerySetCell(tmpqry,
    'TYPE',javacast('String',colArray[qRowIndex]["TYPE"]), qRowIndex);
    QuerySetCell(tmpqry, 'TIMESTAMP2',
    LSParseDateTime(colArray[qRowIndex]["TIMESTAMP2"]), qRowIndex);
    QuerySetCell(tmpqry,
    'ORDER_BY_PARAM',javacast('String',colArray[qRowIndex]["ORDER_BY_PARAM"]),
    qRowIndex);
    QuerySetCell(tmpqry, 'READING_CODE',Temp_readin_code ,
    qRowIndex);
    QuerySetCell(tmpqry,
    'READING',javacast('String',colArray[qRowIndex]["READING"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'PK_READING',javacast('String',colArray[qRowIndex]["PK_READING"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'ALARM_STATUS',javacast('String',colArray[qRowIndex]["ALARM_STATUS"]),
    qRowIndex);
    QuerySetCell(tmpqry, 'DURATION',
    javacast('String',colArray[qRowIndex]["DURATION"]), qRowIndex);
    QuerySetCell(tmpqry,
    'DESCRIPTION',javacast('String',colArray[qRowIndex]["DESCRIPTION"]),
    qRowIndex);
    </cfscript>
    </cfloop>
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    <cfreturn qry >
    </cffunction>
    It is working fine for some date range and and getting above
    mentioned error in sone situation .

    Hi All ,
    Thank you for your support ,
    Finally i have fix the issue using some changes in my
    function in cfc .
    <cffunction name="MDArraySort" Returntype="query"
    access="public" >
    <cfargument name="colArray" type="array"
    required="true">
    <cfargument name="colNames" type="string"
    required="true">
    <cfargument name="colSort" type="string"
    required="true">
    <cfargument name="sensorIDs" type="string"
    required="true">
    <cfscript>
    //Declare variable collection used in function as local
    --->
    var tmpqry =
    Querynew(arguments.colNames,"CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_DATE,CF_SQL_VARCHAR,CF_ SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR");
    var qRow = QueryAddRow(tmpqry,
    Arraylen(arguments.colArray));
    </cfscript>
    <cfloop from="1" to="#Arraylen(arguments.colArray)#"
    index="qRowIndex">
    <cfscript>
    // Populate the query table
    QuerySetCell(tmpqry, 'SENSOR',
    colArray[qRowIndex]["SENSOR"], qRowIndex);
    QuerySetCell(tmpqry,
    'TYPE',arguments.colArray[qRowIndex]["TYPE"], qRowIndex);
    QuerySetCell(tmpqry, 'TIMESTAMP2',
    LSParseDateTime(arguments.colArray[qRowIndex]["TIMESTAMP2"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'ORDER_BY_PARAM',arguments.colArray[qRowIndex]["ORDER_BY_PARAM"],
    qRowIndex);
    QuerySetCell(tmpqry, 'READING_CODE',
    colArray[qRowIndex]["READING_CODE"] , qRowIndex);
    QuerySetCell(tmpqry,
    'READING',arguments.colArray[qRowIndex]["READING"], qRowIndex);
    QuerySetCell(tmpqry,
    'PK_READING',arguments.colArray[qRowIndex]["PK_READING"],
    qRowIndex);
    QuerySetCell(tmpqry,
    'ALARM_STATUS',arguments.colArray[qRowIndex]["ALARM_STATUS"],
    qRowIndex);
    QuerySetCell(tmpqry, 'DURATION',
    arguments.colArray[qRowIndex]["DURATION"], qRowIndex);
    QuerySetCell(tmpqry,
    'DESCRIPTION',arguments.colArray[qRowIndex]["DESCRIPTION"],
    qRowIndex);
    </cfscript>
    </cfloop>
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    <cfreturn qry >
    </cffunction>
    Rajesh
    SCMS
    India

  • GPU 0 Die Temp Sensor ERROR on a MacBook Pro. Can anybody help?

    Hello.
    My wife has a 15-inch, 2.4GHz MacBook Pro model 3.1 laptop.
    All of sudden the screen started to flicker, and after that,  it could no longer be booted. Applelogo visible but the timewheel stops and nothing happens.
    I managed to get hold of a copy of ASD (Apple Service Diagnostic) for her computer, and I found out what was wrong:
    There is a test called "Temp Sensor - GPU 0 Die Temp" that fails. I get the following message:
    "Temp sensor GPU 0 Die Temp test 1 - Sensor Reads Within Operating Range
    - Check to ensure that sensor reads within operating range.
    ERROR - Unable to read sensor
    - TEST FAILED -
    Temp sensor GPU 0 Die Temp test 8 - Sensor Noise Test
    - Checks that sensor Noise is within spec.
    ERROR - Unable to read sensor
    - TEST FAILED -"
    If I look in the "Hardware Profile" under "sensor" I find the following:
    "Sensor
    type:            Temperature
    location:            TG0D
    low-limit:            15
    high-limit:        85
    reading:            1.0
    description:        GPU 0 Heatsink Temp
    noise-tolerance:    1.0"
    The thing is that the problem seems to be intermittent. It comes and goes. All of a sudden the test passes and I can boot the computer. Some days the computer can  work for a whole day, so it doesn´t  seem to be related to temperature.
    What do you guys and girls think? Is this fixable by myself? Does anybody know where this sensor is located? Maybe it´s just a bad connection, since it´s intermittent?
    I feel I have come a little bit on the way to be able to solve this issue, and it would feel like a failure to be forced to leave the computer at an Apple Service Center, if it´s even worth it to do that. There is a risk that the computer is not worth a repair.
    Could someone please chime in here for a clever advice?
    Thanks.
    Bo Reimer.

    Welcome Bo!
    It may be related to a known problem with MBPs 3,1 and 4,1. Some had a bad Nvidea Geforce 8600M GT video chipset that could fail under high heat cpnditions. There is an Apple Repair Extension Program (REP) that will fix the defect at no charge for up to four years from date of purchase:
    http://support.apple.com/kb/TS2377
    You'll need to have an Apple retail store or an authorized service provider check the computer with a special test gadget for positive ID of the problem to qualify. If it does, you get a new logic board. Reported turnaround for the fix is from same day to three days.
    If their test does not turn up the Nvideo curse, you still have an affordable repair option if you live in North America (It would he helpful if you fill in the "Geographic Information" field in your profile--at this point I'm having to assume you're in N. America)).
    The option is a depot repair. Apple sends your computer to their central refurbishment facility and bascially fixes anything outside of cosmetic damage for a flat fee of about US$315--much cheaper that a new computer. Taxes and shipping may apply.
    People who have used this option are reporting excellent results and a turnaround of about one business week.

Maybe you are looking for

  • Error is displayed when I try updating my iPod

    When I try to update my iPod, all of the sudden it now shows a error message that says "Songs on the iPod cannot be updated because all of the playlists selected for updating no longer exist." I don't know what this means and I don't know how to fix

  • ITunes won't recognize iPod Nano 6G

    I restart the PC Reinstall again and again iTunes. I have the latest update of iTunes. The problem is that when I connect the iPod to the USB port (any port), my PC makes a little sound, but then nothing happens, I disconnect the iPod and still makes

  • Site will not center in Explorer but does in Firefox

    Hi, I just made this site http://www.theartisticreation.com It looks perfect (to me) in firefox, but in explorer it does not site relative center in the window? Can anyone help me figure this out? I have everything inside a container div which is sty

  • The "Apps" button has disappeared from my iTunes

    I used to click on it and download app updates. Where has it gone?

  • Text rendering property

    Firefox 3 supported the text-rendering property. Does ff8 also support the above property? From what i have come to understand it does not that is why i am asking, to be certain. Besides it does not make sense an older version supporting it and and a