Problem in accessing CAN daabase (.dbc) file using GetChannelNamesByID.vi

Hello,
I am using PCI  CAN/2 series2 card to read data from sensor. In my labview code i m using FrameToChannel conversion API to convert the frame data into actual values using a .dbc file. My software includes data logger and visualization of sensor data. I have to run this software contineously for 30 days and monitor and log the sensor data.
My problem is the GetChannelNamesByID.vi is not working properly. My data logger works fine(i.e. rading and logging sensor data) but the visualization of actual sensor data using FrameToChannel conversion library stops sometimes. My software can not read the channels from the database file. it happens randomly e.g. after 12 hours.  I have to stop the software and run it again so that it works fine.
Can anyone give me the reason and solution for this?
Thanks in advance.
Solved!
Go to Solution.

My 2 cents.  Don't use the Frame to Channel Conversion Library.  It hasn't been updated in 5 years and likely won't be updated again.  I had problems with it where it wasn't converting correctly, and where it had issues with having the same signal names in different frames.  I is supposed to support it with a dot notation but it some times just doesn't work.  
I contacted NI about it and they agreed there was a problem, especially with the frame to channel conversion.  I provided a frame, the DBC, and showed the signal it converted it to was wrong.  Their suggestion was to use the XNet conversion.  After switching to using the XNet conversion (which doesn't need XNet hardware) I would never want to go back.  There is so much more flexibility in the API and it is activly being supported.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Similar Messages

  • Accessing the same database file using different handles/cursors

    Will there be any problems accessing the same database file using different DB handles in a transactional environment? We have implemented a process which have multiple transient threads coming up and initiating DB opens and read/write operations to the same database file using different handles and cursors?
    Can this potentially create any problems/bottlenecks? Can someone suggest the best way to deal with this scenario?
    Thanks in advance.
    SB

    Hi,
    Berkeley DB is well suited to the scenario you describe. You need to ensure that Berkeley DB is configured correctly for transactional access, the best information describing the requirements is in the Reference guide here:
    http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp.html
    If there will be multiple threads operating concurrently, then you will need to design your application to detect and deal with deadlock situations.
    Regards,
    Alex Gorrod
    Oracle Berkeley DB

  • How to access the database jar file using the derby 10.2.1.6 database ?

    Hi,
    How to access the database jar file using the derby 10.2.1.6 database ?
    I have used like below. And i am getting the following the error:
    "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.apache.derby.jdbc.EmbeddedDriver'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)"
    My context.xml file looks like this:
    <Context crossContext="true">
    <Resource name="jdbc/derby" auth="Container"
    type="javax.sql.DataSource" driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
    url="jdbc:derby:jar(\CalypsoDemo\database.jar)samples"
    username="xxx" password="xxx" maxActive="20" maxIdle="10"
    maxWait="-1"/>
    </Context>
    What could be the reason.?
    Any suggestions will be appriciated.
    Thanks in Advance,
    Gana.

    ya, I have restarted. Can you please tell me whether the path which i am giving is right or not in the context file?
    Thanks,
    Gana.

  • Problem while writing data on xls file using jxl API

    Hi,
    I am getting problem while writing data on excel file using jxl api.
    When i write data on file and all handles associated to the file are closed, file size increases but when i open the file nothing is written in it and when file is closed manually from excel window, file size decreased to its original that was before writing data.
    here is code:
              FileOutputStream os = new FileOutputStream(this.dirPath + this.fileName, true);
              WritableWorkbook this.workbook = Workbook.createWorkbook(os);
    after writing data following handler are closed:
    this.os.flush();
                        this.workbook.write();
                        this.workbook.close();
                        this.os.close();
                        this.os = null;
    can any body help me.
    Thanks in advance

    Err, I did help you. I did understand your problem; and I solved it for you. What was missing was that you apparently made no effort to understand what you were being told. Or even consider it. You just argued about it, as though you were the one with the solution, instead of the one whose code didn't work.
    And the other thing that was missing was the part where you said 'thank you' to me for solving your problem. Somewhat more appropriate than biting the hand that fed you, frankly. I do this for nothing, on my own gas, and it's extremely irritating when people keep asking about problems I have already solved for them. I am entitled to discourage that. It's part of making them more efficient actually.
    But it happens often enough that it also makes me think I'm just wasting my time. Probably I am.

  • Does anyone know how i can view PDF files using Galaxy Note 2?

    Does anyone know how i can view PDF files using Galaxy Note 2?
    This is what i have been doing;
    I click on the file i wish to view (via a portal)
    this file goes to notification widget (i drag down screen)
    notification/message says download complete
    i click on notification/message
    nows it says complete action using (here i only have 2 icon options 1= DB Text Editor 2 = HTML Viewer)
    I have installed Adobe Reader.

    Can you confirm if the downloaded file is a pdf file, that is it ends with .pdf?

  • How can i upload file using ajax post request and jsp

    Hi
    this is my code files
    addPhoto.jsp
    <html>
    <head>
    <title>Add Photo</title>
    <script>
    var optionNo = 0;
    var i=1;
    var val=0;
    var file = 0;
    var exten = new Array(".jpg",".jpeg",".gif");
    function addValues()
         for(var i=0;i<5;i++)
              optionNo += 1;
              oNewOption = new Option();
              oNewOption.text = optionNo;
              oNewOption.value = optionNo;
              addSelect.add(oNewOption);
    function addBoxes()
         var str = "";
         var j=0;
         val = document.getElementById('addSelect').value;
         for(j=1; j<= val; j++)
              str = str + '<font size=3>file:' + j + '</font>';
              str = str + '<input type="file" id=filepath'+ j +' name=file'+ j + ' onchange="uploadFile(hidden'+ j + '.value)"><div id="result'+ j +'"></div>
              str = str + '<input type="hidden" name="hidden' + j + '" value=' + j +'>';
         document.getElementById('addPhoto').innerHTML = str;
    function uploadFile(value)
    var str = "filepath" + value;
    file = value;
    var param = document.getElementById(str).value;
    var parameter = "filepath=" + param;
    alert(parameter.length);
    if(checkValidity(param))
    var url = "uploadFile.jsp";
    if (window.XMLHttpRequest) {
    req = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
    req = new ActiveXObject("Microsoft.XMLHTTP");
    req.open("POST", url, true);
    req.setRequestHeader("Content-type", "multipart/form-data");
    //req.setRequestHeader("Content-length", parameter.length);
    req.setRequestHeader("Connection", "close");
    req.onreadystatechange = callback;
    req.send(null);
         else
              document.getElementById("result" + file).innerHTML = "upload .jpeg,.jpg,.gif Files Only";
    function callback() {
    if (req.readyState == 4) {
    updatepage(req.responseText);
    function updatepage(str){
         document.getElementById("result" + file).innerHTML = str;
    function checkValidity(str)
         var i=0;
         var j=0;
         var str1 = str.substring(str.lastIndexOf("."),str.length);
         alert(str1);
         for(i=0;i<exten.length;i++)
         if(str1.search(exten) != -1)
              j++;
              break;
         if(j>0)
              return true;
         else
              return false;
    </script>
    </head>
    <body onload="addValues()">
    <h5>Add Photo(s)</h5>
    <select id="addSelect" name="addSelect" onchange="addBoxes()">
    <option id="select" selected>Select</option>
    </select>
    <div id="addPhoto"></div>
    </body>
    </html>
    uploadFile.jsp
    <%@page import="java.io.*"%>
    <%
    /*try
    String contentType = request.getContentType();
         System.out.println(request.getMethod());
         System.out.println("Content type is :: " +contentType); 
         if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0))
              DataInputStream in = new DataInputStream(request.getInputStream());
              DataInputStream in1 = in;
              int formDataLength = request.getContentLength();
    System.out.println(formDataLength);
              byte dataBytes[] = new byte[formDataLength];
              int byteRead = 0;
              int totalBytesRead = 0;
              while (totalBytesRead < formDataLength)
                   byteRead = in1.read(dataBytes, totalBytesRead, formDataLength);
                   totalBytesRead += byteRead;
              out.println("<br>totalBytesRead : " + totalBytesRead + " : formDataLength = " + formDataLength);
         } catch(Exception e) {
              e.printStackTrace();
         try
         String filePath = request.getParameter("filepath");
         System.out.println(filePath);
         File f= new File(filePath);
         String path = f.getName();
         String contentType = request.getContentType();
         System.out.println(contentType);
         //InputStream in = new FileInputStream(filePath);
         DataInputStream in = new DataInputStream(request.getInputStream());
         int formDataLength = request.getContentLength();
         System.out.println(formDataLength);
    byte[] buf = new byte[1024];
    OutputStream out1 = new FileOutputStream("c:/docs/" + path);
    int len;
    while ((len = in.read(buf)) > 0) {
    out1.write(buf, 0, len);
    in.close();
    out1.close();
         out.write("File Uploaded SucssesFully");
    catch(Exception e)
         e.printStackTrace();
         out.write("error while Writing File");
    %>
    the above code in request.getContentType() i am getting 0. I am not passing the content length. for the same application with out using Ajax i am
    getting the size of file... it is very very urgent for me.. pls help me out on this...
    Any one having the code on this pls mail me the code...
    my mail id ... [email protected]
    Regards
    Ashok Kumar

    Sure, you can upload a file, using a form input element of type file. You pick this up with a servlet, though you need a special request wrapper to sort out the multi-part request you get back that way (there's a suitable package on jakarta.apache.org/commons)
    The servlet decrypts the file and can pass the results to a JSP for display.
    Don't try to do the complicated stuff in a JSP, it all gets incredibly messy, and that's not what JSPs are for.

  • HT4864 I have been using AOL for many years as my ISP but now I want to close my account and use iCloud.  My challenge is I don't want to lose five years worth of emails and attachments saved in AOL personal folders.  Can I can transfer the files using iC

    I have been using AOL for many years as my ISP but now I want to close my account and use iCloud.  My challenge is I don't want to lose five years worth of emails and attachments saved in AOL personal folders.  Can I can transfer the files using iCloud?

    Do you receive AOL mail in the Mail app or on the website?

  • I can't transfer files using bluetooth, i can't transfer files using bluetooth

    i can't transfer files using bluetooth

    Bluetooth on iPads is mainly for use with keyboards and headphones, not for copying content
    Supported Bluetooth profiles : http://support.apple.com/kb/HT3647

  • Can't upload files using webDAV

    hi guys. i have a bit of a frustrating problem. im trying to upload zip file (~50MB) to a file hosting site (in.solit.us specifically) and i'm using webDAV to do so. i have no problem connecting to and mounting the server, but whenever i try and add anything to the dav disk it give me the error:
    "you cannot copy some of the items to the destination because their names are too long or contain invalid characters for the destination."
    i freaking hate this error message, whenever i get it it is so unwarranted. my zip file is titled "one.zip"... so no the name isn't too long or any such thing. the compressed files inside this zip file are also of similar length and composition. when i try and upload anything, even a smaller (regularly named) doc file, finder gives me the same error. what's more, when i try and create a new folder within the dav drive the "new folder" icon pops up for a few seconds then immediately disappears. which is kind of funny because when i then try and create another new folder it names it "new folder 2" -- which then subsequently disappeared as well. last time something like this happened to me it was a problem with the disk automatically ejecting itself after a couple of seconds. this does not seem to be the case here, console reads:
    "Feb 11 18:55:45 localhost webdavd[1641]: /Volumes/dav mounted"
    and then, when i manually eject it:
    "Feb 11 19:15:17 localhost webdavd[1641]: /Volumes/dav unmounted"
    console does not lie.
    any help would be much appreciated

    Hi Bilinbaja,
    I am not sure if you are using FTP to upload the files, however this error can sometimes refer to a hardware issue. Please try to toggle the hardware acceleration by right clicking on a item using the flash plug in and selecting settings.
    Please let us know if this improves the performance as well as if this also happens on other computers, or if it still happens after you delete cache and cookies. Each browser has its own cache, Firefox's cache may also be longer. [[How to clear the Firefox cache]]
    Did this help? We look forward to your reply.

  • Problem reopening and/or refreshing PDF files using Acrobat Reader V. 8.0

    I upgraded to Adobe Acrobat Reader V. 8.0 and have encountered problems refreshing PDF files in the Safari 2.0.4 browser when I am logged into the secure area for Value Line Publishing. Some of the PDF Files in this area can be opened and/or refreshed multiple times. Other PDF files in this area allow me to open them once. I cannot reopen those previously viewed files (or refresh the screen) -- after refreshing, the window changes to a blank white screen, and the files do not reopen.
    I am perplexed because I do not have difficulty refreshing the PDF files (within Safari) using the native PDF viewer, I did not have problems refreshing files using Acrobat Reader V. 7.0 and I do not appear to have problems refreshing PDF files using Acrobat Reader V. 8.0 when I am outside the secure area or on other web sites.
    I have replaced the Acrobat Reader plug-in, manually removed all remnants of previous versions of Acrobat Reader and reinstalled V. 8.0. and I also upgraded from Mac OS 10.4.8 to 10.4 9, all to no avail.
    I can clear the Safari cache files as a temporary solution, but I encounter the same difficulties with the “problematic” files once they have been opened again.
    I can also download the PDF files to my hard drive and refresh them multiple times within Safari and also using Acrobat Reader V. 8.0
    The software personnel at Value Line Publishing have investigated their system and have referred me back to Apple. Has anyone heard of similar problems associated with Adobe Acrobat Reader V. 8.0 used in conjunction with Safari 2.0.4?
    PowerBook G4   Mac OS X (10.3.9)  

    Hi Rodney
    Welcome to Apple Discussions
    This sounds like one of those "oddities", contributed to by a few sources.
    I can clear the Safari cache files as a temporary solution, but I encounter the same difficulties with the “problematic” files once they have been opened again.
    Wondering if you disabled the Safari Cache would the refresh function work correctly? As a test you can disable the Safari Cache by Emptying the Cache first via the Safari menu, then Quit Safari. Now go to the Finder>Your User Library>Caches>Safari. Single click on the Safari folder, then Apple Key + I to open Info panel. There, check the "locked" box. This prevents further additions to the cache. The downside, you lose your ability to upload images etc. within Safari (my cache is disabled, so I use Firefox for the uploads).
    Then restart Safari. Try the PDF from within Safari.
    Post back

  • HP Pavilion dv3 notebook PC can't burn files using the primary dvd drive.... always hangs in 5%

    my  HP Pavilion dv3 -4103TX notebook PC have a problem in burning any files.. until now it doesn't work. I update the software and still can't burn any files using the built in dvd rom. please help me how to fix it... 

     Try reseating (Remove and reinsert) the DVD drive. You can instructions on page#50 over here
    After this is done,Run Microsoft fixit from below link
    http://go.microsoft.com/?linkid=9740811
    //Click on Kudos and Accept as Solution if my reply was helpful and answered your question//
    I am an HP employee!!

  • Access time machine backup files using Tiger (OS10.4.11)

    My G5 with leopard installed is under repair and I am using my old iBook which can not run Leopard so I am on tiger 10.4.11. I wanted to access back up files on my external hard drive (backed up with time machine) but when I enter the back up files they all are aliases and have no data attached. I know the data are there by the memory taken up on the external hard drive. How can I access my files using Tiger - surely it can be done. Where are the real files? If anyone knows how please let me know. Thanks.

    I have done as you suggested and clicked on the show original but I get this message " The volume cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again." I have the external disk already connected as that is what I am trying to recover the file from i.e. where I find the aliases. Any further suggestions. Thanks

  • I can't recieve files using bluetooth.

    I have a problem, my notebook can send files via bluetooth, but I can not recieve, it comes up with the following message, "service not supported"
    Any help?

    Enable *Bluetooth Sharing* in the Sharing system preferences pane.

  • Can't attach file using webform

    Installed Lion and am having some difficulties.  Before whenever I made a file I could use a webform, which would open my finder and I'd do a quick search (usually something as simple as just selecting the "Today" option, which no longer exists under Lion, but that's another digression) and select the file.
    Now with lion the finder does not find the file.  I can see the problem is that its "hidden" in the contents of an application (in this case the iPhoto library), but there is no way for me to access those contents.  On my desktop I can get to them through the finder by selecting that app and then hitting "show contents", but when trying to upload it or make it an attachment on some webform or even my imac's own e-mail client I can't do that, and those files just stay "hidden" under the inaccessible iPhoto app.  Those files have always been accessible under previous OSs, its also where any of the photos from my iPhone are imported to when I do that so I can't imagine they'd be intentionally locked from me, so I assume there's just a step I'm missing?

    Greetings,
    In part it depends on the website you are using and how they access media.  If the website uses the Mac OS built in Media browser (like this forum does) you will see the media browser when you hit "attach" or whatever the add button is for the website you are using:
    Clicking on "Photos" in the Media column will give you access to the contents of the iPhoto Library.
    If the website you are using does not tap into the Mac OS media browser then you will have to launch iPhoto and drag the image(s) you wish to use to an accessible location like the desktop and then attach from there.  Once the image has been attached you can then discard the copy that you dragged to the desktop.
    If the website you are using is a public one you can tell us what it is and I'll take a look at it.
    In the case of "my imac's own e-mail client" I assume you mean "Mail"?  Mail has it's own built in photo browser button which also gives you access to your iPhoto Library when you make a new message:
    Hope that helps.

  • Can't open files using relative paths

    That seems straightforward but i can't figure out how I can have access to
    image files stored in the same directory with the compiled classes.
    Here's my what I want to do
    windowsButton = new JButton("Windows", new ImageIcon("icon_cool.gif"));
    but it doesn't work :(
    however if i specify the absolute path to images everything works fine.
    I tried also copying images into the source directory it didn't work.
    I thought about a workaround like If i could get the absolute path of the
    class that loads images that would be great but i have no clue how to get
    that absolute path.
    i code in netbeans so src and classes are separated.
    Thanks in advance for your replies. If u feel like u need more details i'll
    try to provide them :)

    In addition to jverd's answer, here is a tutorial
    dealing with images and icons
    "How to Use Icons":
    http://java.sun.com/docs/books/tutorial/uiswing/misc/i
    con.html
    It gices some examples of how to use the
    getResource() method to load your images.As the tutorial points out, simple path is more general than using class loader and resources for it.
    If OP's problem is on the line of this simplicity, he has to learn relevant details of a particular IDE or,
    if he hates the kind of learning, he'd be better off throwing away and foget it forever.
    It reminds me of a long-time belief that IDE is too big an /unnecessary/ obstacle for beginners.
    Does anyone know, does Eclipse have similar awkwardness for resource path issue?

Maybe you are looking for

  • Setting depth of movie clips

    I have 4 movie clips on the stage. They are named logo1, logo2, logo3, logo4. I have them set out cascading. So the only clip that is fully visible is the front clip but the top of the other clips can still be seen. When a user clicks on one of the b

  • Lock on DB table due to polling adapter

    hi I have a DB table trans_xml and around 9 BPEL services have DB pollers pointing to this table. Poller picks the rows which have a flag set as "COMPLETE" and update it to "SENT". I have used logical delete. Recently Our unix box restarted. now i ca

  • ITunes store: get out of genius movie recommendation

    I can't get back to home on the movie stuck in genius

  • Getting preinstalled apps back on iTouch (without syncing)

    I recently had to reset my iPod for some issues that i was having with it (I got those resolved), but I had some apps were free (limited time, otherwise they are paid), but I forgot to sync my iTouch before I reset it (I didn't buy anything between t

  • After waking from sleep list of users is not displayed

    I have two users configured on my MacBook Pro.  With Snow Leopard, if a user put the compter to sleep, on wakup you could switch users.  After installing Lion, when a user puts the compter to sleep, only that user is able to wake it up. The screen sh