Communication I2c et carte PXI-6551

Bonjour,
j'aimerai communiquer avec une EEPROM série, donc avec un protocole I2c. Je possède Labview 8.6 et une carte PXI-6551.
j'utilise la librairie I2c pour créer des trames de communication, cependant je n'arrive pas à les envoyer sur la 6551, et je dois avouer que j'ai du mal à comprendre comment la gestion des ACK peut se faire.
Si vous pouviez me donner un coup de pouce, ce serait très aimable.
Merci d'avance,
Laurent.
Solved!
Go to Solution.

I have never used the I2C lIbrary.  I didn't even know it existed.  Thank you for teaching me something new.
You can send the I2C Waveform into the DAQmx Write function.  First you have to open a new DAQmx session.  Then set up the channels, timing, triggering, and such.  Wire the waveform to the Write function, then use the Initiate function to cause the PXI-6551 to output the waveform.  I hope that the I2C library you are using will take care of making the 6551 lines tri-state when it comes time to process the ACK signal.
I have built waveforms the hard way, using the Digital Waveform functions to produce the Start bit, address bits, ACK, and so on...  I will have to take a look at the library you mentioned.
I have to re-install Labview because of a problem.  When it is up and running, I will create a DAQmx example that you can use and post it here.
- tbob
Inventor of the WORM Global

Similar Messages

  • Has someone already succesfully used the ni i2C library to read/write an eeprom with ni pxi 6551 on labview?

    Hi,
    I'm trying to read/write an eeprom with an i2c protocol and ni pxi 6551 module.
    At first, I tried to simply read the eeprom, because i know i am expecting 11111111 as a response, but it did not work.
    So I tried something easier, and I succesfully wrote a pcf8574ap.
    But i can't read it.
    Seems like I am not able to "hear" the answer; when the sda line should be filled with an 8bit information, it remains at Z-state.
    And because I am using the i2c library, i think there might be a problem with this library, or i am doing something wrong.
    Hoping someone has an answer.
    Johanna

    I think the best place to ask your question in this thread
    I2C Digital Waveform (IDW)
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Comment mesurer un fréqunce avec une carte pxi-6602?

     Bonjour,
    Je cherche grâce à une carte PXI 6602 à mesurer la fréquence d'une signal périodique.
    Cette carte possèdent 8 compteur/timer, et je suis déja parvenu à genérer des trains d'impulsion sur ces compteurs.
    Néanmoins je ne parviens pas à mesurer des fréquences...
    Pour cela j'ai tenté de mesurer la fréquence d'un simple signal carré de 50Hz (amplitude 10V) généré par un GBF. J'injecte ce signal sur le PFI38/GATE0 du compteur 0, mais j'obtiens apres génération de mon code une fréquence nulle. J'ai réalisé ce code sur labVIEW 8.6 avec la fonction "Measure Pulse Width or Period.vi"   (code en pièce jointe)
    Merci d'avance pour votre aide
    Pièces jointes :
    mesure_freq.jpg ‏515 KB

    Desole, je ne parle pas francais bien. Vous devriez avoir des exemples pour l'usage du dispositif de l'E-serie DAQ en Visual Basic dans le repertoire \Program Files\National Instruments\NI-DAQ\Examples.
    Chris Matthews
    National Instruments

  • MAX does not detect my PXI-5122 and PXI-6551 cards in a PXI-1045 chassis.

    I have been using a PC with MXI-3 to PXI-1045 chassis to develop LabView TestStand code.  Things are fine on my development PC.  [Software configuration report attached nireport_rich.txt].
    I have a 2nd PC set aside to test my deployment packages.  I installed a GPIB card and MXI-3 card in my deployment test PC, and loaded a bunch of hardware drivers.  [Report attached nireport_depPC_0006.txt]
    All the PXI cards are found just fine when my development PC is connected, but when I power up my deployment PC (with MXI-3 connected to the 1045 chassis) -- I can't import the development configuration [exported from development PC] because the deployment PC does not see the PXI-6551 DIO card in slot 6 [PXI6::10::INSTR] and the PXI-5122 card in slot 13 [PXI8::15::INSTR].
    I keep reviewing the hardware driver versions installed, and the only small difference that I see at this point is that the deployment PC has a slightly older version of NI-Switch.
    Anybody have any ideas of what I can try next?  I'm out of ideas.
    . . . . hmmm, can't seem to attach more than one file, so here's the software info on the deployment PC
    NI Software Information:
    CVI Run-Time 7.0.0.395
    NI-DAQ 7.3.0f1
    NI-DAQmx 7.3.1f0
    NI Script Editor 1.1
    NI-DMM 2.3.1
         Soft Front Panel 2.3.0
    NI-FGEN 2.2.1
         FGEN Soft Front Panel 2.2
    NI-488.2 Software 2.30
    IVI Compliance Package 2.2 2.2
    LabVIEW Run-Time 7.0
    Measurement & Automation Explorer 3.1.1.3003
    Measurement Studio 6.0
         For Visual Basic 
              ActiveX User Interface 7.0.0.344
              ActiveX 3D Graph 7.0.0.344
              ActiveX DataSocket 4.2.2.1
    NI-USI 1.0.2
    NI-HSDIO 1.2.1.3
    NI-HWS 1.2.2.0
    NI-PAL Software 1.8.2.0
    NI-SCOPE 2.7.0f5
         SCOPE Soft Front Panel 2.1.0
    NI Spy 2.2.0.12
    NI-SWITCH 2.30.49153
    NI-TClk 1.2
    TestStand 3.1
    NI-VISA 3.2
         visa32.dll 3.2.0.19
         NiVisaServer.exe 3.2.0.19
         NIvisaic.exe 3.2.0.19
    LabVIEW Run-Time 7.1

    Hello Maggie,
    Appreciate your assistance and reply.
    The pxisys.ini and pxiesys.ini files are modified by me with referring to
    1)PXI System Alliance PXI-2 SW spec,
    2)PXI-6 SW spec,
    and 3)pxisys.ini pxiesys.ini generated by MAX v5.3.0f0 with NI PXIe-1075 + NI PXIe-8133.
    The content in pxisys.ini/pxiesys.ini generated by MAX looks like simple. Consequently, I modified and checked it line by line according to actual hardware of PXES-2590+PXIe-3975. Then, MAX just list devices as described in the first post. I tried to find the root cause but in vain.
    Is this minor issue can be related any incorrect tag lines in pxisys.ini or pxiesys.ini I posted?
    Is any suggestion tests I can do to troubleshoot root cause?
    Looking forward your reply.
    Cheers,
    KL Tseng

  • Carte PXI 5922 et fonctions DAQmx

    Bonjour,
    J’ai une carte PXI 5922 sur un châssis PXI 1033 et j’ai réalisé un VI pour l’acquisition des donnes avec les fonctions NI SCOPE.
    Je voudrais savoir si est possible de programmer la même chose en utilisant seulement des modules  DAQMX sans avoir besoin d’installation de NI SCOPE. Peut-on configurer des paramètres comme par exemple : vertical coupling, input impedance , probe attenuation seulement avec les fonctions daqmx et sans paser par daq assistent ?
    Je vous remercie d’avance pour votre réponse.

    Bonjour Ival,
    La carte PXI-5922 est une carte Scope qui, par conséquent, se programme avec NI-SCOPE (page 21).
    Le driver NI-DAQmx est utilisé quant à lui pour la programmation de cartes DAQ.
    Dans la mesure où le driver NI-SCOPE est téléchargeable librement, pourriez-vous préciser pourquoi vous ne souhaitez pas l'utiliser ?
    Cordialement,
    Mathieu_T
    Certified LabVIEW Developer
    Certified TestStand Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    LabVIEW Tour
    Journées Techniques dans 10 villes en France, du 4 au 20 novembre 2014

  • About Dynamic Acquisition and Generation of PXI-6551

    请问PXI-6551的16个通道能否同时进行数据采集和生成?我看了自带的例子好像是不行的。但是运行6551的Test Panel时,却是能够同时产生数据和进行数据采集,不知道它是如何做到的?

    6551是高速DIO设备,20个通道可以同时进行输入或输出。这块卡的每个通道都是独立的,您可以参考硬件框图。

  • Trigger options for PXI-6551

    Hello,
    The list of generation/acquisition triggers for the PXI-6551 appears to be limited to PFI.  Is this correct?  Is it possible at all to trigger off of level changes on one of the DIO channels?  Please advise.
    Thanks.
    Anand

    Hi Anand,
    It is indeed possible to trigger an acquisition task off of a single channel using a pattern match trigger.  It sounds like you've already figured out how to go about your application but if you run into any issues don't hesitate to post back.
    Best Regards,
    John Passiak

  • Dissipation or sink current for PXI-6551

    I'm unable to drive a line low with the PXI-6551.  The line has a 250Ohm pull-up to 2.5V.  The PXI-6551 detailed specification sheet or the HSDIO help does not have this information.  The max drive current for PXI-6551 is 50mA but does anyone know how much it can sink/dissipate?
    Anand

    Anand,
    I looked into the Specs as well, but was unable to determine an exact value that the device can sink. Are you able to drive the line low when you take out the pull-up circuitry on the line? I will check and see if there is a reason why we don't spec this, it may be possible that the device is not designed to source current. 
    Aaron W.
    National Instruments
    CLA, CTA and CPI

  • Installing pxi-6551

    I am having problems establishing a connection with my PXI-6551 HSDIO card in MAX. I am installing the card into NI PXI-1031 chassis with MXI-4 connection monitor. I have verified the card works on a different chassis, and I know the chassis works because I have a PXI 2503 switch card that is properly function. The pxi-6551 was successfully installed from the NI System Driver Set disk, however I can not the MAX to perform a self test on the card. I generate the following error:
    The device self test has failed. The error report from the device drivers as follows:
    Error -50251 occurred at Self-Test
    Possible Reason(s):
    NI Platform Services: The specified software component is not available. The component was not loaded.
    Can anyone help with this?
    -Milhouse

    I fixed the problem. Some how the the latest driver set disk did not have all the necessary drivers for the DIO card. I rolled back the install to the February 2009 driver set disk and it work.
    -Milhouse 

  • PXI-6551 Capacitor C252

    I have a PXI-6551 that has gone through some physical damage. Capacitor C252 has been knocked off.
    What is the part number of this capacitor? Can someone send me a link to it on Digikey, Mouser, Newark, etc?
    I have not booted the unit since it was hit. So I would guess that the unit should still work if I replace the capacitor.

    Hi Reichenbach,
    Replacing the capacitor yourself isn't recommended and could result in further damage to the board. I would recommend you  get in touch with customer service ((800) 531-5066) and request an RMA quote. 
    Regards,
    Sean Ferguson
    Application Engineering Specialist | RF and Reconfigurable Test

  • Carte PXI-6682H non reconnue dans MAX

    Bonjour,
    Je développe actuellement un système d'acquisition de données basé sur une cible temps-réel (contrôlleur PXIe-8133), une carte d'acquisition (PXI-6366) et une carte de synchronisation au temps GPS (PXI-6682H).
    Les drivers NI-Sync 3.2.2 et NI-TimeSync 1.1.0 ont été installés respectivement sur le PC hôte et la cible temps-réel.
    Le problème rencontré est le fait que la carte 6682H ne soit pas reconnue sous MAX.
    Quelqu'un a-t-il une idée sur la façon de se dépatouiller avec ce problème?
    Bien cordialement,
    Hervé

    Bonjour Hervé,
    Essayez d'installer les drivers NI-Sync 3.3, cela devrait logiquement mieux marcher.
    En complément, pourriez-vous préciser quel OS est installé sur votre PC hôte?
    Bien cordialement,
    Romain P.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> NIDays 2011, le mardi 8 février au CNIT de Paris La Défense

  • Carte PXI non reconnue dans MAX

    Bonjour,
    Voilà mon problème.
    J'ai une carte NI PXI 7852, que je ne trouves pas dans MAX.
    Pourtant celle ci est reconnue et trouvée dans le Gestionnaire de Périphérique.
    De ce fait mon programme ne peut s'exécuter sans la présence de cette carte.
    Comment régler un tel type de problème sachant que j'ai réinstaller les derniers drivers NIDAQmx de la version utilisée et que ça ne se reconnait toujours pas.
    Résolu !
    Accéder à la solution.

    Bonjour,
    Je pense que c'est le comportement normal de la carte.
    Il s'agit d'une carte à base de technologie FPGA qui a besoin d'un fichier bitfile créé par le module LabVIEW FPGA pour avoir le comportement souhaité.
    RIO signifie Reconfigurable Inpout / Output.
    Pouvez vous envoyer une copie d'écran de votre configuration développée sous Measurement & Automation Explorer ?
    Obtenez vous quelque chose de similaire à cela :
    Cordialement,
    PS : Natty, nice job with Kinect Das ist wunderbar
    Da Helmut

  • Peut-on faire fonctionne​r les cartes pxi-7334 et 6052E avec le controleur PXI-8820 dans un chassis 8186 avec Labview8.5 ou 2012?

    Bonjour à tous,
    J'ai un chassis PXI 8186 avec un controleur PXI 8186 sous Windows XP avec les tirroirs PXI 7334 et PXI6052E.
    Pour les besoins des projets, je doit l'utiliser connecter sur internet.
    Je souhaiterais l'upgrader, avec un controleur PXI-8820.
    Savez-vous si, mes tirroirs PXI 7334 et PXI6052E  fonctionnerons avec cette nouvelle configuration, avec Labview 8.5 ou Labview 2012.
    Cordialement.

    Bonjour,
    Merci d'avoir posté votre question sur le forum de National Instruments.
    Pour répondre à votre question, vous ne pouvez malheureusement pas simuler de carte FlexRIO dans MAX.
    Je vous joins quand même le tutoriel suivant qui pourra vous aider à l'avenir :
    How to Simulate FPGA Hardware Targets Using the Project Explorer with LabVIEW :
    http://digital.ni.com/public.nsf/allkb/F466AD83D24F041D8625714900709583?OpenDocument
    Brice S.
    National Instruments France

  • Communicating with modules in PXI-1042 via MXI-3 interface, all I get is PXI0::MEMACC appearing in MAX. I have OEM modules in the chassis, should these be displayed?

    I have a PXI-1042 with PXI-MXI-3 interface kit. In the chassis I have inserted an OEM PXI module. When I run MAX, all I see is PXI System->PXI Bus 0->PXI0::MEMACC. Is this correct? How do I see the other modules?

    Darren,
    The only PXI modules that show up under the PXI System option in MAX are those cards that are registered with NI-PAL or NI-VISA. For 3rd party cards, it depends on how their particular driver functions. If the vendor creates their drivers based on NI-VISA, then the device will show up in MAX.
    If the vendor created a Windows-specific driver, then there is no way that NI-VISA can find any information on the device, nor can it communicate with it. An example of this is a CompactPCI SCSI or Ethernet card, which is supported by a driver that is native to Windows. NI-VISA does not detect such devices.
    It is important that you contact the manufacturer of your 3rd party modules and find out if they are NI-VISA complient devices.
    Regards,
    Andrew Mier
    au
    Applications Engineer
    National Instruments

  • Where can I get LabView examples for PXI-6551 or 6552? Thanks

    We are thinking of buying a 655x and wanted to see sample code to get an idea of its capabilities.
    Does anyone know where I could find LabView examples?
    Any other information related to the PXI-655x would be appreciated too!
    Thanks,
    -KP

    Hi KP,
    Thanks for your interest in the NI 655X. These products use a brand new driver, NI-HSDIO, which is based on DAQmx. We are still working on a more bandwidth-efficient web installer for the driver, but for now I have placed it on our temporary ftp site. You can find it at ftp://ftp.ni.com/incoming/HSDIO.zip
    This driver contains a full set of example programs for both LabVIEW and CVI, and the help files are a great way to learn about the physical capability of the board.
    Do you have any other questions about these products?

Maybe you are looking for

  • K7N2 Delta Overheating

    I have the K7N2 Delta board (rest of system specs are in sig) and after about 45mins-1 hour of gaming, my system locks up and resets.  After lock up, if i go into bios, my sys temps usually read about 59-64 degrees celcuis.  I was having this problem

  • I can't read my email after upgrading to Tiger

    Hi, For some reason after I installed Tiger version 10.4.3 my email headers appear fine, but when I click on the header to read the email all I get is: "The message from _____ has not been downloaded from the server. You need to take this account onl

  • Sep Sesam Backup in clustered environment

    hello, has anyone here any experience on using sep sesam for backup of volumes in a (standard 2-node) sles10.3+oes2 cluster? Would be thankfull for any infos. Especially I can't get any info on install&config of sep for a cluster. h.

  • No track once option, why not

    I bought mine to play back tracks for live performance and can't find "track once" where a track plays through and then stops. I can't imagine why this option is not on this machine, how much code writing could it take?

  • XCM crashes after SP upgrade

    Hi! I don't know if this post should be here or under Web AS, but I posted it here. I'm setting up a CRM5 Best Practices system and I'm currently setting up the web parts. I have patched the J2EE enginge with the latest SP's and all imports was succe