05-07-2019 05:34 AM
Hello,
I would like to ask you how to connect ADS1293 to LabView, I am using NI USB-6501. How should I do it? Some kind of UART communication? DAQ or VISA?
Thank you,
Daniel
05-07-2019 05:57 AM
05-07-2019 06:02 AM
Hello, thank you for your reply.
The ADS1293 provides:
CSB 16 Digital Input Chip-select bar
SCLK 17 Digital Input Serial clock
SDI 18 Digital Input Serial data input
SDO 19 Digital Output Serial data output
DRDYB 20 Digital Output Data ready bar
and GND.
Daniel
05-07-2019
07:11 AM
- last edited on
12-18-2024
11:08 AM
by
Content Cleaner
That chip uses a SPI interface to communicate. So you will need something like a USB-8451 or USB-8452 to talk with it.
05-07-2019 08:36 AM
As another option... a co-worker successfully used a NI 6501 to bit-bang a SPI bus once.
05-07-2019 08:45 AM
Possible but without waveform outputs very painful. At least with something that supports digital waveform I/O you can run a little bit faster and get something nice-ish working.
I guess your colleague basically had all the pains of FPGA programming with none of the advantages or gains. Probably also depends on the requirements for timing variability on the ADS1293. At 0.4/Fsclk I'm not sure what the limit on clock speed would be for the USB-6501.
05-07-2019 11:04 AM
Thank you very much for your opinions guys. So your suggestion is to change the measurement card? Or do you have any advice on how to proceed with that current one which I have?
I think ADS1293 is able to communicate by UART as well. Maybe there is some way how to do it.
Thank you,
Daniel
05-07-2019 11:14 AM
It's not impossible to do with the hardware you have now - it's just pretty slow and tedious and perhaps a little tricky to code. If you don't feel confident understanding exactly what's required, it's unlikely to be your best choice.
Essentially, you'd be better paying somebody else to write the code, and the cost of that coding might will (I just checked the prices on the link) be higher than hardware better suited to the task (guess only - I don't know what people charge for consulting, and I haven't purchased any of the NI or equivalent hardware suitable for this that I think was the cheapest that could solve the problem).
If you want to press ahead and do it yourself, you'll have to do the "bitbanging" that was mentioned above - this is taking whatever message you want to send or receive and then toggling all of your digital I/O in a loop, one bit at a time, to send and receive data. I'm not certain it's possible with the 6501, but it might be. Your problem will be getting the right timing relations between different changes of the clock and the MOSI/MISO (or SDI/SDO) lines. Ensuring the appropriate timing relationships might require you to use a very slow clock speed (because you'll be basically doing one bit per iteration of a while loop) and you need it to be fairly reliable.
Since the hardware linked about is not particularly expensive, even just considering salary costs for your programming time might make it a good buy, depending on what you get paid 😉 You'll still have to program the other hardware (and that will still take time) but your programming will probably be limited to working out what data to send, and interpreting the data you receive, rather than first having to work out how to send and receive data.
05-07-2019 11:27 AM
Ok. Thank you very much.
Best regards,
Daniel
05-07-2019 01:44 PM