Problem call Matlab external function under Labview 7.1

Hello

I have the problem when I want to call my m.file function in the script Matlab under Labview 7.1, that labview does not seem to be able to find this external Matlab function. I searched this forum, someone talked about setting search path in the tool-> option-> Matlab search path, but it seems that it does not exist in the version 7.1.

Is it possible to solve this problem in version 7.1 or update to the latest version, the only solution?

Thank you

Hello

I think you're confusing the LabVIEW MathScript nodes and the MATLAB® script.  The MathScript node is introduced in LabVIEW 8.0 and the setting of path search that you speak to MathScript, reason why it does not exist in LabVIEW 7.1.  Look at the example of differential equation Lorenz for the MATLAB script node.  It shows how to set the path of research to be compared to the VI.  The example is found in the node of script examples\scriptnode\MATLAB - Lorenz Diff Eq.vi.

MATLAB® is a registered trademark of The MathWorks, Inc.

Grant M.
Staff software engineer | LabVIEW Math & Signal Processing | National Instruments

Tags: NI Products

Similar Questions

  • Call an external function?

    This is a matter of coding for the guru

    I wrote a simple function that erases a form.  I want to call this function from another function (4 of them to be exact).  I could copy / paste code several times and everything will work.  But where's the fun in that?  There is something to say about the cleanup code.

    For the sake of explanation, the interpolation work 4 layers (do not ask )

    Code:

    master_mc. GT_Web_mc.addEventListener (MouseEvent.CLICK, testLaptop4);

    function testLaptop4(e:MouseEvent):void {}
    ClearForm();  I would like this to run first


    outline of input text
    If (master_mc. ContactForm2_mc.alpha! = 0) {}
    master_mc.ContactForm2_mc.company_txt.border = false;
    master_mc. ContactForm2_mc.contact_txt.border = false;
    master_mc. ContactForm2_mc.speciality_txt.border = false;
    master_mc. ContactForm2_mc.email_txt.border = false;
    master_mc.ContactForm2_mc.comments_input_txt.border = false;

    clear form fields where the user is not clear/send

    / * master_mc.ContactForm2_mc.company_txt.text = "";
    master_mc. ContactForm2_mc.contact_txt.text = "";
    master_mc. ContactForm2_mc.speciality_txt.text = "";
    master_mc. ContactForm2_mc.email_txt.text = "";
    */

    myTween = new Tween (master_mc. ContactForm2_mc, "alpha", Strong.easeOut, master_mc. ContactForm2_mc.alpha, 0, 1, true);
    } else if (master_mc. AboutUsForm_mc.alpha! = 0) {}
    myTween = new Tween (master_mc. AboutUsForm_mc, "alpha", Strong.easeOut, master_mc. AboutUsForm_mc.alpha, 0, 1, true);
    } else if (master_mc. PortfolioForm_mc.alpha! = 0) {}
    myTween = new Tween (master_mc. PortfolioForm_mc, "alpha", Strong.easeOut, master_mc. PortfolioForm_mc.alpha, 0, 1, true);
    }
    myTween.addEventListener (TweenEvent.MOTION_FINISH, LaptopListener4);
    }


    function LaptopListener4(e:Event):void {}
    if(master_mc.laptop_mc.alpha == 0) {}
    myTween = new Tween (master_mc.laptop_mc, "alpha", Strong.easeOut, master_mc.laptop_mc.alpha, 1, 1, true ' ");
    }

    }

    function ClearForm(e:Event) {}
    master_mc.ContactForm2_mc.company_txt.text = "";
    master_mc. ContactForm2_mc.contact_txt.text = "";
    master_mc. ContactForm2_mc.speciality_txt.text = "";
    master_mc. ContactForm2_mc.email_txt.text = "";
    }

    I don't think that there is no problem with what you want to do, well that all the other code show you is a bit confusing.

    For the call to the function, you say you want to run first, you provide no argument and should not be based on what I see in this function, but the function show you expect an argument.  You could try to remove the argument of the function.

    function ClearForm(e:Event) {}
    master_mc.ContactForm2_mc.company_txt.text = "";
    master_mc. ContactForm2_mc.contact_txt.text = "";
    master_mc. ContactForm2_mc.speciality_txt.text = "";
    master_mc. ContactForm2_mc.email_txt.text = "";
    }

  • Calling the external functions (DLL)

    Hello world!
    I know maybe it's an issue, but I have found no solution (whycih I could understand) to my problem:
    Is it possible to call functions of a (in written C++) DLL, or any other way to access the C++ functions?

    It would really help me, because I want to use Flash to create desktop applications and use C++ for system integration.
    Any sujestions are welcome!

    The third-party tools "wrap" or "Home" activex control and provide a api extended - consider a well improved version of the standard flash projector, which is quite limited. I know not what is possible, I can't speak from experience - but I know that others here on the forums have used them.

    There is a type of open source implementation called haxe and screenweaver... or something like that... but I don't know if it will do what you want.

    I know that zinc will be because I did a quick search and it says - so I guess it must! Other names that come to mind are Jugglor and Swf Studio. I haven't checked to see if they can use external libraries.

  • How to call external functions without one. DLL (just using a.) H and. LIB file)?

    Hi all

    in fact, I am facing difficulties on how to get an external function is called in CVI (Version 2009).

    I was delivered with a. H file and a. LIB file to call an external function of my project CVI. The. H file looks like this:

    void exportedFunction(double *parameter);
    

    As far as I know, the external function was written with MS Visual C++ 6.

    So, I tried to link statically to the al extern like this function:

    -Add the. H file and the. LIB file to the CVI project

    -#include the. Folder H when I needed to call the external function

    -do the external function call

    During construction I get unresolved CVI external function call error, so this seems not work.

    I did some research autour and stood up with two possible problems. Maybe one of you can help me get a bit further and do work things out.

    (1) of the code of the 'real' function inside the DLL file that was not delivered to me. Or y at - it a way to get concrete results (calling external functions) with just one. H and a. LIB file (with none. Included DLL file)?

    (2) the external function does not export according to the rules of Style 'C '. The signature of the function in the. H file shows some things don't like

    extern "C" __declspec(dllexport) void __stdcall ...
    

    Or maybe it's a combination of these two issues (missing. DLL + bad export style function)?

    I guess I could get around the incorrect service export style when I managed to write a wrapper around the original function that actually uses Style C exporters. But I guess I need to the. DLL file for this test as well.

    Thank you very much for your answers.

    Best regards

    Bernd

    There is no need for the stuff of dllexport. There is also the option of a static library without any DLL.  But the "extern"C"' is essential, because it forces the C++ compiler, which was probably used to compile the library to use the C calling convention.

    If you are unable to ask the library vendor to provide a version that was compiled using C calling convention is the way to write a wrapper with VC ++ 6 around this library that functions using C calling convertion reexports. Something like

    extern 'C' myfunc1 type0 (type1 arg1,...) {

    Back to func1 (arg1,...);

    }

    for each function, you must use.

    BTW. "unresolved symbol" is the error message from the linker, you can expect if you try to bind the C code against a generation of library with the C++ calling convention.

  • Call the function in LabView from a DLL, and then access the global variable of DLL

    I've created a DLL in LabWindows with a function and structure.  I want to call the function from LabView and then access the overall structure.  I am able to call the function in the DLL with a "call library function node" and has access to the return value, but I can't understand how to access the overall structure.  The structure is declared in the header DLL with __declspec (dllimport) struct parameters file.

    Is it possible to access this structure without using the library of network variables?

    My guess is that you need two bytes of padding after "in_out" and another to two bytes of padding after "anin."  The reason being that ints are 4 bytes, and most of them C compilers will align on 4-byte boundaries.  The struct will naturally start to such a limit (in fact, in Windows, it will probably start to an 8 byte boundary).  If you then count bytes in your structure, you are 70 byte after "in_out."  70 is not divisible by 4, so you need 2 bytes more to reach the next 4 byte boundary.  You can also you could reorganize your struct so that "anin" follows "in_out" and this is probably the best option if it won't cause you other problems.

    Unlike most C compilers, LabVIEW compressed structures as closely as possible, without filling.  I don't know enough about the history of LabVIEW and internal parts to explain the reasons and to do this performance penalty, but, as choice of LabVIEW "endianness", it is probably a remnant of the first versions of LabVIEW that were running on the Mac.

    If for some reason you want to force your C struct to match package LabVIEW, you can use the #pragma pack (x) directive, but I wouldn't recommend that here because you can control the C and LabVIEW.

    EDIT: in the cases where it was not clear, add padding to your cluster of LabVIEW, insert appropriate size or items at the place desired in the cluster.

  • receive the following error code when searching for a piece of music I did several times without a music problem but have recently updated Firefax: Fatal error: Call to undefined function AmazonData() in/home/boss/public_html/mc on line 13

    I am in the page web http://www.songarea.com/ and after searching a piece of music, I get the following error message:
    "Fatal error: Call to undefined function AmazonData() in/home/boss/public_html/mc on line 13.
    I did this several times before without a problem, but have recently updated Firefox with the Skype add-on and wonder if the two things are related.

    URL of affected sites

    http://www.songarea.com/

    Hi John,.

    It is an error message from the web server providing this site. Specifically, it is something wrong with their PHP code.

    It is not browser specific and would go into another browser besides Firefox.

    You will need to contact the webmaster of this site to report this problem. A quick test does not show this problem, but you do not specify what search query, you tried:

    http://www.songarea.com/music-codes/test.html

  • I have a problem with the simulation in Matlab 6.5 and LabVIEW for PID controllers

    I have a problem with the simulation in Matlab 6.5 and LabVIEW. I have a few methods for granting regulators PID in MATLAB to go but not of LabVIEW. Degree of international teams of two transfer but when I passed to the fourth degree is no longer working. We have changed the formula to calculate the parameters for the fourth year and gave me some good values for assignment of Matlab, but when I put on LabVIEW are not resolved. the formulas are available in PDF format and are. Please help me and me someone if possible. Thank you
    Lim.4 generation in comparison methods and the MATLAB program settings are for the service of transfer to the second degree.

    Hello Lascarica,

    I noticed that you are using the screw of PID. Gains on these screws are based on TIME instead of GAIN. You should be able to build a PID regulator and vary the gains and then compare the results.

  • Problem with the external PHP function

    I'm working on a registration page. This is the list of instructions that I have that must be met for the registration succeed:

    If (isset($_POST['register']))
    {
    If ($_POST ['username']! = ")
    & & (strlen($_POST['username']) > = 4)
    & & (strlen($_POST['username']) < = 20)
    & & alpha_numeric($_POST['username']) == TRUE
    & & $_POST ['password']! = ''
    & & (strlen($_POST['password']) > = 4)
    & & (strlen($_POST['password']) < = 20)
    & & alpha_numeric($_POST['password']) == TRUE
    & & $_POST ['mot_de_passe2'] == $_POST ['password']
    & & $_POST ['email']! = ''
    & & valid_email($_POST['email']) == TRUE
    & & $_POST ["email2"] == $_POST ['email']
    & & $_POST ['accepts'] == TRUE
    & & checkUnique ('user_data', 'username', $_POST ['username']) = TRUE
    (& & checkUnique ('user_data', 'email', $_POST ['email']) == TRUE)

    External functions "checkUnique' at the bottom just do not seem to work. I can easily sign up with a username or email that already exists in the database.

    This is the code for the external function:

    function checkUnique ($table, $field, $compared)
    {
    $query = mysql_query ("SELECT '.mysql_real_escape_string ($field)'. OF ".mysql_real_escape_string ($table)." WHERE ' ".mysql_real_escape_string ($field)." " ' = "'.mysql_real_escape_string ($compared).'"')";

    If (mysql_num_rows ($Query) == 0)
    {
    Return TRUE;
    }
    on the other
    {
    return FALSE;.
    }
    }

    AngryCloud wrote:
    > External functions "checkUnique' at the bottom just don't seem to work.
    > I'm easily able to sign with a username or an email that is already in the
    > database.

    No, it won't work: you are surrounding the name of the field in quotation marks.
    You should also remove magic quotes if they are enabled. Change of the
    function to this:

    function checkUnique ($table, $field, $compared) {}
    If (magic_quotes_gpc()) {}
    $table = stripslashes ($table);
    $field = stripslashes ($field);
    $compared = stripslashes ($compared);
    }
    $table = mysql_real_escape_string ($table);
    $field = mysql_real_escape_string ($field);
    $compared = mysql_real_escape_string ($compared);

    $result = mysql_query ("SELECT $field FROM $table
    WHERE $field = '$compared' ");
    {if (mysql_num_rows ($result) == 0)}
    Return TRUE;
    }
    else {}
    return FALSE;.
    }
    }

    Of course, you will also need to connect to MySQL and select
    the database before calling the function.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Problem when calling a return function of SQL BOOLEAN in package type

    Hi all

    I'm having a problem when you try to call a SQL function in a package with the return BOOLEAN type
    The SQL function signature is
    ####

    CREATE OR REPLACE PACKAGE RMSOWNER. ORDER_ATTRIB_SQL *.

    FUNCTION GET_PO_TYPE_DESC (O_error_message IN OUT VARCHAR2,
    I_PO_TYPE IN VARCHAR2,
    O_PO_TYPE_DESC IN OUT VARCHAR2)
    RETURN A BOOLEAN VALUE;

    ####


    Here is my java code

    ####
    + Cs3 CallableStatement = conn.prepareCall ("{?}") = call ORDER_ATTRIB_SQL. GET_PO_TYPE_DESC(?,?,?)} ");" +
    + CS3.registerOutParameter (1, java.sql.Types.BOOLEAN) +;
    + CS3.registerOutParameter (2, java.sql.Types.VARCHAR) +;
    + CS3.registerOutParameter (4, java.sql.Types.VARCHAR) +;
    + CS3. SetString (2, ""); +
    + CS3. SetString (3, "ST"); +
    + CS3. SetString (4, ""); +
    + ResultSet rs3 = cs3.executeQuery (); +
    ####

    I get the following exception, I tried to change the (registerOutParameter) boolean sql type bit, but I've always found this exception.
    But when I call all other functions with a return type other than boolean, they work perfectly well.

    Please can someone help me solve this problem, I don't know if its something to do with classes of JDBC providers?

    #####
    + java.sql.SQLException: ORA-06550: line 1, column 13: +.
    + PLS-00382: expression is of the wrong type.
    + ORA-06550: line 1, column 7: +.
    + PL/SQL: statement ignored +.

    + oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) +.
    + oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) +.
    + oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) +.
    + oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743) +.
    + oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:215) +.
    + oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:954) +.
    + oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168) +.
    + oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3316) +.
    + oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3422) +.
    + oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4394) +.

    #####

    Looks like it's a Limitation of the jdbc drivers. Please visit the following link:
    http://www-Camden.Rutgers.edu/help/documentation/Oracle/Java.815/a64684/typesup1.htm

    Here is an excerpt from above:
    ==========================================================
    PL/SQL BOOLEAN, RECORD and the Types of TABLES of packing

    Oracle JDBC drivers support the argument of appeal or return values of PL/SQL TABLE types (now known as indexed arrays by), REGISTRATION or BOOLEAN.

    To work around the problem, you can create wrapper procedures that manage data like types supported by JDBC. For example, to wrap a stored procedure that uses PL/SQL Boolean values, you can create a stored procedure that takes a character or a number of JDBC and passes to the original procedure as BOOLEAN or, for an output parameter, accepts a BOOLEAN of the original procedure argument and pass it as a TANK or a NUMBER to JDBC. Similarly, to wrap a stored procedure that uses PL/SQL records, you can create a stored procedure that maintains a record in its individual components (such as CHAR and NUMBER). To wrap a stored procedure that uses PL/SQL tables, you can divide the data into components or perhaps use Oracle collection types.

  • Call MATLAB MathScript SOAP

    Hello

    I have a generic question about whether it is possible to call functions that belong to non-standard MATLAB of MathScript box. In particular, I have the interface for communication with a web server using the Toolbox of Matlab WSDL and I have a pretty "as what", or with minimal changes, in a fellow engineer Labview module so that the instrument can send data to our centralized, system that uses SOAP as the interface.

    I prefer not to use if possible native SOAP of Labview modules.

    Thank you

    Fernando.

    You actually talk to the node in Matlab? MathScript is version or a language similar to Matlab. There is a MathScript node and a node of Matlab. The Matlab node called Matlab code using ActiveX server of Matlab. As such, it requires that you have Matlab installed on the computer. While MathScript is similar to Matlab, and Matlab code can be run "as-is" in the MathScript node, there are many differences (particularly with certain functions provided). The differences would be in the documentation.  The MathScript node does not call for Matlab code. However, you can call a shared library MathScript. You must compile your Matlab code in a shared library using the Matlab compiler. The target machine would need to have the execution of Matlab engine.

  • Lack of external function DAQ channel read

    Hello

    I did a few installers to share on the network variables, one is based at DAQmx readings of analog channels use modules of simulations and the second donkey receives variables shared these radings... I thought it was pretty good, because I have the main application (channels read and share variables) in my main PC (which has istalled LabVIEW 2012) and the other track in a regular PC (no software OR installed until my Installer Act) and it worked fine. However, I installed the main application in the regular PC and I got an error stating: lack of external function DAQmx read single sample DLB... I guess I should include in my Installer features on DAQmx but I Don t know which ones to avoid this error and be able to install my apps in any PC... Thanks I await your advice!

    Well, I found the solution...

    I've just included confiuration NI DAQmx MAX support to my app Installer and I solved the problem...

  • Cannot use MATLAB MCR DLLS in LabVIEW

    General information:

    We would like to call a Matlab compiled DLL, which is based on the duration of the compiler Matlab (MCR), LabVIEW. We also want to use the LabVIEW Vision of data collection software. Use a map OR frame grabber is installed, and a camera is connected to the card. We were using an evaluation version of LabVIEW to see if you can solve this problem. We tried two versions of LabVIEW 8.6 and 2010.

    The problem:

    The installation program of LabVIEW place dll in the system32 folder. The names of some of these DLLs are generic enough. LabVIEW vision software includes tbb.dll in the System32 folder. Execution of the Matlab compiler also includes a tbb.dll, not in system32, but in it's own application directory. LabVIEW DLL / so everybody, which is kind of rude, but little matter which at the present time. The biggest problem is when I try to use Matlab in the same process as LabVIEW Vision. It is not possible to do so, because the names of DLL in conflict between them, and I have no control over the source or Matlab and LabVIEW code to allow them to be charged with the full path name.

    For this reason, we can use the LabVIEW software to solve our specific application.

    Hi marcus,

    R & D is aware of this problem and it has already been established as part of the Corrective Action that requires #245249. You can watch the future versions of LabVIEW release notes to see when it is fixed.

  • Error when you try to call the Javascript function in the ActiveX Web browser

    I have a requirement to call a Javascript function in a web page that is displayed in the browser's ActiveX control.  I have the control on the front panel, and I use the Navigate method to call to the top of the appropriate page.  Based on an example, I found, I'm trying to get a reference to the HTML Document so that I can then get a reference to the Fenetreparent.  There is a method of the HTML Window object called execScript who I'm calling.  See the attached image of the code (reference close calls do not appear, but when I run it, they are there).

    I can't the node property that returns the parentWindow reference.  The error I get is the following.

    Error-2147467262 LabVIEW: (Hex 0 x 80004002) No. taken such interface supported.

    Any ideas on where to go from here?

    Hello

    I have reproduced the issue and the error you are seen and tried to understand what is the solution.

    It seems that the problem is with getting the pointer to the parentWindow.  From what I read on MSDN, it's maybe a limitation in the use of an ActiveX control in LabVIEW. It seems like Internet Explorer creates the object of the window, and so opening in one ActiveX control you free access to this top-level object.

    Here could be workaround for javascript execution in your program:

    I would like to know if it works for you and if it will work in your program.

  • Programming a c application that calls a *.so built by LabVIEW.

    Hi all

    This question has probably been asked, but I can't find the answer.  So here's my question:

    I built a *.so LabVIEW under Linux and I would like to call from a 'c' application  The *.so LabVIEW returns a set of strings, and I want to know how to call from my c (memory allocation?) application.

    Here's the *.so source code, the function is named "testvi":

    Here is the source code of my c application:

    #include 
    #include 
    #include "testclusterofstrings.h"
    
    int main()
    {
        Cluster_Of_Strings clusterofstrings;
    
        Testvi(&clusterofstrings);
    
        printf("-------------\n");
        printf("String_A: %s", (*clusterofstrings.String_A)->str);
        printf("-------------\n");
    
        return 0;
    }
    

    I am getting the output when calling my next application:

    LabVIEW caught fatal signal
    13.0 - received SIGSEGV
    Reason: address not mapped to the object
    Try to reference the address: 0x0x19f5c381
    Segmentation fault (core dumped)

    So, what is the right way to do it?

    Thank you

    Michel

    smithd wrote:

    If it is a dll built labview and you pass parameters by reference, I'm not too surprised to initialize (although I expect labview to be kind enough to allocate the data structures for you). Maybe if you spent it a pointer to null instead it would work? Since your original post, maybe try this:

    int main() {}

    Cluster_Of_Strings * clusterofstrings = NULL;

    Testvi(clusterofstrings);
    .... }

    For some reason, I remember reading that labview will interpret the null as a sign that it must allocate the structure, but I could be completely crazy on this point.

    If it does not, then Yes you will have to allocate all the handles according to the case. Of \cintools\extcode.h you can see that a string is defined as follows:

    typedef struct {}
    Int32 cnt; / * number of bytes following * /.
    uChar str [1]; / * cnt bytes * /.
    } LStr, * LStrPtr, * LStrHandle;

    Since you have arrays of size-0 I think you really need to call DSNewHClr(sizeof (int32)) which will allocate a handle with all 0, and 0 is what you want. End result would be...

    int main()
    {
    
        Cluster_Of_Strings MeasInfo;
    
        MeasInfo.String_A = (LStrHandle)DSNewHClr(sizeof(int32));
        MeasInfo.String_B = (LStrHandle)DSNewHClr(sizeof(int32));
    
        Testvi(&MeasInfo);
    ....
    }
    

    Oh and for string functions, make sure that you look at the built-in functions first before making your own.

    In fact, all this is as well a little easier and more complicated at the same time. LabVIEW is entirely managed with its data types, but you must follow this management contract when you interface LabVIEW C code.

    First of all, the first attempt to assign a string handle with sizeof (int32) + sizeof (uChar) bytes without initialization of the length element is bad. This element of length can contain any value and cause LabVIEW wrongly that the handle is already large enough to fill its data and not to do anything and then by writing over the end of the allocated buffer.

    Also equipped to initialize the structure with the value NULL is not going to work. This group should be provided by the appellant that this is a region of data of fixed size passed as a pointer. However, initialization of the string inside the cluster with NULL handles should work fine, since LabVIEW considers NULL manages as the canonical zero length handle.

    However after calling the LabVIEW DLL function you are the owner of all memory that is allocated by this function and comes back to you, just as you would be if you had allocated those manages yourself before the call. So label correct is also deallocate it and it is not an option, but a requirement or you create memory leaks. He isn't getting noticed here since your test program ends in any case just after, but he bite you bad in a larger application if you forgot it.

    The code would then look like this:

    int main()
    {
        Cluster_Of_Strings MeasInfo;
    
        MeasInfo.String_A = NULL;
        MeasInfo.String_B = NULL;
    
        Testvi(&MeasInfo);
    
        printf("-------------\n");
        printf("String_A: %s\n", LV_str_to_C_str(MeasInfo.String_A));
        printf("String_B: %s\n", LV_str_to_C_str(MeasInfo.String_B));
        printf("size %d", (sizeof(int32) + sizeof(uChar)));
        printf("-------------\n");
         if (MeasInfo.String_A)            DSDisposeHandle(MeasInfo.String_A);        if (MeasInfo.String_B)       DSDisposeHandle(MeasInfo.String_B);   return 0;
    }
    // Returns the pointer to the string buffer in a LabVIEW string handle that has been made// sure to be zero terminated.char *LV_str_to_C_str(LStrHandle lv_str){    if (lv_str && !NumericArrayResize(uB, 1, (UHandle*)&lv_str, LStrLen(*lv_str) + 1))    {        LStrBuf(*lv_str)[LStrLen(*lv_str)] = 0;        return LStrBuf(*lv_str);    }    return NULL;}
    
  • How to read / write to a HID device with call a library function?

    I had tons of problems to read from a device USB HID in VISA. I had no problem make a driver for him and write it in LabVIEW. However, whenever I try to read using Read Visa, Visa USB Control In or interrupt USB event get different types of error messages.

    I decided to give up this route and talk to the device through hid.dll, setupapi.dll and any other .dll that I need to use. The problem is that I'm not sure I correctly use the nodes to call a library function... I've seen several KB articles that explain how to set up the nodes call library feature, but I need more information. I can configure stuff and sometimes get things to work, but I don't always know what each specific selections in Settings tab is doing. Can someone give me more detailed information on what do the settings tab and all of its components?

    Thank you

    Matt

    Have you looked HERE?

    Shane.

Maybe you are looking for

  • How can I change in my old version of firfox

    I want google toolbar, so I need to go back to my old version.

  • Why can't I open new tabs in my browser?

    When I click on the + symbol next to the tab, I'm working in, Firefox should open a new tab. However, this function no longer works in my Firefox browser. What should I do to open new tabs again?

  • Sound system seems to have failed

    I am relatively computer ignorant.My audio system seems to have failed, but I still get sound when I turn on my computer stating that my soundcard still works. Well anyone give advice?

  • DVD burned with movie maker - green screen

    I burned a dvd with movie maker and when I play the dvd it plays with images all crushed in half top of the screen and the bottom half is green.  How can I burn a dvd and have the image on the entire screen?

  • BlackBerry Smartphones BB ID PASSWORD RESET HELP!

    I really need help to reset my password to id bbm, tried and got an email to reset the password, but can't even get email, how to make email, I just need reset the password, any help appreciated!, it's a bb 8530 curve,.