Can Calibration Protocol and how to devide signals into CAN-Bytes and backwards

Hi,
i have two questions about working with NI-CAN Hardware:
First: How do I divide my signals (esp.:rpm,boolean variables,...) to put them into the CAN Message Bytes?
example:
rpm range: 0 to 8000
resolution:1 step means 1 rpm
On rpm = 2000 the resulting bitcoding is as follows:
[00000111 11010000] [highbyte lowbyte]
Next I have to store a boolean bit(false/true is set to true) additionally into the highbyte. the resulting bitcoding is [10000111 11010000]. CAN message is now ready for dispatch. The listener have to take the individual bits to get the rpm and the booleans state.
I programmed a CAN-DLL in Visual C++ for a CAN Dongel. In C it is easy to split the CAN Message into the
ir signals. Shiftoperations (<<,>>) make this possible.
Second: Next step is the use of CCP2.1 (Can Calibration Protocol). Did someone use already once CAN Calibration Protocol with Ni-CAN hardware? If, I would be pleased about example files or contact.
Thanx for listening and sorry about my english. I wait strained for answers.
BKern, Germany

Schön jemand deutschsprachigen gefunden zu haben.
Mittlerweile hat sich etwas neues ergeben:
Eine in LabVIEW6.i erstellte Anwendung kommunziert via CAN. Die Sende- und Empfangssignale werden in einer DLL (Aufruf externer Bibliotheken), nach empfangen einer CAN NAchricht, zusammengesetzt oder für den Versand zerlegt (in die 8 Datenbytes entsprechend einer Schnittstellendefinition).
Somit übergibt Labview lediglich komplette Zahlenwerte (Drehzahlen) und BOOL Flags (Bits), die in der DLL, wie oben beschrieben, bearbeitet werden.
Diese DLL greift schließlich auf entsprechende CAN Treiber DLL's zu um Daten zu versenden oder abzuholen.
Zusätzlich soll nun die NI-CAN Karte integriert werden. Der erste Ansatz war die Lösung in LV zu realisieren. Dabei müsste je
doch die gesamte Schnittstelle nochmals integriert werden (doppelter Pflegeaufwand).
!! Deshalb suche ich nun nach einer Lösung in C oder C++ mit Visual Studio .NET. Beispieldateien (in C oder C++) für CAN starten, CAN schließen, CAN reset, CAN read und CAN write wären sehr hilfreich.
Die Modifizierungen der Signale werden in der DLL bereits erledigt. Ich benötige lediglich einen Zugriff (in C oder C++) auf die NI-CAN Karte, um die bereitliegenden Daten zu versenden(CAN write), bzw. empfangene abzuholen (CAN read).
Das Format einer CAN Message:
1. Identifier
2. Datalength
3. DataBytes[8]
Falls Sie mir helfen können,Beispieldateien zu finden, wäre ich Ihnen sehr dankbar. Leider habe ich bei ni.com nix gefunden.
MfG
BKern

Similar Messages

  • How to insert signals into multiple columns in db, dbtoolset

    I have  a labVIEW program that is currenly simulating voltage and a current signal using the DAQ Assistant. I'm using the database connectivity toolset. I am currently able to insert one signal into the database converted to a float(I can insert both into the same column as bianary but it needs to be stored as a usable format and in seperate columns.)
    The problem I am having is at the DB Tools Insert Data block. I have the connection, dbTable, error code, and create table boolean being passed into it. Where I am a little lost is how to set the columns I want to store the multiple signals into.
    If someone could break that part down for me that would be great. In short, I want to store voltage(channel0) and current(channel1) from the DAQ Assistant into their own respective columns in the db.

    As I have often pointed out, the easiest solution to this situation is to dump the Database Connectivity Toolkit. Check out this thread and follow the references in it. If the DCT weren't in the way what you are wanting to do would be very easy.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to load 0XF0 into 1 byte ?

    Hi all,
    I am creating an array like this...
    private final static byte[] PSA325_ERR240_FAIL = {0x7e,0x0,0x1,0x5,0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1,(byte)0x82,
    (byte)0XF0,0x7e};
    its a 16 byte array...
    in the last but one byte which is 0xF0
    I want a value of 0xF0 i.e 240 to go in there....but if I don't cast it to a byte...I am not able to compile and if I am casting it to byte then it is going as -16 which I don't want..
    I want the value to go as 0XF0 or as 240....let me know if anyone knows the solution...
    all I want is how do I load a value of
    240 i.e 0XF0 in just one byte...???
    pls help!!!
    Satish

    Hi,
    I am clear to come extent but still not very clear as to how will I load 0xF0 into one of the indexes in the byte array..
    I mean if u look at my problem
    I want to load 0xF0 into one of the elements of the byte array...and if I am trying to load it as 0xFO the compilor doesnt accept as it is an int ..so I am casting it to byte..but ur solution of & it with 0XFF is not pocssible to in my case as
    again I cant use some tjhing like
    private final static byte[] PSA325_ERR240_FAIL = {0x7e,0x0,0x1,0x5,0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1,(byte)0x82,((byte)0xF0 & 0xFF),0x7e};
    as here again 0XFF is an int and cant be loaded into a byte array as an element....hope i have not confused you much..if u are clear..then please let me know the solution...
    my requirement is
    private final static byte[] PSA325_ERR240_FAIL = {0x7e,0x0,0x1,0x5,0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1,(byte)0x82,0xF0,0x7e}; in the last but one byte 0XF0 should go in and not as -16...how di I do it ?
    Satish

  • How to split signal into xy components

    i am simulating a digital signal and viewing it on a graph, I would like to input x and receive the corresponding y coordinate.
    I have a attched a screen shot.
    If anyone can help, I'd really appreciate it! Thanks!!
    Attachments:
    singal and graph.pdf ‏10 KB

    Look into the Get Waveform Subset.  If you set the duration to 1 sample (or dt if indexing by relative time), you should only get 1 element.  Just use Array Index and you got your value.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    xy point graph_BD.png ‏63 KB

  • How Can Viewers skip forward and backward between timelines!?

    You can skip forward and backward through chapters that are on the same timeline but I can't skip backward to a timeline that came before the one I'm on.  I thought this was an easy question someone must know the answer to this.  I just need to check what I'm saying.
    So I have 4 timelines
    I put chapter markers at the end of each timeline so that people could skip forward to the next timeline if they wanted to.  If there was no chapter marker at the end of the timeline then the timeline would have to be played to completion before going to the next.  You would not be able to skip forward at all.  The problem I'm having is that you cannot go backward to the timeline that came before.
    So if I have a chapter at the end viewers are able to skip forward to the next timeline but they can't skip back.
    Alright so Menu Remote settings do not work for Blu-ray discs either so you cannot use that setting to go backward from one timeline to the previous.
    Is there anywhere to set that the first chapter of one timeline can somehow link back to the last chapter in a previous timeline or is it just impossible to go backward?
    Isn't there anyone who knows how to skip backward from one timeline to the previous?  I cannot find a action for this in encore.

    Hi simonfrommount isa,
    I'm sorry to hear you are having issues with the most recent iOS update. If you are still having issues with the connection or controls from your iPhone to your car stereo, you may find the troubleshooting steps outlined in the following article helpful:
    iOS: Troubleshooting car stereo connections - Apple Support
    Regards,
    - Brenden

  • Have one WiFi signal into the apartment for my Air, and another wifi signal for my 5c phone plan. Both from the same provider. Expensive. Is there a way to 'combine' WiFi signals so I pay only for one, but can get on the Internet with my Air?

    Have one WiFi signal into the apartment for my Air, and another wifi signal for my 5c phone plan. Both from the same provider. Expensive. Is there a way to 'combine' WiFi signals so I pay only for one, but can get on the Internet with my Air?

    Roamingnome, thanks for your response. Although I have been a Bell (Canada) customer for my WiFi signal for years, the 5c and its necessary mobility plan, is very recent. Some years ago, Bell supplied its own ‘router’ for my computer, and claimed that it was possible to get their WiFi signal only with the router they supplied. When I recently received the 5c, I wondered if the plan it requires, which is within the much wider, overall Bell zone, could be used somehow to get my Air online - some sort of tethering? - that allows me to give up the Air WiFi service and router all together, but still get the Air connected. Here in Canada, Bell Mobility and other Bell services are very separate. Any suggestions appreciated.

  • My apple ipod 32mb has turned all the icons upside down and backward. How can I fix this.

    Apple iPod Touch 32mb has turned all icons upside down and backward. How do I fix this.

    I really do not understand. Try the basics:
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                             
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • Every single time I power up photoshop CC get an error. says " the monitor profile "acer S201HL" appears to be defective. Please rerun your monitor calibration software. How do I fix this?

    Every single time I power up photoshop CC get an error. says " the monitor profile "acer S201HL" appears to be defective. Please rerun your monitor calibration software. How do I fix this?

    Your factory-supplied monitor profile, associated with your monitor by the operating system, is bad.  It's more common than you'd think.
    To avert the error:
    Open the Color Management panel of your Windows operating system.  In the Devices tab, if it is not already listed [ Add... ] the sRGB IEC61966-2.1 profile and [ Set as default Profile ].
    After doing the above, log out of Windows and back in again, just to ensure everything's updated.
    Note that the above assumes your monitor is more or less displaying color in the sRGB color space (sRGB is short for sRGB IEC61966-2.1).  For many monitors this isn't a terribly wrong assumption.
    If you want to ensure you have the most accurate color, consider buying a calibration and profiling device, which (with its associated software) can set your calibration and generate custom color profiles by doing actual measurements from your monitor.  You'll want to take some time to get your mind around how color-management works, and that is not a trivial task.  It's certainly well beyond what can be taught in a forum post by post.
    Good luck.
    -Noel

  • What is the differences between T=0 protocol and T=1 protocol?..

    Hi friends..
    Sorry, i want to know what is the differences between T=0 protocol and T=1 protocol?..
    Which one is the best, Java Card that support for T=0 protocol and Java Card that support for T=1 protocol?..
    Thanks in advance..

    Sebastien_Lorquet wrote:
    Such protocols have NOTHING TO DO with javacard. They have been existing for YEARS before javacard was invented.
    It's just a mean to exchange data with any card. It happens to be a standard, so javacards among others use it to communicate with the host.
    the Javacard spec by itself does not know anything about how the APDUs are exchanged . It can be T=0, T=1, T=14, RS-232, GPIB, USB, ISO14443, Felica, Ethernet, Firewire, a satellite link, a deep space link, or anything you want. The comm part is the responsibility of the card operating system, which is out of scope for the javacard machine that lies onto it.
    Just because you have a convenience method in the APDU class does not mean this is real. It's up to the card / os manufacturer to define these things, it's reasonable to think they are accurate, but I can create a javacard that claims to be contactless and still will use T=0. That's arbitrary.This is not exactly true. For APDU response chaining to work on some T=0 cards (when using smartcardio that handles response chaining for the developer) we had to use some special tricks. It can also be handy to only allow certain actions on the contact interface (such as admin actions etc) to prevent unauthorised access. The [PLAID Applet|https://www.govdex.gov.au/confluence/display/PLAID/Home;jsessionid=9B9EC664A01EC13B098DDF4EE5760A0A] (developed by the Australian fegral government agency Centerlink) only allows the card to be initiliased through the contact interface.
    - T=0 requires a GET RESPONSE additional exchange only for case 4 commands or when the command provides more bytes than requested for an outgoing command. It can also require more than two exchanges if the terminal requests the outgoing data per-block.Don't forget case 2. The GET RESPONSE is at TAPDU layer and is handled internally by smartcardio/PCSC etc and is also handled by the smartcard OS.
    Leonardo, if you want to know the differences between the two, I recommend reading ISO7816-3.
    Cheers,
    Shane

  • Does anyone have Experience talking to a WAGO Ethernet Fieldbus copler using the Open modbus/TCP protocol and LabView ?

    I have an Ethernet Fieldbus Copler of WAGO which supports the OpenModbus/TCP Protocoll, and I want to talk to it over LabView. Does anyone know how to do this or even has example VI's or Librarys ?

    Wago and National Instruments have worked together to test and develop an application note showing the use of the National Instruments Modbus driver with LabVIEW and the Wago Ethernet Coupler. I have attached the preliminary applications note (which is in final technical review here at NI). You can purchase the National Instruments Modbus driver by ordering the Industrial Automation Servers, part 777616-01. The USA price is $995. It should save you quite a bit of time in working with the Wago device and any other industrial controller or modbus device you might work with in the future.
    Preston Johnson
    Business Development Manager
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444
    Attachments:
    wago_overview.doc ‏171 KB

  • T3 Oracle´s proprietary tunneling protocol and Cisco ACE

    Does anybody know if it is possible to load balance the T3 Oracle´s proprietary tunneling protocol supported by Oracle Weblogic with Cisco ACE?
    TIA,
    Claudio Uemura

    HI Claudio,
    I don't know much about T3 protocol, in short you can load balance almost anything really, the issue becomes to how granular and if you can do any intelligent inspection besides source and dest ip and if there are multiple different connections on different ports. These last points sort of decide whether it's worth it.
    - If you find the specifics about the connection ( port, type of protocol and type of connection ( long-lived or short lived) you should be able to setup a basic rule to test. A sniffer trace will give you the most information if oracle website does not explain T3 in detail.
    - From a quick search there also looks to be a method to encapsulate T3 inside a http packet on weblogic servers, if this were the case then you could do some deep packet inspection with regex etc to get more granular load balancing
    http://forums.oracle.com/forums/thread.jspa?threadID=706909
    I would think it's defintely worth looking at both options
    cheers,
    Chris

  • Looking for a client/server that supports multiple protocol and delivery

    Hi all, I don't know if this the right place to ask my question,here it goes.
    I am looking to develop a client-server that supports multiple protocols such as HTTP, HTTPS etc. I am looking for a framework( i don't know if that is correct or I need some kind of web-service (soap etc)) that would manage connection, security etc. I would like to like to devote most of my time in developing business objects with multiple delivery mechanism such as sending serilized java objects, xml message or soap message, or in some case JMS message as well. So I need a client server that can come in via TCP/IP or HTTP or anyother industry standard protocol and I should be able to service him with pub/sub model and also request/response model as well.
    I don't know if I had explained what I need, I would like to know what technologies I should be evaluating and which direction I should be heading... Also the server I'm developing should be free of Java constraints if needed...
    Also this service is not webbased service as now but if need arises I should have a flexibilty to make them web enabled in future. Also I would like to work with open source webservers or appservers if I need

    Inxsible wrote:I installed i3 - along with the i3status - which I still have to figure out. I am liking what I see as of now. It reminds me of wmii -- when I used it way back when. However I do not like the title bar. I would much rather prefer a 1 px border around the focused window.
    "i3 was created because wmii, our favorite window manager at the time, didn't provide some features we wanted (multi-monitor done right, for example), had some bugs, didn't progress since quite some time and wasn't easy to hack at all (source code comments/documentation completely lacking). Still, we think the wmii developers and contributors did a great job. Thank you for inspiring us to create i3. "
    To change the border of the current client, you can use bn to use the normal border (including window title), bp to use a 1-pixel border (no window title) and bb to make the client borderless. There is also bt  which will toggle the different border styles.
    Examples:
    bindsym Mod1+t bn
    bindsym Mod1+y bp
    bindsym Mod1+u bb
    or put in your config file
    new_window bb
    from: http://i3.zekjur.net/docs/userguide.html (you probably already found that by now )

  • How do I log into my iCloud account. I have iCloud installed on my iPad but can not figure out how to log into my iCloud account to restore a message

    How do I log into my iCloud account. I have iCloud installed on my iPad but can not figure out how to log into my iCloud account to restore a message

    Settings / iCloud on the iOS device to view your settings and options.
    Storage & Backup / iCloud Backup is how you restore the device with your last backup.

  • How to use CrossReference and DVM in ODI &how to populate data into Xref

    Can any one tell how to use Domain Value Maps and Cross Referencing in ODI?
    DVM or Domain Value Map are created and used in ESB console of SOA suite.
    My actual requirement is as follows:
    The below steps describe loading data from ERP Application 1 to ERP Application 2.
    1. The Source Application ERP APP1, populates the interface table using their native technology.
    2. A job scheduler invokes the Source side ODI Package.
    3. ODI then extracts the data from Source Interface table and populates the Target Interface table.
    4. After populating the Target interface table the ODI populates the X-ref table with App 1 ID and generated common ID.
    5. The ODI either deletes or updates the rows that were processed from the Source interface table.
    6. On the Target Application ERP APP2, the native application extracts data from target interface table and populates target database there by generating ERP Application 2 ID.
    7. A job scheduler on the Target application invokes the ODI package to populate the Application 2 ID onto the Xref table matching on the Common ID.
    I just want to know :
    1. How to populate data into the Xref table from Source datastore
    2. And if data is successfully laoded from target datastore to actual base table of target then how to populate the target id into the cross reference table.

    can anyone suggest me some answer, then it would be of great help?

  • I have an Iphone 3Gs. I need to get contents of messages that were sent and received on the phone in June for evidence in court. I read online that the Iphone internal storage keeps all data done on phone in the storage. How do I get into it?

    I have an Iphone 36s. I need to get contents of messages that were sent on the phone in June of this year. I read online that the phone has an internal storage that keeps all data when phone is used and that this internal storage can be accessed. I need the contents of particular messages for evidence in court. How do I get into the internal storage? I've tried some of the methods that people post online, but none of them have been successful. Help!

    If you still have a backup from that point in time as part ofr your computer backup history, you could restore the backup folder, restore the phone from that backup and have the messages on the phone.
    More details about restoring from old backups can be found here: iPhone and iPod touch: About backups

Maybe you are looking for

  • Password protecting a Zip file in windows 7

    So I am trying to figure out how to password protect a zip file using the built in zipping utility in windows 7.  In windows xp and vista once you have created a zipped file you open the file and select file>add password. In windows 7 (currently usin

  • How to convert the MS access *.mdb files to Linux oracle?

    Dear all, I got a MS Access *.mdb file which has several tables inside it. We will like to convert this file into our new oracle database of Linux. How should I do to accomplish the converting task? null

  • Podcasts don't appear in podcast folder

    Shortly after updating to iTunes 7 I had to restore my iPod. Now my ipod menu lists my podcasts in the album and artist lists but not in the podcast folder. How can I fix this? HP Pavilion, Dell Optiplex Windows XP

  • Can anyone give me some insight on how to create this layout?

    Is there a tool to turn a photo into a sketch, or do you think these handbag images were created with another application?

  • FOUNDATION SERVICES NOT STARTING

    Hi All, V11.1.2 - On windows Server 2008 R2 Earlier today something weird happened when I tried to save an outline. End result I could not log into EAS - kept getting "login error" type message. Essbase itself was fine, I could still log in using the