Execution of a CVI application using NI CAN is ~6 seconds faster if NI MAX is opened as well

Hi,
I am currently developing a CVI (7.0) application to download some software to a module via a Series 2 CAN card (NI CAN Driver 2.2f) and have noticed the following.
When running under the CVI debugger the CAN interface will sometimes respond with the error code -1074388991 receive timeout when I try to communicate with the module after the download process. In all cases the first of two CAN frames is received and the second is lost.  If I start / open NI MAX and run the application, the error disappears. Increasing the timeout period does not cure the issue.
Furthermore if I compile the release executable and run it, the execution time is ~6 Seconds faster if NI MAX is open. When NI MAX is closed the execution time reverts to the original (longer) time. (This appears to be repeatable.) 
The above error does not occur when running the release executable.
Does anyone know why NI MAX appears to have this affect on the CAN Interface ?
Aid

Hi,
The CAN error code -1074388991 description is as follows: The timeout of a wait or notification function expired before any desired state occured. Solutions: Increase value of Timeout parameter; Verify your cable connections and operations of remote devices. But you have already had a go at increasing the timeout parameter and that didn't work.
If you have NI-CAN 1.5, then you can use the Bus Monitor by configuring it up to CAN0 and hooking up a device to see if any frames are being read. The Bus Monitor logs all traffic on the bus. If you can communicate using the Bus Monitor, then your cables are set up properly. Make sure you close the Bus Monitor before running your program.
The follwoing discussion forum may offer some helpful advise:
http://forums.ni.com/ni/board/message?board.id=30&message.id=1011&requireLogin=False
I hope some of this helps!
Kind Regards,
Kurt

Similar Messages

  • New Application using Kuler for PPTX Color Themes

    Hi @all,
    I just deployed the first public beta of my Kolor Theme Wizard. It's a Java based web application and you can search for Kuler Themes an download an Office Open XML presentation file with these colors defined as default accent colors. So you can use Kuler themes in Powerpoint without hacking hex color codes into your keyboard.
    I hope you enjoy it.
    Jens

    Please try this, let me know if it doesn't work.
    public void configureMarkups(boolean isGreenMarks) {
    System.out.println("***KPE*** configureMarkups()");
    System.out.println(" isGreenMarks: " + isGreenMarks);
    final MarkupBean mbean = this.getActiveVueBean().getMarkupBean();
    MarkupEntitySpec spec = mbean.getMarkupEntitySpec();
    if (spec == null) {
    System.out.println("***KPE*** Why is spec null?");
    spec = new MarkupEntitySpec(mbean);
    spec.setColor(isGreenMarks ? Color.GREEN : Color.RED);
    spec.setFillColor(Color.YELLOW);
    mbean.setMarkupEntitySpec(spec);
    For the future: please try limiting code snippets to only minimum relevant lines, otherwise it's very hard to come up with quick suggestions...

  • Like Firefox, can Safari restore its tabs when (closed and) re-opened?

    If Firefox contains open / active tabs and is closed, those tabs (and their history) can (via a setting) be restored when Firefox is re-opened.
    Can Safari restore its tabs when it's re-opened as well?

    In my Safari for Windows (5.0.5) I've got a "Reopen all Windows from previous session" command. (In my History Menu.)

  • Asynchronuous functions don't work in a C# dll used by a CVI application

    Hello,
    I have an existing application written with CVI 9.0.1, which have to interact with a C# 2010 dll (which doesn't have any window) via a CVI<->.net wrapper (created using the usefull .net controller of CVI).
    This C# dll uses asynchronuous functions, like NetworkStream.BeginRead() and EndRead() functions of a System.Net.Sockets.TcpClient object for example.
    These asynchronuous functions work fine when the C# dll is used by a C# application (having a main window) or when the C# dll is converted in a standalone C# program (having a main window with buttons, to call its methods, just to try), but asynchronuous functions don't work when my C# dll is called by my CVI application (which is my goal): execution stays inside NetworkStream.BeginRead() for example (for the concerned thread).
    NetworkStream.BeginRead() can be successfully bypassed by using the synchronuous function NetworkStream.Read() instead, but the C# dll uses others asynchronuous functions wich have no associated synchronuous functions.
    Here is a portion of C# code (I don't have the source code for the Snmp object ; got_trap() method is never called when asynchonuous calls don't work):
    public void run() // the thread
     Snmp snmp = null;
     try
      snmp = new Snmp(true);
      snmp.NotifyListenPort = 162;
      snmp.NotifyRegister(null, null, new NotifyCallback(got_trap), CB_DATA_);
      isActive = true;
      Thread.Sleep(Timeout.Infinite);
    Thinking it could be a problem with window messages which could be not processed (in the C# dll), I tried to replace the Thread.Sleep(Timeout.Infinite) instruction, in the code where the asynchronuous management take place, by a window creation plus my Win32 window message loop, but asynchronuous functions don't work better (whereas my loop seems to successfully process messages):
    Form myForm = new Form(); // an empty window
    myForm.Show();
    int bRet;
    MSG msg = new MSG();
    while ((bRet = GetMessage(out msg, IntPtr.Zero, 0, 0)) != 0)
        if (bRet == -1)
           // handle the error and possibly exit
        else
          switch (msg.message)
            default: // everything else
            TranslateMessage(ref msg);
            DispatchMessage(ref msg);
            break;
    Any idea ?
    Thank you,
    rvfr.
    Solved!
    Go to Solution.

    Solved: in fact, the snmp assembly that I was using just needed to be dotNet registered.
    rvfr.

  • How can I programmatically retrieve the CVI Target Version Settings (e.g. File Version, Copyright, etc) in my CVI application?

    Is there any way that I can programmatically retrieve the CVI Target Version Settings (e.g. File Version, Copyright, etc) in my CVI application?
    I am using LabWindows/CVI version 7.0.
    The settings that I'd like to retrieve within my application are those that are set under Build | Target Settings... | Version Info...
    e.g.
          File Version
          Product Version
          Company Name
          Legal Copyright
    Thanks,
    Darren
    Message Edited by Darren Draper on 01-16-2006 02:03 AM

    Well, "File access permission denied" claims for an authorization problem . I suggest you double check file attributes in the project directory: it could be that you have downloaded this example from a CD and the read-only attribute has not been cleared.
    The library does not reside in the example folder: as you can see by selecting View >> Show full pathnames in the project window, it should be in ....CVI\sdk\lib folder.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • CVI applications can run in Linux ?

    Hello
    Ask: 1 in Windows to write CVI applications can run in Linux? And Linux must have the LabWindows/CVI 2010 Linux Run-Time module??
     The 2.Linux can support the CVI development environment?

    There is some sort of support for running applications on Linunx, even though you cannot directly run the IDE on it.
    Shortly, you will need to develop on Windows and then compile and run on Linux system. I don't know how easy is all this process as I only develop for Windows systems.
    A lot of informations can be found in this White Paper.
    The Linux Run-Time Engine is a module to be purchased separately.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Assembler code example to can application using 8051

    Hi,
    I am developing a CAN application using 8051 family microcontrollers. I need recognize the information coming through Rxdc pin. So far, I was not able to do this. Where can I get some assembler code example for this microcontroller? Someone has one ?
    Thanks.

    Hello-
    Unfortunately, we only provide source code for the NI-CAN boards in Windows under CVI and LabVIEW. The Philips site may have some examples. I believe that they actually sell a CAN chip that is integrated with an 8051.
    Randy Solomonson
    Application Engineer
    National Instruments

  • How can i design a EJB application using session Beans?

    Hello,
    I am designing a Find application using EJB. Here a user is prompted a search page, where he can enter the search criteria's. Then on click of submit, the query is formed at the server side depending on what criteria's were selected. Then a jdbc query is performed and the results are returned back to the user. Here no session is maintained for the users. Can anyone suggest me how to design this application using EJB. Should i use entity beans for this or session beans will suffice? Should the jdbc query be performed in the bean itself or should it be outside in a helper class? Please kindlu suggest me the design for this application...
    Regards,
    Subbu

    Hi,
    First of all, I'm unable to figure out why you need to use EJB for this scenario. You can write a helper class to frame and execute the query.
    If you really want to use EJB, then I suggest you use a stateless Session Bean with transaction attribute as TX_NOT_SUPPORTED. From the session bean, you can call the helper class. But, by avoiding the session bean, you can eliminate remote calls, thus improving your performance. Also, check if the database & the db driver you are using supports sql caching.
    Regards,
    Raj.

  • How can i call a VB6 project from my java application using JNI

    hi
    can anyone tell me the procedure of calling a VB6 project from any java application using JNI
    if anyone does know then tell me the detail procedure of doing that. I know that i have to create a dll of that VB6 project then to call it from the java application.
    if anyone know that procedure of creating dll file of an existing VB6 project please reply
    please if anyone know then let me know

    Ahh, kind of a duplicate thread:
    http://forums.java.sun.com/thread.jspa?threadID=631642
    @OP. You could have clarified your original post and the relationship of your question to java. You did not need a new thread.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can I develop a web application using EJB design pattern?

    I have searched over the web and found quite a lot of tutorials on how to use the EJB design pattern.
    I know that there will be a home interface, EJB object interface and a SessionBean.
    But the tutorials often only cover a single class, this made me unable to get a complete picture of how EJB design pattern can be implemented into a whole system.
    I am now required to devleop an online shopping web application using EJB and JSP page.
    I think I will need to create a lot of classes: Member, ShoppingCart, Product...etc.
    What I want to ask is that, do I need to create a home interface, EJB object interface and a SessionBean for each of these classes?
    I really need some ideas on how to develop this system using EJB + JSP pages.
    Many thanks to you all.

    For every EJB that you want to create, you will need to code a home and remote interface and a bean class.
    You could start getting your ideas here
    http://www.theserverside.com/books/wiley/masteringEJB/
    http://www.coreservlets.com

  • I am using UPK developer 12.1.0 single user. My sofware has crashed and needs reinstallation. Please suggest how can I take back up of my source files. I am unable to open the application and i can not locate the library backup folder on my local machine.

    I am using UPK developer 12.1.0 single user. My sofware has crashed and needs reinstallation. Please suggest how can I take back up of my source files. I am unable to open the application and i can not locate the library backup folder on my local machine.
    Also, does reinstallation takes the back up automatically or the files will be lost. Please help.

    Here are a bunch of scripts to get folder size under all circumstances.  Take your pick.
    https://gallery.technet.microsoft.com/scriptcenter/site/search?query=get%20folder%20size&f%5B0%5D.Value=get%20folder%20size&f%5B0%5D.Type=SearchText&ac=2
    ¯\_(ツ)_/¯

  • I can disable one of my MacBook's two CPUs using the CPUPalette application.  How can I do it under control of a script?

    I can disable one of my MacBook's two processors using the CPUPalette application.  How can I do it under control of a script?
    I want to do this because the MacBook is overheating.  I will soon get it repaired, but in the meantime, disabling CPU 2 is effective at preventing overheating.  Sadly CPUPalette is not scriptable, and it won't remember its setting after the computer is restarted.
    Would it be worth learning about the relevant Darwin API (supposing there is one) and writing a small command-line program for the job?  I am an experienced developer of software using Standard C.
    Comments appreciated.
    Dave

    i wonder if there is a key that is stuck cause whenever i try to turn it on again after the 60 minute lockout, it says that the password was incorrect and i am locked out for another 60 minutes

  • Can we run a java application using Runtime.exec()?

    Can we run a java application using Runtime.exec()?
    If yes what should i use "java" or "javaw", and which way?
    r.exec("java","xyz.class");

    The best way to run the java application would be to dynamiically load it within the same JVM. Look thru the class "ClassLoader" and the "Class", "Method" etc...clases.
    The problem with exec is that it starts another JVM and moreover you dont have the interface where you can throw the Output directly.(indirectly it can be done by openong InputStreams bala blah............). I found this convenient. I am attaching part of my code for easy refernce.
    HIH
    ClassLoader cl = null;
    Class c = null;
    Class cArr[] ;
    Method md = null;
    Object mArr[];
    cl = ClassLoader.getSystemClassLoader();
    try{
         c = cl.loadClass(progName.substring(0,progName.indexOf(".class")) );
    } catch(ClassNotFoundException e) {
    System.out.println(e);
         cArr = new Class[1] ;
         try{
         cArr[0] = Class.forName("java.lang.Object");
         } catch(ClassNotFoundException e) {
         System.out.println(e);
         mArr = new Object[1];
         try{
         md = c.getMethod("processPkt", cArr);
         } catch(NoSuchMethodException e) {
         System.out.println(e);
         } catch(SecurityException e) {
         System.out.println(e);
    try {            
    processedPkt = md.invoke( null, mArr) ;
    } catch(IllegalAccessException e) {
              System.out.println(e);
    } catch(IllegalArgumentException e) {
              System.out.println(e);
    }catch(InvocationTargetException e) {
              System.out.println(e);
    }catch(NullPointerException e) {
              System.out.println(e);
    }catch(ExceptionInInitializerError e) {
              System.out.println(e);
    }

  • Can I use the NI DAQmxbase C functions to develop a Smart Device application using a NI USB or NI ENET 9234 C module with Visual Studio for an iMX31 (ARM 11) embedded computer running Win CE 5.0 or 6.0?

    I have an embedded application running on a iMX31 (ARM 11) that does fairly high performance analog input (24 bit, 50K samples/second).  I use Microsoft Visual Studio 2005 C/C++ for the develoment environment and have currently built versions of the application for Win CE 5.0 and 6.0 without Labview or NI hardware.  I have used the NI 9234 with great success on several Labview applications in the past and I'd like to use the 9234 on this embedded application with VS2005 C/C++. The NI documentation hints that I should be able to do this (maybe I'm overly optimistic) and I'm wondering if anyone else has?   I've tried the Evaluation versions of Labview Mobile and Labview Touch panel to build a C application using the NI DAQmx base C function inside Visual Studio without success.  I can compile and link the ContAcq IntClk LV example project for an x86 platform using NIDAQmx but not for a ARM platform using NIDAQmxbase.lib.  I get the same linker error   error LNK2019: unresolved external symbol referred to in Knowledge Base Document ID 4HAEE7QQ  even though I've set up (or think I've set up ) VS2005 as the KB article indicates.
    If anyone has used the C functions and NIDAQmxbase library inside a VS2005 Smart Device project, I'd greatly appreciate your comments.
    Thanks 

    Hello Gene,
    I have been checking into this for you and have found out that what you are trying to do cannot be done.  At least not in the current manner you are hoping for.  The internal architecture of DAQmx Base requires the cross-compiling capability of the LabVIEW Mobile Module. While a stand-alone compiler can compile DAQmx Base calls for desktop processors, it cannot compile DAQmx Base calls for ARM.
    If your application requirements exclude the LabVIEW toolchain, then the remaining option is the USB Driver Development Kit which is avaliable here, but you will have to contact your local field sales representative to discuss support
    options as standard phone and e-mail support are not available for the
    NI Measurement Hardware DDK. 
    NI Measurement Hardware Driver Development Kit
    http://digital.ni.com/express.nsf/bycode/exyv4w?opendocument&lang=en&node=seminar_US
    ColeR
    Field Engineer

  • Can I create an application using APEX that users see different web pages?

    I would like to create one application that different users are allowed to see only certain web pages based on the available data. For example, let's say that my application consists of 5 report pages and each report page is associated with a particular table or view on the system. If only 2 tables exist on the system, users should only see the two report pages associated with the 2 tables and they should not see the other 3 report pages associated with the other 3 tables.
    If I provide another table, the application should then allow the associated report page to be used.
    Can I do this with APEX? If so, how?
    Thanks,
    RJ

    How about creating authorization schemes that are based upon a simple exists -
    select 1 from user_tables where table_name = 'EMP'
    and then you can associate that authorization scheme with your pages, list items, whatever you need. You can have your authorization scheme evaluated just once per session so it will be very speedy.
    I am sure there are lots of ways to solve this one -
    -- Sharon

Maybe you are looking for

  • Thunderbolt mini display port cable to HDMI not registering

    I recently purchased a 6" mini display port to HDMI Cable. When I connected my macbook to my HDMI on my TV the macbook pro does not show the screen as a display option. When I go to system prefrences and under displays the tv is not showing up under

  • Customer Return Into Unrestricted Stock

    Hi, Our existing process is as follows: We have Material with Serial Number activated. a.     We sale to the Camera to our customer. Here the Status of the Serial Number becomes u201CECUSu201D. b.     Due to some reason, the Customer Return the Camer

  • Material Master Record

    Hi, This is one of the certification questions that I am taking and a little bit confused. Question is "You can enter a material without a material master record in material determination" Can someone simply explain this? Thank you.

  • Trouble With Login at startup

    so i had just refreshed my pc due to some issues with the start menu and they cleared so after i updated and rebooted i couldn't type so i tried to use the pop up touchscreen since my laptop has a touch screen and nothing happened so i tried to use t

  • Inadvertent click over 'clear list' crashed the list of downloaded files.How to retrieve that list?

    I was downloading the Firefox -5 update yesterday(07-07-2011), while the process was going on,the 'clear list' tab situated in the left side lower corner was pressed by me inadvertently causing disappearance of the list of all other completed,incompl