<?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: Problem calling IviDCPwr_init() in LabWindows/CVI</title>
    <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/221503#M16396</link>
    <description>Hi Jason,&lt;BR /&gt;&lt;BR /&gt;I've never used this IVI driver, but I'm looking into this issue to see what is going on.  So I can try to recreate it, what version of NI-VISA do you have on this computer?&lt;BR /&gt;&lt;BR /&gt;john m&lt;BR /&gt;Applications Engineer</description>
    <pubDate>Thu, 26 May 2005 22:57:59 GMT</pubDate>
    <dc:creator>JohnM 64</dc:creator>
    <dc:date>2005-05-26T22:57:59Z</dc:date>
    <item>
      <title>Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/220928#M16348</link>
      <description>I got a problem calling this function. The error message is:&lt;BR /&gt;===============================================================&lt;BR /&gt; NON-FATAL RUN-TIME ERROR:   "ividcpwu.c", line 73, col 13, thread id 0x00000AEC:   Function IviDCPwr_init: (return value == -1074134949 [0xbffa005b]). (0xbffa005b) File not found.&lt;BR /&gt;===============================================================&lt;BR /&gt;&lt;BR /&gt;I'm using Agilent N5768A Power Supply. In MAX, I added a Logical Name for it as "P48V", and tried to initialize it in this way:&lt;BR /&gt;    IviDCPwr_init ("P48V", VI_TRUE, VI_TRUE, &amp;amp;instrumentHandle);&lt;BR /&gt;&lt;BR /&gt;SW environment:&lt;BR /&gt;NI IVI Compliance Package 2.2&lt;BR /&gt;LabWindows/CVI 7.1&lt;BR /&gt;&lt;BR /&gt;I also tried the IVI Soft Front Panels, and got the same error.&lt;BR /&gt;&lt;BR /&gt;Could somebody tell me what file it's looking for? Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;JasonJ</description>
      <pubDate>Wed, 25 May 2005 18:41:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/220928#M16348</guid>
      <dc:creator>JasonJ</dc:creator>
      <dc:date>2005-05-25T18:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/221503#M16396</link>
      <description>Hi Jason,&lt;BR /&gt;&lt;BR /&gt;I've never used this IVI driver, but I'm looking into this issue to see what is going on.  So I can try to recreate it, what version of NI-VISA do you have on this computer?&lt;BR /&gt;&lt;BR /&gt;john m&lt;BR /&gt;Applications Engineer</description>
      <pubDate>Thu, 26 May 2005 22:57:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/221503#M16396</guid>
      <dc:creator>JohnM 64</dc:creator>
      <dc:date>2005-05-26T22:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/221510#M16397</link>
      <description>The NI-VISA on my PC is ver 3.2.&lt;BR /&gt;&lt;BR /&gt;Thanks for the response. I'm looking forward to your help. My current work is stuck on this.&lt;BR /&gt;&lt;BR /&gt;Jason</description>
      <pubDate>Thu, 26 May 2005 23:18:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/221510#M16397</guid>
      <dc:creator>JasonJ</dc:creator>
      <dc:date>2005-05-26T23:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/221845#M16415</link>
      <description>Hi Jason,&lt;BR /&gt;&lt;BR /&gt;Well, it looks like you have a recent enough version of VISA that you should be able to run the driver, at least according to the minimum requirements that Agilent specified.  In my searching, I have not been able to discover what file it is that is missing... we may need to contact Agilent on this, since this driver was created by, downloaded from, and is maintained by them.  Or perhaps someone else has used the driver and has run into this before.  Anyone else have any ideas?&lt;BR /&gt;&lt;BR /&gt;john m</description>
      <pubDate>Fri, 27 May 2005 16:54:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/221845#M16415</guid>
      <dc:creator>JohnM 64</dc:creator>
      <dc:date>2005-05-27T16:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/222086#M16421</link>
      <description>Jason,&lt;BR /&gt;As I know, there is no IVI-C driver for Agilent N5700 found at NI or Agilent download site.  What I could find are IVI-COM (Agilent site) and Plug &amp;amp; Play (NI site) driver. Is the driver really IVI-C?</description>
      <pubDate>Mon, 30 May 2005 04:44:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/222086#M16421</guid>
      <dc:creator>Makoto</dc:creator>
      <dc:date>2005-05-30T04:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/222118#M16423</link>
      <description>Jason,&lt;BR /&gt;&lt;BR /&gt;I could see the same error return (File not found) from the IVI DCPwr example at the same line, &lt;BR /&gt;(ProgramFiles/IVI/Drivers/ividcpwr/Exampless/CVI/ividcpwr.prj.)&lt;BR /&gt;&lt;BR /&gt;As I see, this error seems like generated when the IVI driver configuration is set up incorrectly such as selecting an IVI-COM driver. &lt;BR /&gt;&lt;BR /&gt;Normally you would create a Logical Name, Driver Session, and Hardware Asset entries and configure the link each other, in the NI-MAX tool.  Plus, the Software Module selection in the Driver Session's "Software" tab must point a valid IVI-C driver.&lt;BR /&gt;&lt;BR /&gt;As I know the Agilent N5700 driver provided from Agilent is an IVI-COM driver only (not a IVI-C), and selecting such IVI-COM driver as Software Module does generate the "File not found" error.  This is because the driver DLL does not export prefix_init() function.&lt;BR /&gt;&lt;BR /&gt;I recommend you to check if the "Software" tab for your Driver Session setting does display the "Module Path" selection such as prefix.dll or prefix_32.dll and does not display any Prog-ID name.&lt;P&gt;Message Edited by Makoto on &lt;SPAN class="date_text"&gt;05-30-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;06:20 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2005 08:18:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/222118#M16423</guid>
      <dc:creator>Makoto</dc:creator>
      <dc:date>2005-05-30T08:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/222650#M16469</link>
      <description>Thank Makoto for working on this over the weekend.&lt;BR /&gt;&lt;BR /&gt;Seems you're right. I checked Driver Seesions-&amp;gt;Software-&amp;gt;Module Path. It's empty and read-only. So the next question will be how to configure it. &lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;Jason</description>
      <pubDate>Tue, 31 May 2005 16:37:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/222650#M16469</guid>
      <dc:creator>JasonJ</dc:creator>
      <dc:date>2005-05-31T16:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/222862#M16488</link>
      <description>I'm now trying to create the interface by using GPIB driver directly. I included ni488.h, built, and LabWindows/CVI complained about PVOID not defined. So I included WINNT.H, then got INT32 redeclaration error. How can I get the right header files?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Jason</description>
      <pubDate>Tue, 31 May 2005 23:27:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/222862#M16488</guid>
      <dc:creator>JasonJ</dc:creator>
      <dc:date>2005-05-31T23:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/222878#M16489</link>
      <description>Try to include GPIB.H if you use NI-488.2M API directly. But my recommendation is use VISA library instead, because this is the same approach as most of IVI and VXIpnp instrument drivers.</description>
      <pubDate>Wed, 01 Jun 2005 00:29:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/222878#M16489</guid>
      <dc:creator>Makoto</dc:creator>
      <dc:date>2005-06-01T00:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/223354#M16518</link>
      <description>GPIB.H is working. Thanks.&lt;BR /&gt;&lt;BR /&gt;Then I moved on to try VISA library. It's quite straight forward and easy to use. But again I got one problem. For some commands, I can issue through NI488.2 Communicator, but not in my code. They are:&lt;BR /&gt;1) *RST&lt;BR /&gt;2) OUTP ON&lt;BR /&gt;3) MEAS:VOLT?&lt;BR /&gt;4) *OPC?&lt;BR /&gt;&lt;BR /&gt;Could you explain why? Here's my code in a simple way:&lt;BR /&gt;=================================================&lt;BR /&gt;    status = viOpenDefaultRM (&amp;amp;defaultRM);&lt;BR /&gt;    status = viOpen (defaultRM, "GPIB::4::INSTR", VI_NULL, VI_NULL, &amp;amp;inst);&lt;BR /&gt;&lt;BR /&gt;    status = viPrintf(inst, "*RST");&lt;BR /&gt;&lt;BR /&gt;    status = viPrintf(inst, "*IDN?\n");&lt;BR /&gt;    status += viRead (inst, data, sizeof(data), &amp;amp;rcount);&lt;BR /&gt;&lt;BR /&gt;    status  = viPrintf(inst, "VOLT:PROT:LEV %d\n", 55.0);&lt;BR /&gt;    status += viPrintf(inst, "CURR:PROT:STAT %d\n", 1);&lt;BR /&gt;    status += viPrintf(inst, "CURR %f\n", 2.0);	&lt;BR /&gt;    status += viPrintf(inst, "VOLT %f\n", 10.0);&lt;BR /&gt;    status += viPrintf(inst, "OUTP ON");&lt;BR /&gt;&lt;BR /&gt;    status = viPrintf(inst, "MEAS:VOLT?");&lt;BR /&gt;    status += viRead (inst, data, sizeof(data), &amp;amp;rcount);&lt;BR /&gt;&lt;BR /&gt;    status = viClose(inst);&lt;BR /&gt;    status += viClose(defaultRM);&lt;BR /&gt;&lt;BR /&gt;=================================================&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;Jason</description>
      <pubDate>Wed, 01 Jun 2005 20:25:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/223354#M16518</guid>
      <dc:creator>JasonJ</dc:creator>
      <dc:date>2005-06-01T20:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/223879#M16543</link>
      <description>Hi Jason,&lt;BR /&gt;&lt;BR /&gt;Is there a reason you are using viPrintf rather than a simple viWrite?  Also, an NI Spy capture of the program running could be useful.  I'm not quite sure what you mean when you say that certain commands don't work, and an NI Spy capture could provide more information.&lt;BR /&gt;&lt;BR /&gt;john m</description>
      <pubDate>Thu, 02 Jun 2005 20:37:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/223879#M16543</guid>
      <dc:creator>JohnM 64</dc:creator>
      <dc:date>2005-06-02T20:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/223891#M16545</link>
      <description>I used viPrintf() to make the code shorter (only one line instead of several if using viWrite()). But just before changing my code to use viWrite(), I realized for those commands I thought not working, I didn't include the '\n' at the end. Eg, I did&lt;BR /&gt;    status = viPrintf(gAgn5768, "*RST");&lt;BR /&gt;instead of&lt;BR /&gt;    status = viPrintf(gAgn5768, "*RST\n");&lt;BR /&gt;&lt;BR /&gt;So till now, everything is working fine with me. Thank you so much. I love NI.&lt;BR /&gt;&lt;BR /&gt;Jason</description>
      <pubDate>Thu, 02 Jun 2005 21:05:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/223891#M16545</guid>
      <dc:creator>JasonJ</dc:creator>
      <dc:date>2005-06-02T21:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/224008#M16553</link>
      <description>Change the VI_ATTR_WR_BUF_OPER_MODE attribute as shown below, immediately after calling viOpen(). This ensures each viPrintf() call sends the given command to the instrument. As for GPIB then, no need to add \n character if the instrument accepts EOI signal as the terminator.&lt;BR /&gt;&lt;BR /&gt;status = viSetAttribute( inst, VI_ATTR_WR_BUF_OPER_MODE, VI_FLUSH_ON_ACCESS);</description>
      <pubDate>Fri, 03 Jun 2005 02:47:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/224008#M16553</guid>
      <dc:creator>Makoto</dc:creator>
      <dc:date>2005-06-03T02:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling IviDCPwr_init()</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/269658#M18654</link>
      <description>&lt;P&gt;Additionally saying, &lt;/P&gt;
&lt;P&gt;A "\n" is not always required to add for GPIB and USB INSTR devices.&amp;nbsp; But an explicit "\n" addition is still required for ASRL INSTR devices, because serial interfaces do not have EOI or EOM termination.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2005 01:26:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/Problem-calling-IviDCPwr-init/m-p/269658#M18654</guid>
      <dc:creator>Makoto</dc:creator>
      <dc:date>2005-09-22T01:26:29Z</dc:date>
    </item>
  </channel>
</rss>

