Calling a dll created with vision 7.0 from visual basic doesn't work

I created a dll using some vision 7.0 functions and Labview 7.0 environment. I call this dll from visual basic. The dll will work fine as long as I don't stop the visual basic program execution. As soon as I stop the program execution the dll will no longer work. I must reload the visual basic environment and the call to the dll will start working again. I created the exact same dll but I created it with vision 6.0 in Labview 6i environment. It works great and has no issues.
Attachments:
Test.vi ‏36 KB

Roberto N. wrote:
Thank you Jordan, I'm using Labview 7.1.
Anyway I've resolved the problem by adding the "lvanlys.dll" file (present in "..\Labview 7.1\resource\lvanlys.dll" path) as support file in the building process. Now the DLL containing the analysis functions works correctly.
Natalino Roberto
Ok, you probably got lucky since the lvanlys.dll seems to implement that function directly. However most Advanced Analysis functions are just redirected by lvanlys.dll to the Intel Math Kerneal Library that gets installed with LabVIEW 7.1 and higher. The only way to get that properly installed with your LabVIEW executable or DLL is to create a LabVIEW installer in your Application Builder and make sure to select under "Installer Settings->Advanced" the "LabVIEW Run-Time Engine" and the "Analyze VIs Support". Then use that installer to install your DLL on another computer.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Workflow created with Authoring tool produces a workflow that doesn't work

    Hi,
    I'm getting fed-up with the Authoring Tool. It has such inconsistently bad results.
    Anyway, here's my current problem:
    1. Create a new MP
    2. Create a new Workflow that triggers when an incident is created with no additional criteria
    3. Add a command script to the workflow that runs an exe based on the workflow server
    4. Add two parameters, one of /commit the other of the Id of the incident
    5. Import the MP, copy the resultant assembly DLL to the workflow server
    6. Trigger the workflow, it fails with:
    Microsoft.EnterpriseManagement.Common.InconsistentDataException: The requested objects had an unknown management pack. ---> Microsoft.EnterpriseManagement.Common.InconsistentDataException: The call produced inconsistent results. The data on the client
    does not match the data returned from the server. The most likely cause is that client-side cache is out of sync with server data. ---> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException: An object of class ManagementPack with ID ab2e712a-8963-028c-50bb-8d2fbecf380a
    was not found.
       at Microsoft.EnterpriseManagement.Configuration.TypeSpaceCacheBaseWithManagementPacks.GetManagementPack(Guid id)
       at Microsoft.EnterpriseManagement.ManagementPackManagement.GetManagementPack(Guid id)
       at Microsoft.EnterpriseManagement.Configuration.CreatableManagementPackElement`1.GetManagementPack(Guid managementPackId)
       --- End of inner exception stack trace ---
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.Configuration.CreatableManagementPackElement`1.GetManagementPack(Guid managementPackId)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPackTask.Constructor.CreateSingle(Result row)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPackElementConstructor.CreateMultiple[T,H](IList`1 dataAccessResult, EnterpriseManagementGroup managementGroup, ManagementPack managementPack)
       at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasksInternal(ManagementPackTaskCriteria criteria, IList`1 targetTypeIds, BaseClassTraversalDepth baseClassTraversalDepth, Nullable`1 managedEntityId)
       at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasksInternal(ManagementPackTaskCriteria criteria, IList`1 targetTypeIds, BaseClassTraversalDepth baseClassTraversalDepth)
       at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasksInternal(ManagementPackTaskCriteria criteria)
       at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasks(ManagementPackTaskCriteria criteria)
       at Microsoft.ServiceManager.WorkflowAuthoring.Common.ManagementGroupHelper.GetTaskGuid(String taskName, String mgmtGroupName)
       at Microsoft.ServiceManager.WorkflowAuthoring.ActivityLibrary.CommandScript.InitializeRunTaskActivity()
       at Microsoft.ServiceManager.WorkflowAuthoring.ActivityLibrary.CommandScript.Execute(ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.CompositeActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
       at System.Workflow.Runtime.Scheduler.Run()
    Does anyone know why this is or how to fix it?
    I've tried twice now with the same results.
    Cheers,
    Rob

    I gave up with this approach and created a custom activity for this workflow which is passed the same parameters and performs the same actions but works perfectly.
    Did you ever find a reason for this error?

  • Creating a DLL in Labview 8.6 and calling it from Visual Basic 6.0

    Dear friends,
    I need to create a DLL in Labview 8.6 and call it from Visual Basic 6.0. The system works as follows:
    I made an application using Labview 8.6 + Vision Assistant 8.6 where I can obtain the x,y coordinates of a template in an certain image being captured by an USB camera. The template coordinates change every time it moves and Visual Basic 6.0 must read these x,y values in real time. I found some information in the link http://zone.ni.com/devzone/cda/tut/p/id/3925, but it works for version 6.x of Labview and 8.6 version is different. Am I in the right path? If you have an updated tutorial like the one in the link above but for Labview 8.6 It would be very nice. Please help me.
    Kind regards.
    João Júnior

    Hello Osvaldo,
    I analysed the updated tutorial you sent me, but the thing is that it doen't show how to create the DLL in LV 8.6 but only show how to accessing the DLL from VB6. My problem is really HOW TO CREATE THE DLL IN LV8.6. In the link http://zone.ni.com/devzone/cda/tut/p/id/3063 there is detailed information about how to do this in LV6.x, the problem is that I don't find the path Tools»Build Application or Shared Library (DLL) in LV8.6, I think the procedure in LV8.6 is a little bit different. Don´t you have an updated tutorial on how to build a dll in LV8.6?How could you help me?
    Kind regards.
    João Júnior

  • Required Windows updates to run/load dlls created with Visual C++ 2013

    I have dlls created with VS2013 C++. Dlls are statically linked with runtime libraries and therefore do not require the redistributable to run on a machine that does not have VS2013 installed.
    I have a test machine with Win7 SP1 64-bit without any windows updates. When I try to load a dll created with VS2013 in an executable on that machine, the code dies. Another test machine with windows 7 SP1 fully updated using windows updates loads the same
    dll without a problem and the code runs fine.
    My question is which windows updates for Win 7 and Win 8  are necessary for dll created with VS2013 to load and run?
    Thanks. 

    I did use dependency walker. In my post above (third post in the thread) I actually state that: 
    "The code crashes(=dies) on the machine without windows updates. I used dependency walker and there are no missing dlls.
    Even if there were missing dlls, which there are none, those would be system dlls, because a machine with fully up to date Win7 loads and executes the code without a problem."
    The dll is statically linked (/Mt flag was used). For a good measure I installed redistributable which did not solve the problem. Besides static linking applies to runtime dlls, not the system dlls.

  • Multiplication error in DLLs created with SIT

    I have a problem with a multiplication in a DLL created with the Mathwork's Matlab/Simulink and National Instruments SIT. When multiplying two values of different types (fixed point types) I get really strange and unexplainable results. When I run the simulation in Simulink only, I do not get the error. But when running the same program as DLL in Labview I get a result of 146.xxx instead of 235. Feel free to chck out the included files (.mdl, .dll, .vi).
    I'm desperately looking for solutions.
    Philip
    Attachments:
    interface_test.vi ‏34 KB
    interface_test.dll ‏130 KB
    interface_test.mdl ‏11 KB

    Go ahead and hook up your error clusters and attach them to an indicator. This way you can see if there is a labVIEW problem with your code.
    I cannot run your code myself because of a lack of software but I opened the VI up and saw it was missing error handling.

  • Importing a DLL created with Cygwin

    I am trying to import a DLL created with Cygwin. This is a test DLL created by one of my collegue to validate the import process.
    When I use the import Wizzard, everything run ok. It recognise and build the structure based on the header file.
    When I click ok to generate the wrapper, the progress bar shows but nothing happens. I have to terminate the program (not responding).
    I found in the discussion forum that many users were having similar problem. I also found an interesting article on the subject: http://zone.ni.com/devzone/cda/tut/p/id/5412
    Following this, I reinstalled Cygwin with the packages mentioned in the article :
    gcc
    make
    sharutils
    tclck
    wget
    I also place the Cygwin path in the system path variable. I have also found that if the Cygwin path is not in the system path variable, the wizzard complete ok but the DLL is not able to run (cygwin1.dll is missing).
    Any help will be appreciated.
    RD

    I Claire, I am using Labview 8.6 the demo version.
    What I did is to do a scan of the bulletin board. http://forums.ni.com/ni/board/message?board.id=170​&message.id=384919&requireLogin=False
    I Can't say if this is the same problem I am experiencing but it looks very similar
    I have a Dell Latitude D830
    I have attached a copy of the DLL and an executable that is the core of the DLL.
    Hope this will help you figure it out.
    RD
    Attachments:
    dll.zip ‏4 KB
    test.zip ‏3 KB

  • Iam from Yemen we have CDMA carrier called Yemen mobile I bought an iPad from the US CDMA works with Verizon when I got to Yemen doesn't work with the carrier Yemen mobile and  both carriers verizon and Yemen mobile work by the CDMA system don't know whey

    Iam from Yemen we have CDMA carrier called Yemen mobile I bought an iPad from the US CDMA works with Verizon when I got to Yemen doesn't work with the carrier Yemen mobile and  both carriers verizon and Yemen mobile work by the CDMA system don't know whey can anyone help me please..

    A Verizon-model iPad can only work on CDMA with Verizon. You cannot use it with any other carrier. Apple, to my knowledge, has not released the iPad in Yemen, so there is no iPad you can use with any carrier there that works only on CDMA. You would need to find a GSM carrier and then get an unlocked GSM iPad.
    Regards.

  • I created an apple ID account to my Iphone, but the system doesn´t send the verification link to my email adress. I tried many times with the buton "send verification email" but doesn´t work.

    I created an apple ID account to my Iphone, but the system doesn´t send the verification link to my email adress. I tried many times with the buton "send verification email" but doesn´t work. My mailbox doesn´t receive any mail.
    My account work correctly.
    please I need help.
    Thank you.

    It's a really bad idea to post your email addresess - it's an invitation to spam - and I've asked the Hosts to remove them.
    This is a user-to-user forum and no-one on here can take any direct action. If your Yahoo address is not working that's something you would need to take up with Yahoo - have you checked it by sending yourself an email to it?
    Otherwise you will need to contact Support: go to https://expresslane.apple.com/ and click on 'iTunes' in the center column and then 'iTunes Store' in the right-hand column and proceed from there.

  • Type Mismatch error while calling a Java Function from Visual Basic 6.0...

    Hi,
    I'm having a problem in calling the Java Applet's Function from Visual Basic. First, I'm getting the handle of the Java Applet and components of it using "Document.Applets(n)" which is a HTML function. I'm calling this function from Visual Basic. My code is something like this...
    ' // Web1 is IE Browser in my Form.
    Dim Ap,Comp
    Dim Bol as Boolean
    Bol = true
    Ap = Web1.Document.Applets(0).getWindow() ' \\ Gets the Parent Window.
    Ap.setTitle("My Java Applet") ' \\ Sets the Title of the window.
    msgbox Ap.getVisibility() ' \\ This will return a Java boolean ( true or false )
    Ap.setVisibility(Bol) ' \\ Function Syntax is : void setVisibility(boolean b)
    Here in my code , i'm able to call any function that which accepts Integer or String but not boolean. So, i m facing problem with Ap.setVisibility() function. It gives me a "Type mismatch error" while executing it. Can you please tell me a way to do this from Visual Basic !
    I'm using Visual Basic 6.0, Windows 2000 , J2SDK 1.4.2_05.
    Please help me Friends.
    Thanks and Regards,
    Srinivas Annam.

    Hi
    I am not sure about this solution. try this
    Declare a variable as variant and store the boolean value in that variable and then use in ur method.
    Post ur reply in this forum.
    bye for now
    sat

  • AirPlay does not work with iPhone 4 s or iPad.Remote doesn´t work as well

    AirPlay does not work with iPhone 4 s or iPad.Remote doesn´t work as well.
    WLAN is working, I can use Youtube on my AppleTV, but I can´t connect to my computer or use airplay on my iPhone or iPad.

    Something is not configured correctly that is creating issues with your AppleTV.  You can disconnect it from the TV and power, and then plug it into your computer with a micro-USB cable.  After launching iTunes on your computer, you will be able to restore it to default settings and upgrade the software.

  • My magic mouse behaves erratically with intermittent problems - slows down, right click doesn't work, disconnects for a few seconds then reconnects. Anyone suggest what I could do to fix this?

    My magic mouse behaves erratically with intermittent problems - slows down, right click doesn't work, disconnects for a few seconds then reconnects. Anyone suggest what I could do to fix this?

    I just figured out the print quality issue for my wife with her new iMac and new printer.
    She replaced both at once and she couldn't understand why her Artisan 730 was lower quality then her Epson R280 when they had the same specs.
    Turns out the newer printer had the option to connect via wifi which we used during setup.
    The driver options are completely different depending on how you connect.
    Once I connected via USB the correct options were available and the print quality was better.
    Looking at the R2400 it dies not have wifi, but while researching the problem for my wife someone esle was having an issue updating to the latest printer driver.
    If you go into the print utility from the Printer and Scanner system preference and under the general tab you should have driver 5.5.
    One user had to delete the old printer driver before Software Update loaded the newer printer driver.
    https://discussions.apple.com/message/15947486#15947486
    On my MacBook Pro (w Snow Leopard) I always had to reconnect my wifi at home when it woke up. I upgraded my router from an old Netgear to a newer N D-Link and stopped having to do that.
    I would be surprised you would have that problem with an Airport Extreme, you might check to see if there is a firmware update for it.

  • I got an Ipod shuffle because I have two cars with USB port for mp3. It doesn't work. Can it ever?

    I got an Ipod shuffle because I have two cars with USB port for mp3. It doesn't work. Can it ever?

    im not shure but if you get an 3.5 mm sterio headphone jack and plug that in your car and shuffle it should work just as good

  • Create AAC from Wav file doesn't work

    I've converted many WAV files to AAC and it worked fine.  The last few times I've tried it it isn't working.  I hear the bleep which I think indicates it's been converted but I can't find it anywhere so assume it didn't happen. 
    I have Windows XP.  I am running iTunes  10.3.1.55
    Any ideas would be appreciated.
    Thanks,
    Ginny

    Hello,
    thank you for your Help.
    But I just want to read a Binary File, which is build by another program. And this is coded with 8Bit (like a normal Binary File) and not just with 7Bit (ASCII). So the workaround doesn't work in my case.
    I posted the Test-VI in my first post (here once again as picture). And it works fine on the PC, but if I try it on my MCB2400 the "Read Form Binary File" Node doesn't work.
    And it is also possible to open the Bin file with the "Read Text File" Node and see the cryptic content of the Bin-File. So the Problem seems to be in the "Read Form Binary File" Node.
    bye & thanks again
    amin
    Message Edited by aminat on 09-30-2009 03:28 AM

  • I have a imac g4 with a philips cdd5301  drive. the drive doesn't work what should i replace it with

    i have a imac g4 with a philips cdd5301 drive. the drive doesn't work. what should i replace it with that is compatible. i've seen some bad reviews about the philips drive

    Any good external optical drive should do, in this case, Google is your friend, just make sure it's Mac compatible.

  • Call RFC with DLL created with DCOM CONNECTOR

    I try to call a RFC with a DLL that i created with the SAP R/3 DCOM CONNECTOR (Release 4.5.B):
    My external soft calls the DLL, which calls the RFC, which calls a transaction (Call Transaction Mode N, Update S)...
    When i test the RFC in SAP (SE37), it's OK.
    But when i call the RFC with my soft (and with the DLL), the Call Transaction returns sy-subrc = 1.001 (the methode "AdviseRfcGuiSink" included in the DLL allows me to launch the debugging with my external soft).
    I found no SAP notes about this problem.
    If you met the same problem, could you help me ?
    Thanks.
    Julien.

    Some Years later I have the same Problem.
    As discripet in the post before - first I've got an error in the Method "CreateNewRow()" where the Method wants to return "return new byte[]()". Well I don't know why the .Net-Connector creates that code - but it looks strange to me.
    The origin Code is:
        /// <summary>
        /// Creates an empty new row of type byte[].
        /// </summary>
        /// <returns>The newbyte[].</returns>
           public override object CreateNewRow()
                return new byte[]();;
    With Changing that method I've got the same Error as in the post before:
    System exception thrown while marshaling RFCTYPE_XMLDATAto .NET type.
    Does someone has found a solution for that kind of Problem?

Maybe you are looking for