Problems using I2C on the FPGA of MYRIO

I made a real time program that talks the the PmodCLS; however, for my fpga program is must run under the fpga, and under communications there is some I2C functions however the documentation is just limited to the context help file. Attached you will find my working realtime code, and besides it are the fpga I2c functions that I don't quite understand, for it appears that you can only write one byte on the I2C bus, and I need to write more than that.  See I2C fpga myrio problem.png.
Well in trying to run the following code in nibug06162015d.png on my rio I got an error shown in nibug06162015a.jpg, and when I click show error it pulls up IP SPI&I2C.lvlib:Write Data.vi which has a fifo which can change dynamically as shown in nibug06162015b.jpg and can be any of the following cases as shown in nibug06162015c.png I typically use fifos with one variable and I do know you can make a custom control to have multiple variables in one fifo. But, how do you make a custom control for something that changes like this fifo? I thought maybe a tab control with an enum ring in one of the tabs, but would that really work right? The files are in nibug06162015c.zip
This is some info about the I2C implementation that I am trying to use that does not have any documentation on.
I2C&SPI API v3.0.0.22 by National Instruments Released On: Mon, 07 Jan 2013 15:50:27 -0600 Author: National Instruments Copyright: Copyright (c) 2012, National Instruments Compatible LabVIEW Versions: >= 2010. Compatible OS Versions: ALL. Repository Name: NI LabVIEW Tools Network
I tried another approach by trying to use the I2C engine, as an subvi. However, that generated so many errors I do not know what to do. First I added the engine shown in nibug06172015a.jpg to nibug06172015c.png and saved it as a subvi which I called in nibug06172015b.png and trying to run it gave me the following errors in nibug06172015d.jpg These files are in nibug06172015.zip
Attachments:
i2c fpga myrio problem.png ‏139 KB
nibug06162015c.zip ‏407 KB
nibug06172015.zip ‏1217 KB

First, I tried the i2c express vis which did not go well, but luckly the PMODCLS also supports serial coms.  So the UART express vis only configure the serial port and write/read to the serial port using standard visa calls.  Which turns out to work, so it is possible to run a rt program on the my rio and call a program loaded in the fpga and obtain output from it.  Here is my final working program.
Attachments:
RTMain2.png ‏495 KB
RT Main3.png ‏433 KB
Hbridge Motor Controller2.png ‏314 KB

Similar Messages

  • Cannot use i2c and custom fpga logic at the same time

    I am driving a OV7670 camera sensor with my myRio. Configuring the camera's registers is done via I2C (or they call it the SCCB interface, but it's practically the same thing). The sensors has to be given an external clock input which I do through the FPGA (I run it with an 8MHz signal). I can then do a parallel read (8-bits) from the chip into the FPGA on each clock in order to read off the pixel information, place it in a buffer and let the real-time side read it and manipulate it. The whole idea is to let the FPGA do the image acquisition while the processor does the image manipulation.
    The only problem is, when I have my FPGA configuration loaded, the I2C bus seems to stop working. I know that the I2C is actually handled throught the FPGA as opposed to the processor. Is there anyway to run those two functions simultaneously on the FPGA? If not, can I somehow implement the I2C protocol independently of the FPGA?
    Thanks in advance

    Hey quickbacon,
    I take it you're talking about using the built in I2C API for the myRIO. The myRIO comes preconfigured with a default FPGA personality, and the myRIO API is built off of that default personality - the default personality needs to be in place in order for it to function. By customizing the FPGA on your own, you've overwritten the personality, which is why the myRIO I2C VIs have broken.
    If you want to use both the myRIO I2C VIs and customize the FPGA you can do so, but you need to modify the FPGA VI for the default personality instead of creating a new FPGA VI from scratch. To expose the FPGA VI that defines the default personality in a project, create a new project in LabVIEW and select the "myRIO Custom FPGA Project Template." Once you've created a project from that template, expand the FPGA target - the FPGA VI that's present under the target is the FPGA VI that defines the default personality. To add your own custom FPGA functionality, simply open that VI and add your functionality in parallel to the existing code. As long as you leave the code pertinent to the I2C VIs in place (it should be clearly labelled in the FPGA VI), the I2C VIs should still function. If you run into resource utilization problems, you can delete sections of code from the personality that deal with myRIO functions that you aren't using - just leave the code pertinent to I2C intact.
    Regards,
    Ryan K.

  • My problem using iPhoto Having the horizontal lines going through the  photo when printing of a website

    My problem is using the I Photo and printing a picture with horizontal lines going through it

    Your topic title and topic content are a bit confusing?  Are you printing a website page? That would be thru Safari or other browser. 
    Or is a photo from a website?  If so how was it imported into iPhoto?
    Also what system and iPhoto version are your running?
    Does the photo print correctly from Preview or other application?
    What's the pixel dimensions of the image?
    How much free space do you have on your boot drive?

  • A problem using Flickr with the new version of Firefox.

    Before the new upgrade in Firefox, when I went to www.Flickr.com and clicked on "log in", a new window opened up prompting me for password and ID. After I entered them, that window would close and bring me back to the window I clicked "log in" on.
    Now, the new window stays open with the first page of Flickr again, leaving me with two exact, logged in pages.

    The Google Toolbar "will not be supported on Firefox 5 and future versions." <br />
    http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    http://www.google.com/support/toolbar/bin/answer.py?answer=1342452&topic=15356%29
    The Google Toolbar '''7.1.20110512W''' version does work pretty good in Firefox 5.0 by using the Compatibility Reporter extension. But not every feature works 100%.<br />
    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    http://googlesystem.blogspot.com/2011/06/enable-google-toolbar-in-firefox-5.html

  • Is anyone else having a problem using "search" in the store. Everything else seems find but selected search results produce a blank screen.

    Every time I try to use 'search' in iTunes, it will bring up available related results, but when you click one the results screen is blank. Plus I'm continuing to notice since downloading iOS 6 this phone seems a little glitchey and slow at times

    Same here. Searching iTunes Store and touching a result often results in blank screen. Hopeless isn't it. Can't select and download a film because of it. Stuff in the featured/category/chart sections selects ok, it's just searched items for me. Surely others have noticed same with ios6. This only happens on my iPhone 4. On iPad 3 search is fine but I think it's different because iPad 3 tends to bring a kind of pop out window when selecting.

  • Is anyone having problems using Facebook since the IOS 6 upgrade

    MY husband and I have 2 iPhone 5's, an iPad and an iPad Mini.  Since we downloaded the IOS 6 we are not able to get comments or photos on Facebook without shutting down and turning the device back on.  Is there any way to fix this?

    Having similar issues it seems here with Microsft Outlook and iphone connected via Exchange ActiveSync.
    Seems when one user creates a meeting and invites multiple other users, one user in particular, when they respond to the meeting request from their iPhone (running iOS6) to either accept/decline the meeting, it ends up canceling the whole meeting and sending out notifications that the meeting has been cancelled and removing it from people's calendars.
    Would love to know if someone has a fix for this type of issue. I'm going to try to disconnect the user from Exchange on their phone and reset the connection back up.

  • Using saxparser in the suite method from junit

    Hi, i have a problem using SAXParser in the suite method of junit.
    My little test class 'myParser' works fine but when I call the method 'doIt' from the 'suite' method from a class that implements TestCase (junit) I get a java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration
    in line 7.
    Does anyone have an idea what I made wrong??
    1) public class myParser {
    2)   
    3)   public myParser() {}
    4)   
    5)   public void doIt() {
    6)     try {
    7)       org.xml.sax.XMLReader parser = new org.apache.xerces.parsers.SAXParser();
    8)       parser.parse("anyFile.xml");
    9)     } catch (java.io.IOException IOe) {
    10)       System.out.println(IOe.getMessage());
    11)     } catch (org.xml.sax.SAXException SAXe) {
    12)       System.out.println(SAXe.getMessage());
    13)     }
    14)   }
    15) }

    Hi JPilot,
    I�ve this problem, too.
    greez ZB

  • I have recently been having problems using Firefox: it continually gives a "Not Responding" message.

    I have been having problems using Firefox for the past few months:
    Whenever I log on, I get a "Not Responding" message, and Firefox "freezes." I then have to "click" my mouse several times to again be able to use Firefox - but only for a few minutes. Firefox then freezes again and shows another "Not Responding" message.
    Because of this repeated "crashing," I have been using I.E. as my browser, because it does NOT have any such problems.
    How can I FIX this problem with Firefox?

    Many site issues can be caused by corrupt cookies or cache.<BR><BR>
    Clear the Cache<BR>
    '''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''
    <BR><BR>and<BR><BR>
    Remove Cookies<BR>'''''Firefox/Tools > Options > Privacy.'''''<BR>
    Under '''History''', select Firefox will '''Use Custom Settings'''.<BR>
    There is a button on the right side called '''Show Cookies'''.<BR><BR>
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    <BR>While you are in safe mode; '''''Firefox Options > Advanced > General'''''.<BR>
    Look for and turn off '''Use Hardware Acceleration'''.<BR>
    Poke around safe web sites and see if there is still a problem. Then restart.

  • E71 Calendar synchronisation problems using MFE

    Hello All,
    I have a E71 and I am experiencing problems using MFE. The connection to the server appears fine until calendar attempts to synchronise, at which point the log reports 'sync died (130)'  Email and Contacts sync automatically
    however if I attempt to add calendar to the sync schedule the connection just dies. I have included an extract of the report log:-
    27/04/2009 2:51:02 cal: start = 2012-05-06T23:00:00(UTC) : May Day Bank Holiday
    27/04/2009 2:51:02 client->server adds=0 changes=0 deletes=0 fails=0
    27/04/2009 2:51:02 server->client adds=49 changes=0 deletes=0 fails=0
    27/04/2009 2:51:15 cal: start = 2009-05-20T09:00:00(UTC) : ECS Steering Committee
    27/04/2009 2:51:15 cal: start = 2009-06-04T08:00:00(UTC) : SummitSkills Board meeting
    27/04/2009 2:51:15 sync died (130), collection=Calendar activity=handling commands from server
    27/04/2009 2:55:42 PING Command Requested
    27/04/2009 2:55:46 start Calendar sync
    27/04/2009 2:55:59 Server wants to add an item that already exists. Process as Change.
    27/04/2009 2:55:59 cal: start = 2009-05-20T09:00:00(UTC) : ECS Steering Committee
    27/04/2009 2:55:59 cal: start = 2009-06-04T08:00:00(UTC) : SummitSkills Board meeting
    27/04/2009 2:55:59 sync died (130), collection=Calendar activity=handling commands from server
    I have installed the latest MFE 2.9.158 and rest the device a number of times, but I still have the same problem
    For info syncing on an MS Push email (same account) appears fine.
    Any help or advice will be greatly appreciated
    Thanks
    Shrimo

    Have you checked in Settings>General>Date & Time to make sure 24 hr time is turned off?

  • Problems using tools in toolbars

    I have problems using many of the tools in toolbars. I simply can't click on them to use them, they are "dead".
    I recently installed Indesign and have had this problem from the start. (Windows 7 64 bit)

    See http://forums.adobe.com/message/4109757#4109757

  • When use scan mode and FPGA simultaneously, why does the FIFO Read can not be used?

    Hello, I am using compactRIO-9025 to do a project and trying to use scan mode and FPGA simultaneously ( Hybrid mode). I have already build a project as the following tutorial.
    http://digital.ni.com/public.nsf/allkb/0DB7FEF37C26AF85862575C400531690 and I have NI 9205, NI 9023 in Scan mode and NI 9871 in FPGA mode in the same project.
    In the FPGA Target of the project,  I add a FIFO and tried to use it to log in data from NI 9871. I wired the module I/O node to FIFO Write in the target vi. However, when I  droped the invoke method to the block diagram of the host vi and right clicked it, there is no FIFO Read can be choose. Could you please help me to solve this problem?
    Thank you very much!!

    I am not aware that using the Scan Engine is blocking any access to a transfer FIFO. But please reread this from your quoted KB:
    Secondly, the number of DMA FIFO's that can be used in the FPGA code will be reduced, since the scan engine uses two DMA FIFO's. Most FPGAs have 3 DMA FIFO's, so there will only be one DMA channel left to use in the FPGA code.
    This means, you have only a single DMA FIFO left which is either Target to Host or Host to Target.
    Make sure that you configured the FIFO to be the correct direction for your needs...
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Weird problem flashing the FPGA

    Hi,
    I am trying to use Chipscope (Logic Analyzer) for the first time,
    I saw the target in the Open Hardware interface right away, I can flash the bitstream and the DONE led turns on as you would expect.
    Note I am using a simple design that actually works, I am just putting Chipscope to the test.
    I turned the board to JTAG boot mode, as I flash the FPGA the ILA is stuck waiting for a trigger: I am monitoring a TLAST bit which I know behaves well. I am also monitoring this bit on a real scope at the same time: nothing happens!
    I switched back to Linux (SD card boot mode), transfer this bitstream and flash the FPGA:
    cat bitstream.bit > /dev/xdevcfg
    and the signal triggers on the scope!
    Is it possible that the JTAG interface does not flash the FPGA properly?
    I am working on the ZC706 board,
    I did not install any particular cable drivers as it worked right away (Debian).
    I unplugged any non-JTAG compliant device plugged in the FMC connectors.
    The ILA is clocked by an external clock (ideally at 300MHz but I slow it down).
    I am using the Synthesis 'Mark Debug' interface which modifies my top .xdc file.
    I noticed the default frequency for the ILA is 300MHz, I've had trouble with this value I could not flash the FPGA, downgrading to 50MHz solved the problem.
    Any inputs would be appreciated..

     
    Hi Austin, thanks for your help.
    So, I presume you mean you are programming the device?
    Yes I am programming the device.
    Which bitsstream file did you use through JTAG?
    project/projects.run/impl_1/design_1_wrapper.bit
    Was the exact same on ewritten to the SD card? 
    Yes: I did cat design_1_wrapper.bit < /dev/xdevcfg as usual.
    Is there a debug core also specified when using JTAG?
    This bitstream does contain a debug core (ILA + DBG)
    <edit>
    Do I need to program the CPU to get an FPGA based design probed? I am not using a Zynq clock.
    I am obviously lacking a bootloader in the JTAG configuration
     

  • Macbook pro Late 2011 13.3 inch i7 keyboard and trackpad not working bluetooth showing a cross sign and no usb mouse is detected. Almost dead keyboard and mouse. Earlier same problem used to be solved by opening the lower cover and closing it.

    My macbook pro 13.3 inch i7 late 2011 edition has previously encountered unresponsive trackpad and keyboard. To solve that, I used to open the back cover and then close it. It has been working fine since that. Yesterday, same thing happened, this time I noticed that bluetooth icon is showing a cross sign across it and keyboard and trackpad were unesponsive. After some time , everything worked fine and bluetooth sign was back to normal. Then , suddenly it went back to the problem. I shut it down by holding the power button. When I booted it again, I could not login because keyboard and trackpad were not working. I attached a HP mouse it didnt work. I opened the back cover disconnected the battery and then connected it again, didnt worked. Since then , I have tried many things and nothing has solved the problem.

    @sanjampet
    As you suggested I reset the smc, in the first boot nothing worked. In the second boot, it all worked like a charm. I thought that my problem is resolved now. To test it, I shut it down properly. Next morning, I powered it on, all things i.e, keyboard, trackpad, bluetooth etc. worked and I thought that problem has been solved. When I was just going to visit apple forum to reply you,  the same problem reappeared. A sawtooth cross over bluetooth icon, keyboard not working, trackpad not working,no usb mouse working which worked well when it was fine. I reset smc so many times again and again but same problem continued. Isn't it a problem of the firmware?
    Next time when it will work, I will update its firmware.
    My macbook was bought in dec2011 so no warranty now.

  • Hi. I am just about to move from the UK to Kuwait. Will I have any problems using my iPhone 4 and able to join a local carrier using this device please?

    Hi. I am just about to move from the UK to Kuwait. Will I have any problems using my iPhone 4 and able to join a local carrier using this device please?

    If your phone is locked to a particular carrier, you must contact them to request they unlock it. Once they've taken care of that and you've followed the instructions to complete the unlock process, you will be able to use the phone elsewhere.
    ~Lyssa

  • When I use the CTUOnline site, the IM window will not open, and the Outlook mail frequently crashes. I do not have these problems if I access the site via Safari. I am using a Mac OS 10.4.11.

    I am teaching an online course through CTUOnline. I use a Mac OS 10.4.11. When I access the site thru Firefox, the IM chat window just says "Loading" but never loads. My campus mail, which is accessed through Outlook, frequently boots me out. I must copy and save every message, because I cannot predict when it will go through and when I will be thrown out. I have set my Preferences to allow pop-ups from ctuonline.edu and from campus.ctuonline.edu. I do not have these (connection?) problems when I access the site through Safari.
    == URL of affected sites ==
    https://campus.ctuonline.edu/MainFrame.aspx?ContentFrame=/Default.aspx

    I am teaching an online course through CTUOnline. I use a Mac OS 10.4.11. When I access the site thru Firefox, the IM chat window just says "Loading" but never loads. My campus mail, which is accessed through Outlook, frequently boots me out. I must copy and save every message, because I cannot predict when it will go through and when I will be thrown out. I have set my Preferences to allow pop-ups from ctuonline.edu and from campus.ctuonline.edu. I do not have these (connection?) problems when I access the site through Safari.
    == URL of affected sites ==
    https://campus.ctuonline.edu/MainFrame.aspx?ContentFrame=/Default.aspx

Maybe you are looking for

  • Error message 'The remote server is not responding in a proper manner. Please retry after a few min

    We have high security at the company so I'm wondering if there is an issue with the firewall settings not letting adobe in. The progress bar when trying to run CreativeCloudSet-Up.exe only gets to about ten percent of the way before this error appear

  • Need help.. Question about connectivity of PS2 with Creative A2ZS Video Edit

    Hi everyone, i have question regarding creative A2ZS video editor.. please forgive me for my innocent question since im new here.. I own a Play Station 2.. can this video editor allow me to connect my PS2 and show the display on the monitor so that i

  • Query Builder in 10g

    Hi all Is Query Builder available as a STANDALONE product in Developer Suite 10g (i.e. callable from outside Report Builder)? Many thanks Andrew Hunter

  • Compiler Error: Unable to load class

    Hi, I'm having trouble getting my first custom tag to work. Details of the setup follow: ============= Tag Handler ============= package whichtorrent.tags; import java.io.*; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; public class

  • How to export dynamic translations

    Hello, I have an application where I have defined various dynamic translation strings (Used by static LOVs). Now I want to move the application from e.g. development enviroment to production enviroment. As far as I've seen, the dynamic translations I