VISA : USB through PIC microcontoller, writing is good, but not reading

Hi guys;
I'm trying to put together a simple VISA USB read/write program to test communication from Labview to a PIC microcontroller.
I've found an example on youtube and wanted to try to implement it.
Well, in the owners video everything seems to work juste fine, but for me only the writing is working, I can't read data from the microcontroller.
Can anybody explain to me what is going wrong on this ?
Here is a the diagram.
Thank you.

Give this a try.
You don't need to initialize the USB port every iteration of your loop.  Nor do you need to close it each time either.  Move those out of the loop.  I also greatly simplified the conversion of your data to write.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Attachments:
USB Read and Write.png ‏25 KB

Similar Messages

  • GL Journal entry looks good but not Fixed Assets in 11.5.10.2.0 -

    In the GL Journal entry it looks perfect, but not in FIXED ASSETS
    This is on 11.5.10.2.0
    Depreciation amount is not correct in Fixed assets and Any thoughts on that or please let us know how to go about
    In the Form
    Depreciation
    Period
    Jan-12
    expenses 651.94000.89..whateer
    Deprectiaon should be 442.00 whereas it is showing different number
    whereas it does show properly in GL Journal entry
    How to get this value transferred or migrated
    GL looks good but not in Fixed assets- Is there a process we can review or
    find more information on it

    Hi,
    I am pasting my comments next to yours :
    These are the issues that needs to be resolved:
    • Depreciated balance are over stated in Fixed Assets and needs to be adjusted to reflect what is in GL. => I wasn't sure how this was was possible, since I  assumed that your Asset depreciation journals in GL were being fed from FA. So if depreciation was thought to be incorrect in FA, its corresponding balance in GL should've been incorrect as well. But I guess that's not the case because your other questions imply that some of these assets were acquired and their might have been some conversion activity involved.
    • Fixed Assets mass additions are selecting GL accounts that should not be selected. We need to know how to change the criteria for selection. +=> Check the Asset Clearing and CIP clearing accounts on your asset categories+
    Later:
    • We need to learn the proper way to convert assets we acquired from acquisition into our Oracle Fixed Assets system, so that depreciation start at the time we acquire the assets. => That is correct, you could change your original date placed in service to the acquisition date as part of conversion and if you have the correct prorate convention, they should depreciate the way you want it to.

  • USB port Working for my Wireless mouse but not working for another Devices like Flash Memory ?, USB port Working for my Wireless mouse but not working for another Devices like Flash Memory ?

    USB port Working for my Wireless mouse but not working for another Devices like Flash Memory ? Anyone can help me plz?

    Hi, is this a question" Post?
    or are you just offering an insight into your Mouse Issue?
    Generally and at times we all have little idiosyncrasies appearing with the running of our Macs.
    I use the same Logitech BT with my MBP. MB & iBook..(not at the same time) Only ever had one issue
    and the cure was to completely Delete the mouse from BT -> Repair Permissions & Reboot then Re Install the BT mouse..Ihave just put a new set of batteries in the Logitech (only 2nd set ever)...L

  • USB flash drive defined as boot device but not visible by the boot driver.

    I have installed Mountain Lion (10.8.2) over Lion a few days ago. In the follow-up operations, I tried to create a USB flash drive recovery device, using methods widely advertised over the web. I first tried this with an 8 GB "Kingston DT 101 G2" device. The creation of the device either manually through the use of the Disk Utility or using a small utility called Lion DiskMaker 2.0.2 worked OK.
    However, after setting the resulting device as the boot device through "System Preference", it never booted on it, but instead on the normal system disk. Conversely, when booting with the option key depressed, I could only see as option the normal system disk or its recovery partition, but never the USB flash drive, although it was present.
    After numerous tests, through the so-called "trial and error" method, I eventually found out that I obtained perfectly bootable USB devices with either a generic device seen as "USB 2 USB Flash Drive" by the disk utility, or with a "Kingston Data Traveler G3" USB flash drive (both being 8 GB devices).
    Now, I can understand that, for whatever reason, some USB devices, although formatted as boot devices, will not be seen by the boot driver. But, in such a case, it is a serious issue that "System Preference" accepts to set them as boot devices. I would suggest that "System Preference" tests whether the boot driver is able to see them and, if not, issues an error message instead of accepting them as boot device.
    I also have an unrelated side question: when restoring a disk through the Disk Utility, is the resulting new volume defragmented and compacted by the process or not?

    I can only tell you that some USB flash drives don't work as expected on Macs, and I don't believe it is specifically related to the product since they often work for others. I have five flash drives from a particular manufacturer that when plugged into one of my computers are not recognized, yet they are on all my other computers. I have six or seven older ones from the same manufacturer, same model, that work fine on all my computers. I have two Kingston Travelers that would not work as a bootable device on any of my computers. Many other users here have had issues with San Disk flash drives.
    I don't know if this helps any, but at least you can know that you aren't alone.
    One thing I can suggest is when you prepare a new flash drive that you go through this process:
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    This may fix boot problems with new flash drives because they are often prepared by the manufacturer with NTFS. To fully clear the drive you must both partition and format the device. Writing zeros has in some cases helped make a drive bootable when at first it was not.

  • USB stick shows up in Apple system but not in Disk utilities nor in finder

    I havebought a brand new USB stick, brand Intenso (this is the last time I buy this brand!!) . I opened it and pluged it to the fast usb port on my Imac (osx10.5.8), till now all good, it shows up on the finder I save an important file on it and eject. A week later, my hard disk crashes, I try to recup a little data here and there. I dig out the Intenso stick, plug it: NOTHING. It appears in the Hard Disk: About------->More Info but not in the finder nor in Disk Utilities.
    I tried on another mac laptop this time, still nothing and a laptop Pc: nothing.
    Given that I already lost mega valuable data, it would a gift of God if someonecan help me recup at least this file!! Help

    I could be looking at the wrong Disk Doctor application, the one I saw would not recover files, at least that is what I understood from the write up, it could be a different application than the one you have though.
    Disk warrior is expensive and there is no guarantee that it would work, I suppose if you cannot find another application then you have a decision on if you want to buy it.
    I would suggest you stop trying to recover the files until you have determined what applcation you want to use, the more your try and access the USB stick the more you are likely to make things worse. When you have a suitable application then give it a try, hopefully it will work for you.
    Good luck

  • Sound through hdmi to my tv works but not when watching video online like 4OD

    the sound through hdmi to my tv works with music and videos I have downloaded, but not when watching video online like 4OD and youtube.
    How can I get it to work?

    Ok so I happened to figure it out while on the phone to apple support. Even though the guy was very nice, I think I knew more than him! He was explaining very basic resolution principles I played about. I had the second option in displays resolution. All I did was unplug the HDMI cable, click on 'best for display' then plugged the HDMI in and my resolution on the normal monitor changed to the normal blue, then went black momentarily and then changed to a strange resolution but another window appeared that said SONY BRAVIA HDMI at the top! Hey presto! Don't know why it didn't do it yesterday - I probably left the HDMI cable in or something! Oh well. Problem solved!

  • MSI RS480M2 - works good - but not perfect ;)

    Hi ! I got a problem with my mainboard. I read that if i want to use Win 2000 (I got license so I didn't want to change my OS) I have to setup bios for SATA (RAID), to avoid pio mode error in win2k IDE driver. Of course it works very good, but.. the problem is when I use SATA mode - the bios splash (POST procedure) takes very long time. How to speed up POST procedure in SATA mode ?? In PATA mode POST takes 2-3 seconds - in SATA 15-20s. And the second question is ... how can I use SATA mode in WinXP x64 (I got 120 days beta from MS webpage) - there is no driver on ATI disk for x64. Is it possible ?? Now I'm doing bios setup to change from SATA (in w2k) to PATA (in XP64) everytime I want to boot. Is WinXP64 compatible with SiI SATA without drivers ? What do you think ?

    If you explore the download packages, there's a MakeDisk.txt with the following instructions on buidling the floppy:
       If you lost your Driver Disk labeled as "Silicon Image SATA RAID Drivers"
       This file will teach you how to make one Driver Disk
       First please perpare one formatted 1.44M Floppy
       Then please copy necessary driver from MSI Driver CD
    - Driver for Win2000/NT40/XP/2003
      Please copy CDROM:
      ATI\RS480\SBDrv\SATARAID
                               si3112r.cat  file
                               Si3112r.inf  file
                            Si3112r.sys  file
                            SiiSupp.vxd  file
                               SilSupp.cpl  file
                               SIWinAcc.sys file
                               TxtSetup.oem file
    Danno

  • USB Charger Works With BF's iTouch But Not With Mine?!

    Hello! My apologies for this being a bit long even though the problem is pretty straight-forward:
    Both my boyfriend and myself have the iPod Touch 4 G. I bought mine a few months ago and bought his for a Valentine's Day present for him on Feb 14th of this year. So about a week and a half ago or so. So, the problem is with charging them. I have a Powerline dual usb wall/car charger that's been working fine for about three years. It will charge my tablet PC and it will also charge my boyfriend's iTouch. It will not, however, charge my iTouch. I can charge my iTouch through the computer or through our wifi router's usb port but as soon as I plug it into our wall charger: zip. If I plug it into the wall charger while the iTouch is turned completely off the iTouch will boot up instantly after being connected to the wall charger but it won't charge at all. Anyone have any suggestions?
    Maybe I will just have to get a new wall charger for my iTouch. I really need one as I am going to be staying with my grandmother for the month of March and she has no computer or anything for me to charge my devices on other than the wall socket. It's just odd that my wall charger will charge my boyfriend's iTouch and mine will boot up when connected to it, but it won't charge it at all. Thank you for reading this and hopefully providing me with a workable solution. Oh, yeah, forgot to mention; I reset and restored my iTouch and tried it again. No luck. At least it's charging via other means; computer/wifi router, but I'd like to find out why the wall charger is only charging one of our iTouches.
    I have tried resetting the device and I have also tried restoring it to factory settings and starting from scratch. I have tried other usb iPod usb cord/plugs, (we have three; one's mine, one's for my boyfriend's iTouch and one's left over from an upgraded iPod), and I have tried plugging the charger into different wall sockets. Like I said; it will charge the boyfriend's iPod fine and my iPod will boot up from complete shut down when plugged into the wall charger but it won't start charging.
    Thanks!
    ~Ami E. Bowen

    I am replying to my own question because this is how it was solved, for me at least. Since I was still within my 1-year warrenty I simply took my iPod Touch down to our local Apple Retail store and they traded me the faulty one for a brand new one. I went home, plugged it in to all the chargers one by one and every one works fine with the new one. So, if you have this problem, too, and are within your warrenty, I'd suggest going to your local Apple Retail Center and trading the old/faulty iPod for a new/better one.
    ~Ami E. Bowen

  • Good but not too expensive audio interface

    Hi,
    Can anyone recommend any reasonably cheap audio interfaces that have an xlr mic input and either a firewire output or usb output for use with garageband? I want a good enough signal to be able to record some near professional level vocals ( I realise this is a bit of an arbitrary measurement of quality but you know what I mean). I tried the Phonic Firefly 302 but the signal was terrible and I couldn't get it to work properly (presuming that the signal I got wasn't the best it transmits).
    Cheers.

    I also have an ART Tube MP - bought it especially for my 2 Valve Juniors (1 head & cab and 1 V3 Combo)... it works very nice as a volume boost for the cleans (after about 11:00 o'clock the VJ becomes raunchy) and also as a bit of a gain boost too when I crank em up - you can actually overdrive the 12AX7 tube in it. Nice lil' "mod" that requires no soldering and mucking about inside the VJ. I like mine a lot.

  • My WD My Passport SE USB 3.0 works with MacBook Pro but NOT new iMAC?

    The drive works fine on my MacBook and I can see it from the iMAC when I share it.  but the iMac will not recognise it, nothing in Disk Utility, when plugged directly in.
    WD are unable to help as I don't believe there is a USB 3.0 Y cable in the UK and the latest firmware, which supposedly fixes a 'read with Lion OS' issue, does not make a difference.
    Any helps????
    Thanks
    Paul

    I've done dwb's suggestion #3, removing the perfectly good WD bare drive from their perfectly bad enclosures and installing it in an enclosure from Other World Computing. Their enclosures always work; "name-brand" enclosures seem to be very troublesome.
    The cheapest option after resetting the PRAM/NVRAM is to get a powered USB2 hub as in dwb's #2. The Passport must get all power from the computer's USB port and, if you have a lot of USB devices attached, there may not be enough power left to turn the drive. A powered USB hub has an independent power supply so devices attached to it are not competing for power.
    Although I've not tried it, there are positive reports that using Disk Utility to reformat the drive for Macintosh (they are formatted for Windoze when they ship) made the drive behave without resorting to an enclosure or a powered hub.

  • I am struggling to connect my macbook pro to a wireless network. Works fine with USB and my Toshiba can print wirelessly but not the MAC. Any ideas?

    Hi
    I cant print wirelessly on my Mac pro but can via usb. the Toshiba does work wirelessly..any ideas?

    If you can use the wireless network properly (surf the web, check email, etc.) then there is probably nothing wrong with your network settings.
    When you print from your Mac Pro, does the printer show up in the Printer list at all (in the Print dialog box)?
    If not, have you already tried to Add Printer from the bottom of the Printer list?
    If you click Add Printer and it can't see the printer, the next thing to do is probably go to the Toshiba printer web site and see if there is a Mac printer driver to download and install so that it shows up in the Printer list.

  • Took photos with iphone 4s. Pic displays in picture preview, but not in camera roll. Any advice? Pic should be on phone somewhere.

    Took photo with iphone 4s. Picture displays in picture preview on bottom left, but is not in camera roll. Pic should be in phone somewhere since it's in preview. Any advice?

    Ok try this kennylebouef,
    Open multitasking by double tapping the home button (at the bottom), a row of apps you've recently used should appear, tap and hold the photos app until it wiggles and displays an x, tap the x to close and then reopen the camera roll app. Let me know if it works. It's odd and frustrating, I know.

  • Magicjack USB works on older 24 inch iMac but not on newer 27 inch imac, why?

    When i call MAGICJACK and APPLE they tell me that there is not enough power in the USB  connection behind my 27 inch iMac
    My 24 inch iMac works fine with it
    any reason why?
    i went to the apple store and all the new portables work fine with the MAgicjack
    The desktops do not work with the magicjack
    not enough power?
    HELP ME PLEASE

    Strange. Try doing a couple of basic resets: First is restart the computer in Safe Mode, this will clear the caches. If no luck there try both a SMC and PRAM resets. The SMC is OK to try several times.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Press and hold the power button for 5 seconds.
    Release the power button.
    Attach the computers power cable.
    Press the power button to turn on the computer.
    PRAM RESET
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • Audio from Track 1 good but not Track 2. How to fix?

    I have dialog between two people. One recorded on a Boom, and the other recorded on a lavalier microphone both going into the same receiver. The problem I am having now is that When listening to subject one Track one sounds crisp and clear in the left ear of my earphones, but in the right ear she sounds like she is in a tunnel. And for subject two it the same problem but the complete opposite earphone sides.
    What I am thinking can be a solution is splitting deleting the track that is bad for each subject and making the good track a MONO. Is there any way to do this? Or maybe a better way to fix my problem?
    Here is a link to what the audio sounds like:
    http://www.youtube.com/watch?v=6Dtzhg1yERA

    Hopefully you recorded this material as Dual Mono.
    From what you posted - each track is good for the speaker directly targeted - Yes?
    If so, this is how it should be. Pan the tracks to center and cut between them to isolate the good audio for each speaker.
    x

  • Studio Drill-Through Works in Excel Add-In but not Smart View

    So I have a drill-through defined that works fine in the Excel Add-In. But, when I try to drill on the same intersection in Smart View, I get "No drill-through reports found at this location." I used the same member combinations for both, so I know the intersection is correct. Am I missing something simple?
    -Brian

    There are some limitations on drill through:
    These are two ports >>transport.port and server.httpPort.used to communicate with Essbase Spreadsheet Add-in and Hyperion Smart View.
    In Hyperion Smart View, drill-through will not work properly. You must refresh the port number stored in the cube by following the instructions in "Updating Cube Linkage" See the Essbase Studio Online Help or Essbase Studio User's Guide.
    Change the HTTP Port Number:
    If you add an entry for the server.httpPort property in the server.properties file to change it from the default setting of 9080, the following is the state of drill-through connectivity on cubes built prior to the port adjustment.
    Note: Cubes built after the port adjustment will work properly. In Smart View, drill-through will work properly.
    PS:
    With shared connections, Smart View always connects first with the EPM Workspace Web application to authenticate the user and then connects to each provider using the EPM SSO token. With private connections, SmartView authenticates with the provider
    Adding to solution if your using 11.1.1.3.01 try adding PATCH:9779433 will help
    Edited by: KVC on Nov 9, 2011 1:38 PM
    Edited by: KVC on Nov 9, 2011 4:29 PM

Maybe you are looking for

  • Can I call an external program from my rman script

    Hi Is it possible to do an external call to a bat-file in a rman script? My script looks like this (it's pretty much generated from EM): $rman_script="backup device type disk tag '%TAG' database; sql 'alter system archive log current'; backup device

  • Calling the RFC from other system.

    Hi Everybody. I have two systems.One is ECC and other is SAP R/3. I have created one RFC in SAP R/3 system and I am calling this RFC fom ECC system.On click of one button,I have to show some fields from the RFC onto the screen of WDA . How can I achi

  • Music stops when msg comes in

    All of a sudden today my curve started stopping my music whenever i get an email or txtr or any other alert. up until now the alert has just played and the music kept going did i accidentally change a setting? It's really annoying

  • CF FORM SPECIFIED PRICE RANGE - SQL

    I have the following form but dont know the CF QUERY SQL. I am trying to list all books within a user specified price range but having trouble with the cf query sql, any help much appricated! ; )

  • Open source surveillance system

    can I edit the codes of iSpy and Video Insight sir? thank you