Advanced CAN Frame to Channel Conversion: Error with LV 8.5.1

Hello!
I´ve tried to read in a DBC-file with the "Advanced CAN Frame to Channel Conversion Example" on a LabVIEW 8.5.0 system and it works fine.
On a LabVIEW 8.5.1 System I get the error:
Scan From String (arg 6) in CAN FtoC Parse Channels and Mode.vi->CAN FtoC Parse CANdb Messages and Channels.vi->CAN Channel Data Import.vi
Does anybody know a solution for this error?
Thank you for your help,
demo66
regards,
demo66

Hi!
It is a problem of localized decimal point.
In a german Windows, LabVIEW will use Komma as decimal point.
So the Scan From String.vi will convert string 0,21 in a double but not 0.21. From the file dbc you receive the values with period "." that's why it create the error 85.
You have 2 possibilities: change the localized decimal point in LabVIEW (Tools -> Options) or you say to the Scan From String.vi to use "." as a decimal point.
Go to CAN FtoC Parse Channels and Mode.vi and search the 2 Scan From String.vi
Add at the beginning of the Format String %.; so that the format String will use the "." as decimal point (see Attachement).
After that the example will work.
Best regards
Ken
Attachments:
Scan From String.jpg ‏51 KB

Similar Messages

  • Advanced CAN Frame to Channel Conversion Reference Example

    Hi!
    I wonder if any of you guys can help me converting this example into LV7.1.
    The example is under:
    http://zone.ni.com/devzone/cda/epd/p/id/5826
    Thanks in advance!!!
    Ogulcan
    Solved!
    Go to Solution.

    Ogulcan,
    The example that you are asking for is built with a different version of the NI-RIO and Real-Time drivers.  Downgrading this example would require a system with LabVIEW 8.5 or 8.6 with the most current RIO and Real-Time drivers, and a system with LabVIEW 8.0 and an older version of the RIO and Real-Time driver.  It may also require a third system set up up LabVIEW 7.1 and even older versions of the RIO and Real-Time drivers.  The changes in these drivers and the included VI's since LabVIEW 7.1 would also likely make this example not work with LabVIEW 7.1, which may be why it was posted for LabVIEW 8.5.
    Eric K
    Applications Engineering
    National Instruments

  • Deterministic CAN Frame to channel conversion

    Hi, I need to create a CAN logger which should record (in TDMS format) and show in real time (in a mixed signal graph) several channels in deterministic mode.
    Using an interface wich supports the Channel API (such as NI PXI-8464) it is all right and the software works properly.
    The problems appears when the aquisition is done through a NI USB 8473, doing the frame to channel conversion with the two virtual channels (CAN256 and  CAN257). The conversion is done in the way shown below:
    where in the CAN256 i transmit in "timestamped mode"
    While the time goes on, the logged signal is more and more delayed respect the real one until the buffer fills and an error is generated.
    What i need is a Frame to Channel conversion wich keeps deterministic, also with a small constant delay.
    Any solution?
    Thanks a lot
    Fabio

    Hello Fabio,
    Usign the virtual ports for frame to channel conversion is not very efficient.  I would suggest using the frame to channel conversion library.
    Let me know if you have any questions about it.  Have a great day.
    O. Proulx
    National Instruments
    www.ni.com/support

  • CAN Frame to channel conversion using CVI

    Hi,
    I am using USB-8473 can bus modules in a project.  I would like to display the channel data by using the Frame to Channel conversion library.  Is there a version that can be used with CVI?  I am using CVI 9.1
    Thanks
    John

    Hello John,
    I do see what you mean, the VIs actually just call into a C dll. I dowloaded to the Library after reading your post and opened up the VIs. It looks like each is just a small wrapper around Call library funciton node. It is definately silly that the VIs are so well documented but not the functions of the dll itself. Based on browsing a few of these VIs, it would be pretty easy to write the wrapping code in C and call all the same functions of frchconvlib.dll. 
    I will look into whether this library was written by a third party or NI, and if its NI property I would like to expose the dll itself to users like yourself. 
    I do apologize that this is the only current solution. I will let you know what I find out.
    This kind of feedback it important to receive, so thank you for voicing you concern.
    Best,
    Anna K.
    National Instruments

  • CAN Frame to Channel Conversion Library

    Hi,
    Is it possible to use this DLL with CVI? If so, is there any example code or a user document?
    Cheers,
    John
    John C
    Solved!
    Go to Solution.

    Hi JGC
    Unfortunately this Library is only meant to be used from LV and LVRT, an equivalent Library does not exist in CVI.
    With that said, you may be able to dig into the LabVIEW VI's of the Frame Channel Conversion Library and pull the function prototypes from the Call Library Function Node on the block diagram of each one. With this information, you could call the functions from the dll (usually located here: C:\Program Files\National Instruments\NI-CAN\CAN Frame Channel Conversion Library 1.0.2\Drivers) from within C.
    Kind Regards
    Chris
    Chris | Applications Engineer NIUK

  • UISelectMany - Conversion error with HashMap Property

    Hi,
    I have a Backing Bean with a HashMap Property.
    public HashMap getItem()
    public void setItem(HashMap map)
    so I bind a Value of an UIInputText Component like that:
    <h:inputText id="txtname" value="#{MyBean.item['myKey']}" />
    this works pretty well.
    But when I try to do the same with an <h:selectManyCheckbox> Component I got a "Conversion Error".
    For what reason? I expected an Array or List Object.
    Thanks for help
    Ralph

    I solved the problem by creating a custom converter, which checks if the current valueBinding is null.
    If so, it replace the valueBinding with an empty ArrayList().
    public class MultiValueConverter implements Converter {
         public final static String CONVERTER_ID = "org.imixs.workflow.j2ee.faces.MultiValueConverter";
         public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException {
    // no changes
    return value;
         public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException {
    // Check if current value Binding is bind to an null-Object
    javax.faces.el.ValueBinding valueBinding=component.getValueBinding("value");
    if (valueBinding!=null && valueBinding.getValue(context)==null) {
    // replace binding with empty ArrayList
    valueBinding.setValue(context,new ArrayList());
    // no changes
    return value.toString();
    you can find the full code under www.imixs.org (an open source project for a EJB based workflow engine)

  • How can I fix this printer error with Samsung SCX-4300 and SCX-4521f on Windows Server 2008 R2?

    I have two printers installed on Windows Server 2008 R2 (64-bit):
    1. Samsung SCX-4521f
    2. Samsung SCX-4300
    There are two computers (Windows 7 Professional, 32-Bit) connected to this server that utilise these shared printers.
    The drivers installed are as follows:
    SCX-4x21_Win7_Print.exe (Win 2000/XP/2003/Vista/2008/Win 7    3.04.96:03    Print Driver    11 Dec, 2009    12.37    MULTI LANGUAGE)
    SCX-4300_Print.exe (Win 2000/XP/2003/Vista/2008/Win 7(32,64bit) 3.04.95:07 Print Driver Jan 19, 2011 53.07 MULTI LANGUAGE)
    After printing documents for some time (within a 24 period) the printers no longer respond to print requests.
    On the server opening "Control Panel\Hardware\Devices and Printers" shows the two printers with yellow exclamation marks.
    The "SCX-4x21" printer shows the "Status" as "Needs troubleshooting" and "Printer: Error".
    The "SCX-4300" printer shows the "Status" as "Needs troubleshooting".
    Neither will print a test page.
    Searching for new drivers automatically returns saying: "The best driver software for your device is already installed".
    The error persists and nothing will print.
    When double-clicking on the "SCX-4x21" printer (or going to "Control Panel\Hardware\Devices and Printers\Samsung SCX-4x21 Series") you see the following:
    "Printer: Error" and "N document(s) in queue".
    Clicking on either of these brings up the print queue and shows a document with the status of "Error - Printing".
    As each job with an error is cancelled the next one attempts to print and also displays an error like the last.
    Once all the jobs are cleared the printer information says "Printer: Ready".
    Sending a "Print Test Page" sends the printer into an error state saying "Printer: Error".
    With the "SCX-4300", sending a "Print Test Page" displays a bubble saying: "Toner Empty: Replace Toner".
    However, I can't see any specific error messages.
    How do I find out what exactly "Needs troubleshooting"?
    Please can anyone advise further?

    The printer (SCX-4300) has stopped again.
    Since it has been stopped I have done your recommendations:
    Unticked the "Enable bidirectional support" option under the "Ports" tab in the printer properties.
    Set the "Interactive Services Detection" to Automatic and started it.
    Unfortunately the printer did not start printing, the print jobs did not restart or delete.
    I decided to check the Operational logs that we enabled.
    The first job I see goes like this:
    Information: Rendering job 41.
    Error: The print spooler failed to delete the file C:\Windows\system32\spool\PRINTERS\00041.SHD, error code 0x2. See the event user data for context information.
    Information: The print job 41 was sent through the print processor SSE1MPC on printer Samsung SCX-4300 Series, driver Samsung SCX-4300 Series, in the isolation mode 1 (0 - loaded in the spooler, 1 - loaded in shared sandbox, 2 - loaded in isolated
    sandbox). Win32 error code returned by the print processor: 0x0.
    Information:Printing job 41.
    Information:Spooling job 41.
    This job actually printed.
    Other jobs printed fine with no error.
    There are no other errors in the "Operational" log other than the "print spooler failed to delete" error.
    Any ideas what to try now?
    Update: Unticking the "Enable bidirectional support", clearing the print queue and then trying again seems to have fixed the problem for now.

  • How to check a lot of conversion errors with one TRY-CATCH?

    Hi,
    I've to import a lot of data from a flatfile.
    To avoid short dumps when there are non-numeric data's for a numeric field in the file, I load every record in a structure that have only CHAR fields.
    Then I move this fields in a TRY-Catch block to the real fields like this:
    TRY.
        field1 = field_from_file1
        field2 = field_from_file2
        field3 = field_from_file3
    CATCH cx_sy_conversion_no_number INTO lr_exception.
        PERFORM fehler USING lr_exception.
    ENDTRY.
    This construct works until the first field has a conversion error. However I will test all fields to get a complete list of the errors. And I am to lazy to make a TRY-CATCH construct for hundred of move-statements.
    Is there a better trick to check the success of <b>all</b> move operation?
    Regards,
    Stefan

    Hi Stefan,
    sorry, the development system is down right now, so I could not test. But I'm convinced you can figure it out:
    You may specify the parameters of a method as TYPE REF TO DATA.
    Then, in the calling routine you may have
    data:
      anyrefsource type ref to data,
      anyreftarget type ref to data.
    GET REFERENCE OF p_source INTO anyrefsource.
    GET REFERENCE OF p_target INTO anyreftarget.
    call method try_conv
      exporting
        source = anyrefsource
        target = anyreftarget.
    and in the method:
    ASSIGN source->* TO <fs_source>
    and so on...
    BTW: I know you have to use typed parameters in OO. Can't you use "TYPE ANY"?
    regards,
    C.

  • Conversion error with non-primitive types

    I'm wondering if anyone else is seeing this problem or has a potential solution.
    The problem, in a nutshell:
    I have beans that use non-primitive types (Float instead of float) in the getters and setters. However I keep getting conversion error problems. If I switch to primitive types, I don't get conversion errors. The built-in FloatConverter says (in the documentation at least) that it supports both primitives and boxed types. This was all working in EA4, though. I am discovering this problem as I migrate from EA4 to 1.0.
    The code is pretty straightforward:
    public class Bean implements Serializable {
    public float getProp() {...}
    public void setProp(float) {...}
    public Float getPropOld() {...}
    public void setPropOld(Float) {...}
    <!-- works -->
    <h:inputText id="floatinput" value="#{BeanInstance.prop}"/>
    <!-- doesn't work -->
    <h:inputText id="floatinputold" value="#{BeanInstance.propOld}"/>
    Any ideas? I have tried explicitly calling the FloatConverter but that gave the same problems.

    Okay, I figured out my problem.
    The JSF spec implies that f:convertNumber may be used inside an h:inputText tag. The early versions of Core JSF go further and show f:convertNumber being used inside an h:inputText tag in one of the examples. (Chapter 7, conversions).
    However, this has been the source of my problem. When using f:convertNumber, the converter would automatically determine the data type without regard to the data type in the backing bean. Hence, it would try to pass Longs or Doubles to the bean instead of Floats.
    I believe this may be an issue in the 1.0 FR release.

  • LSMW: Codepage conversion error with a Unicode data file

    Hi all,
    I am currently developing a LSMW upload program which has to use a Unicode data file. The underlying system/target system is NOT a Unicode system. The data file also contains non-Latin2 characters.
    In the step "Specify Files", I have specified my Unicode data file and specified the codepage type "4110 - Unicode UTF-8".
    In the step "Read Data", then I get the runtime error "CONVT_CODEPAGE", exception "CX_SY_CONVERSION_CODEPAGE".
    I would expect that all non-Unicode characters are automatically transformed to "#", but the conversion progam breaks. The character transformation to "#" would be fine.
    I am really wondering why, at first, I am able to specify the Unicode codepage type, but then, the file cannot be converted correctly.
    What do I make wrong, what can I do to avoid the error?
    Thanks a lot in advance for helping me out...
    Regards,
    Klaus

    Hello,
    You need convert the file with the format UTF-8. In notepad you can choose this option.
    Regards,
    Oscar.

  • Channel login error with HTTPS connection

    Hi!
    I have developed a Flex application which relies on remote object invocations to BlazeDS. I have applied custom authentication to the AMF channel, so login is required to invoke remote objects over the channel.
    Application worked perfectly in development environment but at production environment I cannot get channel sucessfully logged in. I have debugged application and no response is obtained from server after channel.login() invocation. Backend resides on Apache Tomcat that listens on port 80. Server is fronted by a Proxy Server that sets HTTPS protocol (https://domain:80/context is set at browser URL although I request http://domain:80/context).
    At development environment requests where made with HTTP protocol so I wonder if this issue is related with the HTTPS protocol present in the new server.
    Do I need to configure my channels to use secure (HTTPS) communications? Why am I not getting any error response from channel login operation?
    I reviewed server logs and It seems login AMF invocation are been tracked but I cannot get any response.
    Thank you in advance.

    Thank you Alex.
    I've set this configuration in services-config.xml. First I tried using SecureAMFEndpoint but then I got an exception on Server that said a secure destination was needed (as it was secured) but was not receiving a secured request. I saw a post in a forum that said AMFEndpoint must be used instead of SecureAMFEndpoint when SSL is applied to a proxy that redirects request to Tomcat, not to Tomcat itself, and this is my case.
    <services-config>
        <services>
            <service-include file-path="proxy-config.xml" />
            <default-channels>
               <channel ref="amf-channel"/>
            </default-channels>
        </services>
        <channels>
            <channel-definition id="amf-channel" class="mx.messaging.channels.SecureAMFChannel">
                <endpoint
                    uri="https://{server.name}:{server.port}/{context.root}/messagebroker/amf"
                    class="flex.messaging.endpoints.AMFEndpoint" />
                <properties>
                    <add-no-cache-headers>false</add-no-cache-headers>
                </properties>
            </channel-definition>
    </services-config>
    After setting this, channel is succesfully logged in and a remote invocation that is executed inmediatly after channel loggin is completed works OK. But when later I call another remote objects, I get request timeout errors and server is not reached.
    Any idea of the issue?

  • "Can't get folder 'a'" Error with Applescript

    Here is my complete applescript application. I am supposed to select a series folder, and it goes into the folder and for each season folder does something inside, including grabbing the name of the season folder. But it keep throwing an error on the line set folderName to name of folder aFolder saying it can't get name of folder "a", but the only folders inside the folder I select are Season 1, Season 2, and Season 3. Additionally, looking at the replies part of the script editor it looks like it does "M" first with no errors, and they goes to "a". I have no idea where this is coming from so help me if you can. Disregard the weird formatting, copying everything from the script editor into here messed everything up. Thanks.
    set seriesFolder to (choose folder with prompt "Select TV Series Folder") as text
    tell application "Finder" to set tvName to "list of " & (name of folder seriesFolder as text) & " episodes"
    openWebpage(tvName)
    repeat with aFolder in seriesFolder
      tell application "Finder"
      set folderName to name of folder aFolder
      set whichFile to every file of folder aFolder
      sort whichFile by name
      end tell
      set sNumber to "0" & ((characters -1 thru -1 of folderName) as string)
      set epNum to 1
      repeat with aFile in whichFile
      if epNum is less than 10 then
      set ifZero to "0"
      else
      set ifZero to ""
      end if
      set textBox to "What is episode title for S" & (sNumber as string) & "E" & ifZero & epNum & "?"
      tell application "Finder"
      set filename to name of aFile
      set nameEnding to ((characters -4 thru -1 of filename) as string)
      display dialog textBox default answer ""
      set text_returned to text returned of result
      set name of aFile to "S" & (sNumber as string) & "E" & ifZero & (epNum as string) & " - " & text_returned & nameEnding
      end tell
      set epNum to epNum + 1
      end repeat
    end repeat
    on openWebpage(input)
      set seriesName to input
      set needle to " "
      set replacement to "+"
      set searchName to search_replace(seriesName, needle, replacement)
      set address to "http://www.en.wikipedia.org/w/index.php?search=" & searchName & "&title=Special%3ASearch&go=Go"
      tell application "Safari" to open location address
    end openWebpage
    on search_replace(seriesName, needle, replacement)
      set old_delimiters to AppleScript's text item delimiters
      set AppleScript's text item delimiters to needle
      set temp_list to every text item of seriesName
      set AppleScript's text item delimiters to replacement
      set return_value to temp_list as text
      set AppleScript's text item delimiters to old_delimiters
      return return_value
    end search_replace

    Try replacing the beginning of the script with:
    set seriesFolder to (choose folder with prompt "Select TV Series Folder")
    tell application "Finder"
    set tvName to "list of " & (name of folder seriesFolder as text) & " episodes"
    tell me to openWebpage(tvName)
    repeat with aFolder in (get folders of seriesFolder)
    set folderName to name of aFolder
    (109908)

  • Can't open Dashboard Design - Error with Excel

    HIi, I can't open an already created Dashboard Design beacuse when I'm going to open it, it appears the following error: " Couldn't connect to Microsoft Excel. To avoid the damage of the data, the program should by close."
    Anyone of you have the same problem? I need help!
    Thank you
    Edited by: Estibalitz de la Cal on Jan 18, 2012 3:16 PM

    Hi,
    It appears that your current Excel program is corrupted.
    2 solutions :
    - Show task control panel (CTRLALTDEL) and kill all the processus linked to EXCEL
    or
    - reboot your computer to kill all the  EXCEL processus hidden which cause your error.
    Run again Dashboard Design and tell us if it's running correctly.
    Regards,
    William

  • Beware: conversion error with dates

    When I converted my pdf to xlsx format, some dates in a table were not converted correctly. In the pdf file, the dates were in mm/dd/yyyy format, but if the day was between 1-12, Export PDF treated the date as if was in dd/mm/yyyy format. It couldn't do that for dates with day 13-31 because that would have been an invalid month so these dates were converted correctly. This problem does not occur when converting the pdf file to Word docx format.
    Is this a known problem?

    Hi,
    Would you send your PDF document to [email protected] as an email attachment? 
    I will check it from my end.Please add the link to this forum post for reference.
    Regards,
    Florence

  • I can't install iTunes, because error with apple mobile divice

    Necesito que alguien me ayude. No puedo instalar la nueva version de iTunes por que me da los siguientes errores:
    1. Fallo al iniciar el servicio Apple Mobile Device. Compruebe que dispone de suficientes privilegios para iniciar servicios del sistema.
    le di ignorar y luego al querer iniciar iTunes me dice: erro 7 (windows error 12)
    que puedo hacer

    I have the same problem. HELP!

Maybe you are looking for

  • ITunes/Outlook 2007/ Windows 7 sync prob

    Outlook 2007 sync issue with iTunes 10.4.0.80 on Windows 7. This config has been working ok syncing with outlook calendar and contacts. All of a sudden iTunes no longer sees outlook as an option for syncing under 'info' and the contact/calendar synci

  • Preventing automatic scientific notation conversion for excel output?

    I have a column in a report that contains a mixture of numbers and letters and hyphens. If the only letter is E, then I get scientific notation instead of the actual text when I run the report for excel output and open it in excel. For example: 18570

  • PO process with multiple vendors

    Hi All, Finished product- BOM Header-A0001 Components---A1, A2, A3, A4. Vendor A will supply A4 (sheet-10ft) material to Vendor B. Vendor B will use the 8ft of A4 material and 2ft scrap and will sent to Vendor C. Vendor C will use the components A1,

  • ABAP WEBDYNPRO Application Administrative DATA URL HOST & PORT empty/blank

    My ABAP Webdynpro applications do not display the preview layout in SE80 just white page - no errors ANYWHERE. Also in SE80 the properties on the application look like: https://:/sap/bc/webdynpro/sap/z_rep_text.  Don't know why https, but I think if

  • Pre is deleting e-mails on phone when I open up e-mails on my PC

    Well, I finally got my e-mail up and running.  For the most part, fairly seamlessly - just needed to find an old password or two.  So, I am able to send and receive without any issues. My problem occurs when I have e-mail that arrive in my Inbox on m