01-27-2011 02:51 AM
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
01-28-2011 07:50 AM
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