Dll function calls from VB6 to Labview do not work.

HI,
We are transferring our production test systems from VB6 to Labview, and we are using "CAN-AC2-PCI" cards. When call functions of dll "canacpci.dll", UUT does not response at all, and Labview program does not report any error either. Attached are the user manual and my labview codes.
I guess the DeviceNe_init.vi works because if run it twice, second runing will report error. To correct the error, the card has to be closed first..
I close the card first, then initialize it. After then send the data. But I can not see any communication by DeviceNet Analyzer when sending data.
All function parameters are copied from existing VB6 program. The VB6 program works fine.
Please help me out,
Thanks,
Xiang Zhan
Attachments:
DeviceNe_init.vi ‏36 KB
DeviceNet_SendDataXXXX.vi ‏18 KB
CAN-ACx-PCI.pdf ‏139 KB

Hi Turck,
I'm not familar with this device, and it is difficult to say in this case.  I would recommend calling into National Instruments support or contacting the vendor of the device for additional assistance in this case.  As this isn't one of NI's Industrial Communications devices, you could also post on the LabVIEW forums for additional assistance, as there are a lot more people looking at that board than this one.
Thanks!
Matt S.
Industrial Communications Product Support Engineer
National Instruments

Similar Messages

  • Calling from my MacBook Pro does not work?

    I have a Mac Book Pro 13'' Mid 2013 (Bluetooth 4.0) now running OS X Yosemite
    and I got a IPhone 5s with IOS 8.1 ...
    Incoming Calls I can receive with my Iphone, but when I want to call
    somebody with my Mac Book it doesn't work!"?
    Every time the message: Your device has to be the same iCloud and FaceTime
    Account or to be logged in! But I am using the same iCloud/Facetime Account!?
    Can somebody help me (Apple promises it all works today, but nothing works..)
    Thanks!

    Hey King1d,
    Thanks for the question. I understand that you are experiencing issues with Continuity in regards to phone calls. The following resources may provide a solution:
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity
    http://support.apple.com/kb/HT6337
    Get help using Continuity with iOS 8 and OS X Yosemite
    http://support.apple.com/kb/TS5458
    Thanks,
    Matt M.

  • Error 0x80040707 - DLL function call crashed QTInstallCode

    Installing QuickTime Stand-Alone QuickTimeInstaller.exe Version 7.0.4.0 I get the following error and QuickTime will not load or function:
    Unhandled Exception
    Error Number: 0x80040707 - DLL function call crashed: QTInstallCode.QuickTimePostInstallProc
    Setup will now terminate.

    I was able to solve this, but I had to uninstall all instances of iTunes, ipod and QuickTime, delete their directories, use http://support.microsoft.com/kb/290301/
    to delete the installations of each and then use msconfig to remove them from the Startup.
    After that I rebooted and did a new install with the QuickTime Stand Alone and it worked!

  • Thrid party DLL function call.

    Hello,
    I am a programming novice trying to learn more about Java. I am currently working on a project for my employer (a side project really) that is used in generating some specific alpha-numeric codes. Actually, I am re-writing an existing program into Java as a personal exercise for myself but it may have some useful applications down the line.
    This project requires me to use a 3rd party DLL function call. I have been trying to follow through the process of using the JNI interface, however, I believe that I need to create a wrapper DLL to handle the function call. Does anyone know how to do this or can they point me in the right direction? I believe the 3rd party DLL was written in C++ but that's all I know at this point.
    Any help is appreciated.
    TIA

    To those of you who will look this topic up and wonder how I was able to do that here:
    (using Visual C++ for the example)
    3rd party DLL : Key32.dll
    wrapper DLL: Key32Liaise.dll
    SWIG interface: Key32Liaise.i
    wrapper class: Key32Liaise
    1) Make reference to your external function call as if it were a class method. The class name should be that of your "wrapper" class. (e.g. Key32Liaise.getHashCode() ) I like to call the wrapper class the "laise" class because it acts as the go-between.
    2) Download SWIG. Create your interface file and run the command: swig -java -shadow -c++ Key32Liaise.i This will generate Key32Liaise.java shadow class and Key32Liaise_wrap.cxx wrapper code.
    3) Compile the Java code into Class files and generate a header file for the wrapper class (i.e. javah Key32Liaise). You will need this header file even though the SWIG site doesn't mention this.
    4) Open VC++ and open a new project file Key32Liaise to create a DLL. Write the C++ code that calls up the function from the Key32.dll file. You will have to look that up from the MSDN site...too much to put down here.
    5) Include the appropriate files and complile the wrapper DLL.
    Hope that make sense!!!

  • Java function call from Trigger in Oracle

    Moderator edit:
    This post was branched from an eleven-year-old long dead thread
    Java function call from Trigger in Oracle
    @ user 861498,
    For the future, if a forum discussion is more than (let's say) a month old, NEVER resurrect it to append your new issue. Always start a new thread. Feel free to include a link to that old discussion if you think it might be relevant.
    Also, ALWAYS use code tags as is described in the forum FAQ that is linked at the upper corner of e\very page. Your formulae will be so very much more readable.
    {end of edit, what follows is their posting}
    I am attempting to do a similar function, however everything is loaded, written, compiled and resolved correct, however, nothing is happening. No errors or anything. Would I have a permission issue or something?
    My code is the following, (the last four lines of java code is meant to do activate a particular badge which will later be dynamic)
    Trigger:
    CREATE OR REPLACE PROCEDURE java_contact_t4 (member_id_in NUMBER)
    IS LANGUAGE JAVA
    NAME 'ThrowAnError.contactTrigger(java.lang.Integer)';
    Java:
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "ThrowAnError" AS
    // Required class libraries.
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import com.ekahau.common.sdk.*;
    import com.ekahau.engine.sdk.*;
    // Define class.
    public class ThrowAnError {
    // Connect and verify new insert would be a duplicate.
    public static void contactTrigger(Integer memberID) throws Exception {
    String badgeId;
    // Create a Java 5 and Oracle 11g connection.
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    // Create a prepared statement that accepts binding a number.
    PreparedStatement ps = conn.prepareStatement("SELECT \"Note\" " +
    "FROM Users " +
    "WHERE \"User\" = ? ");
    // Bind the local variable to the statement placeholder.
    ps.setInt(1, memberID);
    // Execute query and check if there is a second value.
    ResultSet rs = ps.executeQuery();
    while (rs.next()) {
    badgeId = rs.getString("Note");
    // Clean up resources.
    rs.close();
    ps.close();
    conn.close();
    // davids badge is 105463705637
    EConnection mEngineConnection = new econnection("10.25.10.5",8550);
    mEngineConnection.setUserCredentials("choff", "badge00");
    mEngineConnection.call("/epe/cfg/tagcommandadd?tagid=105463705637&cmd=mmt%203");
    mEngineConnection.call("/epe/msg/tagsendmsg?tagid=105463705637&messagetype=instant&message=Hello%20World%20from%20Axium-Oracle");
    Edited by: rukbat on May 31, 2011 1:12 PM

    To followup on the posting:
    Okay, being a oracle noob, I didn't know I needed to tell anything to get the java error messages out to the console
    Having figured that out on my own, I minified my code to just run the one line of code:
    // Required class libraries.
      import java.sql.*;
      import oracle.jdbc.driver.*;
      import com.ekahau.common.sdk.*;
      import com.ekahau.engine.sdk.*;
      // Define class.
      public class ThrowAnError {
         public static void testEkahau(Integer memberID) throws Exception {
         try {
              EConnection mEngineConnection = new EConnection("10.25.10.5",8550);
         } catch (Throwable e) {
              System.out.println("got an error");
              e.printStackTrace();
    }So, after the following:
    SQL> {as sysdba on another command prompt} exec dbms_java.grant_permission('AXIUM',"SYS:java.util.PropertyPermission','javax.security.auth.usersubjectCredsOnly','write');
    and the following as the user
    SQL> set serveroutput on
    SQL> exec dbms_java.set_output(10000);
    I run the procedure and receive the following message.
    SQL> call java_contact_t4(801);
    got an error
    java.lang.NoClassDefFoundError
         at ThrowAnError.testEkahau(ThrowAnError:13)
    Call completed.
    NoClassDefFoundError tells me that it can't find the jar file to run my call to EConnection.
    Now, I've notice when I loaded the sdk jar file, it skipped some classes it contained:
    c:\Users\me\Documents>loadjava -r -f -v -r "axium/-----@axaxiumtrain" ekahau-engine-sdk.jar
    arguments: '-u' 'axium/***@axaxiumtrain' '-r' '-f' '-v' 'ekahau-engine-sdk.jar'
    creating : resource META-INF/MANIFEST.MF
    loading : resource META-INF/MANIFEST.MF
    creating : class com/ekahau/common/sdk/EConnection
    loading : class com/ekahau/common/sdk/EConnection
    creating : class com/ekahau/common/sdk/EErrorCodes
    loading : class com/ekahau/common/sdk/EErrorCodes
    skipping : resource META-INF/MANIFEST.MF
    resolving: class com/ekahau/common/sdk/EConnection
    skipping : class com/ekahau/common/sdk/EErrorCodes
    skipping : class com/ekahau/common/sdk/EException
    skipping : class com/ekahau/common/sdk/EMsg$EMSGIterator
    skipping : class com/ekahau/common/sdk/EMsg
    skipping : class com/ekahau/common/sdk/EMsgEncoder
    skipping : class com/ekahau/common/sdk/EMsgKeyValueParser
    skipping : class com/ekahau/common/sdk/EMsgProperty
    resolving: class com/ekahau/engine/sdk/impl/LocationImpl
    skipping : class com/ekahau/engine/sdk/status/IStatusListener
    skipping : class com/ekahau/engine/sdk/status/StatusChangeEntry
    Classes Loaded: 114
    Resources Loaded: 1
    Sources Loaded: 0
    Published Interfaces: 0
    Classes generated: 0
    Classes skipped: 0
    Synonyms Created: 0
    Errors: 0
    .... with no explanation.
    Can anyone tell me why it would skip resolving a class? Especially after I use the -r flag to have loadjava resolve it upon loading.
    How do i get it to resolve the entire jar file?
    Edited by: themadprogrammer on Aug 5, 2011 7:15 AM
    Edited by: themadprogrammer on Aug 5, 2011 7:21 AM
    Edited by: themadprogrammer on Aug 5, 2011 7:22 AM
    Edited by: themadprogrammer on Aug 5, 2011 7:23 AM
    Edited by: themadprogrammer on Aug 5, 2011 7:26 AM

  • Execute Oracle Package Function call from FORTE

    Has anyone EVER successfully execute an Oracle Package Function call from FORTE
    via " sql execute procedure "?
    Here's my question, I am able to execute a stored procedure but hasn't figured
    out a way to execute a function which defined in a package. The syntax goes
    like this: sql execute procedure <PackageName>.<FunctionName> ( input
    input_parm, output output_parm). If anyone EVER successfully execute a
    function, please let me know, thanks.

    You'll need to provide a column alias for the function call:
    select func(val) as alias from dual

  • Error: 0X80040707 DLL Function call crashed: QTInstallCode.QuickTimePostIns

    Hi,
    After installing the latest Quicktime on my XP 64-bit OS I get the following error message:
    Error: 0X80040707
    Description: DLL Function call crashed: QTInstallCode.QuickTimePostInstallProc
    Running quicktime and iTunes has not been a problem in the past.
    I done have absolutely everything that is avaliable on the support site. And I still have had no luck. Please help, I really appreciate it.

    That worked. Thanks for your help.
    I hope I dont have to encounter this problem again with Apples next release of iTunes or for that mater Microsofts next update patch.

  • Is it possible to pick up an incoming call from an extension that is not physically ringing?

    Is there a way to pick up an incoming call from an extension that is not physically ringing?
    For  example if an incoming call was ringing at EXT 1019 and  they were away from their desk momentarily, could the call be picked up  from another extension by pressing a number sequence or something?
    we are using UC560. if you could tell in detail how it can be setup(config) and how it will work.Thank you in advance.

    Please rate helpful posts.
    Thanks,
    Alex
    Here is the inof for the Call Manager Express.
    Enabling Call Pickup
    To enable Call Pickup features on SCCP or SIP phones, perform the following steps.
    Prerequisites
    •SIP phones require Cisco Unified CME 7.1 or a later version.
    •The PickUp and GPickUp soft keys display by default on supported SCCP and SIP phones. If previously disabled, you must enable these soft keys with the softkeys idle command.
    Restrictions
    •SIP phones that do not support the PickUp and GpickUp soft keys must use feature access codes (FACs) to access these features.
    •Different directory numbers with the same extension number must have the same Pickup configuration.
    •A directory number can be assigned to only one pickup group.
    •Pickup group numbers can vary in length, but must have unique leading digits. For example, if you configure group number 17, you cannot also configure group number 177. Otherwise a pickup in group 17 is always triggered before the user can enter the final 7 for 177.
    •Calls from H.323 trunks are not supported on SIP phones.
    SUMMARY STEPS
    1. enable
    2. configure terminal
    3. telephony-service
    4. service directed-pickup [gpickup]
    5. fac {standard | custom pickup {direct | group | local} custom-fac}
    6. exit
    7. ephone-dn dn-tag [dual-line | octo-line]
    or
    voice register dn dn-tag
    8. pickup-group group-number
    9. pickup-call any-group
    10. end
    DETAILED STEPS
    Command or Action
    Purpose
    Step 1
    enable
    Example:
    Router> enable
    Enables privileged EXEC mode.
    •Enter your password if prompted.
    Step 2
    configure terminal
    Example:
    Router# configure terminal
    Enters global configuration mode.
    Step 3
    telephony-service
    Example:
    Router(config)# telephony-service
    Enters telephony-service configuration mode.
    Step 4
    service directed-pickup [gpickup]
    Example:
    Router(config-telephony)# service directed-pickup gpickup
    Enables Directed Call Pickup and modifies the function of the GPickUp and PickUp soft keys.
    •gpickup—(Optional) Enables using the GPickUp soft key to perform Directed Call Pickup on SCCP phones. This keyword is supported in Cisco Unified CME 7.1 and later versions.
    •This command determines the specific soft keys used to access different Call Pickup features on SCCP and SIP phones. For a description, see the service directed-pickup command in the Cisco Unified CME Command Reference.
    Step 5
    fac {standard | custom pickup {direct | group | local} custom-fac}
    Example:
    Router(config-telephony)# fac custom pickup group #35
    Enables standard FACs or creates a custom FAC or alias for Pickup features on SCCP and SIP phones.
    •standard—Enables standard FACs for all phones. Standard FAC for Park Retrieval is **10.
    •custom—Creates a custom FAC for a feature.
    •custom-fac—User-defined code to dial using the keypad on an IP or analog phone. Custom FAC can be up to 256 characters and contain numbers 0 to 9 and * and #.
    Step 6
    exit
    Example:
    Router(config-telephony)# exit
    Returns to privileged EXEC mode.
    Step 7
    ephone-dn dn-tag [dual-line | octo-line]
    or
    voice register dn dn-tag
    Example:
    Router(config)# ephone-dn 20 dual-line
    or
    Router(config)# voice register dn 20
    Enters directory number configuration mode.
    Step 8
    pickup-group group-number
    Example:
    Router(config-ephone-dn)# pickup-group 30
    or
    Router(config-register-dn)# pickup-group 30
    Creates a pickup group and assigns the directory number to the group.
    •group-number—String of up to 32 characters. Group numbers can vary in length but must have unique leading digits. For example, if there is a group number 17, there cannot also be a group number 177.
    •This command can also be configured in ephone-dn-template configuration mode and applied to one or more ephone-dns. The ephone-dn configuration has priority over the template configuration.
    Step 9
    pickup-call any-group
    Example:
    Router(config-ephone-dn)# pickup-call any-group
    or
    Router(config-register-dn)# pickup-call any-group
    Enables a phone user to pickup ringing calls on any extension belonging to a pickup group by pressing the GPickUp soft key and asterisk (*).
    •The ringing extension must be configured with a pickup group using the pickup-group command.
    •If this command is not configured, the user can pickup calls in other groups by pressing the GPickUp soft key and dialing the pickup group number.
    Step 10
    end
    Example:
    Router(config-ephone-dn)# end
    or
    Router(config-register-dn)# end
    Exits configuration mode.
    Examples
    The following example shows the Group Pickup and Local Group Pickup features enabled with the service directed-pickup gpickup command. Extension 1005 on phone 5 and extension 1006 on phone 6 are assigned to pickup group 1.
    telephony-service
    load 7960-7940 P00308000500
    load E61 SCCP61.8-2-2SR2S
    max-ephones 100
    max-dn 240
    ip source-address 15.7.0.1 port 2000
    service directed-pickup gpickup
    cnf-file location flash:
    cnf-file perphone
    voicemail 8900
    max-conferences 8 gain -6
    call-park system application
    transfer-system full-consult
    fac standard
    create cnf-files version-stamp 7960 Sep 25 2007 21:25:47
    ephone-dn 5
    number 1005
    pickup-group 1
    ephone-dn 6
    number 1006
    pickup-group 1
    ephone 5
    mac-address 0001.2345.6789
    type 7962
    button 1:5
    ephone 6
    mac-address 000F.F758.E70E
    type 7962
    button 1:6

  • Wifi calls from a phone that is not mine

    We have two iPhones at home. Everyone has its own phone number and iCloud account.
    I set up "family sharing" when updated to iOs8. Now, when the other one gets a facetime call, I also receive that call even if I don't know who is calling!
    Is it a sharing family "feature" or an issue?

    i Have checked that and we have it differently. Now comes the weird part: my father came home today and he called via facetme to each phone and it worked perfect.
    So I thought I might be getting crazy.
    Later tonight  we were on the subway going to eat dinner and the other phone got a facetime call and both our phones were called at the same time.
    So it seems it only happens when she receives facetime calls from a specific number, the others work well!
    I called Apple support and they told me to disable handoff in both phones as the final solution. But I want handoff to work. So not only they hsve no clue about what's happening but they are not going to investigate it. By the way, I have Applecare in both phones....
    Any idea?

  • HT5622 my apple id is not working when i sign in from my laptop it works but when i sign in from my iphone4 then its not working it gives the message of "your aapleid or password is incorrect"? how can i solve this problem please help

    my apple id is not working when i sign in from my laptop it works but when i sign in from my iphone4 then its not working it gives the message of "your aapleid or password is incorrect"? how can i solve this problem please help

    Hey nocillado,
    Thanks for using Apple Support Communities.
    It sounds like you have 2 things you want to address. These articles can help you use iCloud with your existing Apple ID.
    Get help activating your iPhone
    http://support.apple.com/kb/ts3424
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using the same Apple ID for Store purchases and iCloud (recommended)
    Have a nice day,
    Mario

  • BIP report security from Dashboard to Publisher is not working

    Hi ,
    I created a BIP report(.xdo) and placed it on Dashboard as a link . As admin , I can see the report . As a user , I am able to get into publisher but not able to see the report . Iam getting the below error message .
    Error : Unauthorized Access: please contact the administrator.
    I suspect that security model from Dashboard through BIP is not working . I tried searching the online resources but couldnt find right help .
    Iam a newbie for BIP , I followed the regular BIP guides , configured eveything as per the docs and things work as admin . But I want to test the security as user .
    Where Iam doing wrong , Any ideas please help .
    Thanks
    Karthik

    Hello Vijay ,
    I have grant permissions to the user and the report in BI webcatalog and also in BIP under admin tab I have addes the role which the user belongs to and also the shared folder . Still the problem exists.
    My BI presentation servcies security is working . My user security is also working , all that I need is the user should be able to see the report when he clicks on BIP link placed in dashboard.

  • Update to 10.6.8 and HP F2100 and D2400 Printers stopped working. Restored 10.6.7 and printers from Install CD's but not working,  Same with scanner

    Help....
    Updated to 10.6.8 and HP F2100 and D2400 Printers stopped working.
    Restored 10.6.7 and printers from Install CD's but not working.
    Same with F2100 scanner
    Am I glad I kept Windows desktop as without it I would be scre**ed now
    What is going on with this latest update as its like a return to Windows with things crashing or hanging up every few minutes????
    On a MacBook Air that has not been updated everything still works so what has 10.6.8 done and why won't the restore to 10.6.7 work?
    Steve

    None of those things you mentioned were what I suggested.
    I'm guessing the "ctrl click in printer preferences" means you Reset the Printing System?
    If so, that is what I would have suggested if deleting it by selecting the ( - ) button and then adding it with the ( + ) button.
    But, if HP has a fix, it likely needs to update its drivers.

  • My Itunes account was hacked and my Apple ID was disabled. I followed the instructions from APPLE to backup and restore from Itunes but that did not work. Any suggestions?? Thanks!!

    My Itunes account was hacked and my Apple ID was disabled. I followed the instructions from APPLE to backup and restore from Itunes but that did not work. Any suggestions?? Thanks!!

    Are you saying that you contacted Apple support and they instructed you to backup and restore your iPad? Or do you mean that you picked up this information from an online support article? If you spoke to an Apple rep or received these instructions via email, contact them again for further help.
    I fail to see how restoring your iPad would enable yoyr Apple ID.

  • My macbook is back from repairs. It is not working with my apple led cinema display. It was working prior to the repairs on the laptop. Is there a setting I don't know about that might have been changed?

    My macbook pro is just back from repairs.  It is not working with my apple led cinema display. I have followed the directions in the cinema display manual.  am I missing something?

    Take a look at the Displays preference panel to see if everything is ok, particularly the resolution and refresh rate.  Displays will probably try to put the panel for the ACD on the ACD where you won't see it.  So click "Gather Windows" to get the ACD panel on to your macbook.
    One more thing, make sure you fully seated the mini displayport plug.  They can be sneaky little devils in that they need to be fully pushed in.

  • ITunes drag to import new songs in library or to create playlists from folders on windows does not work!

    iTunes drag to import new songs in library or to create playlists from folders on windows does not work!
    WHY? I have to solve, how can I do? Thank you

    up

Maybe you are looking for