03-07-2008 08:53 AM
Solved! Go to Solution.
03-07-2008
03:06 PM
- last edited on
09-04-2025
01:36 PM
by
Content Cleaner
Hi Ajabo,
The first note to mention is that you can convert a PC-104 processor board to a real-time target as long as the hardware meets the system requirements of the ETS RTOS. If you meet that criteria, that's a good first step.
Now, I going to assume that your PC/104 device is a PCI version (PC/104 Plus), which means that you can treat it like any PCI or PXI device and use NI-VISA to communicate with the card. The Using the VISA Driver Development Wizard and NI-VISA to Register-Level Program a PXI/PCI Device unde... tutorial and the Configuring the NI Real-Time Environment and NI-VISA to Recognize a Third Party Device tutorial discuss these topics. Also, the Porting a Windows Device Driver to the NI Real-Time Platform tutorial is something you should look at. This article describes porting an existing C driver to RT and it happens to even include C code snippets. The first article talks about LabVIEW RT but this process woudl be the same for CVI RT.
The above article on porting a driver mentions that LabVIEW cannot respond to callbacks and therefore instructs the user to call viWaitOnEvent to detect an interrupt event and respond appropriately. I think this is driven by the article's focus on creating a driver that can be wrapped by VIs and called from LabVIEW. In your case, you will be working in CVI and so your option woudl be to register a callback with viInstallHandler that will be called by an NI-VISA thread when an event occurs.
The last article I wanted to mention is the Developing a LabVIEW Real-Time Driver for a PXI, cPCI or PCI Device turial which is helfpul.
Your best option is going to be to use VISA.
Hope this helps!
Best Regards,
03-08-2008 01:18 PM
03-10-2008
09:36 AM
- last edited on
09-04-2025
01:37 PM
by
Content Cleaner
Hi ajabo,
You can use NI-VISA to perform register-level programming to access those specific I/O addresses on your boards. You can still use the article I mentioned entitled Porting a Windows Device Driver to the NI Real-Time Platform in this case. You can find detailed information on register-based communication in the NI-VISA Library topic in the CVI Help. In the CVI Help, you can find that topic in the Contents tab under Library Reference >> NI-VISA Library >> User Reference >> Register-Based Communication.
Also, I'm not familiar with the Measurement Hardware Driver Development Kit, but this might be of some use to you.
The final note is that NI-VISA is supported on RT so we are in good shape there.
Hope this helps!
Best Regards,
07-10-2008 07:01 AM