The VI of I2C driver for reading and writing registers was functional in 6.1 but that same VI is not working for 7.0 & 7.1 version. WinIO is also used in generating the dll as OS is Windows2000. What could be the problem?

THIS IS THE CPP FOR READ. sIMILAR vi WAS MADE FOR WRITE
Attachments:
I2C_Read.cpp ‏7 KB
I2C_Read.h ‏2 KB
I2C_Exe.h ‏1 KB

HI,
I'm not familiary wiht the WinIO functio that you are using here but there are a couple of thisngs to watch out for when doing low-level access.
The most common problem with low level IO functions is that if they were created for Win9x, they will not work under Win NT/2000/XP. NT based OSes require you to have kernel access to do any low level communication. Make sure that the WinIO library that you are using is aupported under Win2K.
Since you have the code for the dll available, you could attach LabVIEW as an external process in your C compiler and debug the dll; this can helps you track down the exact function that is failing.
Just my 2 cents.
Regards,
Juan Carlos
N.I.

Similar Messages

  • I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work for me?

    I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work for me?

    A reply to similar question (Q & As , in product page Apple Store) says:
    "...dissable the internal reader hardware from devices setup. Then plug the external usb superdrive and that's it."  Answered by Enrique T from Lima Oct  25 2013.
    If you can locate an external Apple USB 'Air" superdrive for earlier model MacBook Air, that should work. The newer one for the Air is the same as for iMac, now.
    You may be able to use other brands of external USB optical drive with your older intel-based iMac, as some of them function capably. A few should also be able to see system discs or other bootable utilities on DVD.
    Hopefully this helps.
    Good luck & happy computing!

  • I updated Itunes today to the latest version. Windows 7 64bit. None of my drivers work and get an error when itunes starts, about registry setting for reading and writing dvds and cds missing. Anyone else have the same issue. I downloaded itunes again, re

    I updated Itunes today to the latest version. Windows 7 64bit. None of my drivers work and get an error when itunes starts, about registry setting for reading and writing dvds and cds missing. Anyone else have the same issue. I downloaded itunes again, reinstalled still have same issue.

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • Lightweight library for reading and writing mp3-tags

    Hi,
    I'm currently evaluating libraries for reading and writing mp3-tags. All the projects I found so far where not maintained for a couple of years.
    My question:
    Is there currently a library, which one could call standard for this purpose
    Cheers
    Jonny

    jonnybecker wrote:
    I'm currently evaluating libraries for reading and writing mp3-tags. Don't you rather mean ID3 tags?
    All the projects I found so far where not maintained for a couple of years.It may either be dead, or it may be so finished and free of bugs that no maintenance is needed anymore.
    If you're occurring problems with it and if it is open source you can always consider taking a fork for own development.
    Is there currently a library, which one could call standard for this purposeNo one comes to mind.

  • Quickest method for reading and writing files

    Hi
    I need help regarding file operations.(Reading and Writing). Currently I am using BufferedReader and BufferedWriter to read and write files. But the files (XML) are very huge files(from 30 -50 mb). This is slowing the application to a great extent. Is there any other approach to perform the above mentioned operations on XML files in a fast manner.
    Thank You
    Mansoor.

    Hi
    Can u let me know how to use the java.nio pavkage for primitve data types(int,float..., boolean). I have tried it but found no success.
    Thank You
    Mansoor

  • What is the maximum size the of files we can use for reading and writing

    Hi
    i have attached a vi which i use to read and write reports.
    My system would run continuosly for more than 2 days, typically i expect a file size of 30MB per day. I keep on appending the data in the file.
    The VI everytime opens the file appends it and closes.
    Does this affect the performance as the file size increases?
    What is the effective way to do it?
    Is there any file size restriction in windows?
    Attachments:
    Read_or_Write_Current_Cycle's_Data.zip ‏27 KB

    First: The performance by increasing file size depends from the file system (FAT32 or NTFS) you are using. NTFS will be better if the file size increases. Also the size of the partition will have an effect on this.
    Second: The effective way will be not to close and reopen the file. Use "File I/O > Advanced File Functions > Flush File" to write the file to the system instead of File Close and File Open. Flush File will force the file system driver to write the file to disk and update the file information on disk. On NT based systems this will be done with a latency time of 4 seconds. This is even true if you close the file and the time cannot be changed.
    Third: There are file restriction to the lenght which do not depend on Windows, they depend on
    the file system. FAT32 can handle files until 4 GByte (2^32) and NTFS can handle 2^64 Bytes. Since LV is platform independent the LV file functions can handle only 4 GByte. The offset parameter in the file functions has a I32 data type.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • I just ran a software update for Java and MacBook Pro SMC, now my Mini Display Port to HDMI TV is not working. The TV is flickering. The Mac Display is fine.

    I was just watching / streaming TV off Safari on my actual TV.
    I'm using a Mini-Display Port to HDMI cable for the connection to the external display.
    Software update popped-up and said there was an update for Java and for SMC.
    I ran the update and upon the computer restarting, my external display (my TV) is no longer working. It is now flickering.
    It won't work in Mirroring or set up as an extended display.
    I've reset SMC / PRAM / Safe Mode / Even restored from a Time Machine backup (From before the updates were done).
    What could it be?!

    I keep saying this over and over, in the hope that people who do a search will find it.  Apple cannot possibly test for or be reponsible for the bazillion combinations of adapter, cables, and TV's out there.  The only monitors that are 100% guaranteed to work with the MacBook Pro are the Cinema Displays and Thunderbolt Displays, because, they're made by Apple.  They're expensive, but they work perfectly.
    My guess is that you bought a cheap MDP to HDMI cable, or have a defective one.  From my reading of these boards over the past few months, cheap cables have a high failure rate.  And the regular priced ones have only a slightly less of one.  Try a new one.  Make sure you do not damage the Thunderbolt port.

  • Macbook pro for reading and writing NTFS for my external hard drive

    Hello,
    I have the new Macbook pro with retina display and I tried transfering some of the files on my macbook to my external hard drive (WD My Passport). Of course, it didn't let me. I did some research and found out that Mac only "reads" NTFS systems, but doesn't write. I did some more research to see if there was a way around this. There are several options and I need help with deciding which option is best.
    1.  Formatting my external hard drive to the FAT32 file system - however, it says that there are limitations with writing file sizes larger than 4GB. Is that true?
    2.  Formatting my external hard drive to the exFAT file system - is this a better option?
    3.  Downloading MacFuse - is it really discontinued?
    4.  Downloading OSXFUSE - is this better than MacFuse?
    5.  Downloading fuse4x - I don't know about this one
    Aside from all this individual questions listed, which option is the best?? And, which option will give me less damage or data loss, and which is very reliable?? All I want to do is be able to transfer my documents or files on my MAC to my hard drive, but be able to read/write files on any other PC. I bring my hard drive everywhere and I always need to access my files with any computer I see (like in a computer lab at school/library). 
    If you can answer all of my questions, YOU'RE AWESOME!
    Thank you!

    tin2x58 wrote:
    1.  Formatting my external hard drive to the FAT32 file system - however, it says that there are limitations with writing file sizes larger than 4GB. Is that true?
    Yes, exFAT is better.
    2.  Formatting my external hard drive to the exFAT file system - is this a better option?
    Yes, you won't need any third party software, one less hassle.
    3.  Downloading MacFuse - is it really discontinued?
    4.  Downloading OSXFUSE - is this better than MacFuse?
    5.  Downloading fuse4x - I don't know about this one
    Don't bother.
    Aside from all this individual questions listed, which option is the best?? And, which option will give me less damage or data loss, and which is very reliable?? All I want to do is be able to transfer my documents or files on my MAC to my hard drive, but be able to read/write files on any other PC. I bring my hard drive everywhere and I always need to access my files with any computer I see (like in a computer lab at school/library). 
    Take a copy of all the data off the drive. Formatting the drive will erase all existing data.
    Take the drive to the oldest Windows OS your going to use it with, if Windows XP there is a free exFAT update from Microsoft, install it first, then right click on the drive and format exFAT, it will create the appropriate partition table (either GUID or MBR) automatically.
    Take the drive to the Mac, it will read it just fine whatever it is,.
    Drives, partitions, formatting w/Mac's + PC's

  • After deploy in server, integrated Security works for all users but only one user does not work for one user

    hi
       i'd like to ask for help.here is a brief introduction.
          i publish a web project on a server(the name,"server-deploy"),(it connect with sql server datavvase with connection string  of database  "Trusted_Connection=Yes",with web config file <authentication
    mode="Windows" />    <identity impersonate="true"/>
       there are some users whose Impersonae_clients_after_authentication are enabled. and most of them can connect to database via the deployed project .
      but one user,he was told 'NT AUTHORITY\ANONYMOUS LOGON', and according to even viewer("security of "windows log") of "server-deploy",it shows "Audit failure"(the Task category is "credential validation")
    and here is some information
    [ Name]  Microsoft-Windows-Security-Auditing
       EventID 4776
    The computer attempted to validate the credentials for an account.
      PackageName MICROSOFT_AUTHENTICATION_PACKAGE_V1_0
      TargetUserName (user)
      Workstation (Workstation)
      Status 0xc0000064
       while when other user do login ,there is no log whose Task category is "credential validation".
      COULD ANY ONE CAN DO ME A FAVOR TO HELP ME?ANY HELP IS APPRECIAT. THANK U VERY MUCH IN ADVANCE :)
    best regards
    martin

    and i made a small windows form application here
       private bool impersonateValidUser(String userName, String domain, String password)
                WindowsIdentity tempWindowsIdentity;
                IntPtr token = IntPtr.Zero;
                IntPtr tokenDuplicate = IntPtr.Zero;
                if (RevertToSelf())
                    if (LogonUserA(userName, domain, password, LOGON32_LOGON_INTERACTIVE,
                        LOGON32_PROVIDER_DEFAULT, ref token) != 0)
                        if (DuplicateToken(token, 2, ref tokenDuplicate) != 0)
                            tempWindowsIdentity = new WindowsIdentity(tokenDuplicate);
                            impersonationContext = tempWindowsIdentity.Impersonate();
                            if (impersonationContext != null)
                                CloseHandle(token);
                                CloseHandle(tokenDuplicate);
                                return true;
                if (token != IntPtr.Zero)
                    CloseHandle(token);
                if (tokenDuplicate != IntPtr.Zero)
                    CloseHandle(tokenDuplicate);
                return false;
      and here is the code of buttonclick
     if (impersonateValidUser(user,psw,doman))
                    if (!System.IO.Directory.Exists(this.textBox1.Text))
                        MessageBox.Show("not exist with imper");
                    else
                        MessageBox.Show("exist with imper");
                    undoImpersonation();
                else
                    MessageBox.Show("fail login.");
       and i was told "exist with imper"(usually if Impersonae_clients_after_authentication is not enaled would told "not exist with imper" )

  • My webcam is not working for skype and other appli...

    Hello,
    My webcam is not working for skype and other applications i have used tinychat and tango..i have updated all version of skype as you said in other topics but all of them is not working for me...my device name is vimicro usb 2.0 and i have accidently deleted that device now i have installed that device again but its not working i have seen all topics please help me  ...
    i will be very thankful to you

    Please,  run the DirectX diagnostics tool.
    Go to Windows Start and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post.
    Be aware that you will have to zip this file before attaching it here.

  • My FaceTime or anyone else's FaceTime that I know does not work. Does anyone know what the problem is?

    My FaceTime or anyone's FaceTime that I know has not worked for the last week.
    Does anyone know whats wrong with FaceTime?
    Has anyone else had this problem in the last week?

    Many people reported problems. Hope this helps.
    http://support.apple.com/kb/TS5419

  • Reading and Writing large Excel file using JExcel API

    hi,
    I am using JExcelAPI for reading and writing excel file. My problem is when I read file with 10000 records and 95 columns (file size about 14MB), I got out of memory error and application is crashed. Can anyone tell me is there any way that I can read large file using JExcelAPI throug streams or in any other way. Jakarta POI is also showing this behaviour.
    Thanks and advance

    Sorry when out of memory error is occurred no stack trace is printed as application is crashed. But I will quote some lines taken from JProfiler where this problem is occurred:
              reader = new FileInputStream(new File(filePath));
              workbook = Workbook.getWorkbook(reader);
              *sheeet = workbook.getSheet(0);* // here out of memory error is occured
               JProfiler tree:
    jxl.Workbook.getWorkBook
          jxl.read.biff.File 
                 jxl.read.biff.CompoundFile.getStream
                       jxl.read.biff.CompoundFile.getBigBlockStream Thanks

  • Multiple occurence not working for extended idocs

    hai friends
    iam doing file to idoc senario in that multiple occurence is not working for Z segments.
    it is extented idoc .
    in taht multilpe segments are not creating only one segment is creating
    what is the problem
    pls help me
    with regards
    srikanth vipparla

    Hi Srikanth,
    You should map the node of the target side(the one which you want to occur multple times) to the node of the source side based upon which the target side node has to occur multiple times. For example lets say our source and target side structures are like this:
    <Source>
                  <Element1>
                  <Element2>
                  <Element3>
    </Source>
    <Target>
                  <Element1>
                  <Element2>
                  <Element3>
    </Target>
    Now if you want Target to occur n times if  Source node occurs n times, you should map Target node to the Source node. Even in case you want that Element1 of target side should occur as many times as many times you have Element1 of Source side, you should do the same.
    Thanks and Regards,
    Sanjeev.
    PS: Reward points if helpful.

  • Oc4jadmin not working for application server control in SOA suite 10.1.3.1.

    Hi,
    We have installed the SOA suite, and I can login to the various components using oc4jadmin/password (bpel, esb, rules author), but for some reason that oc4jadmin password is not working for Application Server Control, which is the only piece of this I really need to log in to.
    Any thoughts on what is going wrong?
    Cheers,
    Pat Rock

    Maybe you change this password internally for another application (such BPEL, WSM,etc) and didn't make change for your main OC4J container.
    You can try to change this password by...
    1. Open the file [OASHome]\j2ee\home\config\system-jazn-data.xml
    2. Find the section that looks like this
    [user]
    [name]oc4jadmin[name]
    [display-name]OC4J Administrator[display-name]
    [guid]88836370D11611DC9F30F9C1CD6F1A73[guid]
    [description]OC4J Administrator[description]
    [credentials]{903}F+iG1A46edXG9RdfY0pD2O4Ge/qyEjsg[credentials]
    [user]
    3. Replace the value separated by the "Credentials" starting and ending tags with your new desired password, prefixed with an exclamation point
    Example:
    [user]
    [name]oc4jadmin[name]
    [display-name]OC4J Administrator[display-name]
    [guid]88836370D11611DC9F30F9C1CD6F1A73[guid]
    [description]OC4J Administrator[description]
    [credentials]!newpassword[credentials]
    [user]
    4. Save the file and restart OAS
    This should not affect other applications.
    Greetings.

  • Quartz filters are not working (for PDF)

    It seems that quartz filters are not working for me under Mountin Lion. I have tried to export, print, etc everything in Preview, Automator, ColorSync. It simply won't apply the filters to my PDFs.
    Anyone experienced similar issues? Is it a known bug?

    I kinda have the same problem, except its only my custom filters that aren´t working in ColorSynch. The other filters get applied as usual, but I can not change any of the preformed filters within ColorSynch, and the "live update from filter inspector" doesn´t work if I try to apply changes or use my custom filters.
    The custom filters I have, were created prior to my upgrade from snow leopard to moutain lion.
    I´ve understood that there has been multiple problems with the filters in lion ++
    If there isn´t a quick fix to this, does anybody know of any programs I can use to apply filters without having to buy Adobe Pro, my use is not for simply decreasing file size, but mostly for editing colors prior to prinitng. And its  not sufficient to use the preformed filters unfortunately.

Maybe you are looking for