bobql Posted April 16 Share Posted April 16 (edited) 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. I've tried this below but it doesnt work. Edited April 16 by bobql typo Link to comment Share on other sites More sharing options...
0 attila Posted April 17 Share Posted April 17 Hi @bobql See the following post: Link to comment Share on other sites More sharing options...
Question
bobql
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.
I've tried this below but it doesnt work.
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 accountSign in
Already have an account? Sign in here.
Sign In Now