Labview misses a read when using Ni USB 8473 can interface

I was wondering if anybody here has had experience with this problem... I already talked to a Labview tech but i have not received an answer yet...
This is my problem..
I have a program that  when a button is pressed, it initializes a can interface to CAN0 for example, then it writes... then it waits about 100mills and then it reads... My computer is connected to a simulator through the USB 8473 interface (I have the problem when I connect it to the hardware I am going to use), and everytime I write, this simulator sends a response... The problem is that sometimes I don't see a response... I have made sure that the simulator responds so I know it is responding... I have changed the waiting time before the read from 1 mills to 100 mills to 1 second, and still with the same result... 
The way I have fixed this problem is by reading multiple times (3 times)... so every time I send a request, i wait 100 mills... then I read once, wait 25 mills, then read again, wait, then read again....
So, I wanted to know if anybody here has had to do this in order to get around this problem...???
The reason why I was asking this is because I also have another application that has to monitor my hardware by sending requests every 100 milliseconds... so I have two loops, once that writes requests every 100 mills... and another that reads the responses every 20 mills... but sometimes it looks like eventhough i read this many times, I still miss some frames, which are caught later but still not good enough...
I have posted a different thread about the above problem...
If you have questions just ask please...
Thanks

Yes, by Labview tech i meant NI Support... sorry about that...
I am still waiting for them on this subject...
I'll attach a simplified version of my code (the only difference between this code and the original is that i parse all the data that i get...)
I am attaching these if a couple replys... 
Run the receive and respond (simulator) then run the CAN_PROBLEM vi... click on the OK button to write then read... you can tell it missed the message when the Frames to Read field is 0...
 how are you sure that you device is sending a response?
Very sure... 100%... the original simulator lets me know when it sends the response...
Can you run bus monitor on another port, ie another USB-CAN device?
I did that, and the other USB-CAN gets it... the program I am running on the other computer is called CANyliser... I think that program waits until there is something in the queue (which I am not doing with mine)... I am just reading after I have wrote teh message (reading after about 100 mills I wrote)... So I am assuming that's plenty of time... i have increased this waiting time to 1 sec and still get the same behaviour...
Attachments:
CAN_PROBLEM.vi ‏16 KB
ReceiveAndRespond.vi ‏17 KB
CAN INIT.vi ‏23 KB

Similar Messages

  • Errors when using multiple USB-8473 devices

    I am trying to put together an application that uses five USB-8473 devices simultaneously on one PC. I can't seem to get more than two of them running without getting error -1074388956 (object handle invalid). Any two of them will run together, but when I go from two devices to three, I get the error every time. I have gone through and made sure that the object handles I am providing to ncReadNetMult are the same ones generated by ncOpen. Is there some limit to the number of these devices that can be run at the same time on one PC?
    It is not a USB issue (though they are all on the same powered hub) because I am only writing 4 frames/sec on each device and get the same issue without any modules attached.
    I need to run five at a time so I can talk to five modules with the same address at the same time.

    Marcus,
    Can you please clarify your comments regarding the USB hub? Specifically why you believe the hub is not part of the issue? I looked into the spec for the USB 8473 and these devices are rated at 250mA and 5VDC per module. Can you please check the rating of your hub? If you are trying to run 5 modules simultaneously, you will need the hub to output 1250mA to power all 5 modules. One of the common current output ratings is 500mA per hub - thus your ability to run only 2 modules.
    One way to eliminate the hub as the root cause is to try to connect multiple modules directly to your computer. I checked on my system and found that each of my 7 USB ports is rated at 500mA each. To check on your computer simply go to the Device Manager and expand USB Controllers. This will let you know how many internal "hubs" are on your system. When you right click on a hub, select "Properties", and click the "Power" tab, you will see the current rating of the ports assigned to that internal hub. If you have 3 (or more) available ports that meet the power requirements, then you should be able to test with three (or more) modules to see if the issue is present without the external powered hub.
    To me it sounds as though your hardware requires more current than the hub can supply.
    Kareem W.
    National Instruments
    Web Product Manager

  • [RESOLVED] "Isolinux.bin missing or corrupt" when booting from USB.

    Just giving root cause explanation and resolution to closed topic:
    https://bbs.archlinux.org/viewtopic.php?id=107241
    where "Isolinux.bin missing or corrupt" when booting from USB. I hope maybe someone will find it rather than closed topic 107241  :-(
    Windows DD and  unetbootin-windows are created for single ISO partition. That's why old Archlinux like 2010-05 will run.
    The newest one archlinux-2014.01.05-dual.iso will not work like that because there is UEFI pre-boot (two partitions). That's why it can't find then Isolinux.bin and report it's missing. Of course this kind of issue will appear on old motherboard without / old UEFI support as they can't understand bootstrap and real root fs later.
    unetbootin tool is partition driven so it can't do split well 32 UEFI + remaining root.
    Resolution:
    If you really don't have any Linux based machine to use Linux DD there is work around:
    1. Install WIndows Virutalbox and extension pack
    2. Download latest Archlinux ISO and run VM from it + USB support map real pendrive
    3. In guest VM booted form Arch ISO just run DD if=/dev/sr0 of=/dev/sda (pay attention that SDA is real USB device then).
    4. Wait about 8minutes. halt. unplug usb. Voila.
    Last edited by varsovie (2014-01-15 22:20:37)

    I am having this exact problem but with dd on Ubuntu 12.04 (my main distro on my main machine).
    Perhaps my version of dd is too old?

  • LabView (8.2) hangs when using I/O operations with traditiona​l NI-DAQ 7.4.4 after aborting LabView program

    Hello!
    We have the following problem:
    LabView (8.2) hangs when using I/O operations with traditional NI-DAQ 7.4.4 after aborting LabView program
    We freshly installed LabView 8.2 (2006) and NI-DAQ 7.4.4 on a PC running Windows XP (Service Pack 3). We built a larger vi that remotely controls a traditional NI-DAQ card (AT-AO-10) on a second PC via NI-VISA 5.0.3. We were successfully running this program until a power failure caused the first computer to crash. After this crash we were unable to start the program again: LabView freezes while loading the vi. LabView itself can be started but freezes when adding I/O operations from the NI-DAQ palette to a block diagram.
    We have tried to re-install NI-DAQ 7.4.4, but it did not help. We then re-installed all NI software, but still no improvement. In the end we decided to reinstall ALL software, first Windows XP, then LabView and finally NI-DAQ 7.4.4. This worked. However, after a few days of running the program we had to abort LabView via Windows Task manager and afterward we again experienced the same problem as before: LabView freezes when loading the program.
    Obviously, we cannot afford to reinstall Windows every time. Are there any known Windows XP / NI-DAQ issues that might cause the freezing of LabView? We would be very grateful for any idea.
    Best regards,
    Matthias

    Hello Sprice,
    Browse the shipping examples according to “Directory Structure” and then select
    DAQ to find the Traditional DAQ examples. 
    There a lot of examples that are written for counters (Counter >>
    daq-stc.llb >> Count Edges (DAQ-STC).vi). 
    What kind of signals are your photons creating?  Are they TTL compatible at a certain
    frequency?  You don’t care about overwriting
    your buffer?
    Respectfully,
    Rob F
    Test Engineer
    Condition Measurements
    National Instruments

  • Photobooth crashes every single time when using Motu Hybrid MK3 audio interface?

    Photobooth crashes every single time when using Motu Hybrid MK3 audio interface.
    It is happening on my late 2013 IMAC, and also on my old 2011 Macbook pro.

    Same thing here with Mavericks and M-Audio Fast Track Ultra.  Very easy to reproduce, Apple. Set your audio interface for the external device, try to record Photo Booth video. It will crash. Every. Single. Time. Always.

  • I changed language from EN-GB to EN-US but my keyboard is still British (only when using FF). How can I change it to EN-US? in English

    I changed language (based on an answer in this forum) from EN-GB to EN-US but my keyboard is still British (only when using FF). How can I change it to EN-US?
    Should I just export my bookmarks, uninstall and reinstall the proper version? That may just be shorter than anything else.

    GREAT!. Thanks a lot for educating me. There seem to be a million things we have to learn about our computers and when we run into them the first time they seem insurmountable. You pointed me to the solution. Thanks again. Ben

  • Pages-when using template for envelopes can you import names/address from address book

    When using templates for envelopes can you import names/address from the address book?

    Drag the VCard from Address Book onto the open envelope template.
    If you want mutiple addresses make a Group of those in Address Book and drag the Group icon onto the Pages template.
    Peter

  • Where are my designs stored when using Adobe CC and can i access them if i cancel ?

    where are my designs stored when using Adobe CC and can i access them if i cancel ?

    This is answered in the CC FAQ: http://www.adobe.com/products/creativecloud/faq.html

  • Hi! Since I installed Mavericks, all the messages in mail I receive are marked as read, when they're not! Can anyone explain to me how to make them appear as not read, so I notice them? Thank's

    Hi! Since I installed Mavericks, all the messages in mail I receive are marked as read, when they're not! Can anyone explain to me how to make them appear as not read, so I notice them? Thank's

    I don't know if it will work, but try rebuilding the mailbox. This can take awhile if you have a lot of mail.
    Rebuild mailbox

  • Is there a way when using iTunes Visualiser, I can put the lyrics on screen?

    Is there a way when using iTunes Visualizer, I can put the lyrics of the song i am playing on screen? It would be really cool.

    I got it to work now by writing code to convert it back to an array. Thanks

  • Phone receiver only works when using speaker. I can only receive/answer callls using the speaker.

    After dropping my phone, the iPhone 5 receiver only works when using speaker. I can only receive/answer callls using the speaker.  What to do?

    Hi jlk166,
    I understand that you are experiencing some issues with your receiver speaker. Here is an article that can help you troubleshoot this issue:
    If you can't hear a person on a call or voicemail or if the sound quality is poor on iPhone
    http://support.apple.com/kb/ts5196
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • I recently tried updating my iPad and while doing this, my internet connection faulted. since then my PC does not recognise my i Pad when connected through USB. Can anyone help please???

    I recently tried updating my iPad and while doing this, my internet connection faulted. since then my PC does not recognise my i Pad when connected through USB. Can anyone help please???

    You may have to force your iPad into recovery mode in order to restore the device since the update did not complete. This article explains how to do that.
    iPad: Unable to update or restore

  • Can't get my mail when use the USB Ethernet adapter

    I can't get my mail when use the Apple USB Ethernet Adapter. If I use a wireless connection, there is no problem. The LAN which I'm trying to connect is behind a proxy server but the Internet is working 100%.

    Hi ViK,
    This sounds like a question for the network administrator of the location. Without knowing how the proxy is set it's impossible to know what it's blocking (incoming/outgoing). It sounds like it might be filtering the incoming mail server.

  • Missing Search Field when using 3.1 Create App Wizard ?

    Hi
    2 points which look like bugs to me;
    1 - In all previous versions whenever I used the create app wizard to build up a list of pages, reports always included the 'search across any varchar field' funtionality. This seems to have disappeared when using the Classic form of reports. It is obviously there if you use an Interactive report.
    2 - Again when using the Create App wizard, if I use the Classic form (in order to be able to also 'Generate Analysis Pages') these do get built, but not linked in any way (tab, list region, button etc) to any other pages. I can link them myself, but I am demonstrating APEX here and it doesn't look so good....
    Can someone just quickly confirm I am not going mad here ?
    Jules

    Hi Jules,
    You're not going mad! I've reviewed the behaviour of the Search field and the Analysis Pages link using releases 3.0.1 and 3.1.1, and there is a difference in behaviour between the two versions.
    Classic Reports generated via the Create Application Wizard in 3.1.1 should have a Search text field above the report region, however this field is missing. I've logged bug 7185486 for this issue. Classic Report&Forms generated via the Create Application Wizard, with the "Include Analysis Pages" option selected, are missing a link to the Analysis pages in 3.1.1. I've logged bug 7185486 for this issue. I've updated both bugs with a workaround. A fix for these issues will be available in a future release. Thanks for bringing these two issues to our attention.
    Regards,
    Hilary

  • Email entering inbox as read when using Outlook Connector

    When using Outlook Connector (R 9.0.4.1) with Outlook 2003 all mail that is received has the header:
    'This message has not been sent.
    The message will be sent via Oracle Connector for Outlook.'
    All mail that is received is also marked as read.
    When Outlook connector is removed there is no problem.
    I haven't found any settings within Outlook that would help.
    Has anyone else experienced this problem, or have any ideas what is causing it?

    Hi,
    Don't know if you meant it literally, but OCFO only started supporting Outlook 2003 with 9.0.4.1.11, not 9.0.4.1. Perhaps this is part of the problem.
    Regards,
    Francois Perrault

Maybe you are looking for

  • Itunes libraries on new user account on Mac

    Hi everyone, got a complicated one for you, or I think so.  I bought my Mac from a relative.  I set up users for all the family but I kept his user account and just changed it to be mine as an administrator.  All was fine and managed to transfer my i

  • Will symbian anna will be lost after hard reset?

    if i hard reset my n8 then symbian anna will be lost????? And it will display sym 3????

  • Difference between Business content of 2004 and 2004s

    Hi all, I was looking at the Business Content delivered with BI 2004 (BW 3.5)and BI 2004s (BW 7) for <b>Payroll</b> at the below links. It seemed they are almost the same. Can anyone tell me if there is any major difference between the two (specifica

  • App to track App usage?

    I'd like to arrange my Apps in order of most used. Let's say I have Compass on the front page but I only used it once in the last month and Maps is on the last page but I use it every week. It would make more sense for Maps to be toward the front. Do

  • Web excel print - scale

    Hi All, I followed all the instruction as per the document, it works. when I click on the print Icon, it shows the excel output, fine. But when I try for <x:scale>80</x:scale> OR <x:FitWidth>1</x:FitWidth> OR <x:FitHeight>0</x:FitHeight> are not work