07-01-2020 04:29 AM
Good day to all of you,
I'm working on a complex project, that involve even SPI comunication, in a DC-DC Converter. I need to sniff the comunication beetwen microchips inside the board and to do this my boss purchased the NI-PXIe 6124. I managed to obtain the digital input waveform but the request from the costumer is to translate the waveform in bytes form. I had download the SPI Digital Waveform components for Labview but i can't understand how to make the translation. Any help would be really appreciated.
Thank you in advance,
Francesco
07-01-2020 05:12 AM
07-01-2020 05:34 AM
First of all, thank you.
Now for the question: I don't understand why you think i need syncronized I/O since for this task I only had Input Signals. Did I miss something?
Francesco
07-01-2020 08:12 AM
I am guessing from what you said that you are just trying to monitor SPI transfer between two existing devices?
If that is the case then to read via I/O, the SPI Clock & Data lines need to be read on the same input port at the same data (synchronised) at a fast rate (whatever your SPI speed is (400kHz)?). The Daq card that you have is not High Speed and so wont be able to sample the input port anywhere quickly enough.
07-01-2020 08:29 AM
Ok, now I understand what you said. I'll double check the Daq Datasheet and see what we have. But even if I correctly sampling the SPI how can i decode it?
07-01-2020 10:35 AM
To decode it you first need to know the SPI speed, SPI mode & whether MSB is sent first or last.
07-02-2020 01:08 AM
So there is no a library with pre-built decoding. I downloaded the SPI Digital Waveform library but for what i understand is only for creating a digital waveform that must be sent with NI DAQ device, am I right?
07-02-2020 03:23 AM
There are SPI libraries that come with NI SPI hardware (eg NI 845x). DAQmx has its own read/write I/O shipped with the driver. HSDAQ also has its own different library shipped with the hardware (eg NI 653x).
03-23-2021 08:31 AM
Hi, Good day to you all.
I have been trying to implement an SPI communication with the USB6210 as master to cummunicatie with a pic18F microcontroller.
I have downloaded
from
"Serial Protocol Communication Reference Design for Digital Waveform Devices ".
https://forums.ni.com/t5/Example-Code/Serial-Protocol-Communication-Reference-Design-for-Digital/tac...
but when trying to run this and test it I keep getting an error.
the error is as follows:
"Specified read or write operation failed, because the number of lines in the data for a channel does not match the number of lines in the channel.
If you are using the Digital Waveform datatype, make sure the number of lines in the digital waveform matches the number of lines in the channel.
If you are using boolean data, make sure the array dimension for lines in the data matches the number of lines in the channel.
Number of Lines in Channel: 1
Number of Lines in Data: 3
Task Name: _unnamedTask<1C>"
I have not made any changes to the VI itself. But keeping getting this error.
I tried running it with highlited execution and saw that the problem occurs at the init CorrDIO device.vi
are there any suggestion?
thnx in advance.
06-24-2021 09:21 AM
@Christian_L wrote:
Please provide feedback, comments and questions on the SPI Digital Waveform reference library in this thread.
- David
(posted by Christian on behalf of David)
The link to the example code now appears dead. Could someone at NI take a look and restore/fix it?