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
[email protected]
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 ǝɥʇ'
Attachments:
AD9835 SPI.llb 339 KB
Similar Messages
-
How can i use the parallel port
I was wondering how to adress my PC´s
parallel port. I did'nt find a suitable
VI in the palettes.
Do I have to read/write somehow directly
to the port adress in memory 0378 ...?
If so, how can this be done ?
Thanks for any help,
HolschUse VISA to read/write to the parallel port just like you would read/write
to the serial port. I would staty away from the inport/outport stuff. I believe
there's some articles in the KnowledgeBase if you get stuck.
[email protected] (Helmut Hullen) wrote:
>Hallo, Holger,>>Du meintest am 29.07.00 zum Thema how can i use the parallel
port>> I was wondering how to adress my PC's>> parallel port. I did'nt
find a suitable>> VI in the palettes.>>Look at "in port" and "out port".>Under
Windows NT/Windows 2000 you need a special library for direct port >access,
look for "hwaccess" or "accesshw".>>Viele Gruesse!>Helmut> -
Im using a pci-6221 daq-card.I want to know the difference(use)of a line output and a port output.
Hello Hellraiser24,
This question has actually been discussed in another thread here:
http://forums.ni.com/ni/board/message?board.id=170&message.id=95895&requireLogin=False
I hope this helps,
E.Lee
Eric
DE For Life! -
Hi, i'm new in lab view. i'm using 3'rd party daq card to get data using labview
i'm still green in this field. can anybody help me on how to get various data from daq card(not an ni brand) using my labview programming. i use labview 6 and i don't know how to get the data so i can display it in my programming. i used Pcl 1800 and pcl 836 card of advantech brand.
Greetings,
Below is a link to a KnowledgeBase, which discusses your options:
http://pong.ni.com/public.nsf/websearch/F3009806E2AE416E8525645D0076B962?OpenDocument
It appears that Advantech has a LabVIEW driver available. Below is a link to information about the driver on their Web Site. I would suggest trying this option, as opposed to using the Call Library Function with Advantech's driver DLLs:
http://www.advantech.com/content/0000000175/0000000175.asp?css=corp&name=corp
Good luck with your application.
Spencer S. -
How to use a different port in RMI
Hi ,
We cannot use default port 1099 in RMI due to some restrictions. I want to user port: 8000 instead.
Can some one please help how to use a different port?
Thanks
ArunC:\>rmiregistry.exe 8000
and in code use Naming.bind("rmi://<host>:8000", ....)
or LocateRegistry.getRegistry(host, 8000)
Genady -
Hello,
Before to use remote assistance in windows 8.1, i need to configure my nat router freebox.
But remote assistance ( msra.exe ) use a dynamique port and never the same.
How to use a fixed port for remote assistance ini windows 8.1 ?
And why i can't use easy connect ?
i read that the router must implement the PNRP protocol. I think it's a propriatary microsoft's protocol unknow on my router.
ThanksHello,
Very good. It's a big range ( 255 mini from 49152 ) for a single port but if it's the only one possibility...
You are very helpfull ( i don't know if it's a good english but you make me very happy )
Merci beaucoup -
How can I use the parallel port as an input channel to communicate with a SPECTROMETER?
Hello,
The sensing system we use is called: FieldSpec Pro from www.asdi.com.
The spectrometer has a LPT terminal. I'd like to use LabVIEW to acquire signals from the spectrometer for further analysis.
Thank you!Dennis,
I appreciate your time.
I have asked the copmany for such infos, but it seems to be confidential.
Do I need an I/O DAQ-Card?
Dennis Knutson wrote:
About all that tells me is
that I'm located in the same town as the manufacturer. You'll need to
find some specification that describes the parallel port protocol.
Without that, you're just wasting your time. Even if the instrument is
constantly sending data, you'll need to know how to interpret the data
and there's nothing that says it has to be sending constantly. Maybe
you first have to write something to the port first. Talk to them and
tell them you want to replace their software with software of your own
and need to be able to read the data. -
RDA serial, parallel port
Hello,
Is it possible to use serial or parallel ports via Remote Device Access?
with card AT-AO-6 system work fine.
NI-DAQ 6.9.3f3
NT WS 4.0 SP6
Deniss KaraiCheck this link.
http://zone.ni.com/devzone/conceptd.nsf/webmain/790B808B320DCF6F86256BE20069
65E6?opendocument
Deniss Karai
"masszamp" wrote in message
news:2XDR9.71499$[email protected]..
> Deniss Karai wrote:
>
> > Answer is VISA version 2.6, with Visa server
> >
> > Deniss
> > "Deniss Karai" wrote in message
> > news:3e0b1ef9$0$160$[email protected]..
> >
> > >Hello,
> > >
> > >Is it possible to use serial or parallel ports via Remote Device
Access?
> > >
> > >with card AT-AO-6 system work fine.
> > >
> > >NI-DAQ 6.9.3f3
> > >NT WS 4.0 SP6
> > >
> > >Deniss Karai
> > >
> > >what,corry, really?
>
> pradipaldo
>
> >
> >
> >
> >
> -
Question: serial/parallel port
Hi, I am trying to control a simple digital switch using labview and either
my serial- or parallel port. I want to control each individual pin on the
port: to turn on/off +5V on the output pins. Does anybody now how? Is it
possible? I am running labview 6.1 on W2k.
Thanks in advanceHi Luca, JS & Pawel,
in general everything is correct, but I would suggest to use the "Out Port" and "In Port" functions from LabVIEW. Have a look to the simple printer_port_test.vi. This also needs the accesshw as already explained.
In addition I recommend to use buffer-circuits in between LPT and an application in order not to destroy the motherboard-Chips by accident !!
Regards
wha
Attachments:
printer_port_test.llb 52 KB -
How to use serial instruments as a displayer or indicator
Is there any way that I can display reading from serial ports evevy other 30 seconds? Just like I get reading from DAQ board. Now I am using serial.vi, but each time I have to send command to get the updated reading. Is there any way this can be done automatically?
thanks and happy holliday.Here is a little vi that allows you to specify your interval. It works for logging data etc.
Attachments:
Interval.vi 22 KB -
Controlling Brushless maxon DC motrs using NI 6221 PCI Daq card
Hi ,
I have a NI 6221 PCI Daq (M Series) card. I need to know how to use it to control a brushless DC motor from maxon with digital encoder? Also I need to know how to access the daq from matlab 7.0 as i am not familiar with labview and i need to know where i can get the matlab drivers for the card. Also i am trying to learn labview in the course of time. So it would be great if someone can give me some good tutorials in labview for motor control.
Thanks
Venkat
Venkat
Message Edited by venkata83 on 11-24-2005 03:30 PMThe lowest cost servo control option from NI is the PCI-7342 board which allows you to control two servo motors.
Please have a look at the datasheet for a detailed description.
Both, the 6221 and the 7342 provide synchronisation capabilities through the internal RTSI-Bus interface. This makes it easy to correlate e. g. analog values and motor positions.
As the 7342 doesn't provide power you will need to connect the board to an external drive.
Jochen -
My opatical equipment measures the brightness with using the parallel port.
How can I receive that data ? Plz...send me ur advices through e-mail.
My address : [email protected]Hello,
You should probably be a bit more specific in your problem description. Please post your question in the software category that pertains to your application. For instance, if you are using LabVIEW to communicate with your parallel port, you may want to post your question in one of the LabVIEW categories.
Good luck with your application.
Sincerely,
Darren Nattinger
Applications Engineer
National Instruments
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
Hi,
I want to write data to the parralel port, so I use
the 'serial port write' VI wich can be use to write
data to the parallel port using port number :
0 = COM1, 1 = COM2, ect... 10 = LPT1,
11 = LPT2. (I use 10 -> LPT1).
But I always have the same error : Number 37
which mean 'Device not found'. I have tested my
VI on three different PC (Windows 98 and NT4)
and I have always the same error.
My PC (Windows 98) is well configure so I don't
know where is the problem.
Can somebody help me.
Thanks.
Best regards.
FARGET Vincent
[email protected]Vincent Farget wrote:
> Hi,
>
> I want to write data to the parralel port, so I use
> the 'serial port write' VI wich can be use to write
> data to the parallel port using port number :
> 0 = COM1, 1 = COM2, ect... 10 = LPT1,
> 11 = LPT2. (I use 10 -> LPT1).
>
> But I always have the same error : Number 37
> which mean 'Device not found'. I have tested my
> VI on three different PC (Windows 98 and NT4)
> and I have always the same error.
>
> My PC (Windows 98) is well configure so I don't
> know where is the problem.
> Can somebody help me.
>
> Thanks.
> Best regards.
> FARGET Vincent
> [email protected]
I have finally found and use the 'Out Port' function
which is in the advanced/memory functions.
FARGET Vincent
[email protected] -
How to measure pulse height by DAQ card
I want to record pulse signals (fast pulse) and measure their amplitude (height) using DAQ card
:-) I heard that problem before. Is it possible that we disscused this subject some time earlier?
Well, but to your problem. How many counts do you get per second in average? I work/worked at a similar problem to analyse the counts from a 2D-detector. I tried the VI mentioned above but it was never able to analyse 1000 counts per second as a order of magnitude.
Which shape has your pulses? Are they NIM or square shaped? How stable is your underground and of which order of magnitude is it? How fast is your DAQ board? Because according to the Nyquist theorem you will need a sampling rate of approx. 1MS/s to resolve them properly!
Stephan -
How to use non-standard port for vnc?
Our Windows users who use RDC to connect to their desktops from off-site come in on a non-standard port number. Part of our security setup.
I'd like to do the same with Mac users who use screen sharing and vnc to connect remotely.
How can I specify another port number at both ends to accomplish this?
I can find nothing in the Network Utility app, or in the KB.
Surely there's a short sequence of Terminal commands that will do this?I haven't tried this so don't know whether it will work. But I think it will. Presuming the target machine is a Mac, see if editing its /etc/services file will do it. Find the two lines that start with "vnc-server" and change the port number there. Launch Terminal.app as an administratively privileged user, sudo pico /etc/services, ^w to search for vnc-server, make the changes, ^x to exit, y to save and overwrite. Also, you will need to have screen sharing enabled in the target machine's System Preferences' Sharing, and the authorized users defined there, too. Reboot. Now, on the remote client, assuming it is also a Mac, the user would type ⌘k in the Finder (or mouse to Finder > Go > Connect to Server), and enter something like vnc://123.45.67.89:55900 where you substitute the actual IP address or host name for where I have entered 123.45.67.89, and where you substitute the actual alternate port number where I have entered 55900. Of course, in the clients' Screen Sharing's Preferences, they should choose to encrypt the entire session, not just the login. Like I said, I haven't tried this because I just tunnel my vnc stuff through ssh, but I'm thinking that this should work.
Maybe you are looking for
-
Hello all, we have a procject with a customer, but if we try to send an document, we get follow error back: Message could not be forwarded to the JCA adapter. Reason: Fatal exception: javax.resource.ResourceException: SEEBURGER AS2: AS2 Adapter failu
-
I can't seem to use my Apple Remote with my MacBook Pro. I thought the battery in the remote might be dead, so I replaced it, but it still doesn't work. I've read that I should try unpairing the Remote (it was paired) and then re-pairing. Unfortunate
-
Stop opening after send to print
Hello, I am on a Windows 7 Home Premium, SP1, computer using Adobe Reader X1. How do I turn off the function that causes the software/application to open each time a document is either saved or printed to a pdf file format? Thank you in advance.
-
Hi, I'm trying to submit a code to "Code tips" of Oracle magazine,but the following page http://www.oracle.com/webapps/cif/servlet/survey?p_id=144&type=CIF "Code tip form" doesn't work for a long time. Seems like nobody care about. On submission I'm
-
None of my programs will open, help!
Yesterday, I was watching YouTube videos, and the video would " stall", freezing for a sec or two, on and off, but the sound would keep going. It would then freeze safari and I had to force quit. Today, it was freezing the videos again, and I had t