From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-17-2014 12:03 PM
I am using a CRIO-9014 with two C-modules installed (NI-9870 and NI-9402). The 1 khz speed of the Scan mode is not fast enough for what I need to do with the 9402, so I am using the Hybrid Mode where the 9402 is under the FPGA target and the 9870 in under the Chassis. My code runs fine using Scan mode drivers for the the 9870 and the FPGA mode for the 9402...however, it runs fine only when running the code while in the Labview development environment. If I deploy the code to run at startup on the RIO and display data through the Remote Panel Sever, I loose the 9870. In other words, serial port I/O stops. The 9402 still works as does my remote panel . What gives? Any ideas out there?
Thanks,
Steve
11-18-2014 04:12 PM
Hey Steve,
That sounds odd. Do you think that all the code related to the 9870 has stopped running, or it is just not updating on the remote panel? Have you tried monitoring it using a host VI?
11-18-2014 08:46 PM
Hi,
The 9870 is setup to output serial data that I can watch on another computer. It does not output when I run the webserver. I get the impression the 9870 scan code is either disabled or it does not make it into the executable when I build it. Again, this all works fine (in Hybrid Mode) when run interactively from the Labview development tools. I am at a loss.
Steve
11-19-2014 10:10 AM
Hmm it seems like some other people have run into this in the past before. Do you know if your FPGA bitfile is running before you are making any sort of serial related calls to the 9870? The bitfile needs to be running before the program can see the serial ports on the 9870 through scan engine. This is because in hybrid mode, you actually recompile part of the FPGA code related to the scan engine, so if that code isn't running, the scan engine won't work. What might be happening here is your program tries to make calls to serial ports that we can't see yet, because the FPGA bitfile isn't running, and that error causes the rest of your serial operations to stop working.
11-19-2014 11:12 AM
Well...how do I know if the bitcode is running first?. Is there some way to configure it so it runs first?
Steve
11-20-2014 11:31 AM
You can setup the 9014 so that it will run the FPGA code automatically. There are instructions on how to do this here:
http://digital.ni.com/public.nsf/allkb/BC513C2A0DC29C89862574BF0002B0B9
11-20-2014 12:08 PM
Does this guarantee that the FGPA code runs first? I ask because I already made this change and it didn't make any difference.
Thanks,
Steve
11-21-2014 11:43 AM
Yes it does, IF the bitfile is loaded onto the flash. Did you do that step? What chassis are you using?
11-21-2014 04:46 PM
I have the 9113 chassis. I didn't know one could load the FPGA bitfile in flash seperate from the program load. Is that correct and if so, how do I do that?
Thanks,
Steve
11-24-2014 12:42 PM
Depending on software version, you can do this through MAX or the RIO Device Setup. This article walks through steps for both:
http://digital.ni.com/public.nsf/allkb/BAAA6D86CDDD583C8625729E00572C8B?OpenDocument