Cannot read data in FPGA

Hi guys, I have a code that I developed for reading in digital data through digital lines in a PXI-7813R. But unfortnately, in the Host vi, I cannot acquire any data, even though I have fed in an external signal to the digital line in the PXI through a connector.
I have a data graph to display this signal, but nothing can be seen when I run the problem! Anyone know what the problem is?
I have attached the project.
ANy help would be great.
Thanks, Anoop
Solved!
Go to Solution.
Attachments:
Digital Input FPGA.lvproj ‏100 KB
FPGA.vi ‏79 KB
Host.vi ‏81 KB

Hi, thanks for the reply.
I have a couple of questions though. I dont understand what you mean in the first line. I have set the READ in the FPGA VI to be true so that when it is pressed, data can be read from the HOST VI.
Now, getting on to the issues you highlighted.
1. I have included a polling delay and the error issue is now sloved. But, when you mean "Also make sure you wire your error in to the while loop stop condition....", I have did this using the polling. Is this OK?
2. You mention "In your vi, you are writing...." do you mean in the FPGA? If so, I have set the "read?" flag on the case structure, to use it as a switch for teh true conditon. is this not correct?
I have attached the modified Project along with this. Feel free to edit it if you feel the urge too
Attachments:
Digital Input FPGA.lvproj ‏91 KB
Host.vi ‏99 KB
FPGA.vi ‏199 KB

Similar Messages

  • CD-Rom Drivers cannot read data disk burned with PC

    HI, My iMac(Intel) cannot read data disk burned with PC, and the disk is ok for PC. But it can read music CD. Somebody can tell the reason, or modify configurtion?

    You need to be much more specific, remember we aren't there and can't see your screen so we have no idea what file types you have on the CDs, without that information it's impossible to assist you.

  • Aperture 2.1.2 cannot read date format in new iPhoto '09

    I've noticed that when I import photos from iPhoto '09 to Aperture, the image dates all change to 12/31/00 from the dates input in iPhoto. This was not the case in iPhoto '08, so I assume iPhoto '09 uses a new date format that Aperture cannot read.
    Has anyone else experienced this and is there an update to Aperture in the works that will correct this?

    For anyone else trying to import photos from iPhoto '09 into Aperture while retaining creation dates and comments added in iPhoto, I wanted to post the steps that worked for me.
    I am using Aperture v2.1.2, iPhoto 09 v8.01 (397), and System 10.5.6.
    1. In iPhoto, add date created and comments in lower left Information box for photo.
    2. In iPhoto, select all photos then choose Adjust Date and Time... in menu - change date by 1 second and select 'modify original files'. This will add the date you entered above in the Original Date in the photo EXIF data.
    3. Select all photos you want to export from iPhoto to Aperture and export as JPEG, Maximum JPEG Quality, Full Size, and select 'Title and Keywords' - export to a folder
    4. Open Aperture and import photos exported from iPhoto retaining All IPTC data.
    Your photos in Aperture will now have the correct metadata in Aperture for original date and comments.
    There may be a better way of doing this, but since iPhoto was updated to '09, this is the only way I have found to do what was straightforward in iPhoto '08.

  • Mail cannot read data from server

    Hello!
    I'm fairly new to Macs, having used a PC for 12 years, and am still getting used to it's little quirks.
    I now have a problem where one of my email servers (a POP account) makes Mail (and Thunderbird for that) come up with;
    The attempt to read data from ** has failed
    Now, I know that the log on info is OK, as using my Webmail account, on the same iMac, accesses the mail fine. I've emptied the relevant mail account, both locally and on the server, removed the local settings and reset them using info on various Mac help sites.
    Nothing that I know of has changed, I've ran and re-ran the reset permissions tool.
    Can anyone give me any help?
    Intel iMac 20" Duo 2ghz   Mac OS X (10.4.8)  

    Hello, and welcome to the Discussions.
    Has this POP account ever worked in Mail? Is the POP3 server in question unique to this one account, or do you have other accounts from the same provider, using the same POP3 server as the Incoming Server?
    Ernie

  • ITunes cannot read the data on my iPod touch

    Just three weeks or so ago, I was able to use iTunes without any problems to put a few songs on my iPod Touch 2nd Gen. Recently, however, whenever I try to connect my iPod to iTunes via USB, I get an error message that says something along the lines of: "iTunes cannot read the data on xxx's iPod Touch. Go to the Summary tab and choose Restore to restore this iPod to it's original factory settings.". I don't know why it says this since my iPod is functioning normally. My iPod shows up on the left hand side of the iTunes window as "iPod" instead of "xxx's iPod Touch" like it used to. The only options I have are Check for Update (disabled) and Restore. Is there any way to fix this without restoring my iPod? And if I have to restore, can I do so without losing (or having to re-transfer) any of my data that hasn't been or can't be backed up? Please help and thanks in advance!
    P.S. My iPod is in its genuine state: it hasn't been jailbroken or anything like that.

    Unfortunately, I've already tried that. Also, here is a list of other things I've tried, but have taken no effect:
    -Recharging, Restarting, Resetting, and Reconnecting my iPod Touch to my computer
    -Restarting my computer
    -Reinstalling iTunes
    -Reinstalling all iTunes, Apple, and iPod USB drivers
    -Updating the same drivers (but no updates were found)
    -Using a different USB port
    -Connecting to a different computer (doesn't work on my Toshiba laptop either, which is running the same OS and the same version of iTunes as my PC)
    My backup plan was to copy the new songs to my iPod by pasting them through Windows Explorer. My iPod shows up as a portable device under My Computer - as always - but the only thing I can access is a folder full of the photos on my iPod. I think this is normal, but I can't do what I want to do! Do you (or anyone else) have any other good ideas? Remember, I really don't want to do a restore unless I absolutely have to.

  • DVD drive cannot read some of my data dvd's

    When I put in some of my data dvd, it reads it as a blank media.
    It is strange. I can read data of the exact same DVD in another mac computer.
    The problem is I can read some, but some I cannot read. Burning is no problem / no errors.
    Any thoughts would be great! Thanks
    Message was edited by: vc187

    Wow, that's interesting.
    I haven't had a problem with reading discs in my Powerbook (yet to really use the DVD drive in my MBP), but my old 1999-vintage iMac DVSE with it's DVD-ROM drive often won't read burned DVDs. It has no trouble with commercial discs, or burned CD-Rs, but it fails to read DVDs on a seemingly random basis. Indeed, I had been importing video on my Dad's G5, and burned it to DVD-R (Verbatim). The iMac wouldn't read the discs, while all our other DVD reading Macs would.
    I wonder if it's not the write strategy? I know different drives/applications have various methods for burning discs. See Wikipedia's optical disc article: http://en.wikipedia.org/wiki/Opticaldiscdrive

  • I formatted my ext hard drive and changed it to mac os x extended(journaled). then i put in all my data back. after a while, i insert the hard drive but my macbook cannot read it. plz help

    i formatted my ext hard drive and changed it to mac os x extended(journaled). then i put in all my data back. after a while, i insert the hard drive but my macbook cannot read it. plz help

    SanandaDutta 
    tried on a different mac. The same problem exists.
    If that is the case, its extremely unlikely you have a bad USB cable on the seagate, rather as I mentioned earlier a bad SATA bridge card.
    If the Seagate 1TB USB external wont open on either Mac and youve verified same (try a diff. USB cable if you have one however this is nearly never the case),....then to get the data off that HD (unless it is dead which is also extremely unlikely),......then you would need to extract the HD from its case and insert same into either a HD dock or USB HD enclosure.
    8 out of 10  seemingly dead inopperable 1-3+ year old external HD are perfectly fine, rather the cheap 50 cent SATA bridge card fries and dies (alas)
    reply back if you need help in extracting same. 

  • Cannot read any form posted data

    I create a web server :
    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class TestWeb extends Thread {
        Socket soc;
        ServerSocket server;
        InputStream is;
        BufferedReader br;
        public void run() {
            try {
                while (true) {
                    soc = server.accept();
                    if (soc!=null)
                    is = soc.getInputStream();
                    br = new BufferedReader(new InputStreamReader(is));
                    String line = "";
                    while (line!=null) {
                        line = br.readLine();
                        if (line==null) continue;
                        System.out.println(line);
            } catch (Exception ex) {
                System.out.println(ex.toString());
        public TestWeb() {
            try {
                server = new ServerSocket(80);
            } catch (Exception ex) {
                System.out.println(ex.toString());
        public static void main(String[] arg) {
            try {
                new TestWeb().start();
                System.in.read();
            } catch (Exception ex) {
                System.out.println(ex.toString());
    }It can read the header when someone connect to this server
    However, it cannot read any form posted data.
    Does anybody have any idea?
    The following is the html source that i use in a browser to connect to the test server
    <HTML><BODY>
      <CENTER><H1><FONT COLOR=BLUE><B>Test</B></FONT></H1></CENTER>
      <HR>
      <FORM METHOD="POST" ACTION="http://127.0.0.1">
        <INPUT TYPE=TEXT VALUE="abcde">
        <SELECT>
          <OPTION VALUE="1">1</OPTION>
          <OPTION VALUE="2">2</OPTION>
        </SELECT>
        <INPUT TYPE=SUBMIT>
      </FORM>
    </BODY></HTML>

    I would expect the form data posted to be received. For example, the user chooses the option value and the text input value.
    This test is hang just after receiving the header information and no parameters collected.

  • Cannot read the next data row for the data set

    Hi,
    My report runs fine when I view in VS, data shows fine when I run the query in the data window, but when I publish it to the server, I get the above error. I am running SQL server 2005 RTM and I have re-deployed the entire solution.
    Any ideas?

    Hi All,
    Upon investigation found that there was an issue with converting varchar value to datatime datatype in Stored Procedure and that is why report was throwing error.
    I ran same report in BIDS and got clear error message
    An error has occurred during report processing. (rsProcessingAborted)
    Cannot read the next data row for the dataset xxx. (rsErrorReadingNextDataRow)
    The conversion of a varchar datatype to a datetime datatype resulted in an out-of-range value
    Once I corrected this, It is working fine.
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • Satellite P500/01R reads data but cannot write data files to CD

    I recently bought a Satellite P500/01R laptop. I am able to read a data CD but cannot write data files to CD. The CD is read/write.
    Any ideas?

    Hi
    Did you try different burning software?
    Im using the Nero and in my opinion one of the best burning applications.
    There I can choose between CD, DVD, DL or Blueray (only possible if CD/DVD drive supports this too.)
    Did you also check different CDs from different manufacturers?
    You should do this since not all disks are 100% compatible.
    I had many issues with different CD or DVD in most cases it was an compatibility issue I tested TDK and these kind of disk is compatible with my CD/DVD drive
    Im using the R standard.

  • When connecting my 120GB iPod Classic I receive the prompt; iTunes cannot read the contents of the iPod "Name". It asks me to reset it. All my music appears to have been erased  iPod yet 41GB of data is on it. Help!

    When connecting my 120GB iPod Classic I receive the prompt; iTunes cannot read the contents of the iPod "Name". It asks me to reset it. If I do this I will lose the contents of the iPod. The iPod shows no music on it yet 41GB of data is on it under "About" on the iPOD itself. It would appear that the music files are still there. I don't want to reset the iPod as it will mean reloading a significant amount of music i.e. my entire CD collection. Any suggestions? Has my iPod died?

    (I'll lose all my music right?)
    That is correct. A restore wipes all content from the device, resets all settings back to their defaults, and loads a fresh copy of the iPod's software onto the device.
    See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    After all the music is safely in iTunes again, go ahead and restore the iPod to factory settings as it says.
    B-rock

  • Cannot receive data from telnet - returns ioexception on read either by ...

    Well, i need to connect to a telnet port.
    After we have connected (just the socket connection), the telnet responds to us.
    I need to record this response.
    i tried to use both buffered input, as well as inputstream, but i fail to read, as it throws an ioexception.
    Also i tried to find out the number of bytes that are responded by the telnet, surprisingly, it says that 21 bytes have been responded.
    Here is my code :
    public class TelnetClient implements Runnable {
    private String userName, password;
    private String cmdString = "ls", line;
    private Socket telnetSocket;
    private byte buff[];
    private BufferedReader br;
    private InputStream inStream;
    private OutputStream outStream;
    private InetAddress ipAddress;
    private int port = 23;
    private MainMenu mm;
    private boolean sessionClosed = false;
    /** Creates a new instance of TelnetClient */
    public TelnetClient() {
    public TelnetClient(String ipAdd, String uName, String pass) {
    try {
    this.ipAddress = InetAddress.getByName(ipAdd);
    this.userName = uName;
    this.password = pass;
    }catch(UnknownHostException uhe) {
    System.out.println("Cannot Reach to port : " + port);
    public void run() {
    try {
    int i;
    telnetSocket = new Socket(ipAddress, port);
    telnetSocket.setSoTimeout(5000);
    System.out.println("Established connection to port : " + port);
    outStream = telnetSocket.getOutputStream();
    inStream = telnetSocket.getInputStream();
    br = new BufferedReader(new InputStreamReader(telnetSocket.getInputStream()));
    // Thread.sleep(5000);
    // outStream.write(userName.getBytes());
    // Thread.sleep(5000);
    // outStream.write(password.getBytes());
    // Thread.sleep(5000);
    // buff = cmdString.getBytes();
    // outStream.write(buff);
    Thread.sleep(5000);
    int count = inStream.available();
    System.out.println("Number of Bytes Replied : "+count);
    // while((i = inStream.read()) != -1) {
    // while((line = br.readLine()) != null) {           
    inStream.read(buff);
    System.out.print(buff);
    telnetSocket.close();
    }catch(UnknownHostException uhe) {
    System.out.println("No Connection to port : " + port);
    }catch(IOException ioe) {
    System.out.println("Cannot Read from port : " + port);
    ioe.printStackTrace();
    catch(InterruptedException ie) {
    System.out.println("Thread Interrupted !");
    Please help me out, its really urgent and i need to sort this out quickly.
    At present this port is on my PC and later i have to make such a connection to a remote unix server thu this application.
    I am running a Windows Machine. and using netbeans IDE for development.
    Thank You..

    I posted a simple Telnet client that runs a command on a Unix server. You can find it in reply 7 of Telnet to Unix box from Java app.
    If all you need is to run a simple command it should be sufficient. Otherwise you might want to take a look at Jakarta commons Net

  • DMA FIFO number of elements to read mismatch in FPGA and RT

    Hi all
    I am using myRIO , LV14 to run my application.
    Application: I have to continuously acquire data via FPGA and process in RT host once every 2000 samples are collected. I use DMA FIFO (size 8191) to acquire data, use timeout property at the FPGA to eliminate buffer overflow. I had followed cRIOdevguide to implement this part. A snippet of what I have implemented is attached. Whole code runs in SCTL at 50MHz.
    Issue: Twice or thrice I encountered with this strange behaviour, that the FPGA FIFO is giving continous timeout and the RT is unable to read the FIFO. The number of elements to write propery in FPGA VI gives 0 showing that FIFO is full and no more can be written, but at the RT, elements remaining is giving 0, hence it is reading 0 (no) elements.
    Workaround: I put a case where I will write to FIFO (as per the code) and if the number of elements to write is nonzero. It seems to work fine, as of now.
    What confuses me is that my FPGA VI says that FIFO is full (FIFO number of elements to write = 0) and gives a timeout error, but RT VI says that number of elements remaining in FIFO is 0 and hence no data is read. Any idea why it is so? My FPGA and RT VIs continues to run, but with no data being acquired or read.
    I saw this behaviour within minutes after running the code. Any idea as to why it is happening? I am trying to reproduce the behaviour and will update if i again encounter with it. Sorry, I cannot post my code here, but i guess the code snippets explain it to some extend.
    Thanks
    Arya
    Edit: Even with the mentioned workaround, the problem persists, now that the FPGA does not write to FIFO at all. And the RT VI is not able to read any elements as it sees 0 elements in the FIFO. The FIFO continues to be in timeout state. So i guess the problem is with the RT side.
    Solved!
    Go to Solution.
    Attachments:
    cRIOdevguide_FIFOreadwrite.PNG ‏107 KB
    FPGA_FIFO_write.PNG ‏41 KB
    RT_FIFO_read.PNG ‏39 KB

    Hi Nathan
    Yes, I could have replaced it with an OR. Regarding my application, I want to acquire data in chunks of 2000 samples. If at all I receive a timeout error, I want to discard that chunk of 2k samples and start all over again. So my logic was like this, I acquire the data, if there is a timeout, the reset is triggered, and the system waits to comeback from reset, and it starts acquiring again. Btw, I tried removing the multiple FIFO reads in RT, but the error is still the same.
    I have a small doubt as well, if I do not want to obtain stale data at alI, I would just check if timeout occurs, empty my FIFO and start acquiring data again (no reset button), isnt it? This was my original logic, but I saw that after a while, it stopped acquiring data and timeout led was on. I was thinking that FPGA and RT was simultaneously trying to acquire FIFO which might cause timeout. Somehow, I now feel that, as you have pointed out, my code is overly complicated. I will modify it and update the results. Thank you!
    Arya

  • How to read data in a program from a MAINTENANCE View

    Hi Experts,
    Requirement:
    1. I have maintained a maintenance view on three Database tables.
    2.Data can be entered in the view as it is a Maintenace view as i have created maintenance generator for that and it is a requirement.
    3. In one of my programs i need to read this data, into an internal table, that is maintained through this view.
    Problem: When i am firing a SELECT query on this view, it goves me a syntax error that i cannot get data by select query on a Maintenance view.
    Solution required for: Is there any way i can get the data from this Maintenance view.
    Thanks in advance for your exteemed replies.
    Regards,
    Raghavendra Goutham P.

    Hi,
       Only projection view or database view can be used
       in select query.
        Find the tables used in view and
       Select data into report program by
        joining tables .
    Regards
    Amole

  • View Object to read data from a java file

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
    For one of my view objects , I want the data to be read from a java file which exposes some method to return a collection.
    I cannot use a static view object in this case.
    Please suggest the best way to implement this requirement.Basically build a view object that should read data from a java file.
    Thanks,
    Praveen

    Depending on your use case you can either use a programmatic VO or directly expose the JV class as a data control.
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_36/jdtut_11r2_36.html

Maybe you are looking for