LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI example with SDW library - Cannot write to DIO of I/O card

Hello,

 

I just tested the given example of the SPI library but I'm not able to write the digital waveform to my I/O board (NI6537).

 

I get always failure messages, no matter what I do. -.-

 

1) Buffer size. I do not know the size for my buffer, if I take 0 (indicating hardware buffering) it does not work....

2) Attempted writing digital data that is not supported.

      Data: 5
      Supported Values: 0, 1

 

Anybody could give me a hint why it does not work? Or what do I have to change in my VI?

 

Regards Chris

Download All
0 Kudos
Message 1 of 2
(2,692 Views)

Hi Chris,

 

I was able to reproduce your error and found the solution which i attached as screenshot.

The DAQmx write function input "data" necessarily has to be connected by a binary value which can be created by using the "Digital Waveform to binary" function block.

 

My VI works perfectly now, hope you can solve the issue too.

 

Regards chras

0 Kudos
Message 2 of 2
(2,656 Views)