I2c implementation using NI-6008

Hi everybody
I have a NI-6008 Low cost multifunction DAQ.
Can i use this with voltage level shifter to implement I2C protocol...
Solved!
Go to Solution.

Hi vam,
please stop creating double/multiple posts for the very same question!
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • I2C implementation using Labview.

    Hello ,
    I am trying to communicate to my IC using Labview. The board on which the IC is uses I2C interface. currently it is connected to the PC using a parallel port dongle and there is GUI which does this, I want to make a I2C interface so that I can communicate to the IC directly using Labview. Is it possible that I use the parallel port to pass the signal directly to the IC, If yes how do i do that? Or is there any other way I can go about this issue.
    Any help is appreciated.
    Thanks
    RKD

    The kind of "bit-banging" you need is defined in the Philips I2C spec. You can get a basic overview of the actual protocol from Wikipedia, or you can get the full spec from the Philips NXP site (at the very bottom there's a link to the PDF). Since the GUI developed in-house you should be able to see the code to see what it does. It should basically just be toggling two of the parallel port lines based on the I2C protocol.
    Usually when you buy an I2C interface you get drivers for it that you can use from LabVIEW. Some companies provide LabVIEW drivers directly. Examples: Cal-Bay Systems (pretty popular as it's parallel port), Total Phase, Telos, MCC (Micro Computer Control Corporation) and NI. I've used the Cal-Bay interface and the Total Phase Aardvark so I know they work. The Cal-Bay approach is to basically do bit-banging of the parallel port so it's dependent on software timing. There's an open source interface that was designed for Linux, though there's a port of the library to Windows. Have no idea whether it will work with LabVIEW. As for other sources, you can take a look at the code that was posted in reply #4 of this post. The device being talked to is a SPI device, but the premise is similar. It's using the parallel port to toggle lines to generate the protocol. This 2-year old post refers to an interface with LabVIEW drivers that user KC created. Don't know if it's still available.

  • Using USB-6008 software timimg Generate waveform

    I am using USB-6008 device. Base on it's User Guide, this device on support software-timed and maximum update rate is 150 Hz.
    By place a time delay VI for 1ms, I have a 1.660Hz sine signal. Is this wrong for place a time delay VI for software timing?
    I would like to generate a 60 Hz signal by using software-timed VI on USB-6008 device. How should I do?
    Thanks a lot.

    DephinTW,
    The update speed of the USB-6008 is largely dependent on the speed of
    you computer as well as anything else on your USB bus. If you are using
    an older computer or have other USB devices on the bus, you may not
    achieve this rate. In order to output a 60Hz signal, the minimum output
    sampling rate is 120Hz. This corresponds to an 8.3 msec. delay between
    samples. Instead of using the "Wait" VI, you should try using the "Wait
    Until Next ms Multiple" VI. Place this in parallel with your
    generation. This will synchronize the output with multiples of the PC
    clock, rather than waiting for a fixed amount of time, irrespective of
    code and USB overhead.
    Hope this helps,
    Ryan V.
    National Instruments
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • Creating shared library of native method implementation using gcc

    Hi
    I am using Dev-C++ IDE for writing and compiling C Programs. It supports gcc.
    I have to build a shared library of a native method implementation using gcc compiler.
    In JNI tutorial build script is given for VC++ which is as follows
    cl -Ic:\java\include -Ic:\java\include\win32
    -LD HelloWorldImp.c -Fehello.dll
    Similarly I wanted build script for gcc compiler.
    Thanks
    Shailesh

    Here is an example of building a library from one module with CygWin's gcc:
    # Must set JAVA_HOME and LIBRARY_MODULE before
    gcc -mno-cygwin -D__int64="long long" -I $JAVA_HOME/include/win32 -I $JAVA_HOME/include -shared -Wl,--kill-at -o $LIBRARY_MODULE.dll $LIBRARY_MODULE.c

  • Best way to produce PWM using NI-6008

    Hello,
    I am looking for best method to produce Rectangular waveform with a specific pulse width/pause ratio using NI-6008. It does not matter if I use DO or AO port. Important is frequency which should range soemthing between 1 Hz to 1kHz. (so far I have understood from datasheet that the AO has max output frequency of 150 Hz which does not meet our requirement)
    I have tried using frequency functions (DAQmxWriteCtrFreq or DAQmxWriteCtrFreqScalar) in the examples which were shipped with the device but get an error like channel does not support the function or device does not have channels to support these functions.
    Regards
    RB
    Solved!
    Go to Solution.

    Hi,
    which error message do you exactly get? Can you post a screenshot?
    If there is an error code please let me know which one.
    Best regards
    Suse
    Certified LabVIEW Developer (CLD)

  • Active server implementation using jaas

    Active server implementation using jaas----------can someone suggest me how to go about it
    help needed immediately

    Have you programed your server? Can you communicate with me about the subject? My email is [email protected] QQ: 540028839

  • How to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart

    how to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart 

    Hi kdm,
    please stick in one thread for the same topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Geography based industry scenario which can be implemented using user exit

    Hi All,
    I am searching for a geography based industry scenario which can be implemented using user exit strategy.
    Please let me know me if anyone knows about any such scenario.
    Thanks & Regards,
    Pranjali.

    Hi Amith,
                   IDOC configured throgh CHANGE pointers.So no need to worry about IDOCS and all.My work was trigger idocs by user exits.Wen  ever i change venodr no.. idocs shoud be triger.
                 Now my question was Insted of going transaction( from there we can  go to debuging mode) i want to check this Exit by RBDMIDOC programe(ofter excute this programe and give Message type as CREMAS,from there i want to go debugging mode).
    Just now i checked,i put breakpoint in Include programe(INCLUDE ZXF05U01) and excute from XK01,it goes to debuging mode,so its fine.But i want triger from RBDMIDOC programe.Ofter excute RBDMIDOC programe,we can enter CREMAS.From there i want to go debuging mode.
    Pls help me,
    Thanks

  • Logout implementation using Site Studio

    Hi,
    I just wanted to know if the logout functionality of UCM has been implemented using site studio and if yes, how to go about it. We are currently using the logout component that is present in UCM. However, the problem is, that the usage of that component requires you to add a registry entry in IE, to allow this to work. This isnt something that can be done on all machines and is hence not a feasible solution. So I was wondering if there's any other way that this can be implemented. Suggestions please?!
    Thanks.

    Is there a way to use Fragments or do I need to get a developer to write me non-Stellent code? Well, you need to get yourself a developer to write a fragment. And - dependet on what you want to do - maybe some Content Server customizaitons like custom services.
    Imho though it is not a good idea to use Site Studio as a web application plattform. A simple form is fine but if it gets more than that, you should consider writing a jsp or hcsp and check it in to the content server. This jsp or hcsp can still use your fragments and your html layout so that it does not look different from the Site Studio pages. Then you can link this script to a section in your Site Studio web site hierachy and by doing so include this dynamic part into your web site.
    Another approach for when you really need to do a lot of application stuff is to write the applications in another Java web app - not checked in to the Content Server - and use CIS to pull content from the Content Server. Or Web Services.

  • Flush Implementation using mbeans

    Hi all,
    need your help with an issue regarding mbean implementation using IBM WAS + JMX + Spring. The requirement is : we have a spring based application and in the spring applicationContext file we have certain value injections that i need to make configurable. For this i have used a facility provided by spring to expose a bean as an mbean. Now everything works perfedtly fine but only till the time my server is up and running. As soon as i restart my server the changes that i made using mbean are lost. I want to flush the changes(using JMX) made using mbean to the code so that these changes can be made into the codes permanently and not temporarily as its being done by jmx. Any help is highly appreciated. Thnx in anticipation.
    Regards,
    Vaibhav

    Hello,
    Take a look at this page.
    Please note it says:
    "The LabVIEW FPGA for SPARTAN 3E XUP driver was developed to enable educators
    to use LabVIEW FPGA to teach digital and embedded design concepts. This
    driver is for educational use and cannot be used on custom FPGA
    hardware."
    If this does not apply to you, then please take some time to look at the NI compactRIO FPGA product which may be better for your application: 
    compactRIO
    If you are eligible to use the SPARTAN 3E XUP driver, then a video introduction and tutorials are available.
    Hope this helps!
    Message Edited by macaba on 07-24-2009 10:09 AM
    Mark B
    ===If this fixes your problem, mark as solution!===

  • What amplifier will recomended for my k-type theromocoupler using usb 6008

    I recently do a project about temperature control system using usb 6008, according to the spec, the minimum AI range is +/- 1V and the thermocouple giv the voltages in jz a mV, so what kind of amplifier will be recomamded? is there any amplifier chip set that available ?

    Analog Devices AD594/AD595 Monolithic Thermocouple Amplifiers (Type J / Type K)
    This would give you a conversion of 10mv per degree C using a single +5v supply you could get to a couple of hundred C
    I get 11 bits of resolution available for the +/- 4v range (11 because I can't see a negative supply available so we are only using one side of the differential range).
    That's a resolution of 2048 bits over 4v giving 0.001953 v per bit
    The devices above give 10 mv per degree C so you would have about 0.2 C resolution and a maximum temperature of around 450 degrees C an minimum temperature of 0 degrees C.
    The device draws about 1mW so you should have no problems with power consumption. (Hint Earth / Ground loops might be a problem).
    I should add that whilst I have used this device many hundreds of times, I have never applied it to the USB 6008.
    http://www.analog.com/en/prod/0%2C2877%2CAD594%2C00.html
    Message Edited by Conseils on 05-08-2007 08:51 PM
    Message Edited by Conseils on 05-08-2007 08:52 PM
    Attachments:
    46185785AD594_fbs.gif ‏17 KB

  • How advantages of "Call By Reference" can be implemented using Java

    As I know that java doesnot support "Call By Reference" as C++
    does.
    I want to know that how advantages of Call by Reference can be
    implemented using Java.

    There is some misunderstanding here. Method arguments in Java are passed by value. However, if you pass a reference (to an object) by value, you can still modify the object that the (copy of the) reference points to.
    public void method1() {
      StringBuffer buf = new StringBuffer();
      // Here, method2 cannot change the value of the variable buf,
      // but it can modify the object that buf points to.
      method2(buf);
    public void method2(StringBuffer sb) {
      // You can modify the StringBuffer.
      sb.append("hello");
      // But this is useless, it will not change the variable buf
      // in the calling method.
      sb = new StringBuffer();
    }Jesper

  • ADs implementations using OSMF player based application

    Hi,
    Greetings !!
    I am currently creating an OSMF player based application for which I need to implement ADs in player. I need your help to implement the same using Flash Builder 4.6.
    It would be great if you could provide documentation and swc file for ADs implementations using OSMF player based application.
    Any help will be appreciated !!
    Regards
    Pr33T

    Here is a link to player:
    http://front.xstream.dk/sa/resources/swf/?id=5600
    Here is a manifest file:
    http://fms4.xstream.dk/sa/f4m/2011-07/1309755901073853000-H264_1400kbit_128kbit_1024x576_m p4-STD.f4m
    Files used for generating all f4f and f4x files:
    http://front.xstream.dk/sa/resources/content/mp4/2011-07/1309755901073853000-H264_400kbit_ 64kbit_512x288_mp4-STD.mp4
    http://front.xstream.dk/sa/resources/content/mp4/2011-07/1309755901073853000-H264_800kbit_ 96kbit_768x432_mp4-STD.mp4
    http://front.xstream.dk/sa/resources/content/mp4/2011-07/1309755901073853000-H264_1400kbit _128kbit_1024x576_mp4-STD.mp4
    Command used for f4fpackager:
    f4fpackager --input-file=1309755901073853000-H264_400kbit_64kbit_512x288_mp4-STD.mp4 --bitrate=400
    f4fpackager --input-file=next_file --bitrate=800  --manifest-file=manifest_produced_in_previous_operation
    and so on...

  • Using USB-6008 on LIS331 Accelerome​ter

    Hi, I am looking to monitor my project with a LIS331 using the USB-6008 dac. Would this dac unit be acceptable with this accelerometer? 

    swong46,
    I would recommend using a USB 63xx series DAQ device. You might also be interested in the USB 8452, which is a dedicated I2C and SPI device. 
    I can also put you in touch with some of our sales engineers, who would be the most knowledable about your options. Shoot me a PM if you're interested, and I can give you a number to call.
    Kyle T.
    Applications Engineering
    National Instruments

  • Turnaround/Shutdown Process implementation using PS/PM modules

    We are a larger Size Fertilizer Industry, currently in the process of SAP Implementation. We carry out Annual Turnarounds each year for annual maintenance / overhauling of our equipment / machines.
    The total numbers of maintenance jobs are around 1500. Each Job has an average 25 Operations. The Total duration of Turnaround is 15 Days max. Due to extensive number of jobs being handled in a very short time span, we require Planning with respect Job Execution and also related to material planning / Manpower / other internal & external services resource Planning. Moreover the Budget planning / control of the Turnaround is also part of our business.
    The Planning of Turnaround starts 10 months before commencement of Turnaround. Starting from finalization of maintenance Jobs, material reservations, Budget Planning, Maintenance jobs scheduling in such a way to fit in all jobs within 15 days time span and develop a logical / technical viable links (relationship) between various operations within one job as well as between different jobs. Based on this relationship critical path is identified and activity Bar Chart is generated. The entire planned Project is then freeze as our target / base line and Planned S-Curve is generated. Before commencement of Turnaround, the material availability is ensured through monitoring of material procurement from Purchase requisition to Goods receipt.
    Thereafter during Turnaround, the actual progress of maintenance jobs is monitored against the target plan on 12 hourly basis. Based on this monitoring we identify the activities lagging behind the Plan so that effective actions may be taken to expedite job progress. The daily progress is updated in terms of earned progress percentage. Moreover for management overview, Planned Vs actual S-Curve is generated.
    IN SAP Scenario we are planning to configure our above process through PM / PS integration. Maintenance Work orders will be created for all jobs with reference to equipment Tag number to maintain history. Moreover, material and other resources will be attached to relevant orders / operations. Relationship between orders and their operations will be maintained. We intend to attach these orders Operations to PS Moreover we require bottom up scheduling using PS Planning board as mentioned below :
    Operations       Order     Activity       Network Header       WBS element        Project
    We find ourselves handicapped to incorporate progress in terms of percentages, although we have managed to get percentage by putting duration of work completed on order operations level. However, getting percentage progress through duration input will not serve the purpose. Please refer following example:
    u2022     An operation is planned for 100 hours.
    u2022     During execution, 50% job completed in 20hours.
    u2022     Remaining duration should appear as 50hours not as 80hours.
    u2022     On contrary in SAP (as far as we know), if I put 50 hours in operation to get 50% progress , this will reflect wrong information as 50% job has been completed in 20 hours.
    Can anybody suggest a solution in either PM,PS or combination of both modules.

    you will need to use PM/PS as follows
    Create a Shut down project
    Create network activities for scheduling your shut down project
    Create PM orders - which could be corrective action, planned, unplanned or preventive
    Assign the order headers to network activity
    Now you can use the PS scheduling functionality (bottom up planning as you require) - you will also see the PM orders on the planning board
    For confirmation of activites you should use the forecast hours and this will correct the POC
    The POC can be rolled up using Progress Analysis for your S Curves

Maybe you are looking for

  • Problem on Windows 7 Home Premium cant open program for using codes like visual studio 2012

    I have problem my windows 7 Home Premium because of visual studio 2012..I can't open even in several times, I don't know what happen, and sometime it is so low to process whenksn it to open my laptop..Why is that pleas do reply..ASAP! tha

  • Error while creating a material master (mm01)

    hi, I'm getting this error message when I'm creating a material master in a specific plant/sloc. I'm probably guessing its in config. I really need some help here. "Tables TCURM and T001W inconsistent; notify your system administrator" . could any on

  • Is there any way to close apps completely after one has used them?

    A "doublepush" on the master control button alters the screen (iPhone 5, IOS 7) so that swiping the screen to the left shows the screens for the apps that have been used. Banks, investment companies etc. all have apps. Fearing that some important inf

  • Can I throw exception in constructor?

    I just want to add some constraints on the object. I'm thinking to add the constraints to the constructor, when every time create a new object , check first. If obey the rule, that's fine. If not, just throw it? Can I do like this way?? e.g Class Dis

  • Mac app store doesn't sign in to my apple id

    hi. my mac app store keeps erroring: "your device or computer could not be verified. please contact support for assistance." what should i do?