Converting LIN Data collected w/ NI-USB 8476s

Hello All,
I am currently in the process of attempting to take in specific hex bytes via a NI-USB 8476s LIN interfacing piece of hardware (communicating with a sensor that uses LIN as well) and translate these specific bytes to decimal format.  I know the exact channel and position of these bytes that I need converted to decimal (Channel 35 and the 1st 8 BITS on the channel.. so the first BYTE), however I am having trouble approaching the problem as I'm not very familiar with LIN.
The motivation for doing this is to be able to output an analog signal in real-time (through other means) which is proportional to the decimal values (converted from hex LIN), and feed this analog signal to an embedded microcontroller.
I have attached a copy of the VI that I have successfully used to read the hex LIN signals in real-time in the Labview Workspace.
Thank you!
Attachments:
LIN_Read_Duplicate.vi ‏35 KB

Hi ColWal,
It sounds like you are getting the data but having trouble accessing the raw decimal value of the first element in your LIN frame. The raw data comes in as an Array of Clusters.
As you can see here,
To access the data, we can index the array to get a single LIN Frame, and then use unbundle by name to get just the U8 Array of data, after which we can index array to get the single first element from the frame. You can then use that data in LabVIEW however you need it.
Joey S.
Software Product Manager
National Instruments

Similar Messages

  • Hi, I am using USB 8476s to communicat​e to a slave unit in LIN network using LabVIEW7.1​. Can anyone tell me how i can send a header file plus 1 byte of data to the slave in a LIN network. or how do i use ldf file. i want to read responses from the slave

    Hi,   I am using USB 8476s to communicate to a slave unit in LIN network. Can anyone tell me how i can send a header frame plus 1 byte of data to the slave in a LIN network. or how do I communictae with slave using LabVIEW7.1.
    I want to read responses from the slave. When i tried with labview exapmle programs or even using MAX also, while doing some switching action in my slave, i am getting response as Device inactive with timestamp but there is no data format. 
    And I have Lin Description File. Can you suggest me how to use ldf file.
    I am at customer place and It would be great help from you if you can suggest me at the earliest. Thank you

    you may use the LDF Starter Kit to use LDF informations in your application
    http://joule.ni.com/nidu/cds/view/p/id/665/lang/en

  • Can you program a Slave's Node ID or Zone ID using the USB-8476 as the LIN Master?

    I am planning on using the USB-8476 LIN interface as the LIN bus Master in an application.  The application would require the USB-8476 (Master) to program a Node ID and Zone ID into a slave device that is on the LIN bus.  The slave device is a PIC12F1822 mcu + MCP2021 LIN transceiver.  After reading through the User/Software Manual for the USB-8476, it does NOT seem possible to assign an ID to a slave device.  It seems like you can only communicate with slaves that already have an ID programmed into their memory.  The Node/Zone ID terminology is used by our customer and may not conform exactly to the IDs associated with LIN.  I am new to the LIN world, so please let me know if you need more information about what I'm trying to accomplish.  Can you program a Slave's Node ID or Zone ID using the USB-8476 as the LIN Master?

    No need to respond to this topic.  The company that builds the slave device has a communications specification that was recently provided to me.  I should be able to use the NI USB-8476 and a call to the ncWrite function (NI-CAN Frame API function) to accomplish my goals. 

  • How to display data collected in main vi to indicators in another vi

    Hi,
    I am collecting data using NI 6251 USB DAQ
    in the main vi but as i have too many controls and indicators on the
    main vi front panel. so i want to display the indicators(graphs) in another vi. i also
    want the vi with the graphs to open automatically. Does any one know how
    i can do this? I would
    really appreciate any help.
    Thanks,
     ygupta
    Solved!
    Go to Solution.

    Hi,
    Search forum for the sub vi concept.
    For your reference i have attached a example.
    you can see procedure for the same on the net.
    regards,
    Shrek
    Attachments:
    graph.zip ‏11 KB

  • Customer Name on Sales Order not in Data Collections

    Hi,
    I am looking for some help. My company just did an upgrade from 11i to R12 in the middle of May. As part of the upgrade we installed ASCP. We have noticed that certain customers are not being collected when running Standard Data Collections. We have open sales orders in the system for the customer. The sales order are being collected properly and appear in the plan. When we show the Customer field in the 'Supply/Demand Screen' in ASCP, the field is blank for select customers. Is there anything on the customer master or sales order line that would prevent the customer name from being collected? Any insight would be helpful.
    Thanks
    Rich

    You can go to order organizer screen select the OA NO which you are not able to see in the ASCP workbench, go to line items---using show field get the Demand visible
    tab on screen-----default value should be 'Y' if blank then then that could be the one of the reason.

  • Data Collection -- Planning Data Pull process failed

    Hello Experts,
    I am having a problem with data collection, the result of Planning Data Pull was completed error. It seems the problem is on the Planning Data Pull Worker.
    I am using 2 worker to run Planning Data Pull, and both result was errors. Below are some of the errors log:
    16-MAY 19:11:34 : Procedure MSC_CL_SETUP_PULL.LOAD_CALENDAR_DATE started.
    Into populate_rsrc_cal
    16-MAY-2011 19:11:40
    APS string is Invalid, check for Error condition
    16-MAY 19:11:40 : Error in Routine GMP_CALENDAR_PKG.POPULATE_RSRC_CAL.
    16-MAY 19:11:40 : User-Defined Exception
    16-MAY 19:11:40 : User-Defined Exception
    16-MAY 19:11:40 : Error_Stack...
    16-MAY 19:11:40 : ORA-06510: PL/SQL: unhandled user-defined exception
    16-MAY 19:11:40 : Error_Backtrace...
    16-MAY 19:11:40 : ORA-06512: at "APPS.MSC_CL_PULL", line 6218
    ORA-06512: at "APPS.MSC_CL_PULL", line 1583
    Help me please.
    Thanks & Regards,
    Andi

    This error shows up when it cannot find any organizations.
    Use the sqls below to identify this
    1. select MSC_CL_PULL.get_org_str(&instance_id) from dual ;
    2. select instance_code, instance_id from msc.msc_apps_instances where instance_code='&instance_code'
    3. select * from apps.msc_instance_orgs where sr_instance_id= &instanc_id
    sql 1 should in principle return the orgs available. If this returns null or -9999, then it's an orgs problem
    sql 3 will show the available orgs.
    If the organizations are enabled for planning in the ASCP instances form, then run a targeted refresh for trading partners (suppliers/customers/orgs). If this works with no errors, then look at the table msc_trading_partners. It should contain records for the orgs with partner_type = 3

  • Schedule line date in Sale order for backward sched.

    Dear Experts,
    In my MTO Scenario, I want to Use Backward Scheduling, so as any change in Schedule line dates in Sale order shall take effect at least in planned order Stage, i.e in output of MRP,
    But not happening so..
    I  have customized OPU5 and checked OPU3 as well,
    Please suggest...
    Regards
    Raghu

    HI Mario,
    Thanks for reply,
    I have not worked in this strategy but will try,
    What i found was, in Planned orders detailed scheduling tab, the Scheduling type appeares to be Forward, but when i convert it to Production order it shows backward scheduling.
    This duel behavior is difficult to understand.
    Regards
    Raghu

  • How to convert an array collection instance to a complex object for interaction with webservice

    Hi there,
    I have a stubborn problem that I am trying to work out the best way to solve the problem.  I am interacting with a WebService via HTTPService calling a method called find(String name) and this returns me a List of ComplexObjects that contain general string and int params and also lists of other Complex Objects.  Now using the code:
    ArrayCollection newOriginalResultsArray = new ArrayCollection(event.result as Array)
    flex converts my complex objects results to an arraycollection so that I can use it in datagrids etc.  Now up until this part is all good.  My problem is when getting a single instance from the results list, updating it by moving data around in a new datagrid for example - I want to interact with the webservice again to do an create/update.  This is where I am having problems - because these webservice methods require the complex object as a parameter - I am struggling to understand how I can convert the array collection instance back to my complex object without iterating over it and casting it back (maybe this is the only way - but I am hoping not).
    I am hoping that there is a simple solution that I am missing and that there is some smart cookie out there that could provide me with an answer - or at least somewhere to start looking. I guess if I have no other alternative - maybe I need to get the people who built the service to change it to accept an array - and let them do the conversion.
    Any help would be greatly appreciated.
    Bert

    Hi Bert,
    According to my knowledge you can use describeType(Object) method which will return an XML... That XML will contain Properties and values just iterate through the XML and create a new Object..   Probably u can use this method...
    public function getObject(reqObj:Object,obj:Object,instanceName:String,name:String=null,index:int=-1):Obj ect
                if(!reqObj)
                    reqObj = new Object();
                var classInfo:XML = describeType(obj);
                var className:String = instanceName;
                if(name!=null)
                    className=name+"."+className;
                if(index!=-1)
                    className=className+"["+index+"]";
                for each (var v:XML in classInfo..accessor)
                    var attributeName:String=v.@name;
                    var value:* = obj[attributeName]
                    var type:String = v.@type;
                    if(!value)
                        reqObj[className+"."+attributeName] = value; 
                    else if(type == "mx.collections::ArrayCollection")
                        for(var i:int=0;i<value.length;i++)
                            var temp:Object=value.getItemAt(i);
                            getReqObject(reqObj,temp,attributeName,className,i);
                    else if(type == "String" || type == "Number" || type == "int" || type == "Boolean")
                        reqObj[ className+"."+attributeName] = value; 
                    else if (type == "Object")
                        for (var p:String in value)
                            reqObj[ className+"."+attributeName+"."+p] = value[p];
                    else
                        getReqObject(reqObj,value,attributeName,className);
                return reqObj;
    Thanks,
    Pradeep

  • Converting a date time to a date only

    Post Author: Dockman
    CA Forum: Formula
    I am working on a report that has a running total field.  The running total field keeps a running total and resets every time that a date changes.  the problem is that my dates include times, therefore the running total resets on every line.  How can I convert my date (in date time format) to be only a date so that it does not reset on every line?
    Obviously, I am not a programmer so I apologize if this is a stupid question.

    Post Author: yangster
    CA Forum: Formula
    if you are doing it inside crystal you can use the date functiondate({your.datetimefield})if you are doing it at the db level in a command this will vary depending on your db

  • Convert XMP Date and Time

    Hi, in my script I am trying to read the Date and Time using the XMP functions of a selected file in bridge.  Then, I want to convert that date and time into a format that looks like: "01/12/10 | 01:23 PM" and write that to another metadata field like the description.  Im stuck on trying to convert the date and time into what I want it to look like?  Can anyone help, thanks!
    Here is the part of the code I'm having trouble with:
    When I read the dateTimeOriginal property of the file, it is in an unfriendly format.  It looks odd and shows the time zone.  The commented lines is code that I have tried, but didn't work.  I was trying to convert the XMPDateTime object into a Date object so I can adjust the format, but I haven't been successful.
    var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);      
          var myXmp = myXmpFile.getXMP();   
          var Name = myXmp.getProperty(XMPConst.NS_EXIF, "DateTimeOriginal");
          var date = new XMPDateTime(new Date(Name));
          var date2 = new Date(date);
          //dateFormat.masks.portfolioDate = 'mm/dd/yy "|" hh:MM TT';
    //date.format("portfolioDate");
    //date2.format("mm/dd/yy");
    alert(date2.toString());
    Name.convertToLocalTime();
    Name.toString();
    alert(Name);

    Thanks for helping me out Paul.  I just have one more small problem.  I am trying to access the Headline XMP property, and I know i need to use the IPTC Core property, but it doesn't seem to work.  Here is my current code, can you help me out?
    var selectedFile = thumb.spec;   
    var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);      
    var myXmp = myXmpFile.getXMP();   
    var xmpString = myXmp.getProperty(XMPConst.NS_EXIF, "DateTimeOriginal").toString();
                alert(xmpString);
    var xmpString2 = myXmp.getProperty(XMPConst.NS_IPTC_CORE, "Headline").toString();
    alert(xmpString2);
    var dat =xmpString.match(/(\d+).(\d+).(\d+).(\d+).(\d+).(\d+)/);
    var amOrPm = "AM";
    var hours = Number(dat[4]);
    if (hours > 11) amOrPm = "PM";
    if (hours > 12) hours = hours - 12;
    if (hours > 11) amOrPm = "PM";
    if (hours < 10) hours = '0' + hours;
    var dateString = dat[2]+"/"+dat[3]+"/"+dat[1].substr (2) +" | "+ hours +':'+dat[5]+ ' ' +amOrPm;

  • Reg: error while converting a date datatype to the char using TO_CHAR function.

    Hello all,
    I'm trying to convert a date datatype to the specified format (i.e., by using vaariable using the to_char function in my sql,
    SQL:
    select 0 dummy,'select' from dual
    union all
    select a.COLUMN_ID dummy,
    (case a.DATA_TYPE when 'NUMBER' then '''''' || '||' || a.COLUMN_NAME || '||'',''||'
                      when 'DATE' then '''"''' || '||' || TO_CHAR(a.COLUMN_NAME,'&dateformat') || '||' || '''",''' || '||'
                      else '''"''' || '||' || a.COLUMN_NAME || '||' || '''",''' || '||'
                end)
    from DBA_TAB_COLUMNS a
    where a.OWNER = upper('&owner_name')
    and a.TABLE_NAME = upper('&table_name')
    union all
    select 998 dummy,''' ''' from dual
    union all
    select 999 dummy,'from &owner_name..&table_name;' from dual
    order by dummy
    error:
                      when 'DATE' then '''"''' || '||' || TO_CHAR(a.COLUMN_NAME,'DD-MM-YYYY') || '||' || '''",''' || '||'
    ERROR at line 5:
    ORA-01722: invalid number
    Please help me in resolving this, Thanks in advance.
    Regards,
    Konda.

    > ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. (12204)
    This seems to be your specific network configuration.  It seems that your corporate network is blocking HTTPS requests which don't use port 443. Your ABAP system is configured to use a port other than 443. Either talk to your basis admins about changing your ABAP system configuration to use port 443 or talk to your network administrators to allow whichever port the ABAP system is running on.

  • Oracle Grid Data Collection Stopped

    Hi Everyone,
    My Environment details:
    Oracle Grid 10g 10.2.0.5.0
    Oracle Database 10g 10.2.0.4.0
    OS -Redhat Linux 5.4 x86_64
    Today i tried to take the awr from Grid console for one of my database but there are no recent snapshot available and the data collection is stopped between agent and database. Please find the error details from emagent.trc
    when i checked the agent services its seems running fine but i don't know why the data collection is not happening.
    Please advice me how to resolve this issue.
    Thanks & Regards,
    Shan
    SQL = "/* OracleOEM */
    DECLARE
    instance_number NUMBER;
    task_id NUMBER;"...
    LOGIN = dbsnmp/<PW>@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=netwon-vip.teleglobe.com)(PORT=1522))(CONNECT_DATA=(SID=newton)))
    2011-12-30 16:41:01,541 Thread-3958328240 ERROR fetchlets.sql: ORA-06550: line 11, column 8:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 10, column 1:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 27, column 41:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 26, column 2:
    PL/SQL: SQL Statement ignored
    2011-12-30 16:41:01,541 Thread-3958328240 ERROR engine: [rac_database,regiprd,latest_hdm_db_metric_helper] : nmeegd_GetMetricData failed : ORA-06550: line 11, column 8:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 10, column 1:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 27, column 41:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 26, column 2:
    PL/SQL: SQL Statement ignored
    2011-12-30 16:41:01,541 Thread-3958328240 WARN collector: <nmecmc.c> Error exit. Error message: ORA-06550: line 11, column 8:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 10, column 1:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 27, column 41:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 26, column 2:
    PL/SQL: SQL Statement ignored

    Log onto the database using SQL*Plus, run the following statements, and post the output.
    SELECT owner, object_type, COUNT(*)
    FROM dba_objects
    WHERE status = 'INVALID'
    GROUP BY owner, object_type;
    SELECT comp_id, version, status
    FROM dba_registry;

  • Problem Topology Data collection LMS 4.1

    Hi there,
    I have an issue with the lms 4.1 Topology Data Collection. In the Topo Data Collect under Inventory > Dashboards > Device Status > Collection Summary, there are only 2 devices succeeded and 0 device fail. but I have more 500 device in state managed. I run Inventory Collections but the number doesn't change.
    Inventory Collection          534                13  02 May 2012, 11:07 CEST Idle          Schedule
    Config Archive                         507               14  02 May 2012, 09:51 CEST Running          Schedule
    Topology Data Collection               2               0  02 May 2012, 11:11 CEST  Idle          Schedule
    I have read others discussions but no one has the same problem or similar problem. The only possible solution is to reset the ANI db but I'm not sure if it it's the best solution.
    Any ideas?
    Thaks for help

    I confirm that Martin. Good spotting!. I just noticed it in a server I installed yesterday. These 2 lines were added to the hosts file.
    127.0.0.1       localhost
    127.0.0.1   LMS4
    A bit silly for both, since these entries were allready in the hosts file, done by the windows install I think
    127.0.0.1       localhost
    ::1             localhost
    Cheers,
    Michel

  • Data Collection in Campus Manager hung

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    I am running LMS 3.2 and Campus Manager 5.2.1.  My data collection in Campus  Manger for my devices does not complete and runs indefinitely.  It has been hung in the "running" state for the past week and will not complete.  I only way I found to get it out of the "running" state is to reset the ANIServer service and reboot the server.  I have had this problem since I have upgraded to LMS 3.2.  Does anyone have any input of this issue or possible solutions? 

    The data collection hung again as expected over the weekend.  The ANI.log file grew to 1.8 GB again.  It is to large for me to open it.  I could try to split it up into smaller files.  What should be my next course of action?

  • Data collection failing

    LMS 4.1 W2k8 R2
    I recently installed 17 stacks of 3560V2 switches at a site and added them to LMS4.1.  What I have found is that data collection is failing for all but the top switch in the stack.  In other workds, in some cabinets I may have 4 switches connected back to a 6500 core.  Data collection succeeds for only the switch connected to the core.  UT info is not collected for the switches that fail data collection.
    If I go to the device status dashboard I see that I have data collection succeeding for 56 devices and failing for 96 devices.  For the devices that fail some are listed as unreachable and others as never-reachable.  In either case, the following is suggested as a resolution:
    Verify the following :
    1. Device is reachable using ping.
    2. Verify that DCR is configured with correct credentials for the device.
    These devices are reachable.  Inventory collection is succeeding.  If I test reachability in device center I get successes across the board - even for SSH, though no username is specified in DCR so I can't see how that works.
    The 17 stacks I just installed are configured as clusters in those cabinets that have more than 1 switch.  However, they are not managed as clusters by LMS.  They all have IP addresses.  I just use clustering to facilitate bouncing around a stack from a telnet command line.
    I deleted one of these switches and re-added.  Now ping, HTTP, SSHv1 & v2 succeed in device center - but everything else fails.  When I run a credential verification job on this switch it reports SNMP read and write success, telnet & enable success, and SSH "no value to test".  The credential verification results are as I would expect.
    I am at a loss at this point.  How do I troubleshoot the data collection issue?
    -Jeff

    I found the answer to my particular problem here:
    Campus Manager and cluster-member switches

Maybe you are looking for

  • Having a problem with app files and fonts between OS

    I work in a prepress department, and we are have issues with files that are coming from 10.4.11 to 10.5.8. The 10.4.11 is a power PC and the 10.5.8 is Intel. Fonts get corrupt and display as a unix file with 0 file size and application files like Qua

  • Using a single sequence value over multiple scripts (in a variable?)

    Hi all... I'm writing a number of scripts that insert rows into tables. To better explain my point, I'll paste a simple breakdown of the scripts here as that will be easier to understand... Script 1: INSERT INTO WORKGROUP_DEPARTMENTS(ID, DEPT_NAME, D

  • BW upgrade - pre and post upgrade reports

    Hi All Quick question please. We plan to upgrade our BW ABAP system from NW 731 SPS7 to NW 740 SPS6. I read the ASU toolbox note 1000009 and can see that there is no file for our scenario i..e from 73X to 740 so note 1734333 is the way to go here whe

  • HT203192 Forgot my passwords how can I Encrypte the acess to my files

    I bought my MacBook Pro in Malasia KL last year sence 2010  I am a world working traveler as an Tecnical Adviser for Communication just arrived in Brasil one month ago to do my masters not to work. i am having many problems with my Apple equipment i

  • New Video Editing Monitor

    Hi guys. I regularly work with video editing and I'm looking for a new monitor, my budget is not very high so I need to do a good choice. For me the most important thing is image quality, I need a monitor I can trust the colors. I was thinking of get