<?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: The problem about calling a .dll function in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304519#M158564</link>
    <description>&lt;DIV&gt;To Smercurio_fc,&lt;BR /&gt;The finename is a parameter that calling the .dll function. Now i want to pass a value to it by labview, but not successflul.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;To Altenbach,&lt;BR /&gt;when run the program, it have a error, but no any error message beacause it only return a number.&lt;/DIV&gt;</description>
    <pubDate>Thu, 29 Dec 2005 01:45:41 GMT</pubDate>
    <dc:creator>Jimmy168</dc:creator>
    <dc:date>2005-12-29T01:45:41Z</dc:date>
    <item>
      <title>The problem about calling a .dll function</title>
      <link>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304366#M158511</link>
      <description>&lt;DIV&gt;Dear All,&lt;/DIV&gt;
&lt;DIV&gt;I use call library function node to call .dll function, but it cannot be run. the .dll function statemet was shown as below and attach the program. Would you please tell me what happen to my program? i think it may be that the filename format is incorrect. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;H1&gt;flReadProgramFiles&lt;/H1&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;B&gt;int flReadProgramFiles(&lt;/B&gt;
&lt;B&gt;    char *&lt;/B&gt;&lt;I&gt; filename&lt;/I&gt;
&lt;B&gt;);&lt;/B&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H2&gt;Parameters&lt;/H2&gt;
&lt;DL&gt;&lt;DT&gt;&lt;I&gt;filename&lt;/I&gt; 
&lt;DL&gt;
&lt;DD&gt;string containing the directory and filename root. This function will generate the XPV and XDV extensions. &lt;/DD&gt;&lt;/DL&gt;
&lt;H2&gt;Return Values&lt;/H2&gt;non-zero on failure, 0 on success. 
&lt;H2&gt;Remarks&lt;/H2&gt;This function is used to load the firmware files into memory. &lt;/DT&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt;JImmy&lt;/DIV&gt;&lt;/DL&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Dec 2005 16:04:31 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304366#M158511</guid>
      <dc:creator>Jimmy168</dc:creator>
      <dc:date>2005-12-28T16:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: The problem about calling a .dll function</title>
      <link>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304381#M158519</link>
      <description>Not having much luck with DLLs, there are you? This is like your third post on using DLLs. &lt;BR /&gt;&lt;BR /&gt;The obvious question is: well, what are you specifying for "filename"?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Dec 2005 16:24:04 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304381#M158519</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2005-12-28T16:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: The problem about calling a .dll function</title>
      <link>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304415#M158530</link>
      <description>&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/56382"&gt;@Jimmy168&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;DIV&gt;I use call library function node to call .dll function, but it cannot be run. 
&lt;HR /&gt;
&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV&gt;What do you mean by "it cannot be run"? Is the run arrow broken? What are the error messages if you click the broken arrow?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;If the run arrow is intact, it &lt;STRONG&gt;can&lt;/STRONG&gt; be run. What errors do you get (error message, GPF, bluescreen, computer crash, program hang, ...).&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Dec 2005 17:36:02 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304415#M158530</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2005-12-28T17:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: The problem about calling a .dll function</title>
      <link>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304519#M158564</link>
      <description>&lt;DIV&gt;To Smercurio_fc,&lt;BR /&gt;The finename is a parameter that calling the .dll function. Now i want to pass a value to it by labview, but not successflul.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;To Altenbach,&lt;BR /&gt;when run the program, it have a error, but no any error message beacause it only return a number.&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Dec 2005 01:45:41 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304519#M158564</guid>
      <dc:creator>Jimmy168</dc:creator>
      <dc:date>2005-12-29T01:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: The problem about calling a .dll function</title>
      <link>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304618#M158597</link>
      <description>&lt;DIV&gt;Jimmy,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;With all due respect, we're not psychics, so if you want us to help you will need to provide a little more information. I wanted to know what the value of the string that you were passing to the DLL was. I know that "filename" is a parameter - I wanted to know the value that you're passing.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Also, altenbach asked what errors you get and you responded that when you run the program you get an error but that it just returns a number. Well, what is that error code number?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;We can't run the VI you posted since you did&amp;nbsp;not include the DLL - that's not saved with the VI. We're more than happy to try to help, but we need to rely on you providing more detailed information so we can try to help.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;-Saverio&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Dec 2005 14:51:57 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304618#M158597</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2005-12-29T14:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: The problem about calling a .dll function</title>
      <link>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304629#M158599</link>
      <description>&lt;DIV&gt;Hello semercuio,&lt;/DIV&gt;
&lt;DIV&gt;Thank for your help.&amp;nbsp;The problem was solved.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt;jimmy&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Dec 2005 15:25:25 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304629#M158599</guid>
      <dc:creator>Jimmy168</dc:creator>
      <dc:date>2005-12-29T15:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: The problem about calling a .dll function</title>
      <link>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304846#M158698</link>
      <description>&lt;SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/56382"&gt;@Jimmy168&lt;/a&gt; wrote:&lt;BR /&gt;&lt;DIV&gt;Hello semercuio,&lt;/DIV&gt;  &lt;DIV&gt;Thank for your help.&amp;nbsp;The problem was solved.&lt;/DIV&gt;  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV&gt;Regards,&lt;/DIV&gt;  &lt;DIV&gt;jimmy&lt;/DIV&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;It's
these type of people that make you wonder if you really should spend
any time at all to help out answer questions. First they (double) post
a vague request with no useful information, when asked to provide more
information they answer with more vague information and suddenly they
post (if at all) that everyting is fine, without any explanation of
what they did to make it finally work, so that it may help others with
similar problems (if they make the effort to search before posting a
request).&lt;BR /&gt;
&lt;BR /&gt;
Rolf Kalbermatter&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Dec 2005 09:48:13 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304846#M158698</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2005-12-30T09:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: The problem about calling a .dll function</title>
      <link>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304963#M158707</link>
      <description>I agree, which is why I decided to ignore these threads (that is, until I saw your name in the list).
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Dec 2005 12:35:45 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/304963#M158707</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2005-12-30T12:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: The problem about calling a .dll function</title>
      <link>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/305262#M158793</link>
      <description>&lt;DIV&gt;Dear All,&lt;/DIV&gt;
&lt;DIV&gt;You are right. I am sorry for this. As I am a newer, I haven't any experience for this.I&amp;nbsp;think&amp;nbsp;that it will not happen next time.&lt;/DIV&gt;
&lt;DIV&gt;Now i explain all the course for my problem to you.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;My program is&amp;nbsp;that&amp;nbsp;calling&amp;nbsp;a&amp;nbsp;.dll function to&amp;nbsp;read&amp;nbsp;a&amp;nbsp;firmware&amp;nbsp;to memory. the parameter "filename" is the firmware path. I check the relative information and find that it is a string pointer type in .dll. And then in the Labview,&amp;nbsp;when i use "call library function node" to call the .dll, i set&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;its type to string, string formate to C string pointer.As you know, This is right. So the problem is not cause by passing the value. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;What happen to my program? now&amp;nbsp;i can tell you that the firmware file is wrong.&amp;nbsp;When you&amp;nbsp;use the .dll function&amp;nbsp;to call&amp;nbsp;the firmware file, you&amp;nbsp;don't need extensive name, but i use so that the problem happen.&amp;nbsp;For example,&amp;nbsp;The firmware&amp;nbsp;file name&amp;nbsp;is "123.xpv".&amp;nbsp;I have to set&amp;nbsp;the&amp;nbsp;parameter "filename"&amp;nbsp; to "C:\123" not "C:\123"&amp;nbsp;because&amp;nbsp;this funciton can&amp;nbsp;generate ".xpv" extenstion.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;This is not my fault.As&amp;nbsp;when &amp;nbsp;i use&amp;nbsp;downloading firmware tool that provided by vendor,&amp;nbsp;it need the extersive name&amp;nbsp; and&amp;nbsp;i am a newer about the knowlege&amp;nbsp;for labview, please understand.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Best regards,&lt;/DIV&gt;
&lt;DIV&gt;Jimmy&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 31 Dec 2005 17:26:13 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/305262#M158793</guid>
      <dc:creator>Jimmy168</dc:creator>
      <dc:date>2005-12-31T17:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: The problem about calling a .dll function</title>
      <link>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/305263#M158794</link>
      <description>&lt;DIV&gt;Smercurio wrote:&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Also, altenbach asked what errors you get and you responded that when you run the program you get an error but that it just returns a number. Well, what is that error code number?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The error code is set by myself. It is not error code with Labview. It is just easy to&amp;nbsp;indicate the failure signal.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 31 Dec 2005 17:44:17 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/The-problem-about-calling-a-dll-function/m-p/305263#M158794</guid>
      <dc:creator>Jimmy168</dc:creator>
      <dc:date>2005-12-31T17:44:17Z</dc:date>
    </item>
  </channel>
</rss>

