CAN_Write with channel start/No.o​f bits available ?

Hello everyone,
                        I am trying to write  CAN_messages with  channel start bit and the number of bits available. The Write VI that i am using needs a cluster format of the message as its input.
              A typical message format is something like the picture that i attached.I need to wite to a specific signal with only channel start bit and no.of bits that the signal is made of.
for eg.. I want to write Message1.signal4 and channel start bit = 1 and channel number of bits = 1.this means i need to write a single bit in 1st row,1st column.
            If i wanna write Message2.signal 6 with channel startbit=40 and no.of bits=8..i need to write a complete byte to 5th row....
I am not sure how do i go by this...should i use a matrix,an array ? since i need access to individual bits in the message matrix,should i try converting data into binary units and then writing it into individual bits(which i have been trying,but is very complicated)?
I'm sure this is so confusing,but please let me know..if anything is unclear...
Thanks
Vam
Attachments:
pic.JPG ‏31 KB

Duplicate post, check here.
Regards,
Roland A.
Applications Engineer
National Instruments
Check out VI Roadshow

Similar Messages

  • Reading the mode channel start and no. of bits using the CAN channel API

    Currently I am using the CAN channel API to get information from a CANdb file.  I'm using it to get max, min, scaling information, etc.  However, I can not use it to get the start bit and the number of bits in the channel mode when using mode-dependant channels.  Is there an easier method to retrieve this information using one of the CAN API's instead of manually parsing the file myself for the information?

    I think that there has been some misunderstanding with regard to the
    original question. I believe Dillon is trying to find the start bit and
    number of bits in the multiplexer. The terminology of multiplexer and
    mode gets a little confusing. For clarification, my understanding is
    that a mode is a specific value of a multiplexer. In the case of Dirk's
    example code, he was able to retrieve the number
    of bits of the CHANNEL, but not the number of bits of the MULTIPLEXER. 
    I believe that I have run into a similar problem to
    Dillon's. I want to read a NI CAN Database (*.ncd) or a Vector CAN
    Database (*.dbc) programmitically. I have attached a zip containing a
    VI and some *.ncd file to allow others to see my progress thus far.
    This is a heavily modified version of Dirk's previously posted program.
    As you can see, it is easy to get a list of messages using the "CAN Get
    Names" VI. Using that list of messages, it is also easy to get a list
    of channels by reusing the "CAN Get Names" VI. The list of channels
    does not include any information as to whether or not they belong to a
    multiplexer, but fortunately we can use the "CAN Get Property" VI to
    find out which channels are mode dependent and the value of the mode
    that the channel corresponds to (if it is mode dependent).
    Unfortunately, this does not give us any information as to the location
    or length of the multiplexer which contains the mode. Thus, I know
    whether I should be looking for a multiplexer and I know what value to
    watch for in the multiplexer, but I have no idea where or how to look
    for that value in the CAN message.
    Interestingly, by
    playing around with Dirk's database that he had attached, I was able to
    determine that the list of channels does not always give out the same
    information. Typically, you will simply receive an 1D array strings
    containing only the channel names, but the output is different in the
    event that you have a database that meets the following criteria:
        1. Two channels (in different modes) have the same name
        2. The database contains at least two multiplexers
    In
    this case the output will be a 1D array of strings in which the
    repeated channels (regardless of whether they are in the same
    multiplexer) will be output in the format "<message
    name>.<multiplexer NAME>.<mode value>.<channel
    name>". The channels that have unique names are simply output as the
    channel name. Now this is helpful in that by default the multiplexer
    name contains the start bit of the multiplexer, but this cannot be
    relied upon. The creator of the database could easily change the name
    of the multiplexer and the format is only adhered to when the
    previously mentioned criteria are met. Also it still does not tell us
    anything about the number of bits expected in the multiplexer (remember
    Dirk had found the number of bits expected for the CHANNEL).
    I have found another alternative output format when the following criteria are met:
        1. Two channels (in different modes) have the same name
        2. Only one multiplexer is contained within the file
    In
    this case the output will be a 1D array of strings in which the
    repeated channels will be output in the format "<message
    name>.<mode value>.<channel
    name>".  Again, this special format is only used for the repeated
    channels. Uniquely named channels are simply output as channel names. While this is not particularly useful, but I thought I should mention it.
    It
    is also probably worth noting that I found the previously mentioned
    alternative formats by directly reading reading a *.ncd file. It
    appears that by reading the channels directly from MAX we get at least
    one additional format (<message name.channel name> ).  Considering
    that this is actually even less information and since my application
    specifically requires that I directly read a CAN database without the
    assistance of MAX, I have not significantly explored this avenue.
    Let
    me finish by reiterating the question that I am asking: How do you
    programmitically determine the start bit and number of bits of the
    multiplexers in a CAN database (*.ncd or *.dbc). I have attached a zip
    file containg my current "testing" VI and some databases to illustrate
    the results that I have described above.
    Message Edited by William Griffin on 01-06-2009 04:58 PM
    William Griffin
    NI Certified LabVIEW Architect
    NI Certified Professional Instructor
    DISTek Integration, Inc. - NI Certified Alliance Partner
    http://ww2.distek.com
    Attachments:
    test_mode_dep_msg_rev_B.zip ‏18 KB

  • CAN_Write with ChannelStartBit/No.Of Bits available ?

    Hello everyone,
                            I am trying to write  CAN_messages with  channel start bit and the number of bits available. The Write VI that i am using needs a cluster format of the message as its input.
                  A typical message format is something like the picture that i attached.I need to wite to a specific signal with only channel start bit and no.of bits that the signal is made of.
    for eg.. I want to write Message1.signal4 and channel start bit = 1 and channel number of bits = 1.this means i need to write a single bit in 1st row,1st column.
                If i wanna write Message2.signal 6 with channel startbit=40 and no.of bits=8..i need to write a complete byte to 5th row....
    I am not sure how do i go by this...should i use a matrix,an array ? since i need access to individual bits in the message matrix,should i try converting data into binary units and then writing it into individual bits(which i have been trying,but is very complicated)?
    I'm sure this is so confusing,but please let me know..if anything is unclear...
    Thanks
    Vam
    pic.JPG (31 kb)

    Hello Vam:
    I am still a little confused on what you are trying to accomplish. Do you want to transmit individual bits or the whole message. Also, can you clarify this part: "I need to write to a specific signal with only channel start bit and no.of bits that the signal is made of."
    Regards,
    Roland A.
    Applications Engineer
    National Instruments
    Check out VI Roadshow

  • "Channel started but Inactive" - Issue with JDBC channels

    Hi all,
    I have 5 channels configured with Oracle which were functioning till yesterday night properly. All of a sudden 3 out of them have decided not to co-operate and they show a status in RWB as "Channel started but Inactive".
    The rest two are functioning correctly which is more weird.
    I did the following:
    1. Complete cache refresh.
    2. Delta cache refresh
    3. channel was copied with a new name and used and it works but this doesnt make any sense.There has to be a proper way to deal with this situation.
    4. All channels are activated in ID.
    Has anybody faced similar issues with JDBC or any other type channels?
    Regards,
    Amol Joshi

    Hi Amol,
    Usually the channel information is available in the monitor after the service and the channel are activated successfully.
    However, in the case of the SOAP adapter, the
    adapter status is not available until the first request is sent to the adapter.
    For JDBC Adapter try to:
    1. Re-configure JDBC parameters, it might happened that it is not able to establish a database connection.
    Just re-enter and activate the same.
    2.goto to the IR adn ID and run the cache ,you will  get the cache objects list in red color check the error details there, make sure the AE cache is up and running fine.
    goto to the RWB>cache monitoring or status->check the cache status of the AE and IS, it should be green in color,
    run the CPA cache from the URL with the PIDIRUSER ...then again run the cache from IR and ID and check.
    Also check :
    1.if you have right permission to write the data to the table
    2. Check whether that table takes NULL values, if so check what data is being supplied by XI to the receiver end.
    *Pls: Reward points if helpful*
    Regards,
    Jyoti

  • What's up with iTunes for Windows 7 64 bit?  Makes my PC run like a 286 on Windows 3.11.

    What's up with iTunes for Windows 7 64 bit?  So slow and draggy.  Makes my high end PC with multi-core processor and video card run like a 286.  Even did this after doing a fresh install of the operating system with the latest version of iTunes. 
    No other software does this on my machine.  There has to be some crazy issue causing this.

    Try this,
    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 &amp; above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    Now launch your iTunes and see if it is working now.

  • Firefox is starting in the 32 bit mode it says Firefox*32.. How can i get rid of this?

    Firefox is starting in the 32 bit mode it says Firefox*32.. How can i get rid of this? Whenever i close Firefox and restart my computer it goes back to normal.There is also another problem associated with this which is that whenever Firefox is in 32 bit mod I listen to music the sound always comes unclear like clogged up.When i restart my computer its not 32 bit anymore the sound gets back to normal.I am using Windows 7.

    Hi,
    If 32-bit Firefox was installed, it will be always listed as such. If both 32-bit and 64-bit were installed, please make sure to start the correct one. Usually the 32-bit would be installed in '''Computer''' > '''?:\Program Files (x86)''' > '''Mozilla Firefox''', and the 64-bit in '''Computer''' > '''?:\Program Files'''. You can also type '''about:''' in the location bar and look in '''Build identifier:'''

  • Communication channel start

    Hi Team,
    We with 300+ communication channel in our PI 7.11 with Ehp1 based system.
    But during all our downtimes, with one step (select all) we are able to stop all communication channels but while bring them online its been very painful as they don't come online properly if i select all to start. So we are selecting few of them and starting ....and it's so until we finish all of them.
    So i am looking for Best Know Methods if there is a way to make it easier.
    Regards
    Sekhar

    Hi Sekhar,
    You can follow this link:
    /people/deepak.shah/blog/2010/03/29/polling-vs-atp-in-sap-pi
    http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/frameset.htm
    Follow these steps:
    1.> Channel Monitoring window->Right upper side>Availability Time Planning option exists.
    2.>Availability Time --->one-time/daily/weekly/monthly these options are present.You can choose as per your need.
    3.>Create>Description>Provide the details required.
    4.>Communication channels--->add the channels for which you are specifing the timings.
    5.>Donot forget to make it Active.
    These steps will help you.
    Regards,
    Nutan

  • SOAP - channel started but inactive

    Hi experts..
    while testing Scenario using SOAP adapter. in RWB -
    >  adpapter monitaring . here all the adapters in gery status , when i check in communicational chanel monitaring iam seeing error  "channel started but inactive "
    but i cheked all adapeters in IR ID and refreshed the cashes, and tested the proxy also evrthing is ok.
    even i run the scenarion why the adpter status is not changed from yello to green?
    i chek the notes 809420, 764176 but i didnt understand what is causing this issue?
    note : previously all the scenarios are implemeted in SP6 , now iam working on SP16 , iam wondering in my current system all the adapters in grey color even othe scenarios excuted sucessfully also.
    please suggest me ?
    thanks
    vasavi

    Hi sheshagiri
    i run the proxy iam able to see the below error in
    outbound processing----
    > payload after service
    ADDRESSVALIDATERESPONSE>
    - <RESPONSE>
    - <TRANSACTIONREFERENCE>
      <CUSTOMERCONTEXT>Local mode using Progistics XML Processor</CUSTOMERCONTEXT>
      <XPCIVERSION>6.1.9</XPCIVERSION>
      </TRANSACTIONREFERENCE>
      <RESPONSESTATUSCODE>609</RESPONSESTATUSCODE>
      <RESPONSESTATUSDESCRIPTION>Unable to process request</RESPONSESTATUSDESCRIPTION>
    - <RESPONSEERROR>
      <ERRORSEVERITY>Fatal</ERRORSEVERITY>
      <ERRORCODE>2441</ERRORCODE>
      <ERRORDESCRIPTION>Invalid Login ID. Verify Login ID with System Administrator. I7A9</ERRORDESCRIPTION>
      <MINIMUMRETRYSECONDS>N/A</MINIMUMRETRYSECONDS>
    - <ERRORLOCATION>
      <ERRORLOCATIONELEMENTNAME>LOGINID/FOLDER</ERRORLOCATIONELEMENTNAME>
      <ERRORLOCATIONELEMENTREFERENCE>n/a</ERRORLOCATIONELEMENTREFERENCE>
      <ERRORLOCATIONATTRIBUTENAME>N/A</ERRORLOCATIONATTRIBUTENAME>
      </ERRORLOCATION>
      <ERRORDIGEST>N/A</ERRORDIGEST>
      </RESPONSEERROR>
      </RESPONSE>
      </ADDRESSVALIDATERESPONSE>
    please suggest me

  • SOAP adapter - Channel started but inactive (case inside)

    Good day everyone!
      I have integration scenario IDOC->XI->SOAP. I did all setting and created SOAP adapter with 2 parametrs: "Target URL" and "SOAP Action".
      But when I look at Channel Monitoring I see my SOAP-channel with status "Channel started but inactive" ??
    What could it be?
    Thanks in advance!

    hi,
    this issue is too common. i face it i some of my channels. there no error.
    test your scenario. im sure it will work but the adapter still has been in yellow at least it fails and turn red.
    I have some CC in red status and working fine. later few minutes it turn  green.
    don worry about it. if you leave it working it will turn green later. if u restart the java stack you can solve it but i dont recommend it because this error could appear in other adaprter too.
    commonly it appear when you start and stop the channel from RWB.
    Hope Helps
    thanks
    Rodrigo.

  • Yellow LED: Channel started but inactive from CC monitoring

    Hi
    We are trying SOAP to SOAP scenario, we done with all IR and  ID part deployment and Activated the all the Objects ,
    But still  In CC monitoring both channels  showing Yellow LED: Channel started but inactive
    In omponent Monitoring Adapter Engine also showing Yellow LED
    We  tried with SXI_CACHE and CAP cache refresh  also...
    Help me out to solving this issue..
    Thanks
    Vadde

    Hi Vishwanadh,
    We have faced the same issue for the past two days and the sam has got resolved automatically while testing the scenario. So please go ahead with your testing, the channel will then be activated automatically.
    Before that clear the CPAcache with the user PIISUSER (make sure that the user is having access to SAP_XI_Administrator_J2EE and SAP_XI_Configuratoe_J2EE
    Regards,
    Varadhu

  • SOAP Adapter status stay "Channel started but inactive"

    Hi, Folks:
    We have a couple of SOAP adapters that I have not used for a while, so I put them in inactive status.
    Now we need to switch SOAP Scenario, I activate them, however, in Communication Monitoring Page, The status is Yellow Triangle: "Channel started but inactive"
    I have tried to inactivate and reactivate them for a couple of times, it does not help.
    Any ideas are welcomed !
    Liang

    Hi Guys
    As suggested by you guys, after I sent first message, all the SOAP adapter get active now. I believe I fogort how I setup it up initially. That is the value stay with your guy
    Thanks everyone !
    Liang
    Edited by: Liang Ji on Feb 29, 2008 8:48 PM

  • What happens if Channel started but inactive?

    Hi.
    While monitoring the training server, i found there are 100 channels with yellow color status "Channel started but inactive".
    All these channels are not SOAP or MAIL channels. Most are FILE, JDBC, JMS channels.
    I know that we can stop the channels in RWB but what happens if these channels are kept with that yellow status? If i stop these channels will it improve the performance??
    Kindly let me know how it will effect the performance.
    Thanks... !
    Warm regards,
    Praveen.

    Hi,
    While monitoring the training server, i found there are 100 channels with yellow color status "Channel started but inactive". - It means there was no msg for these channels so they are inactive......when there will be msgs for these channels, then those msgs will be processed by these channels and its status will change to running........
    I know that we can stop the channels in RWB but what happens if these channels are kept with that yellow status? - No performance impact because of this inactive channels :).............
    If i stop these channels will it improve the performance?? - Do not stop these channels but keep them started..........
    Regards,
    Rajeev Gupta

  • Need to start ff in 32 bit mode

    I will begin by saying that ff "help" is ANYTHING but helpful. How pitiful it is to encounter supposedly potential solutions that are for versions of FF from many years ago. That no one even had the intelligence to segregate mac from windows help articles tells me that this is run by a bunch of jokers. I searched help articles. Began with [firefox 32 bit] got 1010 results. Went to [firefox "32 bit"] 1010 results, ["firefox 14" "32 bit"] 1010 results. Obviously help search is not sensitive to phrases. Between the primitiveness of search and the complete lack of segregation of obsolete articles, I have to say that I can't think of any program with more pathetic support.
    Now that I've gotten that off my chest, ALL I FREAKIN WANNA DO IS START FF IN 32 BIT MODE, SINCE 64 IS INCOMPATIBLE WITH SIBELIUS SCORCH. I searched for 1/2 hour in google, and did encounter the question asked by someone else, but no answer had any meaning. I'm ready to delete this garbage program. And of course, now that I scan down, unlike every other support forum, I have no ability to subscribe to this thread. How consistent!

    You haven't said what OS your computer runs. The default for Firefox on Mac, anyhow, is indeed 64-bit. The way to change it on a Mac to 32-bit is to select the application in Finder, Get Info (command-I), and check the box for open in 32 bit mode.
    HOWEVER, I think there is a problem with Firefox 14 on Mac not respecting that checkbox, because just today my Macbook Pro suddenly cannot play Netflix movies. I am brought to a page that indicates a Silverlight incompatibility and Silverlight requires 32-bit mode. I called Netflix support (and was shocked that they answered the phone in 2 minutes, their customer svc has vastly improved) and the rep told me that a lot of people are reporting this problem on Firefox 14 on Mac. (My version specifically is 14.0.1) She said that the setting to open in 32-bit mode is not being respected.

  • Messages Starting PS5 Extended 32 bit

    I am running PS 5 Extended 64 bit and 32 bit on a Win 7 Professional 64 bit machine with 12GB of ram .When I start PS5 extended 32 bit, I am receiving messages - font capture Photoshop.exe entry point not found and within the message box there is the notation cfbundlecopyfiletypeforfiledata could not be located in dynamic link lib. After closing the message there are several others and after closing these PS 5 32 bit functions. These messages do not appear when I start PS5 Ext. 64 bit. Can anyone explain the messages

    +1 to Mylenium's judgment that a 32 bit plug-in is causing this problem.
    You have any 32 bit plug-ins that are involved with Fonts?  Or a font manager perhaps?  Either remove it/them, or see if there's an upgraded version compatible with CS5 and Windows 7 available.
    -Noel

  • Issue with Ord Start Date

    Hi,
    I am having issue with Ord Start Date.
    When i create XYZ Asset now when i do the acquasation for that new asset. Example: Using FB01 i enter todays date and i do the posting.
    Now when i go to DEP Area TAB for the DEP Key (M200) - The Ord Dep Start Date is 15 Dec 2010.
    For this DEP Key Period Control Methods (T code - AFAMP) - Acquisation Entered is ( 6 that is - at the start of year) and the Period Control is ( T code - OAVS) (4 that is - First year convention at half year start date).
    Our client is using the fiscal year as 1 June 2010 to 31 May 2011.
    So when i do acquistion for the asset as per the period contol the Ord Dep Start Date should be 1 Dec 2010, but here it is talking 15 Dec 2010.
    Why is system talking 15 days more.
    Regards.

    Hi
    Which Fiscal year variant are you using??
    Did you maintain it in OAVH? Copy the existing entry in OAVH for K4 to your Fisc Yr var and try again
    And also, 04 does not figure for Acquisitions in AFAMP under 0004.... Whatever you specify in OAVH must also be a part of AFAMP
    Regards
    Ajay M
    Edited by: Ajay Maheshwari on Oct 28, 2010 2:31 PM

Maybe you are looking for