How to read out message cycle time from Vector CANdb file?

Hello LabVIEW friends,
I tried to open a Vector CAN Database (*.dbc) using the NI-CAN 2.3.2 Channel API and read out the cycle time of a message.
The CAN get property.vi should provide the sample rate which is described as followed:
Input parameter of the CAN Init Start function.
The sample rate specifies
whether to transfer data in a periodic or event-driven manner.
For periodic
behavior, the rate specifies the number of read/write samples to perform per
second.
But for all messages in my database I get the value 0.
When I connect a sample rate to the CAN Initialize.vi I will get it's value.
Could anybody help?
Thank You.
Greets,
Marcus

Hi,
unfortunately there is no way to use the cycle time property from your DBC file, because the NI driver is not able to read this information.
This is because the cycletime is stored in different places for different users and only Vector itself can read this information back.
In your case, you have to figure out this information by yourself and you can use the sample rate input of the init or initstart function to configure the cycle time in Hz.
If you need different cycle times for different messages, see the attached example.
DirkW
Attachments:
CAN_Multi-Chans_Diff-Period.vi ‏26 KB

Similar Messages

  • How to read a tab seperated data from a text file using utl_file

    Hi,
    How to read a tab seperated data from a text file using utl_file...
    I know if we use UTL_FILE.get_line we can read the whole line...but i need to read the tab separated value separately.....
    Thanks in advance...
    Naveen

    Naveen Nishad wrote:
    How to read a tab seperated data from a text file using utl_file...
    I know if we use UTL_FILE.get_line we can read the whole line...but i need to read the tab separated value separately.....If it's a text file then UTL_FILE will only allow you to read it a line at a time. It is then up to you to split that string up (search for split string on this forum for methods) into it's individual components.
    If the text file contains a standard structure on each line, i.e. it is a fixed delimited structure, then you could use external tables to read the data instead.

  • How to read the date and time information of a file by labview

    how to read the date and time information of a file by labview? for example, created time and modified time.
    Solved!
    Go to Solution.

    if you need to know the last modification date of file:-
    "Functions->File I/O->Advanced File Functions->File/Directory Info.vi"
    This vi returns the value of file's last modification date. This is returned as U32 number. To see it in MM/DD/YY format you must create the indicator, right-click on it and select "Format & Precision" item from drop-down menu. Then select "Time and Date" format there.
    Thanks as kudos only

  • How to read the 'full resolution composite' from a .psd file?

    I'm working with 16-bit .psd files and have the "maximize compatibility" switch turned on in CS2. When a file is saved, a message box appears indicating that PS is generating a "full resolution composite." I'd guess this is stored in the .psd file somehow, because some of the 3rd party image viewers are able to display the image when the compatibility switch is used, but are unable to display the image otherwise.
    My question is: how can I read this full resolution composite from the .psd file outside of Photoshop?
    If this is the wrong forum to post this question, I'd appreciate it of you'd tell me a better place.
    Thanks,
    Dave H.

    As you guess, it is stored in the PSD, but only with the Maximise Compatibility switch. Without that switch, a dummy image is stored which has the text "This layered Photoshop file was not saved with a composite image.", in English, German, Japanese and French.
    My program
    psdparse extracts each layer in an 8-bit file as a PNG, and the merged image for both 8- and 16-bit files. That link is to a Subversion repository containing source code.

  • How to find out what was imported from a dump file

    Hi.
    I got the dump file from a group and they told me to import it. Import job went successfully without errors as following:
    Import: Release 9.2.0.6.0 - Production on Mon Oct 16 20:53:12 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    Export file created by EXPORT:V09.02.00 via conventional path
    Warning: the objects were exported by OPS$ORACLETS, not by you
    import done in US7ASCII character set and UTF8 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
    . importing OPS$ORACLETS's objects into SYS
    . importing BDS_APP's objects into BDS_APP
    Import terminated successfully without warnings.
    How do i find out what was imported from a dump file?

    another way would be to just list the contents of the dump file
    imp user/pass file=dumpfile show=Y

  • How to get the total execution time from a tkprof file

    Hi,
    I have a tkprof file. How can I get the total execution time. Going through the file i guess the sum of "Total Waited" would give the total time in the section "Elapsed times include waiting on following events:"
    . The sample of tkprof is given below.
    SQL ID: gg52tq1ajzy7t Plan Hash: 3406052038
    SELECT POSTED_FLAG
    FROM
    AP_INVOICE_PAYMENTS WHERE CHECK_ID = :B1 UNION ALL SELECT POSTED_FLAG FROM
      AP_PAYMENT_HISTORY APH, AP_SYSTEM_PARAMETERS ASP WHERE CHECK_ID = :B1 AND
      NVL(APH.ORG_ID, -99) = NVL(ASP.ORG_ID, -99) AND
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'ALWAYS' OR
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'CLEARING ONLY' AND
      APH.TRANSACTION_TYPE IN ('PAYMENT CLEARING', 'PAYMENT UNCLEARING')))
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute    442      0.08       0.13          0          0          0           0
    Fetch      963      0.22       4.72        350      16955          0         521
    total     1406      0.31       4.85        350      16955          0         521
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 173     (recursive depth: 1)
    Number of plan statistics captured: 1
    Rows (1st) Rows (avg) Rows (max)  Row Source Operation
             1          1          1  UNION-ALL  (cr=38 pr=3 pw=0 time=139 us)
             1          1          1   TABLE ACCESS BY INDEX ROWID AP_INVOICE_PAYMENTS_ALL (cr=5 pr=0 pw=0 time=124 us cost=6 size=12 card=1)
             1          1          1    INDEX RANGE SCAN AP_INVOICE_PAYMENTS_N2 (cr=4 pr=0 pw=0 time=92 us cost=3 size=0 card=70)(object id 27741)
             0          0          0   NESTED LOOPS  (cr=33 pr=3 pw=0 time=20897 us)
             0          0          0    NESTED LOOPS  (cr=33 pr=3 pw=0 time=20891 us cost=12 size=41 card=1)
             1          1          1     TABLE ACCESS FULL AP_SYSTEM_PARAMETERS_ALL (cr=30 pr=0 pw=0 time=313 us cost=9 size=11 card=1)
             0          0          0     INDEX RANGE SCAN AP_PAYMENT_HISTORY_N1 (cr=3 pr=3 pw=0 time=20568 us cost=2 size=0 card=1)(object id 27834)
             0          0          0    TABLE ACCESS BY INDEX ROWID AP_PAYMENT_HISTORY_ALL (cr=0 pr=0 pw=0 time=0 us cost=3 size=30 card=1)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                       350        0.15          4.33
      Disk file operations I/O                        3        0.00          0.00
      latch: shared pool                              1        0.17          0.17
    ********************************************************************************

    user13019948 wrote:
    Hi,
    I have a tkprof file. How can I get the total execution time.
    call count cpu elapsed disk query current rows
    total 1406 0.31 4.85 350 16955 0 521TOTAL ELAPSED TIME is 4.85 seconds from line above

  • How to read this kind of array from a txt file?

    I have been trying to read this file given below.
    Please have a look at 4th line, there is a gap between 89 and 32.
    I want to read a gap as a "0" value, and convert all values to integer.
    I have been using split function, but I still don't know how to figure the gap problem.
    Please help me, thanks.
    1 60 72 88 41 58
    2 50 45 37 86 13
    3 44 41 99 54 24
    4 12 89 32 89
    5 48 97 25 85 55
    6 22 46 34 90 98
    7 75 85 5 1
    8 86 23 39 69 52
    9 42 18 75 13 72
    10 24 77 27 18 30
    11 34 42 5 12
    12 31 87 47 75 8
    13 19 16 74 55 77
    14 26 57 5 63 81
    15 51 7 95 100 8
    16 33 93 82 85 72
    17 55 21 49 25 3
    18 15 29 33 18 61
    19 33 42 64 66 63
    20 51 36 97 39 19
    21 51 60 32 25 51
    22 88 34 29 76 10
    23 37 93 9 38 100
    -------------------------------------------

    scan each line with the following code
    it adds each line to a new array
    //scan file
            try {
                Scanner Filescan = new Scanner(new File("directory"));
                while (Filescan.hasNextLine()) {
                Array.add(Filescan.nextLine());
                catch (Exception e)
                System.out.println (" File has not been found");
                } 

  • How to list out the tablenames alone from EXP Dump File

    Hi,
    We are creating a dump file by using EXP command through a Parameter file.
    Now, from this exp_backup.dmp file, I just want to find out the list of tables, which got exported.
    I don't have access to the Parameter file used for exporting data. Please share your views, suggestions, thank you.

    Hi,
    did you try to get the details logfile created for your export dump ?
    try strings on your dumpfile
    strings <dumpfilename>
    Regards
    Veda

  • How can I read out metadata for captions from a Canon photo

    I have to tried to find an answer via Adobe and Google. Still not able to figure out on how to read out XMP metadata for captions out of my photos. Checking the XMP data in InDesign shows info on Camera Make, Exposure etc. But if I use metadata fields from "Caption Setup" like "Camera" the caption shows <No data from link>. Fields where the XMP field name matches (e.g. "Lens") are ok. I need following fields for the caption: Camera Make, Exposure (aperture and speed) and ISO.

    Lets keep it simple then.
    If I take my utf file generated and open and view it in notepad I can see the accented characters. But if I open it in Wordpad , the accented characetrs are corrupted.
    If I then save the file specifiying type Ascii, then the characters are written out correctly.
    What I want to do is to be able to write out the file in ascii format without having to open it in utf-mode and then having to save it in ascii.
    Ie I want the file to be opened in ascii format
    All the characters to be written in Ascii format
    But the source is still a unicode database.
    I have gone through using convert and characters get lost. In fact, at this stage, I'm not sure its possible to do What I need to do.
    Remember I am using an 8 bit character set which is why I have values above 127.
    So basically if you take the word 'Annulé'
    if I view it in wordpad it displays as
    Annulé
    But if I view it in notepad it displays as
    'Annulé' which is because notepad detects that the file has a utf-8 character in it.
    When I save it as type ascii I can then open it correctly in wordpad.
    So I basically want to open this file in Wordpad and have it display Annulé rather than the garbled characters,
    without having to go through the process of opening and saving the file as type ansi.

  • My Mac reads out the current time (every hour) TWICE!! Any ideas how to fix it??, My Mac reads out the current time (every hour) TWICE!! Any ideas how to fix it??

    Hello everyone!
    Some months ago, I enabled the feature to read out the current time every full hour. Since yesterday, my mac reads it out twice, completely interleaved.
    What can I do to fix it, so it reads out the time each hour only once?

    I've run into the issue and it seems to be related to an app not fully supporting the iOS you're on, the reboot doesn't usually solve it.
    I've solved it in the following manner(s):
    1) Backup the device to iCloud, then erase the iPad (Content and Network Settings).
    2) Setup the iPad and choose to restore from iTunes/iCloud Backup (wherever you backed it up)
    3) Perform any software updates
    I have not tried simply performing the software updates (which may fix it, but if it doesn't you won't be able to perform the above steps).
    Enjoy.

  • Read a character 1 at a time from a text file

    Hi all,
    I have tried the following to read 1 character at a time from a text file but it did not work;
    int buf_sz = 1;
             try
                BufferedReader br = new BufferedReader( new FileReader( "C:\\bitshift.txt", buf_sz ));
                String rd_line = null;
                while( (rd_line = br.readLine()) != null)
                    System.out.println(rd_line + "\n");
             }I could only get it to read the whole line by removing the buf_sz when creating an instance of the BufferedReader.
    How can I achieve this?
    Thanks

    The Javadoc for Reader.read()
    read
    public int read()
             throws IOException
        Read a single character. This method will block until a character is available, an I/O error occurs, or the end of the stream is reached.
        Subclasses that intend to support efficient single-character input should override this method.
        Returns:
            The character read, as an integer in the range 0 to 65535 (0x00-0xffff), or -1 if the end of the stream has been reached
        Throws:
            IOException - If an I/O error occurs

  • Gif - file help: i don't want to read the gif each time from the file.....

    Hello there guys,
    i'm making a game and therefor i need to read a gif file like 20 times.
    i don't want my program to read the gif each time from the file, but only once.
    so i load it into an image or something?
    cuz opening the gif 20 times from my hard disk is a lot of time loss....
    opening it once and store it is much more efficient
    thx in advance
    plz help me out, cuz i don't really know how to do it.
    (in Delphi it's easy, but Java......)
    greetz,
    SpeciesXX
    Ramon Ribbe

    yes, it works, i used this code, thx man
    void button1_ActionPerformed(java.awt.event.ActionEvent event)
              ImageIcon image = new ImageIcon("f:/a.gif");          
              JLabel label = new JLabel();          
              label.setIcon(image);                    
              this.getContentPane().add(label);
              label.setBounds(10,10,100,100);
    and there i see my image :-)
    but 1 more thing, should i display all those blocks (images) on an applet, or should i use something else? (like what??)
    a sort of frame?
    because later on i have the field where all the blocks are in, and i have an area surrounding it, displaying all kinda information about the game, like how many lives remaining....
    can i put 2 applets in eachother? like applet1 is the parent of applet2?
    or should i use something else?
    plz help me, cuz java is kinda new to me i see....
    in delphi i just used 2 forms, form 1 with the blocks, form2 with the rest of info, and also being the parent of form1
    thx again, soon i can help ya guys too, i hope..
    (im learning java at school, but way too slow and to ez)
    Ramon

  • HT204387 Subaru XV can read out messages but when we reply, it comes up "there is an error in sending message.  We cannot work out why.

    My Subaru XV reads out messages received on my iphone without a problem, but when I hit reply, it comes up as "error, cannot send message".  We have checked everything in the car set up and everything appears correct.  We are wondering if we have missed changing something in the phone.  Can someone please help? 

    Hi.
    This I have seen before...
    It can be that the SMTP relay server is configured to only allow certain IP ranges or addresses.
    It can be that the firewall on the SP server does not allow for SMTP traffic (normally 25, for example for Exchange).
    It can be that there is an Antivirus on the SP server(Client AV) that prohobits the Timer service to send email from this server. I have seen MacAfee do this. Needed an policy change.
    If, its the builtin SMTP service you are using, check this link:
    http://blog.sharepointrx.com/2010/11/18/setting-up-the-iis-smtp-server-for-sending-email-from-sharepoint-2010-on-server-2008-r2/
    Check that and try again.
    Regards
    Thomas Balkeståhl - Technical Specialist - SharePoint -
    http://blog.blksthl.com
    Download the SharePoint Branding Project here
    Download the SharePoint 2010 Site Settings Explained here

  • How can I change the shipping time from 1-2 weeks to 2 days

    How can I change the shipping time from 1-2 weeks to 2 days. Thank you in advance.

    Right you are, R_Kelly. Thanks, that did the trick. Ukgaurav also pointed out some choices in the Displays and Cursors Preferences with which I fine-tuned the tool cursor appearance.

  • How do I suppress messages/loading bars from Import-Module and Import-PSSession?

    Hello,
    How do I suppress messages/loading bars from Import-Module and Import-PSSession?
    I am writing a script that will be using these commands and it makes the script look clunky/scary to novice users.
    Thank you for your time.

    Sorry to bring this back up, but it seems that the ProgressPreference worked for Exchange, but it didn't affect the Active Directory progress bar. Any ideas why?
    Strange, this worked just fine for me (no module loading indication):
    PS C:\Users\mike.admin> $ProgressPreference = 'SilentlyContinue'
    PS C:\Users\mike.admin> Get-ADUser mike.admin | Select Name
    Name
    mike.admin
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)
    I do run the Import-Module command inside a function, but I doubt that would do it because I assume the preference is set scriptwide.
    This will work anywhere.
    $global:ProgressPreference='SilentlyContinue'
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Allocating an item as a resource in Project 2010

    Hello I am trying to construct a Master Project Program using a resource pool. The sub projects are various manufacturing programs using common resources. Some of the resources I want to use are materials, specifically key production areas of a fixed

  • Ipod cannot restore"because files are being used by another application"

    Hello all, I hope someone can help me. I think I mad a big mistake. I did a favor for my father who bought the newest IPod clip on shuffle for my mom. I agreed to get it up and running using my laptop, (which has Itunes for my Ipod w/video) would thi

  • New EIT Not appearing for Organization classification

    Hi all, I have set up a new EIT for the organization. I have run the scripts for populatting the information_type in the hr_org_information_types table and also hr_org_info_types_by_class but the new EIT is not appearing in the new classification. Ca

  • Crystal Report or WebI

    I have to develop few reports. Most of the reports are like bar chart with count on Y axis (Vertical) and month of  X axis(Horizontal). The report is very simple. Can some one please help me to  understand if I should develop the report in Crystal or

  • Alerts Question

    Hi Generally by default alert is triggered AFTER the max number of retry (say 3 times) as configured in J2EE visual admin. However, is it possible if I would like the alert trigers immediately the 1ST attempt failed while runtime still will continue