FPGA Read/Write Control Issues

Hello all!  Rather new to using FPGA, but I have an interesting issue that's popping up.
Currently pulling in RAW voltage data from a set of sensors (Pressure Transducers, Load Cells, etc) through a cRIO DAQ.  Have the FPGA file setup to pull in that data already and have the main VI and all the sub-VIs working just fine.
What I'm trying to do is save the raw voltage data (TDMS files) on the lower level and the convert and display on the upper level so that I don't have to convert and save (speed up saving data).  So that leaves 3 distinct levels/sections:
On FPGA that pulls in the raw data
On FPGA that saves the raw data
Main VI that does all the controls/conversions/displays etc.
Number two is where I'm having an issue.  I want to save all the data in parallel so I'm creating a save FPGA for each I/O device (8 Relays to command solenoid valves, 3 Pressure Transducers, 1 Load Cell, 4 Thermocouples).  To do this I want to create a separate VI for each device (not sure if that's a smart thing to do).
The issue I'm having is when I use the FPGA Read/Write control to read in from the Target and save to the TDMS.  When I only use a single FPGA target reference the lines are broken, but as soon as I switch to two targets, it now works.
Any reason why it might be doing this?  Any ideas/suggestions at all on how to go about setting this up in general?
Thanks!

Hi,
HySoR wrote:
The issue I'm having is when I use the FPGA Read/Write control to read in from the Target and save to the TDMS.  When I only use a single FPGA target reference the lines are broken, but as soon as I switch to two targets, it now works.
Could you take a screenshot and post this part of your code? I'm having trouble understanding what you are describing.
Craig H. | CLA | Systems Engineer | National Instruments

Similar Messages

  • FPGA Read/Write Control Function Issues

    Hello all!  Rather new to using FPGA, but I have an interesting issue that's popping up.
    Currently pulling in RAW voltage data from a set of sensors (Pressure Transducers, Load Cells, etc) through a cRIO DAQ.  Have the FPGA file setup to pull in that data already and have the main VI and all the sub-VIs working just fine.
    What I'm trying to do is save the raw voltage data (TDMS files) on the lower level and the convert and display on the upper level so that I don't have to convert and save (speed up saving data).  So that leaves 3 distinct "levels/sections":
    On FPGA that pulls in the raw data
    On FPGA that saves the raw data
    Main VI that does all the controls/conversions/displays etc.
    Number two is where I'm having an issue.  I want to save all the data in parallel so I'm creating a save FPGA for the I/O devices (8 Relays to command solenoid valves, 3 Pressure Transducers, 1 Load Cell, 4 Thermocouples).
    The issue I'm having is when I use the FPGA Read/Write control to read in from the Target and save to the TDMS.  When I only use a single FPGA target reference the lines are broken, but as soon as I switch to two targets, it now works.
    I've attached a screen cap of the current problem.  The set-up on the bottom (with only one target) doesn't work.  But the second I add more than one target, it works.
    Any reason why it might be doing this?  Any ideas/suggestions at all on how to go about setting this up in general?
    Thanks!
    Attachments:
    FPGAError.jpg ‏35 KB

    HySoR,
    You might check the documentation for "data" terminal of "TDMS Write" (http://zone.ni.com/reference/en-XX/help/371361H-01/glang/tdms_file_write/). One DBL element is not accepted, but 1D DBL array is accepted.
    data is the data to write to the.tdmsfile. This input accepts the following data types:
    Analog waveform or a 1D array of analog waveforms
    Digital waveform
    Digital table
    Dynamic data
    1D or 2D array of:
    Signed or unsigned integers
    Floating-point numbers
    Timestamps
    Booleans
    Alphanumeric strings that do not contain null characters

  • Incorrect data type when writing to FPGA Read/Write Control

    I have run in to a problem this morning that is causing me substantial headache.  I am programming a CompactRIO chassis running in FPGA mode (not using the scan engine) with LabVIEW 2012.  I am using the FPGA Read/Write Control function to pass data from the RT Host to the FPGA Target.  The data the RT host is sending comes from a Windows host machine (acting as the UI) and is received by the RT Host through a network published variable.
    The network published shared variable (shared between the RT and Windows system) is a Type Def cluster containing several elements, one of which is a Type Def cluster of fixed point numerics.  The RT system reads this shared variable and breaks out the individual elements to pass along to various controls on the FPGA code's front panel.  The FPGA's front panel contains a type def cluster (the same type def cluster, actually) of fixed point numerics.
    The problem comes in the RT code.  After I read the shared variable I unbundle the cluster by name, exposing the sub-cluster of fixed point numerics.  I then drop an FPGA Read/Write Control on the RT block diagram and wire up the FPGA reference.  I left click on the FPGA Read/Write Control and select the cluster of fixed point numerics.  I wire these together and get a coercion dot.  Being a coercion dot hater, I hover over it the dot and see that the wire data type is correct (type def cluster of fixed point numerics), but the terminal data type is listed as a cluster containing a Boolean, code integer and source string, also known as an error cluster.  I delete the wire and check the terminal data type on the Read/Write Control, which is now correctly listed as a type def cluster of fixed point numerics.  Rewiring it causes the terminal to revert back to the error cluster.  I delete the wire again and right click on the terminal to add a control.  Sure enough, a type def cluster of fixed point numerics appears.  Right clicking and adding an indicator to the unbundle attached to the network shared variable produces the proper result.  So, until they are attached to each other, everything works fine.  When I wire these two nodes together, one spontaneously changes to a error cluster.
    Any thoughts would be appreciated.

    My apologies I never got back to responding on this.  I regret that now because I got it to work but never posted how.  I ran in to the exact same problem today and returned to this post to read the fix.  It wasn't there, so I had to go through it all over again.
    The manifestation of the problem this time was that I was now reading from the Read/Write FPGA front panel control and writing to a network published shared variable.  Both of these (the published shared variable and the front panel control) were based on a strict type defined cluster, just like in the original post.  In this instance, it was a completely different cluster in a completely different project, so it was not a one-off thing.
    In addition to getting the coercion dot (one instance becoming an error cluster, recall), LabVIEW would completely explode this time around.  If I saved the VI after changing type definition (I was adding to the cluster) I would get the following error:
    Compile error.  Report this problem to N.I. Tech Support.  Copy cvt,csrc=0xFF
    LabVIEW would then crash hard and shutdown without completing the save.  FYI, I'm running LabVIEW 12.0f3 32-bit.
    If I would then reopen the RT code, the same crash would occur immediately, ad nauseam.  The only way to get the RT code to open was to change the type defined cluster back to the way it was (prior to adding the new element).
    I didn't realize it last time around (what originally prompted this post), but I believe I was adding to a type def cluster when this occurred the first time.
    So, how did I fix it this time around? By this point I tried many, many different things, so it is possible that something else fixed it.  However, I believe that all I had to do was to build the FPGA code that the RT code was referencing.  I didn't even have to deploy it or run it... I just had to build it.  My guess is that the problem was the FPGA Reference vi (needed to communicate with the FPGA) is configured (in my case) to reference a bit file.  When the development FPGA Main.vi ceases to match the bit file, I think that bad things happen.  LabVIEW seems to get confused because the FPGA Main.vi development code is up and shows the new changes (and hence has the updated type def), but when you ask the RT code to do something substantial (Open, Save, etc), it refers to the old bit file that has not yet been updated.  That is probably why the error getting thrown was a compile error.
    I'm going to have to do an additional round of changes, so I will test this theory.  Hopefully I will remember to update this post with either a confirmation or a retraction.

  • FPGA Read Write Control Coercion

    I am getting a coercion indication using a FPGA read write control.  I have attached a screen capture of the context help.  For some reason it is looking for an error cluster?
    Attachments:
    FPGA Coercion Context Help.png ‏36 KB

    The NI 9229 Data Rate Control.
    See attachments
    Attachments:
    FPGA Coercion VI.png ‏76 KB
    FPGA Coercion VI 2.png ‏129 KB

  • FPGA Up Cast Funktion deletes Values form Read/Write Controll

    Hello Everybody,
    I Have an other Problem with my RT-FPGA cRIO...
    I have now managed to read the module IDs to convert this combination in a certain casenumber and this one then selects the FPGA File. Now is that I have inbounded various FPGA Bitfiles. If I composed them by the the "Up Cast function" to a universal reference then there will disappear some elements by using the Read / Write Control .
    I have a picture attached that this Clarifies!
    The first two R / W Controller have been up before the cast and the third upcast diverted after.
    I hope you can help me!
    thank you in advance before
    MaJahn

    Even now I've noticed the function Invoce methode: Read TEDS is also no longer supported.
    Why?!
    The both VIs are exactly the same during the Modules in it are different.
    Iam using LabVIEW 2009 and the newest Drivers from the NI site!

  • Imaqio (fpga) PCIe 8255R read/write control ISO input

    Hi. I have an external trigger connected to ISO INPUT 5 on my PCIe 8255R which has an fpga RIO (see manual). I  want to read the value of ISO INPUT 5  using Read/Write control vi on Labview but this vi doesn't show that input (it shows iso inputs from 6 to 11). I'm using the default IMAQIO bitfile that comes in the installation directory to open the FPGA. What should I do?. Thanks in advance.

    Hi Akiel,
    Thanks for your question, I'm guessing the reasoning behind this is that you have a large number of indicators?
    Whilst there isn't an in-built way of dynamically referencing which indicator on the FPGA to read from, there is a custom FPGA interface tool which may be of some use to you:
    https://decibel.ni.com/content/docs/DOC-17185
    If you read through this, let me know if this helps or if you need any help understanding what this is doing.
    Regards,
    Ben Clark

  • Shortcuts for change in read/write (control/indicator)

    Hello,
    I try to find a shortcut for change to read/write a local variable ?
    Thanks
    Sylvain Jourdan
    (Labview 2012 - English)

    Hi,
    Thanks for you quick answer, I'll suggest this idea in the LabVIEW-IdeaExchange.
    An other idea, do you know if we can add a property to the shorcut menu by modifying a configuration file... ?
    Thanks,
    Sylvain
    Attachments:
    option_menu.png ‏53 KB

  • FPGA Read/write element

    I'm trying to write a value to the FPGA Vi frontpanel via the host computer.
    For this i use mentioned control.
    I get a strange error, where a wire shows a correct connection in a not considerably different case as if it has a broken connection.
    See this:
    and this:
    Whats happening here? Can i write only all elements at once?
    Any hints? I just want to switch on the laser and let everything else untouched! 
    Thank you in advance!
     

    I would:
    - Recreate the FPGA I/O node (sometimes it can bug out)
    - Check that the FPGA front panel doesn't have multiple controls/indicators called 'Mode'
    - Try a recompile on the windows/RT VI (ctrl + click on the run arrow)

  • Read write control on status

    Dear All,
    I have a problem. Look at the senario,
    i have a table ATTENDANCE_HEADER in which there is a column STATUS,
    there is another table ATTENDANCE_DETAILS.
    entry to the ATTENDANCE_HEADER table is automatic by using schedules setting the STATUS column to PLANNED value.
    means the current date master entry will be entered inthe HEADER table with PLANNED status.
    The secretary will be allowed to do entries in the Details table for PLANNED status.
    but when manager change the status of attendance to RELEASED,Secretary and even the manager and anybody
    will not be able to change the ATTENDANCE_DETAILS rows which are against a date which is RELEASED in the ATTENDANCE_HEADER.
    How should i implement this type of security?
    i need a method example if posible.
    Thanks & Regards

    Muhammad wrote:
    third tip was new for me and is nice, although i am not understanding completely the purpose of it,
    why Table to relate users with their Roles? what will be the structure of these 3 tables?
    Thanks again.its about One to Many or One to Relation thing......
    if one user can have multiple Roles then u need this 3rd table....
    else u can save the Role reference key in the USER main table
    Users
    User_id number,
    User_name Varchar2
    App_roles
    App_role_id number,
    App_role_name varchar2
    Users_roles
    User_id number,
    App_role_id numberu can create many tables its all depends how u can handle
    my 2 cents

  • Lion server file sharing issue with windows API read/write ini file (GetPrivateProfileString)

    Hello,
    I try to config lion server as file server for a windows application we use at work. All other computers are windows 7 or XP, lion server is the only mac. I choose lion server because it's size, quality and personal love of apple products.
    10.7.2 lion server's samba file sharing works almost perfectly with all my windows machines, I can copy, delete, modify any text files or office files without any issue, but the most important windows application for my business doesn't work with samba file sharing. After some digging, I found it is because windows program can't read or write INI file stored on lion share. Windows API GetPrivateProfileString always returns empty if the INI file is store on lion share.
    You can download a small application for read/write windows INI file from codeproject.com to test this problem:
    http://www.codeproject.com/KB/files/ini.aspx
    I can open/edit the in file using any text editor without any problem. The only problem is with those windows APIs. ACL is turned on for my lion share and assigned "delete" rights to samba users.
    I install samba3 on the same server; it works perfectly with windows API. My windows program also works. Looks like there is something wrong with lion server's sambax.
    I'd prefer to use built-in samba even I have samba3 working. Built-in samba is very immature right now, but considered how young it is, I will give apple some time to make it mature.
    Does anyone have same issue or knows how to fix it?
    Thanks,
    Michael.

    All the memory is fine. The server rarely if ever goes down when there are only around 10-12 users connected. When there are 20+ users connected and working heavily it goes down often. When I say working heavily, I mean they are transferring huge files to the SAN (100GB+), sometimes 5 at a time per user, and there are a bunch of others who are reading large video files at a minimum of 220MB/sec from the SAN.
    Though this worked on Snow Leopard without any issues, Lion just doesn't seem to be able to handle it. The odd thing is, on Snow Leopard there was only a single 1GB ethernet connection to a NAS system, whereas with Lion we have a much more powerful machine with a 6-port 10GB ethernet card and a 4 lane 8GB fiber card to a true SAN. You would think that the newer scenario with Lion would handle far more users with ease.
    So far, very disappointing with regards to Lion's file serving performance.

  • ~/oradiag_$USER/.. and "Directory does not exist for read/write" issue

    Hi.
    Recently I've discovered that ADR was creating a folder in one of ours Oracle 11.2.0.1 server, in the users home like ~/oradiag_$USER/.. The problem is that this logging files dont stop growning, and they are filled only with this lines:
    Wed Apr 11 13:40:06 2012
    Directory does not exist for read/write [usr/oracle/product/11.2.0/log] [usr/oracle/product/11.2.0/log/diag/clients]
    Wed Apr 11 13:40:06 2012
    Directory does not exist for read/write [usr/oracle/product/11.2.0/log] [usr/oracle/product/11.2.0/log/diag/clients]
    Wed Apr 11 13:40:06 2012
    Directory does not exist for read/write [usr/oracle/product/11.2.0/log] [usr/oracle/product/11.2.0/log/diag/clients]
    Wed Apr 11 13:40:06 2012
    Directory does not exist for read/write [usr/oracle/product/11.2.0/log] [usr/oracle/product/11.2.0/log/diag/clients]
    Wed Apr 11 13:41:06 2012
    Directory does not exist for read/write [usr/oracle/product/11.2.0/log] [usr/oracle/product/11.2.0/log/diag/clients]
    etc
    I've searched around internet about this issue all that I've found is a "workaround" by creating those folders. And yep, it works, it stops growning.
    Then I checked the others servers that we have, and the problem replicates in some servers with the same Oracle version.
    My question is: Why this? Why in some servers ADR is looking for that folder? That folder didnt exist in any of them, but only some servers tries to read/write on it (or, at least, log it) What parameter relies on it?
    Regards.

    Metalink note
    11g Sqlnet Log Shows Error "Directory does not exist for read/write" [ID 797678.1]
    Errors Filling log.xml and sqlnet.log: Directory does not exist for read/write [opt/oracle/oemagent/agent11g/log] [ID 1291286.1]

  • Recurring Read/Write Issues (1 year now) - NEED FIX

    My Macbook Pro Mid-2009 had a hard drive issue -- lots of weird errors, unclear. Essentially, switched out the hard drive for a brand new one, did a clean install on a 1TB 7200 RPM Hitachi HD. Continued to throw errors when trying to read/write so I was told the hard drive may have been defective out of box.
    Since then, have replaced it with another 1TB 7200 RPM, then a 512GB 7200RPM and now finally a 320GB 5400RPM. ALL CLEAN INSTALLS. Still getting errors -- at this point, I'm being told when trying to Download Chrome that there is no room available when in reality there is ~300GB free, and when trying to change permissions to the Downloads folder am seeing "An unexpected error occurred (error code -50).
    I've been to the Mac Store ~8 times about this already and still no fixes. One suggestion was maybe the Hard Drive Cable is broken? I had it replaced in 2012. Thoughts? Is there any way to check this?

    Hi,
      paramErr                 
    = -50,  /*error in user parameter list*/
    It's not formatted Case Sensitive is it?
    Sounds like other HW problem like RAM, Logic Board, cable, etc.

  • Read/Write vs Full Control on KM folders/files

    I've read some docs on what Read/Write vs Full Control permissions mean when setting permissions for users/groups for folders and files. But I'm still somewhat confused.
    What exactly does the 'Write' mean in Read/Write. Does Write mean a user can:
    Create a new folder
    Create a new file
    Modify an existing file
    Delete a file
    Delete a folder
    When you use the pull down for setting permissions, you see: Full Control, Read/Write, Read, Write and Delete. Kind of confusing. And you can only select one of them.
    Any clarification on these permissions would be greatly appreciated. Or pointing me to some good documentation.
    Thanks in advance. Ron

    Access authorizations
    Read
    Permission to display items.
    Write
    Permission to change items but not to display them.
    In folders, this permission also allows users to create items.
    Read/Write
    Permission to display and change items.
    In folders, this permission also allows users to create items.
    Delete
    To delete an item, you require delete permission (or full control) for this item and write permission for the superordinate folder.
    Full Control
    This permission contains all other permissions.

  • After reinstall, permissions issues even though they say read-write for owner

    So I spent all day yesterday rebuilding my system after a power surge from a tripped breaker fried my old hard drive (so much for surge protectors).
    Now when I try to register a software plug in, I get an error saying "Access denied. Please check permissions on /Library/Preferences/ [the software in question, it doesn't matter]".
    And then, with Safari, when I try to access any website that requires Java applets, I get an error saying that the applet won't load properly, even though I've updated to the most recent version of Java. I'm pretty sure this is because the Java applets are not being allowed to write data to my /Library/Preferences/ folder (or maybe just any folder in the /Library/ folder).
    When I run Disk Utility and repair permissions, I'm getting the exact same messages every single time, so even though it's saying the permissions are getting repaired, clearly it's not saving those repairs.
    I'm 99% sure that this is a permissions issue following the restore from a previous Time Machine save -- I've seen this before and found a fix involving Terminal commands, but I can't for the life of me find the fix anymore.
    I have temporary workarounds for the moment (though it's kind of a pain to have to re-register this software every single time I open the application, and I can have co-workers access the websites that require the Java applets to work, but that's inconvenient for all around), so it's not a pressing issue, but any help tracking down what Terminal commands I should use to solve this issue will be greatly appreciated.

    Found the solution...basically the permissions are not automatically cascaded down to sub folders and files so you have to do the following... modified from https://discussions.apple.com/thread/2743520?start=0&tstart=0
    On the folder that you would like to change, select the Get Info and then click on the cogwheel at the bottom of the Get Info dialog.
    Click on the menu pick "Apply to enclosed items ..." and confirm the warning message.
    Then the same read & write permissions are applied to all the subfolders of the selected folder.

  • Adobe Acrobat Standard I/O Reads Writes Out of Control

    I am using Adobe Acrobat Standard 9.3.2 on Windows XP SP3 with the latest updates installed. In the last few months I have frequently caught acrobat.exe running even when I had no acrobat windows open. The way I know when this is occurring is because my disk read/write light goes crazy. When I open up the task manager I see that Acrobat has hundreds of thousands of disk I/O reads and writes. It is almost like it is caching itself or something. Anyway, does anyone else have this problem and/or know how to make this stop? Right now I just have to go in and force close the app via the Task Manager.
    Thanks in advance,
    CF

    Thanks but I have tried both with and without acrotray running first and it still occurrs. Additionally, when I open it in relation to reboots doesn't matter. The only thing that I think might change behavior is whether or not Acrobat has been opened inside a web browser. There may be some question as to whether or not IE or FF close it properly.

Maybe you are looking for

  • Web Dynpro ABAP application

    Hi All, Is it possible to make a Web Dynpro application available on internet without using Portal? How? Thanks Hardik

  • Function sequence error / Recursive functions error

    Hi! I've a little problem over here. I have an application (servlet) that makes recursive functions with DB access. This function contains a resultset that calls the same function again until no more data is found. The problem, is that I'm using JDBC

  • WANTED: Test Engineer for CCD/CMOS image sensors and cameras...

    TEST ENGINEER Education:  BSEE or equivalent Experience:  5+ years experience in Test Engineering.  Preferred experience with Imaging and CCD cameras.  Must have programming experience with labview, and experience with other languages is a plus.  Mus

  • How DRM works? Adobe-id, authorize devices, Content Server, Adobe Digital Edition etc.

    I fail to understand why there isn't a coherent end-to-end documentation of how DRM works with all the individual pieces ADE, Content-Server, adobe-id coming together in protecting/limiting copying of PDFs and binding limited number of devices. I've

  • Finder taking large percent of cpu

    My 2012 MacBook Pro fan was running for hours.  I checked activity levels of the CPU and found the finder to be the culprit.  I closed the window and the fan stopped running wild in a few minutes.  I turn the finder back on and the fan is now startin