NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Anne_Z
Posts: 27
0 Kudos

Re: I2C Digital Waveform (IDW)

David,

 

Thank you very much for your suggestions. I succeeded in reinstalling IDW 1.1 and cleared confusions of substituting "Offset" by "Sample Offset".

 

Anne

Active Participant
David S.
Posts: 425
0 Kudos

Re: I2C Digital Waveform (IDW)

Hi all -

 

I've published a new Reference Application that should prove useful when working with the IDW, JDW, and SDW libraries: Serial Protocol Communication with Digital Waveform Devices. It explains how to configure an NI-HSDIO or NI-DAQmx based device to work with one of these libraries. Check it out, and please rate it!

David Staab, CLA
Staff Systems Engineer
National Instruments
Member 2B
Member
2B
Posts: 5
0 Kudos

Re: I2C Digital Waveform (IDW)

I downed the I2C Digital Waveform Reference Library for LV 8.2 but I am getting a error message which is;

 

Error 1311. Source file not found: C:\Program File\National

Instruments\LabVIEW 8.2\examples\Volume\bin\dp\data.cab

Verify that the file exists and that you can access it.

 

Can someone give me idea what I am doing wrong?

 

Thanks,

Howard  

Knight of NI
RavensFan
Posts: 13,226
0 Kudos

Re: I2C Digital Waveform (IDW)

Did you run the setup file?

 

I see the data.cab in the zip file.  Either the zip file you downloaded is corrupted, or it did not get installed properly.  Search around to see if you have a data.cab.  Try installing again.  Try downloading the zip file again and reinstalling.

Member
David_Pratt
Posts: 172
0 Kudos

Re: I2C Digital Waveform (IDW)

Hey Howard,

 

Were you able to determine if the directory that error message was referring to exists or not?  Did the suggestions Ravens Fans gave correct the missing file issue?

David Pratt
AES - Test Side Products
NIC
Member
CMaldonado
Posts: 1
0 Kudos

Re: I2C Digital Waveform (IDW)

Hey All,

 

I'm working on an application in LabWindows/CVI and I'm trying to implement an I2C  master read/write with the PXI-6551. I have spent days trying to find an example or some sort of code to shed some light on how to implement this protocol since it is my first time working with this but I'm running out of options here. Is there any particular thread that can help me out with this or if there's any particular example that someone can provide for LabWindows/CVI; I looked at the IDW but it seams that is only for LabView. I guess I will have to dive in the different SubVIs to figure it out. Please Help :smileyhappy:

 

Thanks,

 

Chris

Member 2B
Member
2B
Posts: 5
0 Kudos

Re: I2C Digital Waveform (IDW)

Hi David,

 

Yes, I was able to fix the issue with Ravens Fans suggestion.

 

Thank you,

 

Howard

 

P.S.. Is it possible to communicate with a I2C devise through a serial port connection? 

Member 2B
Member
2B
Posts: 5
0 Kudos

Re: I2C Digital Waveform (IDW)

Your idea worked.

 

Thank you

 

Howard

 

Active Participant
David S.
Posts: 425
0 Kudos

Re: I2C Digital Waveform (IDW)

Hi Howard -

 

I assume that by "serial port", you mean an RS-232 port on a PC.  No, you can't. I2C and RS-232 are two completely different protocols and physical transmission layers.

David Staab, CLA
Staff Systems Engineer
National Instruments
Active Participant
David S.
Posts: 425
0 Kudos

Re: I2C Digital Waveform (IDW)

[ Edited ]

Hi all -

 

I want to share a patch for the I2C example VI that you download from Serial Protocol Communication Reference Design for Digital Waveform Devices. There is a subVI called Interpret HWC Samples - I2C that has two bugs:

  1. The "Expected Input" control needs to be attached to the VI's connector pane. The function won't work properly without it, so I suggest also making it a Required input.
  2. The numeric representation of that control needs to be changed from U16 to U8.

These fixes are shown in the images below:

 

 

I'll include this patched VI in whatever release comes next (probably v1.0.2, along with any other bugs found and fixed in the near future).

 

Please remember that this VI is designed to be an example of how to parse a single byte from the I2C data stream. If you're receiving multi-byte streams of data from the slave, you'll have to modify it to pack more than 8 "Data" bits into the output. You could either have it count out the bytes and concatenate them into a [U8] array or char string, or you could pack them into a larger output datatype, like U32 or U64.

Message Edited by David S. on 06-03-2009 03:58 PM
Message Edited by David S. on 06-03-2009 04:02 PM
David Staab, CLA
Staff Systems Engineer
National Instruments
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page