VISA READ stops reading at 'zero'-char

I am reading a binairy message coming from an RFID tag that looks like this:
hex[01 09 0C B9 6E 53 0A 00 00 00 00 8B]
The Bytes at Port-property shows me the full message (12bytes) is present at the port.
Then I do a Visa_read with the 12 bytes as input, the read always comes back with 7 bytes read.
So the Visa_read stops at the ZERO characters...  In a subsequent read I take the other 5 bytes.
Why does the VISA_READ stop at the ZERO character?  (I am using XON/XOFF and the stop character is defined as 15, not zero!)
Check below code,
Thanks for help in advance!
Solved!
Go to Solution.
Attachments:
Visa_read.JPG ‏65 KB

Actually I bet it reads the 0x0A and you have set-up the port with the following default properties:
End mode for reads= TermChar
Term Char = 0x0A
Supress term char for reads = True
If you check the error cluster out the warning will tell you that the term char was seen, There might be more data available...
Set up the port with a F wired to ternination character enable.
EDIT: Oh the jpg clearly shows I was right  make the T an F
Jeff

Similar Messages

  • Why has adobe reader stopped reading the pdf files on external SD memory?

    I have Samsung not 2 with  external sd memory that I stored all my pdf files into it , I haven't had any problem with using Adobe reader for reading all files from  my sd memory but for unknown reason I can't see all pdf files from sd anymore. In order to reach the files ,I have to use the folders view tab in the adobe reader instead of all pdf files view  .
    Thanks a lot for any feedback.

    On Android OS 4.1 - 4.3 (Jelly Bean) or older, Adobe Reader for Android version 11.2.x has a known defect in the "All PDFs" view. The All PDFs view does not show the files and folders on an external SD card. A workaround is to use the Folder View instead of the All PDFs view. We have fixed the defect and plan to include the fix in the next release of Reader for Android.
    On Android OS 4.4 (KitKat) only, neither All PDFs view nor Folder View shows any files or folders on an external SD card.  Reader cannot save any changes to the files on an external SD card, either.  We are still working on fixing the problems.  In the meantime, please copy the files from your external SD card to your device's internal storage (e.g. /storage/emulated/0/Documents/...) using a File Manager/Browser app or use a cloud storage service (Acrobat.com, Dropbox, Google Drive, etc.) to store files.  Sorry for the inconvenience.

  • Stops Reading at Random Intervals

    hello, 
    we wrote a program for our hot plate and for some reason it will suddenly stop reading at random intervals and give a result of 0's for heating and stirring. we're not sure why this is? is it a hardware problem or a visa read/buffer problem?
    thanks 
    Attachments:
    hotplate.zip ‏384 KB

    Please continue in your original thread where you were already being helped.

  • Stop reading file for user prompt

    Reading from file and writing to binary tree, I need to implement input check. Say if word in the file is not in the tree, I want to prompt user to correct or skip this input.
    The problem is that I'm using GUI (frame with couple of buttons and text field) and I want user to click one of the buttons in order to respond to the request, and stop reading from file unless response is received.... Any ideas how to do this?

    Check out the javadocs on BufferedReader. You should be able to read in a line at a time store it in a buffer and search it for whatever your looking for.There is also a mark method which will let you store your current offset in the file and return to it. Then you can use JOptionPane to display a Yes/No dialog box to prompt the user if the word can be skipped. BufferedReader also has a skip method that will allow you to specify how many chars to skip.
    Hope this helps
    Justin

  • HttpConnection stops reading from Servlet

    Hi,
    I've developed a servlet which delivers some xml (soap) infos:
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/xml");
    response.setHeader("charset","utf-8");
    PrintWriter out = response.getWriter();
    String xml="<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><addNumbersResponse xmlns=\"http://tempuri.org/\"><addNumbersResult>105</addNumbersResult></addNumbersResponse></soap:Body></soap:Envelope>";
    out.println(xml.toString());
    and then there is a MIDP Client that should read the XML file:
    HttpConnection c = (HttpConnection)Connector.open(getUrl);
    c.setRequestMethod(HttpConnection.POST);
    c.setRequestProperty("Content-Type","text/xml");
    InputStream is = c.openInputStream();
    StringBuffer sb=new StringBuffer();
    int read;
    while ( (read=is.read())!=-1) {
    System.out.print((char)read);
    sb.append((char)read);
    } while (read!=-1);
    The thing that's driving me mad is that read stops (and -1 is correctly in read), but it's only ~230 chars that have been read: It stops after "<addNumbersResponse xmlns=\"http://temp".
    A J2SE client gets the complete XML-file with no errors.
    Does anyone have an idea what could go wrong here?
    Thanks a lot,
    Steve

    Hi,
    I do have the same problem,
    i am also sending a xml from the server,
    but it gets cut inbetween in 240 to 250 bytes,
    how to slove this,
    how to get the whole xml from the server to j2me client,
    any solution,
    what to do on server side and what to modify on client site,,
    thanks in advance,
    Nazeer

  • My HP Pavilion Elite m9058n PC's Card-Readers Stop Reading/Recognizing My SDHC Cards

    Just about 2 weeks ago my HP Pavilion Elite m9058n PC's card readers stop reading or recognizing my memory cards used to store the pictures I took. They used to be able to read my SDHC cards (Sandisk, Kinston, Panasonic) before. Don't understand why they stop reading, even recognizing all of them. My O/S is Windows 8. The initial symptom was the options for processing the inserted cards seemed to be showing up slower than before and then I had to withdraw the cards and re-insert them so that such option screen appear. Then later on it didn't show up at all. And when I checked "This PC" ("computer" or "my computer" in other Windows versions), I didn't see the DRIVE LETTERS, like G, K, or J, etc. for the memory card readers any more. Now if I connect my camera directly with my PC, I see on the camera model number on "This PC" screen. 
    Please help me understand what this problem is and kindly provide me with the best solutions you can.
    Thank you very much.

    Hi,
    I understand your card reader is not working as you have previously experienced. Take a look at the following document, Using and Troubleshooting Memory Card Readers (Windows 8), specifically the "Resolving issues with memory cards" section. Hopefully there will be something in there that is useful for you. Best of luck. Have a wonderful day.  
    Ryan1216
    I work on behalf of HP
    The advice and opinions given here are my own and not those of HP

  • How to load file thru reader which contains non-english char in file name

    Hi ,
    I want to know how to load file in english machine thru reader which contains non-english chars in file names (eg. 置顶.pdf)
    as LoadFile gives error while passing unicode converted file name.
    Regards,
    Arvind

    You don't mention what version of Reader?  And you are using the AcroPDF.dll, yes?
    Sent from my iPad

  • Siri stopped reading my text messages

    A few weeks ago, Siri stopped reading me my text messages. I used to always be able to say, "read me my last text message" and Siri would promptly read it to me, ask me if I wanted to respond, then let me respond by voice as well.
    I was on iOS 7 and NOTHING changed, but one day a few weeks or so ago, Siri started just telling me that I "have no new messages" even when I clearly had new messages that just came in.
    I updated to iOS 8 the other day thinking it would probably fix it.
    It didn't. I can't figure out how to get it to work again.
    I have not completely erased the phone and reinstalled iOS 8. I might try that, I just wanted to see if there's another known fix first before going through all of that.
    Googling has turned up plenty of others who have had this bug too, but I can't find anything recently or anything that has actually fixed it for people.
    Any known help would be appreciated. Thank you.

    Hi DigitalDuderino, 
    Welcome to the Apple Support Communities!
    I know this issue must be very frustrating considering that this issue just started happening without you making changes. I would recommend working through the attached article’s troubleshooting steps to help isolate and resolve this issue. 
    iOS: Troubleshooting Siri
    Regards, 
    Joe

  • Did Adobe Acrobat/reader stop providing browser integrated PDF viewing(addin) for Internet Explorer?

    Did Adobe acrobat and reader stop providing browser integrated PDF viewing capability for Internet Explorer?
    Hi, I have been trying to view PDF's directly on my browser (Internet Explorer 9). We used to be able to have this available. To be honest last configuration that did work was Internet Explorer 8 with Adobe Acrobat 7. But I recently tried with Intenet Explorer 9 with Adobe Acrobat X and did not work as expected (I tried to activate the add in for Adobe but the adobe addin for PDF did not show up) I have the following questions:
    1) Do you still provide PDF's viewing capabilties on Internet Explorer?
    2) If yes: Is there a propper Add-in we (users) are able to install for Internet Explorer?
    3) if yes: Do we require to have Adobe Acrobat to have this capability? (this was my experience with IE8 and Adobe Acrobat 7)
    Additional Info:
    There seems to be an addin for Chrome wich works as expected (opens PDF in browser) to this current date. This does not happen on IE.
    Thanks in advance.
    AlbertCastle

    Are you using the 64-bit edition of Internet Explorer?
    The Adobe Reader/Acrobat plugin is 32-bit, and will not work on a 64-bit browser.
    Other possibilities: http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

  • Once drawImage working it has stopped reading rest of programe

    i have sorted out the problem with the drawImage command. however once i got the drawImage to work correctly then it appears to have stopped reading the rest of the program. Another words it no longer reading the other methods. how do i fix this problem?
    thanks Rose

    you are right i should show the code, the reason why i did not show the code is that it is very long at the moment, but here it is
    public class counter2 extends Applet
         public String imgdir;
         public int count;
         public int count2;
         public Image[] gifImages = new Image[10];
         public MediaTracker Tracker;
         public Image offScreenImage;
         public Graphics offScreenImageCtx;
         public int a,b,c,d,e,f,z,i;
         public int[] imageArray;
         public int index,j;
         public int countdigit1,countdigit2,countdigit3,countdigit4,countdigit5,countdigit6,countdigit7,counttemp;
         public int main(int count,int count2,String imgdir)
              FileReader countfile;
              try
                   countfile = new FileReader("counter.txt");
              catch (FileNotFoundException e)
                   countfile.close();
              count=countfile.read();
              countfile.close();
              counterresult(count);
              drawcounter(count2);
              FileWriter countfile2;
              try
                   countfile2=new FileWriter("counter.txt");
              catch (FileNotFoundException e)
                   countfile2.close();
              countfile2.write(count2);
              countfile2.close();
         public int counterresult(int count)
              if (count >=0)
                   count2=count+1;
                   return count2;
         public void drawcounter(int count2)
              MediaTracker Tracker = new MediaTracker(this);
              for (j=0;j<10;j++)
                   gifImages[j] = Toolkit.getDefaultToolkit().getImage(j+".gif");
                   Tracker.addImage(gifImages[j], 0);
              countdigit1=count2;
              if (count2 > 99999)
                   counttemp=count2;
                   z=(counttemp/1000000);
                   countdigit1=count2-(z*1000000);
              a=(countdigit1/100000);
              countdigit2=countdigit1-(a*100000);
              b=(countdigit2/10000);
              countdigit3=countdigit2-(b*10000);
              c=(countdigit3/1000);
              countdigit4=countdigit3-(c*1000);
              d=(countdigit4/100);
              countdigit5=countdigit4-(d*100);
              e=(countdigit5/10);
              countdigit6=countdigit5-(e*10);
              f=(countdigit6/1);
              countdigit7=countdigit7-(f*1);
              int[] imageArray=new int[6];
              for (int i = 1; i < 7; i++)
                   imageArray=a;
                   imageArray[i]=b;
                   imageArray[i]=c;
                   imageArray[i]=d;
                   imageArray[i]=e;
                   imageArray[i]=f;
              offScreenImage = createImage(size().width,size().height);
              offScreenImageCtx = offScreenImage.getGraphics();
              try
                   Tracker.waitForID(0);
              catch (InterruptedException e)
                   return;
         public void update(Graphics g)
         paint(g);
         public void paint(Graphics g)
         if ((Tracker.statusAll(false) & MediaTracker.ERRORED) != 0)
                   g.setColor(Color.red);
                   g.fillRect(0, 0, 10, 5);
                   return;
         if (Tracker.statusID(1, false) == MediaTracker.COMPLETE)
                   for (index=1;index<7;index++)
    //                    g.drawImage(gifImages[imageArray[index]],0,0,this);
                        g.drawImage(imageArray[index],0,0,this);
                   return;
    the problem is that when i include the "gifImages" in the drawImage line then the program seems to skip over the main method and hence nothing gets set. if i leave out the "gifImages" then the only problem when compiling the code is with the drawImage line. clear as mud?

  • VISA Read function Read buffer problem in serial communication

    Hi,  I use VISA write and read function in serial communication app, the device continuously sends 0x00 if it is not receive a request from Labview program running on PC.
    And the request sent by labview is programmable. I met a weird problem, each time the request changes, the VISA read buffer output port still shows the last request firstly, from second time, shows the right request.
    It works like: Req code: ... 50, 51,51,51,50....;  VISA Read buffer: ...50, 50, 51, 51, 51, 51, 50....
    Please refer to the program.
    Attachments:
    readOne_test.vi ‏21 KB

    How are you running this?  You don't have a while loop around it.  Is it part of a larger VI?  Please don't tell me you are using the run continuously button.
    You don't have any wait statement between you VISA Write and your bytes at port.  So it is very likely the receive buffer is still empty since you didn't give your VI time to wait for the device to turn around and give a reply.  If you read 0 bytes, your VISA read string will be empty.  How does your decoder subVI (which you didn't include) handle an empty string?

  • MacBook Pro stopped reading discs

    My 15" late 2008 macbook pro has decided to stop reading discs;
    the only discs that are read are the OS installation discs, while other CDs and DVDs are read as blank.
    I've used a cleaning disc and I've done a PRAM and SMC reset but it's still not working.
    My current OS is 10.7.5.
    Has anyone else had such an issue before?
    Cheers,
    L.

    Since you say that you have used a lens cleaning DVD, I suggest an appointment at an Apple store genius bar and see if they can assist you.
    Ciao.

  • Macbook pro stopped reading the default wifi

    For the past couple of days, my MacBook pro stopped reading my default wifi, although it can pick up signals from my neighbours. None of my other devices has this problem (ipad, iMac). It does not matter whether the MacBook pro is placed close to the wireless router or not. I have tried restarting, it worked at first and now it doesn't even read any signal from my router. What should I do?

    System Preferences>Network>Advanced. Drag your network to the top of the list. Check the box, "Remember networks this computer has joined." Delete the networks you don't want from the list. Click OK, then click Apply.

  • Anyone having problems with Photoshop Express on iPad 2 running iOS 8.1.2? I just updated to iOS a 8.1.2 and it has stopped reading my pics

    Hi all. @I'm new here , just updated my iPad 2 to iOS 8.1.2 and PE app has stopped reading my streamed photos. Anyone has the same problem? thanks.

    I don't have an iPad 2, but I just tried on iPhone 6 running 8.1.2, and I can access images in my Camera Roll, and also images in iOS Albums.
    Are you running PS Express version 3.4?  Does uninstalling/re-installing help?
    Does PS Express have permission to access the images, under iOS Settings > Privacy > Photos > PS Express?
    If these suggestions don't help, please reply back.

  • Optical drive suddenly stopped reading

    I was in the middle of ripping a series of CDs in iTunes when the drive suddenly stopped reading the CDs' contents - I have tried several CDs, including re-trying ones I had already ripped. It does not get beyond track list. Do I need a new drive or can I solve it? I have also tried using a CD cleaning disc. 3 years old iMac with Mavericks installed, no previous problems. It still reads disc title and content list and loads / ejects correctly.

    Reset the NVRAM/PRAM and Reset the SMC, then try again.

Maybe you are looking for