desktop real time ,analog output,pci-6289 ,'device not failed'
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a question about the configuration of Simulink Desktop Realtime in MATLAB 2021b.
In Simulink Desktop Realtime, hardware-in-the-loop experiments can be realized, which can support some columns of boards.
For example, I have installed the pci 6289 board on the computer host, how do I have to configure it so that Simulink can realize the signal interaction run on port 6229.
Specific questions are as follows:
1, Do I need to install the driver for pci 6229 on the computer?
2, I will Simulink Desktop Realtime in the analog output added to simulink, and then double-click the analog output module, click install new board, select to the pci 6289 board, inside the dialog box to pick out how to configure. For example, pin 22 is the analog output port ao 0 of the 6289, so how do I configure it in this configuration window.
3, after the configuration of the 'device not failed' how to solve it?
Thank you very much for your answer!
0 Commenti
Risposte (1)
Sulaymon Eshkabilov
il 3 Gen 2024
These are the general steps on how to address the problem arised in this exercise:
1. Yes, an appropriate driver for your PCI-6229 board shoudl ebe installed. NI provides the required drivers for their hardware. The NI-DAQmx driver package can be downloaded from the NI website.
2. Add Analog Output Block in Simulink. In Simulink, with PCI-6229 board, Analog Output block should be added to your Simulink model. How to get it is to drag and drop the "Analog Output" block from the Simulink Desktop Real-Time block library into your Simulink model.
3. Configure Analog Output Block parameters:
3.1. Double-click on the Analog Output block to open its parameters.
3.2. In the block parameters dialog, click on "Install New Board."
3.3. Select board (PCI-6229) from the list and click OK.
4. Configure the block to match the hardware setup:
4.1. Under the "AO Channels" tab, see a list of available channels. In your case, if pin 22 corresponds to AO 0, you need to select AO 0 from the list.
4.2. Configure other parameters such as range, units, etc.
5. Resolve "Device Not Failed" Issue. Here are some troubleshooting steps:
5.1. Check Connection: Ensure that your PCI-6229 board is properly connected to your host machine.
5.2. Driver Compatibility: Make sure that you have installed the correct version of the NI-DAQmx driver that is compatible with your MATLAB version and operating system.
5.3. Device Manager: Check the Windows Device Manager to see if the PCI-6229 board is recognized and has no conflicts.
5.4. Driver Installation: Reinstall the NI-DAQmx driver and follow the installation instructions carefully.
5.5. Restart MATLAB: Sometimes, restarting MATLAB after configuring the board can resolve initialization issues.
5.6. Check Board Status: Open the NI Measurement & Automation Explorer (NI MAX) to check the status of your board. Ensure that it is recognized and appears without errors.
0 Commenti
Vedere anche
Categorie
Scopri di più su Target Computer Setup in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!