<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PCI 6220  linux in Driver Development Kit (DDK)</title>
    <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/324229#M443</link>
    <description>&lt;BR /&gt;
That did it.&amp;nbsp; Thanks!&lt;BR /&gt;</description>
    <pubDate>Mon, 13 Feb 2006 20:13:22 GMT</pubDate>
    <dc:creator>cfiene</dc:creator>
    <dc:date>2006-02-13T20:13:22Z</dc:date>
    <item>
      <title>PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/323346#M429</link>
      <description>I am working on an application specific driver to for the PCI 6220 under linux.&lt;BR /&gt;
I have the DDK and visa lib installed.&amp;nbsp; I am trying to get the aiex2 example working.&lt;BR /&gt;
I get a clean compile, but the string argument to acqireBoard() appears to be wrong, or the installation is wrong.&lt;BR /&gt;
&lt;BR /&gt;
The example come with the code as follows:&lt;BR /&gt;
bus = acquireBoard( "PXI4::1::INSTR");&lt;BR /&gt;
&lt;BR /&gt;
lspci -v for my system with the PCI 6220 installed is as follows:&lt;BR /&gt;
&lt;BR /&gt;
0000:00:08.0 Class ff00: National Instruments: Unknown device 70b0&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flags: bus master, medium devsel, latency 32, IRQ 11&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Memory at d2800000 (32-bit, non-prefetchable) [size=4K]&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Memory at d2802000 (32-bit, non-prefetchable) [size=4K]&lt;BR /&gt;
&lt;BR /&gt;
I did find the document that tries to explain the string format, but nothing I've tried seems to work.&lt;BR /&gt;
I coded the following and no combination worked:&lt;BR /&gt;
&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for( int i=0; i&amp;lt;16; i++ )&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for( int j=0; j&amp;lt;24; j++ )&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char str[80];&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sprintf( str, "PXI%d::%d::INSTR", i, j );&lt;BR /&gt;
&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bus = acquireBoard( str );&lt;BR /&gt;
&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( bus != NULL )&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf( "found board at i=%d j=%d\n", i, j );&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;
&amp;nbsp; &lt;BR /&gt;
&lt;BR /&gt;
Suggestions?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Feb 2006 14:56:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/323346#M429</guid>
      <dc:creator>cfiene</dc:creator>
      <dc:date>2006-02-10T14:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/323504#M430</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;BR /&gt;Could you give us a few extra pieces of information.&lt;BR /&gt;1)&amp;nbsp; What Linux distro are you running?&lt;BR /&gt;2)&amp;nbsp; You mentioned that you have NI-VISA installed.&amp;nbsp; Which version do you have?&lt;BR /&gt;3)&amp;nbsp; Are you using the NI-VISA OS Interface?&amp;nbsp; (there are a couple different ones out there)&lt;/P&gt;
&lt;P&gt;-Alan A.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2006 19:08:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/323504#M430</guid>
      <dc:creator>AlanArmstead</dc:creator>
      <dc:date>2006-02-10T19:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/323520#M431</link>
      <description>&lt;SPAN class="noindex"&gt;1)&amp;nbsp; What Linux distro are you running?&lt;BR /&gt;
Suse 9.3 kernel 2.6.11.4-20a&lt;BR /&gt;
&lt;BR /&gt;2)&amp;nbsp; You mentioned that you have NI-VISA installed.&amp;nbsp; Which version do you have?&lt;BR /&gt;
NI-VISA 3.4&lt;BR /&gt;
&lt;BR /&gt;3)&amp;nbsp; Are you using the NI-VISA OS Interface?&amp;nbsp; (there are a couple different ones out there)&lt;BR /&gt;
&lt;BR /&gt;
&lt;/SPAN&gt;yes&amp;nbsp; as found in the nimseries.zip &lt;BR /&gt;
as downloaded from links on:&lt;BR /&gt;
http://digital.ni.com/express.nsf/bycode/exyv4w?opendocument&amp;amp;lang=en&amp;amp;node=seminar_US&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Feb 2006 19:20:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/323520#M431</guid>
      <dc:creator>cfiene</dc:creator>
      <dc:date>2006-02-10T19:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/323542#M432</link>
      <description>&lt;DIV&gt;Ok, so you probably just need to add a like to visaconf.ini which is located here: usr/local/vxipnp/linux/NIvisa&lt;/DIV&gt;
&lt;DIV&gt;Before the 'Aliases' stuff, add this line:&amp;nbsp; ShowRegisteredDevOnly = 0&lt;/DIV&gt;
&lt;DIV&gt;This should fix your problem.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;FYI - the string passed to the acquireBoard function is a VISA PXI resource string.&amp;nbsp; The format is:&lt;/DIV&gt;
&lt;DIV&gt;PXI&amp;lt;bus_number&amp;gt;::&amp;lt;device_number&amp;gt;::INSTR&lt;/DIV&gt;
&lt;DIV&gt;NI-VISA allows more complicated strings that allow you to specify the function number and other PCI attributes.&amp;nbsp; The PCI bus, device and function numbers allow you to form a unique id for any device on the system.&amp;nbsp; &lt;/DIV&gt;
&lt;DIV&gt;The lspci output format for the location of the PCI device is:&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;bus&amp;gt;:&amp;lt;slot&amp;gt;.&amp;lt;func&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Tms Rmn"&gt;&lt;FONT face="Arial"&gt;where slot is the the device number.&amp;nbsp; The format might change slightly between distros.&amp;nbsp; For your device, my guess is that the string is PXI0::8::INSTR.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;-Alan A.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Tms Rmn"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Feb 2006 19:59:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/323542#M432</guid>
      <dc:creator>AlanArmstead</dc:creator>
      <dc:date>2006-02-10T19:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/323598#M433</link>
      <description>Unfortunately, I still get the same results.&lt;BR /&gt;
&lt;BR /&gt;
Stepping into acquireBoard I get the return status on viOpen &lt;BR /&gt;
of -1073807343&lt;BR /&gt;
&lt;BR /&gt;
Does this give any hints?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Feb 2006 21:49:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/323598#M433</guid>
      <dc:creator>cfiene</dc:creator>
      <dc:date>2006-02-10T21:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/324024#M439</link>
      <description>&lt;DIV&gt;Could you run visaconf and see if your device is found by that utility?&lt;/DIV&gt;
&lt;DIV&gt;-Alan A.&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Feb 2006 15:48:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/324024#M439</guid>
      <dc:creator>AlanArmstead</dc:creator>
      <dc:date>2006-02-13T15:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/324030#M440</link>
      <description>&lt;BR /&gt;
visaconf only shows serial ports&lt;BR /&gt;
Not the PCI 6220.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Feb 2006 15:55:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/324030#M440</guid>
      <dc:creator>cfiene</dc:creator>
      <dc:date>2006-02-13T15:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/324097#M441</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Try unzipping this attachment and putting the .inf file in this directory:&amp;nbsp; &lt;FONT face="Courier" size="2"&gt;/usr/local/natinst/nipal/etc/inf&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Courier" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Alan A.&lt;/DIV&gt;&lt;P&gt;Message Edited by Alan [DE] on &lt;SPAN class="date_text"&gt;02-13-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:03 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2006 17:02:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/324097#M441</guid>
      <dc:creator>AlanArmstead</dc:creator>
      <dc:date>2006-02-13T17:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/324229#M443</link>
      <description>&lt;BR /&gt;
That did it.&amp;nbsp; Thanks!&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Feb 2006 20:13:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/324229#M443</guid>
      <dc:creator>cfiene</dc:creator>
      <dc:date>2006-02-13T20:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/328084#M455</link>
      <description>&lt;BR /&gt;
Now I'm not getting reasonable data from the ddk examples programs
aiex1.cpp and aiex2.cpp.&amp;nbsp;&amp;nbsp; I tie channel 0 to ground or a
voltage and the readings don't follow.&lt;BR /&gt;
Has anyone else got these examples to work?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2006 16:54:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/328084#M455</guid>
      <dc:creator>cfiene</dc:creator>
      <dc:date>2006-02-21T16:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/328680#M457</link>
      <description>ERR&amp;nbsp;&amp;nbsp; that should read UNREASONABLE data from executing aiex1 and aiex2 with the pci-6220&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Feb 2006 15:37:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/328680#M457</guid>
      <dc:creator>cfiene</dc:creator>
      <dc:date>2006-02-22T15:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/330985#M458</link>
      <description>&lt;DIV&gt;How are you connecting your signals?&lt;/DIV&gt;
&lt;DIV&gt;As they are written, the examples set up the analog input channels in differential mode.&amp;nbsp; So, to read 0V on ai0, you should short ai0 to ai8 (connect pin 68 to pin 34 with a wire).&amp;nbsp; To read a voltage source, connect ai0 to V+ and ai8 to V-.&amp;nbsp; &lt;/DIV&gt;
&lt;DIV&gt;-Alan A.&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Feb 2006 23:28:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/330985#M458</guid>
      <dc:creator>AlanArmstead</dc:creator>
      <dc:date>2006-02-27T23:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: PCI 6220  linux</title>
      <link>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/331327#M461</link>
      <description>That was it.&amp;nbsp; I had assumed it was ai0+/ai1- (pin 68/pin 33)&amp;nbsp; not ai0+/ai8- (pin 68/pin 34).&lt;BR /&gt;
There is nothing in the 622x specification pinouts to indicate differential wiring (page 11 Figure 1 of 371290d.pdf).&lt;BR /&gt;
&amp;nbsp;Still a bad assumption on my part.&lt;BR /&gt;
&lt;BR /&gt;
Tying both + and - to aignd (pin 67) gets the reading down to a single
bit of jitter, otherwise I'm getting about 4bits of jitter.&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Feb 2006 16:15:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Driver-Development-Kit-DDK/PCI-6220-linux/m-p/331327#M461</guid>
      <dc:creator>cfiene</dc:creator>
      <dc:date>2006-02-28T16:15:52Z</dc:date>
    </item>
  </channel>
</rss>

