Components

cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos
Message 31 of 100
(12,301 Views)

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
0 Kudos
Message 32 of 100
(12,255 Views)

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  

0 Kudos
Message 33 of 100
(12,222 Views)

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.

0 Kudos
Message 34 of 100
(12,213 Views)

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
Group Manager for Application Engineering Specialists | Automated Test
NIC
0 Kudos
Message 35 of 100
(12,192 Views)

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 🙂

 

Thanks,

 

Chris

0 Kudos
Message 36 of 100
(12,178 Views)

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? 

0 Kudos
Message 37 of 100
(12,158 Views)

Your idea worked.

 

Thank you

 

Howard

 

0 Kudos
Message 38 of 100
(12,157 Views)

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
0 Kudos
Message 39 of 100
(12,152 Views)

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
0 Kudos
Message 40 of 100
(12,094 Views)