Jump to content
  • 0

Digital Discovery - Labview SPI


bobql

Question

Hello, I am able to run a SPI example in python and I am trying convert the program into labview using functions from WaveForms™ SDK.  I am running into a problem with:

rgbTX = (c_ubyte*4)(0x00,0x40,0x00,0x01)
rgbRX = (c_ubyte*4)(0x00,0x00,0x00,0x00)

# cDQ 1 MOSI/MISO, 8bit words, MOSI words, MISO words
dwf.FDwfDigitalSpiWriteRead(hdwf, c_int(1), c_int(8), rgbTX, c_int(len(rgbTX)), rgbRX, c_int(len(rgbRX))) 

I am having a hard time defining rgbTX and rgbRX in labview.

image.png.c82a7a976cbe93dd31b5d2ffd179755b.png

I've tried this below but it doesnt work.

image.png.5c8cf21804e5eb9975c39dbb3ce72ee3.png

Edited by bobql
typo
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...