CAN read data using NI-XNET

I was playing around with the new NI XNET drivers read CAN data and I need some experts advise on this topic. In the frame API, I remember to be able to check that if there is data on the queue of read before reading, with Xnet, I have not found this option. XNET use playback function that will read the entire queue without worrying if the data is present.

This causes me a problem, because I'm constantly calling loop playback function, the data are written to a table of images, then the table will be empty for the next iteration because the reading queue was empty during the second reading.

How can I continually read data from the queue of reading without accidental my output table?

I tried the survey/Deque method, but it works well for me. Is someone can you please tell me what is the best practice for continuously reading the CAN data and treatment using drivers XNET?

Thank you

Sam

Looks like you want to use with your berries shift registers. Discover this Subvi, which is part of the expedition OR XNET examples. You can find examples from the Finder example under help > find examples.

Apart from converting it the image into a string, the additions loop the string to an array and use the shift registers to pass the array in the iterations of the loop.

Is that what you're looking for?

Tags: NI Software

Similar Questions

  • Can read data from xls using teststand 3.5?

    Hello

    I use 3.5 TestStand and LabVIEW 8.je know these are quite old versions now, but we must continue with this on a test bench.

    My question is how can I read data from the file xls using TestStand 3.5? I have already mentioned a few posts on this, and one response suggested that I should use "tGetExcel" using ActiveX adapter. I tried to run the test example related to "http://forums.ni.com/t5/NI-TestStand/Write-or-read-to-Excel-from-TestStand/td-p/250439/highlight/tru...", but a run-time error. He says that "the tGetExcel type library information not found. Make sure that the server is registered in the system.

    TestStand 4.2, I could easily run excel at the base of operations by using the Office Excel Toolkit.

    I was wondering, is there another way, I can read just .xls file data by using Teststand 3.5?

    Thank you

    Niraj.

    Please check this example for charger of property:

    C:\Program Files (x 86) \National Instruments\TestStand 3.5\Examples\LoadingLimits

    This shows the limits of excel file loading.

    But you can load the values of the variables-consult the help file / Reference manual for this type of step.

    Also in the loader type forum search property - you can find more information.

    I hope this helps.

  • LabVIEW can read data Excel with Excel installed Starter?

    I'm reading an Excel file, but I get the error-2147221164 try to read an Excel file and I think it's because of starting Excel. Is this the case?

    You probably found this:

    http://digital.NI.com/public.nsf/allkb/B7F980D169474D568625760E0055D55E?OpenDocument

    Who said Excel is not installed, but I think the problem is that Excel Starter (and the word by the way) is a not the component ActiveX.  This is what is used behind the scenes to talk to Excel, and without it, you will get several errors.

    EDIT: I can't seem to find where it says ActiveX is not included, but I remember having read - it somewhere.  Here is the wiki on this topic page.

    http://en.Wikipedia.org/wiki/Microsoft_Office_2010#Starter_Edition

  • Error in reading data using the file adapter... need help.

    Hi all

    We try to read a flat file delimited using file adapter.
    The following data works.
    abc|"sssss"|jjjj
    hhhj|fgfdg|dsfsf
    sfdf|dsf|adfd
    But when a space is present after the closing for the second column, that the record quotation mark is rejected

    Format below does not
    abc|"sssss"   |jjjj
    hhhj|fgfdg|dsfsf
    sfdf|dsf|adfd
    any help how to read such data... help please.

    Kind regards

    Published by: Oraacler on April 27, 2010 21:30
     
    
    
      
        
          
            
              
                
                  
                  
                  
                  
                  
                  
                
              
            
          
        
      
    
    
    
    
  • How can I convert a 3 mV/V to a load cell signal to something I can read using a field point AIO-600?

    I use an external powere supply 12V to supply voltage to the load cell, and I'm reading data using AIO-600. There is a separate module that can do this, but is it possible to do it with the current material?

    Russell,

    The lowest input for the AIO-600 range is 0 - 6V.  This means that you will have a resolution of 12 bits (11.3 effective) broadcast more than 6 volts.  I guess that your full scale signal max will be 36mV.  Without amplification, you will not have a very high quality signal.  It would be the best bet to amplify your output signal mV as close to the load as possible cell and then connect this signal amplified to your AIO-600.

    Best,

    Chris LS

  • Satellite L30-134 PSL33E: CD/DVD player can't read data CD

    I bought my laptop (Satellite L30-134 PSL33E) 4 months ago and I had no problem with the optical drive of my Satellite. But yesterday, I discovered that my drive is no longer can read data CDs.

    I created a CD with the Toshiba ToDisc utility which contained MP3s. The CD works fine on another computer but when I try to play them on this computer Windows laptop tells me that the CD is blank and asks me if I want to save data.

    It doesn't have this problem with the DVD, I can read and write perfectly. My optical drive is a CARPET * a DVD-RAM UJ - 841S. Windows says I have the latest driver for it (5.1.2535.0) but it says it's from 2001 (?) in the properties under the selected hardware.

    Help, please!

    Hello

    It is not easy to say what the problem is here. If you have time please check THIS document.

    Support Bulletin 98081245 CD burning: suggestions and troubleshooting. ‘

  • read data from xml file

    Hi all

    I have an xml file store on my bb.

    How can I read data within the tag? I think that one way is to use blackberry.find.FilterExpression (), like the example below. I don't know how... but it's okay. I will try!!

    function handleOpenedFile(fullPath, blobData) {
    
        temp = blackberry.utils.blobToString(blobData);
    
       //var NomeOperatore = blackberry.find.FilterExpression('');
    }
    
    function readPianoViaggi() {
        if (blackberry.io.file.exists(filePath)) {
            blackberry.io.file.copy(filePath, filePath2);
            blackberry.io.file.readFile(filePath, handleOpenedFile);
    
        }
    }
    

    my question is: I can read data within the tag using an operation such as

    itemDescription = temp.getElementsByTagName ('NomeOperatore') var [0].firstChild.data or something similar?

    Thank you

    You would do something like the following... I don't know if my syntax is correct

    function readFile() {
      blackberry.io.file.readFile("file:///store/home/user/sample.xml",handleOpenedFile);
    }
    
    function handleOpenedFile(fullPath, blobData)
    {
      var xmlString = blackberry.utils.blobToString(blobData, null);
      var parser = new DOMParser();
      var doc = parser.parseFromString(xmlString, "text/xml");
    
      var itemDescription = doc.getElementsByTagName('NomeOperatore')[0].firstChild.data;
    }
    
  • My verse ATT modem (non apple devices to use this modem} is connected to the ATT line, Time Capsule (iPhones, Macs Time Capsule use) via ethernet Uverse.) Non apple devices can collect data from iPhones or Mac using the time Capsule?

    My verse ATT modem ({use of devices not apple wifi of this modem} is connected to the ATT line, Time Capsule (iPhones, Macs use the wifi of the time Capsule) and connect to the Uverse modem via ethernet.)

    Both devices are set to the highest security and each uses separate passwords.

    Non apple devices can collect data from iPhones or Mac using the time Capsule?

    With a bit of work by someone who knows how to do such things, not Apple computers could read some files on the Mac if file sharing is configured on the network... devices non-Apple and... He knew the device passwords or administrator for Macs.

    Mac could also play the files on other Macs if file sharing has been implemented and the device password or admin was known.

    If you ask if a PC can read the files on the Time Capsule, the answer is Yes, without doubt, assuming that the PC knew the password of device for the time Capsule.

  • Satellite M70-165: unit of CD/DVD can't read data DVDs - "not possible access to D:.

    Hello world

    I have a Satellite M70-165 equipped of a DVD unit MAST * a DVD-RAM UJ - 841S (5.1.2535.0 driver version).
    After years of 1 and a half with no problems, a few days ago, I restore the operating system (Windows XP Home) through the Toshiba restart DVD.

    Since then, the CD/DVD unit can read DVD audio, CD, or movies, but when I open a DVD (DVD software) data it is said that "it is not possible to access to the D:\." and something like "does not correct" (I use an Italian version of Win XP so I have to
    translate the messages in English).

    All drivrs are regularly installed and there should, in theory, work very well.

    I am a user of entry level, and I don't really know what to do. I attended every single forum on the issue for the past few days, but nobody does
    could help me.

    I would be extremely grateful if someone could help.

    Thanks in advance!

    Hello

    This error message has been documented on the site of Microsoft Knowledge:

    [Error message when you access the CD or DVD drive after upgrade you to Windows XP: 'Incorrect function' | http://support.microsoft.com/default.aspx?scid=kb;] EN-US; 315350]

    The documentation says that this problem can occur if the registration of CD from Roxio Easy CD Creator program is installed on the computer, and if the version of the CD burning program is not compatible with Windows XP.

    Please take a look at this Forum thread too:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=24203&MessageID=88868

    A user has solved this suppression of some video capture software that had a DVD DIY option.
    These programs may change the whole registry values and causes these annoying problems.

    Please check if you have installed these programs

  • How to read the Serial Arduino data using labview VISA?

    Hi =). Im a beginner work reading data series from an arduino but im facing... Lets do it step by step

    I built a voltage divider circuit which gives from output
    from 0 to 5V. The output of this circuit is sent to a 0 analog input pin
    of a Committee of Arduino Duemilanove.

    (1) Firstly, I connected the cable to connect to my laptop USB the Arduino.

    (2) I went to start-> control
    Control Panel-> system-> hardware-> Device Manager. Check the Ports (COM
    & LPT). In my laptop I can see USB Serial Port (COM4). Now I know only in
    LabVIEW that I must read the data series COM 4.

    (3) to the side of the arduino, here's the code to read changes in voltage
    entered to analog pin 0. The last line of 'delay' determines the sampling
    Rate of how we want to taste the output of the voltage divider:

    int potPin = 0;    Select the input pin for the output of the voltage divider
    int val = 0;       variable to store the value from the probe

    void setup()
    {
    Serial.begin(9600) (9600);    Opens the serial port, establishes the rate of 9600 bps data
    }

    void loop() {}
    Val = analogRead (potPin); read the value of the voltage divider
    Serial.println (Val);
    Delay (10);
    }

    I slightly modified the basis series reading writing VI... I have
    attached the block schema used with comments. Basically, I tried to read
    data series, divide by 1023 and multiply by 5 to graphic voltage
    variations of the voltage divider circuit.  But Im not getting
    the correct voltage output values. The value of the tension just keeps go
    0 and coming again, as shown in the photo.

    Could you guys please guide me on what went wrong?

    Thank you!

    -you read the data, even if there is no data on the port. If 0 bytes are read => «»

    -in the case of false, you resources VISA wired for the output of channel tunnel?

    -There is no close VISA at the end of the VI resources

    -you're not a loop this VI reading bytes

    I added an addaption of your VI that you should give a try maybe

  • I use the MODBUS library and can receive data, but I can send it very well?

    Hello

    I use the Modbus Library to communicate with a VFD to control a fan. I use the master write and read vi. I can write data to the drive mechanism and get the fan to do what I want. The VFD is supposed to send a package of confirmation after I told him to do something and I can also read its records. When debugging the VI it shows that the problem is that the buffer always reads zero and the VI timesout. If I look at the USB adapter lights to RS 485, I use to interface with the drive mechanism, I see that the flashes of light RX immediately after I send a message. So I should have something in the buffer. Does anyone have any suggestions?

    Aaron

    OK, here's what has happened to those who have this problem. In the series Receive.vi MB The bytes to the Port of property node has been reading 0 even if there was something in the buffer. Executing the program was then stuck in a loop until it expired and never went to read anything of serial port buffer. I didn't spend too much time wondering why that VI has not worked and created my own. Within a period appropriate after writing to the serial port, I used the same bytes to the Port property node and was able to get the exact number of bytes to the stream and then VISA vi the number of bytes to read. I received the message of the right answer and everything seemed good. But of course that NO! Then I experimented with different speeds of writing to the drive mechanism to get the fan to operate at different speeds. I found a small range of speeds where I get no response to the VFD, either in operation or by sending me a response packet. After a while, I found that there is a mistake in the LRC-8 code in the MODBUS library OR. It does not prescribe that the LRC will be a two-character value. So if your LRC is proving to be a single character such as F value (which should be 0F) you get an incomplete MODBUS message. This has been easily corrected in the vi LRC8 saying "number in hexadecimal string" vi to produce output with a minimum width of two. Then everything worked fine. Moral of the story, it's the MODBUS library is awkward.

  • Simulation read data file (*.) (DAT) by using the worksheet (file reading eror - zeros)

    Dear OR community,

    IM pretty new in LabVIEW, so I have a few broblems with reading the data.

    I take a screenshot and mark a problem like part - A and part b below:

    The description of the goal:

    I do a mathematical simulation, using the old software whitch exporting results as shown in 1... DAT file, as it shown in the picture (Notepad).

    First of all I need not read these data then I need to draw the graph XY.

    Description of the problem:

    I created a LabVIEW program and im using a funciont reading of spreadsheet per section B - but when im trying to read data im getting all zeros...

    so I can't identify my problem... What is the problem?

    I try different file to read its Case_test_working.txt and everything is good with this data but when im trying to read *. DAT file zeros is array...

    I tried to use seperator different symbols, also try to imort data to exel then export to *.scv, *.txt formats, but the performance was the same as that indicated in part-A.

    Whenever I get zeros, but not a results as in *. DAT or another file format exported with the same data.

    Please be respectifull and understand that im still newbie in labview but I think its excellent software of filtering of the analysis of data and calculations, so I want to master this software for my future use.

    Respectfully,.
    Tomas E


  • Is it possible that I can read or convert from a floppy midi data?

    Floppy disk

    Vista will not read data Midi from a floppy sequenced on a roland mc 50, purchased in the early 1990s, is there any software that could convert my files so that Vista will read? I have hundreds of songs, I need to back up any help would be appreciated.

    If you connect the player to your PC using a floppy drive cable USB and go...
    Start / computer... is recognized with a drive letter of the floppy drive?

    If_yes_can you make a left click of the letter reader and view the directory
    the floppy?

    These files have an extension .mid?

    Have you tried to copy and paste to a folder on your hard drive?

    FWIW... the Format Factory free software can convert MIDI files
    a digital audio format. WMA or. MP3...

  • CD DVD player: can not read data DVD discs that burned same machine

    Laptop with Windows Vista cannot read data DVD discs that burned same machine.  The discs work on another computer.  My laptop will read CD disks, he did, and it will play DVD movies. What's wrong?

    Hello

    You have disk problems as the CD/DVD is actually 4 discs in 1 case (CD &)
    Burn DVDs and CDs and read DVDs). So it is not unusual for 1 or 2 parts to no function
    while others are doing so correctly.

    Burning at low speed, or by using the master could help. A CD/DVD cleaner
    could help.

    Brand of the CD or DVD drive can also be the problem. Low quality (cheap brands) are always
    issue.

    CD/DVDs have a tolerance + - and your can read/write on the outside edge
    tolerances of the disks. They may be delivered, but it is usually cheaper to replace
    the reader.

    Several good info here:
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Notes on the troubleshooting and repair of readers of compact disks and CD-ROM Drives
    http://www.repairfaq.org/repair/F_cdfaq7.html#CDFAQ_014

    ===========================================

    This troubleshooting might not help if there are problems of alignment and wear it
    is worth it.

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    for Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error in Windows
    Vista installation after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then check the cables
    both ends. Remove and replace, do not just tight. For laptops, you can often clean the
    power and data of the contacts with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the system manufacturer
    and the manufacturer of the device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD &)
    Burn DVDs and CDs and read DVDs). So it is not unusual for 1 or 2 operational parts while
    others do it properly.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    the entries in registry that the troubleshooter does not solve and those who "might" be the cause.

    Check with your Maker system and a device for the two possible firmware updates and
    the correct registry entries for your car.

    Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
    as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
    the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more info here and maybe even the exact registry for your CD/DVD settings
    drive from someone with the same model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
    nothing change) - find the DevManView device and then make a right click on it free in RegEdit.

    DevManView - free - an alternative to the standard Windows Device Manager, which displays all the
    devices and their properties in flat table, instead of the tree viewer
    http://www.NirSoft.NET/utils/device_manager_view.html

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • ESXi with Buffalo Terastation as an NFS server - can't read data - still unsolved

    Hello

    I ve connected correctly my ESXi 4 server via NFS with a Buffalo Terastation XL. I can see storage information and I can write data to this topic, BUT: I can´t read the data!

    All orders, like create VM, copy/move files and create folders work propoerly I can see the files on the NAS via ftp with no problems.

    But via VSphere I can't access/read data.

    Does anyone have an idea what I m doing wrong?

    Thank you

    Dirk

    Post edited by: dirkschirmer

    Unfortunately pressed 'useful' by accident, but the problem remains.

    HO w you're reading data?

    Buffalo boxes are very slow, so no wait for great performance.

Maybe you are looking for