I have Advantech PCI-1751, Linux Slackware 9.0 with kernel 2.4.20 and
installed comedi.
Comedi run so:
/sbin/modprobe comedi
/sbin/modprobe pci1751
/usr/sbin/comedi_config /dev/comedi0 pci1751
program "info" shows:
......
subdevice 2:
type: 3 (digital input)
number of channels: 48
....
command:
non supported
subdevice 3:
typy: 4 (digital output)
number of channels: 48
....
command:
not supported.
.....
In my program I succesfully open /dev/comedi0, and when I do
rev = comedi_dio_write(device,3, i, 1)
I have rev=1 and output of channel i equals "1" ( i corresponds to PortA0,
Port B0 & PortC0).
But when I do
rev = comedi_dio_read(device, 2, j, &r) (j corresponds PoetA1, PoerB1 &
PortC1)
I have rev=0 and r don't equals to in input signal on connrctor.
When I do
rev=comedi_dio_config(device, 3, i, COMEDI_OUTPUT)
I have rev=-1
rev=comedi_dio_config(device, 2, j,COMEDI_INPUT)
I have rev=-1.
How is it possible to control DI/DO in PCI-1751? 2 2981
Vladimir Khovanskov <Vo**@mouse.berc.rssi.ru> scribbled the following: I have Advantech PCI-1751, Linux Slackware 9.0 with kernel 2.4.20 and installed comedi.
Comedi run so:
/sbin/modprobe comedi /sbin/modprobe pci1751 /usr/sbin/comedi_config /dev/comedi0 pci1751
program "info" shows: ..... subdevice 2: type: 3 (digital input) number of channels: 48 .... command: non supported subdevice 3: typy: 4 (digital output) number of channels: 48 .... command: not supported. .... In my program I succesfully open /dev/comedi0, and when I do rev = comedi_dio_write(device,3, i, 1) I have rev=1 and output of channel i equals "1" ( i corresponds to PortA0, Port B0 & PortC0). But when I do rev = comedi_dio_read(device, 2, j, &r) (j corresponds PoetA1, PoerB1 & PortC1) I have rev=0 and r don't equals to in input signal on connrctor. When I do rev=comedi_dio_config(device, 3, i, COMEDI_OUTPUT) I have rev=-1 rev=comedi_dio_config(device, 2, j,COMEDI_INPUT) I have rev=-1. How is it possible to control DI/DO in PCI-1751?
What was your C question?
--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"The question of copying music from the Internet is like a two-barreled sword."
- Finnish rap artist Ezkimo This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: bjl |
last post by:
Hi I am attempting to build a firewire based shared disk subsystem for
Oracle RAC 10g. I was wondering if anyone new which chipsets were on
the Compaq USB/1394 4 Port PCI card under Compaq part...
|
by: Mohammad-Reza |
last post by:
Hi
Please tell me how can i communicate with PCI Slots or USB.
Thanks.
|
by: shane.tietjen |
last post by:
If you are dealing with one PCI card, is there a way (from within a
dll) to find out which PCI slot that card is inhabiting (1 or 2 or 6,
etc.)? It doesn't matter if the solution is MFC, or...
|
by: stwebmail |
last post by:
If you are dealing with one PCI card, is there a way (from within a
dll) to find out which PCI slot that card is inhabiting (1 or 2 or 6,
etc.)? It doesn't matter if the solution is MFC, or...
|
by: Michel Mengis |
last post by:
hi tere,
I'm trying to write an application which should access to the PCI Bus
headers to get all informations about installed cards.
But I dont know how to access to these informations from...
|
by: dasdominic |
last post by:
My PCI auditor told me that my use of the IBM Encryption Tool for DB2 7.1 on z/OS is not PCI compliant since the credit card number is in the index and not encrypted by the IBM tool. Can I use...
|
by: diustrainus |
last post by:
Hi guys, I am new to this network but have been looking through the forum and thought that maybe someone could help me with this. I am a senior Electrical Engineering student with a computer science...
|
by: john |
last post by:
I would like to view physical memory that is mapped to a pci board. I
am using a tool called WinIO to try to create a virtual address to
that physical memory. It works for both read and write of...
|
by: luca72 |
last post by:
Hello
there is someone that have experience with the ni-pci-6010 Analog
Input Multifunction DAQ and python?
|
by: tempest |
last post by:
Hi all.
This is a rather long posting but I have some questions concerning the
usage of character entities in XML documents and PCI security
compliance.
The company I work for is using a...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |