Coder Social home page Coder Social logo

Comments (3)

Sylphe88 avatar Sylphe88 commented on August 12, 2024

Hello KivenJia,

I am sorry I could not answer before. I have left the company and thus have very limited access to anything technical right now but here is what I think is you issue:

  • I believe the latest version of the custom device addresses the latest versions of the AIT board (v2), while NI still sells the v1. There are not many differences between those, but look for this one: you should check in the C:\Program Files (x86)\AIT\Ethernet SDK v4.15\ES Configuration Tools\tools\ folder what is the name of the conversion utility. It might not be convert.exe. In that case, you should look into the source code (once again, sorry for not being able to retrieve it before a few weeks) where this utility is called and change the name/path. It converts your xml database into a binary one (.hex) usable by the target.

Overall, some more recommendations:

  • The version of LabVIEW and LVRT and the drivers matter but the most important is the version of the AIT driver (not the SDK). From what I recall, you should use the v5.8. If you recently purchased the AFDX board with NI, it should be the version on the CD that comes with the board. Unfortunately, AIT website only gives access to a newer version of the driver, so watch out on this.
  • You have to make sure that you installed the AIT driver on the target
  • Make sure you try out a very simple database on your first tries. Recently there have been some issues with parameters for the AFDX protocol (though you should be more than safe with most configurations).

Hope this helps,
Best of luck,
--Eric

from ait-664-afdx-custom-device.

Schlammkuh avatar Schlammkuh commented on August 12, 2024

I'm having nearly the same problem. I'm unsure whether or not it's worth creating a new issue, so I'm reusing this one.

Thanks to Eric's comment from 7 Aug 2017, I managed to get a bit further, but not much.

I ended up with a error -307970 during deployment of my System Definition (NI VeriStand: An inline custom device attempted to access invalid data in the VeriStand Engine. The inline custom device attempted to read or write data using an invalid reference, or a reference that did not have the read or w
rite access required for that operation.) See the attached deployment log.

NI VS - Deploy AIT 664 CD error.txt

According to my log, the VI to blame for seems to be 'AIT 664 Custom Device.lvlib:AIT 664 - ReadWrite Message.vi' trying to access invalid references.

I'm fairly new to NI VeriStand and currently unable to fix this by myself, so I hope to get some ideas here. Maybe I'm missing something?

My environment:
Windows 7 SP1 64bit
LabVIEW 2017 SP1 (17.0.1f1 32-bit)
VeriStand 2017 (2017.0.0.143 32-bit)
PXI-Controller PXIe-8840 running LabVIEW RT 17.0.0
VeriStand engine on our PXI RT Target is also 2017.0.0.143.
AIT 664 SDK / LabVIEW drivers 4.17.0
AIT 664 RT driver support 4.17.0 installed on our PXI real-time target
AIT 664 PXI board ordered & delivered from NI in Dec 2017, so according to Eric, I suppose, it's a older v1 board?
(As advised by Eric, I also tried the older drivers / SDK from AIT provided on the CD that shipped with my card (version 1.6.0), but I couldn't build the custom device, because the setup.exe from the CD did not install any LabVIEW VIs to my LabVIEW user.lib / instr.lib.)

What I have done so far is basically downloaded the custom device, changed the system exec call from 'convert.exe' to 'convertEth.exe', fixed a missing library membership for a VI contained in the user.lib, re-linked with two VIs in the custom device All AIT 664 Driver VIs.vi and successfully built both the Configuration / Engine.

After that, I added the custom device to my VeriStand System Definition and configured it successfully (As a start, I chose the 'simpleLoopback.xml' example database file provided by the AIT SDK, and set the VISA resource address to what NI MAX told me). During deployment of the System Definition I always get error -307970 as described above.

Can anybody help me out here?, b/c I'm stuck right now. Am I missing something?

Regards,

Sebastian

from ait-664-afdx-custom-device.

Schlammkuh avatar Schlammkuh commented on August 12, 2024

Ok, after a few months of doing something else, I came back to my issue and finally found a solution working for me. I thought I'd share this for others having similar issues with the newer/current drivers/API from the AIT website.

I finally got the old drivers installed from the CD that shipped with my card (got it from NI). It had the V1.6.0 API on it. After having run setup.exe from the CD normally to install everything else except the LabVIEW drivers, I ran into the problem as stated above, as I was not able to get the LabVIEW drivers installed as well. So I extracted the contents of setup.exe using the "innounp" tool from here. Then I manually copied everything from (Extracted files)\{reg_HKLM\Software\National Instruments\LabVIEW\11.0_Path} into my LabVIEW programs directory (which is at C:\Program Files (x86)\National Instruments\LabVIEW 2017).

Note: The RT drivers got installed automatically by setup.exe.

After that, I rebuilt the custom device, added it to my system definition and used the very same simpleLoopback.xml as stated above, et voilà - my system definition successfully deployed and I can loopback Ethernet frames (checked by removing the RJ45 cable and it correctly stopped working then).

Sebastian

from ait-664-afdx-custom-device.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.