LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Serial/Parallel Port/DAQ card of a PC to run a SPI communication?

Hi, dear all,

I am looking for a method to send 10-bit word data to AD8403 Digital Potentiometer from PC’s Serial/Parallel Port or DAQ card.

 

Is it possible to implement such a communication with LabVIEW?

Are thee ready VIs for this application?

 

Thank you very much for your kind help!

 

Xiaogang

G01892389@ntu.edu.sg

0 Kudos
Message 1 of 13
(10,507 Views)

You can use NI VISA for communicating using serial port.

0 Kudos
Message 2 of 13
(10,499 Views)

There are some vi's that should work for you for the parallel port. However it has been communicated that with windows after 98 it's a little bit more complex...

I add a llb I downloaded from this forum a while ago that should perfectly fit your need (if you get it to work 🙂

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 3 of 13
(10,488 Views)

Hi Xiaogang,

it's nice to see, that somebody distributes  my "old stuff" .....  see attachment from Henrik Volkers..................

Find attached a vi... that fits much better to your needs - made for ANALOG DEVICES  AD5207,

a two channel - digital potentiometer (written in LabVIEW 7.1.1).  You simply need to adapt this to your needs.

In case you have still questions - let me know ........... or ask the Henrik - the distributing Expert. 

Have a nice day

Regards

Werner

 

 

Message 4 of 13
(10,482 Views)
hi, dear Werner, Henrik Volkers and Deepu,
 
Really appreciate your kind help.
I will try out attached programs soon.
 
Now it is midnight in Singapore.
Before i go to bed, allow me to say thank you again *^_^*
 
 
 
 
0 Kudos
Message 5 of 13
(10,467 Views)

Werner ,

I thought of searching the board for your article to post a reference, but it was faster to dig in my drive.

All stars belong to you *****

Especially because this vi includes a wonderful way of documentation.

Thanks for the update.

BTW: Did you wrote them for AD?

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 6 of 13
(10,453 Views)
Hi Henrik,
 
thank you for the flowers................
 
I have never worked for AD - these Potentiometers where in use for automated
Test-setup  of our own Chips in the Lab.
 
btw: Did you stretch the Front-Panel of AD5207.vi down ?     there is the Functional block diagram  included.
        This I typically add - if possible - in order to have an acceptable Documentation of Functionality of vi's.
 
 
Regards from Dresden / Germany
 
Werner
0 Kudos
Message 7 of 13
(10,444 Views)
Hi,
 
   i want to send  8-bit word data to AD5290 Digital Potentiometer (3- wire digital interface (chip select,CLK and SDI)) via DAQ card (PCI 6221). Does someone has similar Vi that I can study from?Thank you.
0 Kudos
Message 8 of 13
(9,013 Views)

Hi ILLGG,

It looks like this is an old thread and you seem to have another forum thread open with the same question. Tom W has posted an example on this forum that should be able to help you with your application.  Please try to keep all questions about your one application on one thread.  Thank you again for posting!

Regards,
Vanessa L.
Applications Engineer
National Instruments
Message 9 of 13
(8,973 Views)

Hello,

In this project (AD5207.vi) I have seen that It's used a buffer 74HC573, how can I connect OE/ and LE inputs?

 

Can I use this project (AD5207.vi) to run a SPI communication for AD8402? In this case is it necessary to use the buffer 74HC573?

 

I want use this digital potentiometer as a rheostat, can I to verify the exact value of resistors (B1-W1 or B2-W2) using a simple tester?

 

Must the AD5207.vi run continuously or is it enough a single run to set a resistor's value?

 

Thanks.

Best regards

Fabio

0 Kudos
Message 10 of 13
(7,240 Views)