LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI with NI PXI 6509

Do anyone knows about the implementation of SPI using NI PXI 6509?
I want to test the SPI driver module with 6509 using Labview
If anyone know the details please share it.


0 Kudos
Message 1 of 11
(7,050 Views)
 
Hi Techiess,
 
There looks to be an example program posted on this discussion forum. For higher communication speeds than can be achieved with the static I/O, consider using the USB-8451. I hope this helps!
 
Regards,
Missy S.
Project Engineer
RoviSys
0 Kudos
Message 2 of 11
(7,036 Views)
Thank you very much for your reply Missy

I have only two NI Cards PXI 6509 & 6251. I just want to know whether SPI communication is possible with these cards.Please reply as soon as possible.

What is the difference between USB and PXI cards mentioned here?.I am a new user of these NI cards


Thanks & Regards
Techiess

0 Kudos
Message 3 of 11
(7,031 Views)
 

Hi Techiess,

With the PXI-6509, you should be able to do SPI communication with this board's static I/O. One thing to keep in mind is that if the SPI device you want to communicate with needs to have a high communication speed, the PXI-6509 (and other boards with static digital I/O) will not be able to communicate fast enough. This is because the static I/O can only be controlled by software timing. The smallest delay that can be used to create the clock is 1 millisecond with static I/O. This will give the fastest software-timed SPI clock rate as 1 kHz.

Here is some background on the boards that you mentioned. The PXI-6509 is a digital I/O card, and the PXI-6251 is a multifunction DAQ device. They both use the NI-DAQmx driver. The USB-8451 is specifically designed for I2C and SPI communication. Its driver is NI-845x. This will give you the higher SPI communication rates, up to 12 MHz. See page 11 of the User Manual for valid clock rates for the USB-8451. Whether 1 kHz or lower with the PXI-6509 can be used with your device will be dependent on the SPI device you choose.

I hope this helps!

Regards,

Missy S.
Project Engineer
RoviSys
0 Kudos
Message 4 of 11
(7,017 Views)
Thank you once again for your valuable help Missy.
0 Kudos
Message 5 of 11
(7,004 Views)
Hello MissyD,


Is there any way of communication between NI PXI 6251 and microcontroller?
I want to transmit the data from the microcontroller(via UART) to the Hyper terminal of PC.
Can we configure the 6251 so that it can receive the data through serial communication?


Thanks & Regards
Techiess
0 Kudos
Message 6 of 11
(7,000 Views)

It is possible to receive data from the microcontroller via digital lines.  However, it would be very difficult to implement a serial protocol using a DAQ card.  I would suggest using a serial card designed to send and receive data via the serial protocol.

 
0 Kudos
Message 7 of 11
(6,988 Views)
Hello Mr. Brian,

Thank you very much for your valuable help and suggestions.

I have one more doubt about serial communication using NI PXI 6251(NI PXI 6509).
In my application a microcontroller  generates a  message whether  testing is  "pass" or  "fail".This message  will  be  received  using  PC hyper terminal using serial communication.After getting this message is it possible to check the result in labview ?.How can we get the data on hyper terminal into labview?
Please explain about the reception of data from serial port.


0 Kudos
Message 8 of 11
(6,953 Views)
Look in the Example finder for Serial Read and Write VI's.  Basically you use a VISA resource that points to your Com port, and read or write bytes to it.  You wouldn't use hyperterminal at all.  Labview has all the functions to do what Hyperterminal would do.
0 Kudos
Message 9 of 11
(6,950 Views)
Thanks for ur help.

when the basic serial read and write VI is executing it shows an error with error no   -1073807202.
for using the VISA vi is there any additional tool required?
Can i use the serial Vi's only with labview?

Thanks & Regards
Sujith C V
0 Kudos
Message 10 of 11
(6,947 Views)