キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

SPI implementation in LabVIEW only

Hi Folk,

 

A couple years ago I used a LabVIEW program that implemented SPI using nothing but a comm or parallel port.

 

It was from a customer and was custom code that I did not have access to.

 

Does anyone have an example of a LabVIEW only SPI solution.

 

Thanks,

 

-SS



0 件の賞賛
メッセージ1/9
5,201件の閲覧回数
メッセージ2/9
5,194件の閲覧回数
0 件の賞賛
メッセージ3/9
5,179件の閲覧回数

Hi Simon,

 

What would you be connecting to the Serial/Parallel port?  In the following article: Understanding the SPI Bus with NI LabVIEW it talks about different options for communicating with SPI in LabVIEW.

 

The following link has also been helpful for me when generating SPI Digital Waveforms SPI Digital Waveform Reference Library

 

Do you remember needing any specific drivers to run that previous code?

Scott A
SSP Product Manager
National Instruments
メッセージ4/9
5,134件の閲覧回数

Hi Scott A,

 

I am connecting to a proprietary SPI interface (EEPROM) so sorry there are no specifications that I can share.

 

I believe it connected to a parallel port directly.  No specific drivers were needed but there was some low level type code that did use semaphores in the vi's.

 

It was fairly fast if I remember correctly.

 

Regards,

 

-SS



0 件の賞賛
メッセージ5/9
5,118件の閲覧回数
0 件の賞賛
メッセージ6/9
5,110件の閲覧回数

Ben,

 

I have more information and found my original files.  It turns out the code used cviVXDWrapper.dll

 

When I search that *.dll a previous post from you comes up:  http://ni.lithium.com/t5/LabVIEW/Why-would-I-get-different-sized-exe-s-if-I-build-the-same-source/m-...

 

Any experience with this dll?

 

Regards,

 

-SS



0 件の賞賛
メッセージ7/9
5,083件の閲覧回数

That DLL is used by the "In Port" and "Out Port" VIs. It's part of the CVI Run-Time Engine. The VIs themselves allowed you to read/write the parallel port (as well as any other port).

 

EDIT: The "In Port" and "Out Port" VIs are still available in vi.lib in the vi.lib\Platform\portaccess.llb library. 

メッセージ8/9
5,073件の閲覧回数

.

0 件の賞賛
メッセージ9/9
4,278件の閲覧回数