LM92 I2C temperature sensor with NI-8451

Hello !
I try to communicate with a LM92 temperature sensor via the NI USB-8451 by I²C protocol. I have an issue with the addressing because the 7 bits sensor address is 1001011 (A1 and A0 set to 1) but the LM92 is working in little endian (LSB first) and Labview adds the R/W bit at the end of the address so the complete frame sent to the LM92 is 1001011R/W.
I'm trying to find a solution to invert the complete frame before seending it in order to communicate with the LM92.
Labview returns the error -301742 because the address is not the wright one and i can't find how to send the adress in little endian.
I just need to read the temperature register of the sensor so i don't need to write anything in it.
Does anyone have an answer ?
Solved!
Go to Solution.
Attachments:
LM92CIM.pdf ‏773 KB
Temperature read.vi ‏17 KB

Sanguigui wrote:
Hello !
I try to communicate with a LM92 temperature sensor via the NI USB-8451 by I²C protocol. I have an issue with the addressing because the 7 bits sensor address is 1001011 (A1 and A0 set to 1) but the LM92 is working in little endian (LSB first) and Labview adds the R/W bit at the end of the address so the complete frame sent to the LM92 is 1001011R/W.
I'm trying to find a solution to invert the complete frame before seending it in order to communicate with the LM92.
Labview returns the error -301742 because the address is not the wright one and i can't find how to send the adress in little endian.
I just need to read the temperature register of the sensor so i don't need to write anything in it.
Does anyone have an answer ?
I do not have the USB-8451 to check this myself, but based off of this document: http://www.ni.com/white-paper/5767/en/ I would guess you should be looking into these two VIs:
Advanced LabVIEW API for Device Addressing
Use the Script Address + Write or + Read Functions after a Script Issue Start function to program the device address.
Note:  This, however, is just a shot in the dark.  It seems like deep down they are calling a library, so it may be out of your control unless you have access to the library being called as well. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!

Similar Messages

  • Help with Omega Infrared Temperature Sensor with USB Interface Model(s): IR-USB

    Hi,
    I am a beginner when it comes to labview and was wondering if the IR-USB sensor by Omega was compatible with LabVIEW and whether anyone has worked with them before in lv. I also want to find out whether the vi for this sensor is easily available. I am not too sure about which infrared temperature sensor will work best with lv.
    Thanks

    Hi,
    It appears it isn't compatible straight away.  It is designed to talk to the software provided by Omega and they don't appear to provide drivers for development in other programming languages.
    Having said that it theoretically could be.  It appears that although the connector is USB the device actually mimics a serial port which we can easily interact with from LabVIEW.  To do this though we would need to know the commands to send and the format of the data received.  This would usually be obtained from the manufacturer.
    My suggestion would be to contact Omega and see if they can offer a LabVIEW driver or a programmers manual with the commands for the device.  If not they may be able to recommend something that would be compatible.
    Regards,
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

  • Can SCC-RTD01 be used with Cernox RTD's, silicon diode temperature sensors?

    Hi,
       Can the SCC-RTD01 be used with negative temperature
    coefficient RTD's such as the Cernox RTD's.  Can it be used with
    silicon diode temperature sensors?
       I was planning on using the SCC-RTD01 with platinum
    resistance wires, but want a screw mount type sensor.  Couldn't
    find any platinum RTD devices with screw mounts, but could find the
    Cernox and diode temperature sensors with the screw mounts.
    Thanks,
    Mark

    Mark,
    Thank you for contacting National Instruments!  When you configure an RTD channel in the Measurement and Automation Explorer (MAX), you have the option of choosing from a list of "standard" RTD's or entering your own polynomial expression as the temperature coefficients.  Therefore, negative coefficients shouldn't pose a problem.  Also, I don't see any reason why a silicon diode temperature sensor would pose a problem either. 
    I hope this information is helpful to you!
    Jeff P.
    National Instruments Applications Engineer
    Jeffrey P.
    LabVIEW Product Management
    National Instruments

  • Need help - I2C write/read with TAOS TCS3414 light sensor using USB-8451

    Hello, I'm new to labview and need help setting up a vi that will allow me to communicate with a digital light sensor (TAOS TCS3414) using a USB-8451. I need to use the sensor to measure light from a light source that I designed and built as part of a project im working on. I've tried looking at several labview I2C exampled but find them to be very confusing. I've used an arduino to interface with the sensor successfully but need to use labview and dont understand how to write the program. The actions are simple; I need initialize the sensor with a simple command and then request data from 8 data registers and then read that data. The data will then be used in further calculations. The portion i need help with is writing and reading from the sensor. I've attached the datasheet for the sensor as a guide. I can also provide the arduino code that i use to read data from the sensor if that would help. 
    Pleae keep in mind that i am completely new to labVIEW. I really do want to learn from this but need quick results so the more help the better. It would greately appreciate any help or explaination. 
    Attachments:
    TCS3414_Datasheet_EN_v1.pdf ‏1806 KB

    Hi Aaron,
    Here you go, this is made with a USB-8452.
    When you run the code tick the power en dac enable box on.
    Maybe you can help me with my problem, I want to use a fiber to sense light from a led.
    Do you use any fiber hardware with the TCS3414?
    gr,
    Attachments:
    TCS3414.vi ‏63 KB

  • Can FieldPoint be configured for use with 4 wire temperature sensors?

    I would like to build a fieldpoint-based measurement system that is configured to accept 4 wire type low temperature sensors, pressure sensors, and several 4 wire (100ma) magnetic hall sensors.  Each 4 wire temperature and magnetic hall sensor will require a stable current source (20ma -100ma range).   We need to be able to synchronously read up to 8 sensors.  Under certain circumstances we would like update rates up to 50 Hz (0.02 seconds) on all 8 channels.  We currently have FieldPoint products, such as FP-1001 modules (RS-485 Network Interface), FP AI-110 modules (8 channel, 16 bit analog input), FP-RTD-122 modules (8 channel RTD input), FP-RLY-420 modules (SPST Relay), FP-TB-1 (36 screw terminal, Universal Terminal Base), NI-SCC-68 (68 pin Terminal Block with 4SCC expansion slots), PCI-8431 (RS-485 Serial 2 Channel Card), and other FP modules on hand that we would like to use in this experiment design if possible.  I would like more information on the NI FP-RTD-124, (4 wire, 8 ch., 16 bit RTD input module) regarding use with platinum RTDs and low level/low temperature signals, and maximum refresh rates.  Thanks for your help,
    LGF    

    Hi LGF.  FP-RTD-124 info is here: (c)FP-RTD-124 manual.
    The range of the -124 on the low end is -200C; we use it to -196C with 100 ohm Platinum sensors with good results.
    The update rate, ~ 1S, however, is not going to meet your requirements. Can your temperatures really change that rapidly?
    The excitation is fixed at 2mA x 135 mS with a period of 1S.  Fine for an RTD, don't know about your Hall sensors.
    Your AI-110 module can be configured to read the Hall sensors with external excitation but the maximum update rate is 0.173S.
    Hope that helps.
    Matt

  • Interfacing temperature sensor LM35 with Labview

    I would like to know the best possible way by which I can interface a temperature sensor LM35 with Labview for monitoring the temperature of patients that can be incorporated into a patient monitoring device that includes monitoring of ecg, hrv, spo2 and cuffless bp (calculated using PPT, pulse transit time).

    Sorry no Danny, thanks to Dennis_Knutson,
    By some how you have cleared my confusion a little bit, now i will apply it practically and will ask queries if having any problem.
    I appreciate to you quick response Dennis_Knutson

  • I2C interface (Sensor Data Acquisition) LabVIEW

    Hi all!
    Hope you are doing great!
    Well I have a question which is more about asking all you for an idea!
    The Situation:
    I have a circuit board which has an On-Off Valve, Digital pressure sensors (manufacturer AMD) and Humidity/Temperature Sensors (make- IST Hygrosens). On the board all the sensors communicate as I2C slave devices and all the data from the sensors is read into an I2C --> USB adapter chip which further connects to the PC via normal USB cable.
    Additional to this board, There is a Relay circuit with a simple 1-pole relay which controls an on-off valve on the above Circuit board. This valve is controlled totally separate via a coaxial cable from the relay directly to the Valve. But the relay board has a I2C interface and it also acts as a slave device. The relay board has the same I2C --> USB adapter chip.
    Both the Relay board and Sensor board connect via USB to the PC which I suppose is the Master device.
    The software code written for this arrangement and Sensor data acquisition is too old and there are a lot of problems coming. I have almost given up troubleshooting..
    I now want to translate this automation system onto LabVIEW. I searched the NI website where there is a DAC card called - USB8451 which supports I2C interface... I am a beginner in LabVIEW and cant really make sense out of how should I go about implementing this system on LabVIEW..
    If you guys can please help me out to atleast start (like what all hardware I would need etc..), to have a clear picture, it would be great help!!
    Looking forward to your inputs and Thank you so much in advance!
    Cheers!
    Pramit

    NI provides a LabVIEW API for the USB8451.  If you use the USB8451, you would use the provided API to write a program that controls the USB8451 and you would do all of the I2C communication in your program.  This would mean using functions / SubVI's to connect to the USB8451 and then perform I2C operations through it.
    If you use USB already on your device, then you would probably use NI-VISA as the driver and have to get / write your own API to talk to the specific device.  The manufacturer may have a LabVIEW (or other) API available for talking to the device that you could get.  If not, then you would have to understand the details of how to communicate with the device and then write an API using NI-VISA serial functions.  This would mean making NI-VISA be the assigned driver for the device and then using VISA Serial functions / SubVI's to send the messages and receive the responses.

  • Faulty Temperature Sensor?

    Recently, I was given an old Mac g4 15" Powerbook that the owner no longer wanted. This is the first Mac I have owned as well as the first laptop. It worked fine for me for several weeks, and I got a new battery and upgraded the RAM. Then it started putting itself to sleep seemingly randomly, while I was in the middle of using it. It's fine for a little while upon turning on, and then may start to do this every minute. I changed the battery and memory back to the original pieces, the problem persists. The last time, it would not wake up at all. I finally took out the battery and power cord and held down the power button and restarted it.
    Looking around online, I have found other people experienced this 'narcoleptic computer' issue with g4s, but no clear solution. The consensus seems to be a faulty trackpad temperature sensor sends the computer into sleep. I checked my system.log and found emergency overtemp warnings at the times it was sent to sleep. I downloaded Temperature Monitor and found that the trackpad temp would spike way up and down while the other temperatures remained consistent. Sometimes there is no temperature reported for the trackpad at all, at times it behaves normally until the computer is jostled, leading me to believe it might be an issue with something come loose.
    Is this something that has been resolved? I saw a couple suggestions to open it up an remove the trackpad temperature sensor entirely, does anyone know if that fixes the problem in the long term? I have also tried resetting the pram and the pmu, setting the power saver preferences to never put it to sleep, trashing my power saver preference files, disabling bluetooth, and running the computer off the power cord only with no battery. Next I will try opening the whole thing up and tightening everything I can see to tighten.
    I know it's getting up there in years, but the computer worked fine for what I wanted until this started. I would be very grateful for any advice on how to deal with this issue.

    Hello Kate,
    The track-pad heat sensor is +*one of the causes*+ of narcoleptic powerbooks, but from my experience it is more usually related to a faulty keyboard. Sticky or bent keys, dirt, soda, faulty light sensor are more likely the cause. It is highly unlikely anything has become lose inside the machine as all factory fitted screws are sealed with a lock-tight adhesive or equivalent. Try turning off the illuminated keyboard (F8) and see if it persists. Opening the machine is not a bad idea although, you will find very little in the way of visual determiners. Open it up and give it a good clean out. A small soft paint brush and a can of compressed air will do the job. Just be careful to blow the garbage out and not deeper into the machine.
    A suggestion to pin-pointing the problem: Can you hook it up to an external display, keyboard and mouse? If so, start the computer, close the lid and wake it with the external mouse. See if the problem persists. If it does, at least you know the track pad sensor is fine and it must be related to the keyboard or a general overheating issue, which may be something as simple as a faulty stick of RAM.

  • Lenovo G550 GPU temperature sensor

    Hi everyone, 
    I have lenovo G550 laptop and there is a problem with GPU (NVIDIA GeForce G210M) temperature sensor. So, when i turn on laptop the sensor is showing 'bout 70°C and when i run some programs like Chrome, paint etc. the temperature jumps over 95 °C. But the problem is that laptop is COLD , temperature is OK.  The air from fan is COLD, not warm. 
    I have opened it and cleaned it from dust, it's clean like in pharmacy store.  When temperature reach 100°C the laptop turns off automatically but it is still cold :/.
    . I updated BIOS and it's even worse :/  sensor on start show 90°C and then raising :/. I also tried serval diferent versions of NVIDIA drivers.
    So,  maybe it's hardware problem with sensor, and i'm wondering is there anyway to deal with it? Or how can i set the the max value of temperature where laptop shut down automaticallly (there is no such option in BIOS) ?
    Thank you.
    Solved!
    Go to Solution.

    I solved it, 
    the problem was in thermal paste and some protective  nylon over GPU. The nylon was detached on some parts  and I removed it at all. Then noticed that there is a litle bit of thermal paste on one of the components on GPU. I cleared it, and temperature is 50°C. The thermal paste probably covered temperature sensor and cause a false reading of sensor.
    Thany you for reading  

  • Do we have driver available for Lake Shore Model 128 temperature sensor?

    Do we have driver available for Lake Shore Model 128 temperature sensor? I want to make sure before we start writting our own drivers to communicate with this hardware.
    Thanks,
    Marivell Baez

    Hi Marivell,
    Take a look at ni.com/idnet. A quick browse found Lake Shore Cryotonics Temperature meters here: http://sine.ni.com/idnetwork/main/p/sn/n25:LM/sb/navsRel?q=lake+shore+temperature&x=0&y=0
    This may not be what you are looking for though and consulting with your user manual for the appropriate commands to be sent would get you in the right direction for creating a complete set of Sub-VIs. Is this device a sensor or a meter controlled via an instrument protocol (GPIB, Serial, LAN, etc.)
    PBear
    NI RF

  • Scb 68 temperature sensor

    Hi All,
    Is it possible to read the value of the internal temperature sensor of the SCB68?
    I am using NI PXI-6259 card. I have set the SCB 68 switches to 'MIO with differential temperature sensor mode' and i think i should be able to read the sensor value on AI0 and AI8 in differential mode. - As per page 6 of the user guide.
    Initially i would like to read the value using MAX, but i am struggling to setup MAX to read the sensor.
    I open max, find the 6259 card, open test panel, but then i can't see anything that looks like AI0 / AI8 differential mode.
    Will the value be in degrees C, or will it be a number that requires scaling?
    Many thanks,
    Oliver.

    Hey Oliver
    The value read would be a voltage so would need scaling. The temp sensor in the SCB 68 is used to calculated the CJC of a connected temperature sensor. Below is a useful link on how to do this.
    http://digital.ni.com/public.nsf/websearch/7F2EA1FE43537A0E8625652200522718
    I see no reason why you couldnt read the voltage read from the daqmx task as described in the link.
    Matthew Trott
    Applications Engineer
    National Instruments UK
    www.ni.com/ask

  • GX70 - Temperature Sensor

    Hello Everyone,
    Problem description:
    I have noticed that temperature sensor indicator stops updating when I plug in VGA cable to my laptop (TV and monitor checked)
    When VGA cord is not plugged everything is OK.
    GPU temp sensor works fine and also in AIDA64 sensors for CPU 1 to 4 core works well. Unfortunately Fan speed is connected to Overall CPU sensor.
    Looks like if VGA socket is busy temperature sensor hangs.
    Example:
    My notebook after restart speeds up fan to maximum because indicator in AIDA64 shows 1 C even if my laptop is in idle. Other way I do not want to overheat my machine during gaming when temp sensor hangs at 37C fan will work with 35% of speed. Real CPU temperature will be 75C-80C. Fan will not cool CPU properly.
    Anyone has or had similar problem?
    I have latest BIOS, Firmware and AMD Video Drivers installed
    BIOS : E176KAMS.10G
    AMD Drivers: 14.4
    I have also checked previous BIOSES and Video Drivers. No effect. Same issue.
    CPU: A10-5750M
    Graphic Card: AMD Radeon 8970M

    ..or..
    Did anyone know how to connect fan speeds table to GPU temperature instead of CPU temperature table in EC?
    That would more or less solve my problem since GPU and CPU units are connected by same heat pipe and have very similar temperatures.
    BTW
    This looks like a bug in Firmware or BIOS to me. What do you think?
    I asked MSI in Customer Online Help few days ago, but they haven't replayed yet.

  • Best way to have hard drive temperature sensor replaced?

    Hi all—
    During an attempt to upgrade the hard drive in an early 2009 Mac Mini, I accidentally severed the connection between the hard drive temperature sensor and the interconnect board. I've confirmed with a friend knowledgable in this area that there is no reasonable way to solder it back on or otherwise fix it as it currently is.
    From what I can tell, I can either use a software hack to override the Mac Mini's fan speed, which I would prefer not to do, or I can have it replaced by a professional [I don't feel comfortable making such an in-depth repair on my own, especially since what should have been a simple drive swap has rendered the computer unusable, unless one can tolerate it sounding like a hair dryer].
    Does anyone have any recommendations on where I should take the Mini to get repaired? I've read online that Apple does not sell the interconnect board on its own--you have to buy a hard drive already attached to it. That would be fine, but is this the type of thing that a Genius will work on, or will I need to venture to an "authorized" repair facility? Any nudge in the right direction would be greatly appreciated.

    bvogts wrote:
    Hi all—
    During an attempt to upgrade the hard drive in an early 2009 Mac Mini, I accidentally severed the connection between the hard drive temperature sensor and the interconnect board. I've confirmed with a friend knowledgable in this area that there is no reasonable way to solder it back on or otherwise fix it as it currently is.
    Ouch, I know exactly what you mean. One of my friends had that on her Early 2010 Mac Mini, I had to redo the connector with a new wire and then solder that to the end of the existing wire on the HDD. Difficult work when she severed in in two places
    bvogts wrote:
    From what I can tell, I can either use a software hack to override the Mac Mini's fan speed, which I would prefer not to do, or I can have it replaced by a professional [I don't feel comfortable making such an in-depth repair on my own, especially since what should have been a simple drive swap has rendered the computer unusable, unless one can tolerate it sounding like a hair dryer].
    I would stay well clear of all hacks to Apple hardware. They always get detected and get wiped out every time you update to the latest OS X update, for example OS X 10.7.1 to OS X 10.7.1.2 when it comes out. This will mean you will have to redo your hack; it could be much more frequent than that.
    bvogts wrote:
    Does anyone have any recommendations on where I should take the Mini to get repaired? I've read online that Apple does not sell the interconnect board on its own--you have to buy a hard drive already attached to it. That would be fine, but is this the type of thing that a Genius will work on, or will I need to venture to an "authorized" repair facility? Any nudge in the right direction would be greatly appreciated.
    If you are not comfortable with doing the repair then take to to an authorized repair facility or buy the part of eBay as you can get them at a reasonable price. I have just looked for you and there are loads, in the UK, where I am and in America too. You can then take this part and they will swap it over for you, with a small cost, but it will solve your problems properly and will stop your Mac Mini sounding like a hair dryer!
    I hope this helps, if not then give me some more details, I am happy to help!

  • Hard drive upgrade temperature sensor

    I was watching the OWC video (www.macsales.com) on upgrading the internal hard drive and it showed a temperature sensor attached to the hard drive. It looks like the sensor is attached to a plug or something on the front of the Hitachi drive. I have a Seagate 500GB drive and I don't see any plug in front of the drive that I can attach this heat sensor plug to.
    Am I seeing this right? Or can I attach the sensor to any part of the front of the Seagate drive? Or is there a specific part of the drive I should attach the sensor to?
    Thanks.

    Well,
    You're seeing correctly. There is no plug. It is just stuck at that particular spot with sticky adhesive.
    I put a 320 GB Hitachi drive almost immediately in my 2009 Mac mini, and the adhesive seemed to re-stick quite well onto the new drive.
    Peace to you,
    C. Livingstone

  • 6509 temperature sensor showing -127

    SNMP agent on numerous 6509's is reporting -127 on the:
    It appears to be isolated to:
    module 5 aux-1 temperature Sensor
    module 6 aux-1 temperature Sensor
    and inconsistantly to:
    module 5 RP inlet temperature Sensor
    module 5 RP outlet temperature Sensor
    module 6 RP inlet temperature Sensor
    module 6 RP outlet temperature Sensor
    Cisco MIB is reporting:
    1.3.6.1.4.1.9.9.91.1.1.1.1.4.7006: 19
    .1.3.6.1.4.1.9.9.91.1.1.1.1.4.7007: 24
    .1.3.6.1.4.1.9.9.91.1.1.1.1.4.7008: 22
    .1.3.6.1.4.1.9.9.91.1.1.1.1.4.7009: -127
    .1.3.6.1.4.1.9.9.91.1.1.1.1.4.7010: 21
    .1.3.6.1.4.1.9.9.91.1.1.1.1.4.7014: 26
    .1.3.6.1.4.1.9.9.91.1.1.1.1.4.7015: 27
    .1.3.6.1.4.1.9.9.91.1.1.1.1.4.7018: 27
    .1.3.6.1.4.1.9.9.91.1.1.1.1.4.7019: 21
    Has anyone run accross this issue?  If so is there a fix for it?

    Hi Kevin,
         You could be hitting a known bug.  Can you please provide me with the output form 'show version' and 'show environment' from your Cat6k. Can you collect the 'show environment' at the time that entSensorValue (.1.3.6.1.4.1.9.9.91.1.1.1.1.4) is reporting -127 and send me a complete snmpwalk of entSensorValueTable (.1.3.6.1.4.1.9.9.91.1.1.1) plus an snmpwalk of entPhysicalDescr (.1.3.6.1.2.1.47.1.1.1.1.2).
    Regards
    Derek Clothier

Maybe you are looking for

  • Running UNIX command from Java

    import java.lang.* ; import java.io.*   ; public class TestRunTime     public static void main(String args[])         int rc = -1 ;         String yard = "psnsy" ;         String ifwList = "[email protected],[email protected]" ;         String cmd =

  • Which item/record was right click fired from

    im using the popup menu but find it hard to detect which item/record the cursor was at when the right mouse button was clicked. If I use trigger_item I get the item where the mouse was last and not the new one that I just clicked. mouse_item is null

  • Best Practice VLAN

    Hi All, I have got 1 of Cisco 3560 (EMI) as Core Switch 1 of Cisco 3560 (SMI) as Server Switch 10 of Cisco CE500 as workgroup switches 4 of different brands workgroup switches 20 Servers 300 Users 10 different departments My intensions are to create

  • Im thinkin this is a major issue

    Hey all, i have recently been having some problems with my tower. I am running 10.3.9 and have just upgraded the processor to dual 1.3Ghz (powerlogix). I have been trying to rip some of my old CD's to my computer, but after they finish and i leave th

  • Data Reading Capture Error - what's up with this?

    I know a few others have posted about this, but I have not seen an explanation. My stats: 10.4.2 (yes, I'm going to get 10.4.3 - I will eat my pants if that has anything to do with this), FCP 5.0.3, G4 1.5GHz Pbook, LaCie 250GB external firewire driv