10-23-2013 03:50 AM
Dear All,
Greetings
I need help in implementing an I2C protcol in sbRIO 9636 (RIO evaluatation KIT) i try the one from this website (http://zone.ni.com/devzone/cda/epd/p/id/4063) after moving VIs it to my kit and deploy it i couldnt get the expected output as in figure (start condition) instead i got the output figure (output) !! any suggestion?? please help ...
thanks in advance
Mustafa
Solved! Go to Solution.
10-24-2013 10:41 AM
Hi Mustafa,
what LabVIEW version do you use?
Did you try the example programs from the LabVIEW example library? You can find them in LabVIEW via Help >> Find Examples >> Search "I2C".
There is a good example I2C Communication sbRIO.
If you get an unexpected measurement again, please add photos of the same timebase and give some more information.
Melanie
10-28-2013 04:11 AM
Hello Melaniee,
i use LabVIEW 2012.I tried LabVIEW example finder but couldn't find useful codes for sbrio, then I just follow the instruction from this link http://www.ni.com/white-paper/3479/en to build the code and I get the attached results .. it looks better than before, what you suggest, is there a problem with timing?? other think is how to get 5V output instead of 3.3V ? in RIO evaluation KIT which i use?
thank you very much
Mustafa
10-28-2013 08:23 AM
Hi Mustafa,
I attached the project of the LabVIEW example I mensioned.
Please try to use it for the communication and let me know, if it works fine.
Melanie
10-30-2013 10:13 AM
Dear Melanee
Greetings
I try to deal with the example you sent but i couldn't make it work with my sbRIO 9636 as it has different I/O, so anyone have an idea how to make it works with the sbRIO 9639 ?
i try to make new FPGA project compatible with my board and just add the VIs from the example above, but no results !!
Mustafa
11-04-2013 06:07 AM
Hi Mustafa,
I converted the example project for your sbRIO. To run the example, please compile built the FPGA-VI first. You will need a build specification for it.
Afterwards you should be able to run the example and communicate via I2C.
Melanie
11-05-2013 02:19 AM
Hello Melaniee,
thanks for the program,
I tried it but with no output signals !! first i assign SKC to DIO1 and DATA to DIO0 .. then i go to build specifications and click I2C Communication (FPGA) then click build. after that i clicked I2C communication (FPGA).vi .. i tried to set address, number of bytes and data to send so on .. but i got nothing in the DIO ports ??!
could you help me please
thank you and accept my best regards
Mustafa
11-05-2013 04:18 AM
Hi Mustafa,
there are some files missing in your project. The project I created looks like in the screenshot below.
You need these VIs to communicate with the FPGA code and generate an output on the I2C bus.
I saved the project one more time and added it below. In general it is the same VI as in the I2C Communication example from the LabVIEW library. If you do not see these VIs and libs in your project, please import the files from the example and modify the FPGA reference in the code.
The VIs are also included in the file structure of the zip file.
Melanie
11-05-2013 05:43 AM
hi Melaniee
I try but also without results 😞 please check the attached picture and tell me if i miss somthing .. and what should i do?
thanks
Mustafa
11-05-2013 07:30 AM
Hi Mustafa,
could you please check that the hardware in the project is named as the hardware on your sbRIO. I did not change any hardware component names since I do not have the sbRIO you use.
For more troubleshooting steps you can also use the troubleshoting notes for the I2C Communication example from the example library. These VIs include a step by step instruction manual to which you can refer.
If this does not help, please try to debug the code. Maybe some addess or parameter is wrong.
Melanie