11-30-2010 12:44 AM
I am using NI ELVIS-II and Quanser DC Motor control ,when is switch on the power supplies of both prototype board LED and USB's ACTIVE LED is swithed on and +B +15,-15,+5v green LEDs are ON on the prototype board,but as per the manual instructions from LABVIEW when we switch on power supply USB's READY LED should glow instead of ACTIVE,more over when i click on measuremnet and automation i am unable to find NI ELVIS II under Devices and Interfaces.
In the manuals provided you mention DAQ do i need to use any seperate DAQ or is it enough if i connect the USB from ELVIS to PC?
i connected my NI ELVIS board to USB,do i nedd to use any DAQ devices or DRIVERS for detection of board please help me........
we have the following CDs came along with board 1)quanser NI elvis trainer (DCMCT) ,2)NI ELVISSmx 4.01 (3 DISKS)
12-01-2010 09:36 AM
You do not need another DAQ - the ELVIS II has its own DAQ.
Make sure you install the NI ELVIS II CD. Once those drivers are installed, you should be able to see the ELVIS II device in teh Measurement and Automation (MAX) software. Once it's visible in MAX, try running one of the supplied VIs (e.g. modeling).
12-02-2010 12:21 AM
ok,thank you very much MAx is detecting the device
i have another doubt regarding my application
can a fuzzy logic code written in the control simulation tool box can be used to control this ELVIS II and quanser DC motor prototype board.
please send some example how to start with some simple appplications
12-02-2010 08:00 AM
You can design your own fuzzy logic controller. Take a loot at the QNET_DCMCT_Speed_Control.vi supplied. As shown in the attached block diagram, a PI controller is used to regulate the motor speed. Just remove the sub-VI and add your fuzzy logic algorithm.
If you want to control position, then take a look at the QNET_DCMCT_Position_Control.vi instead.
04-15-2011 06:10 AM
i am using NI ELVIS II and Qunaser DC MCT,i am unable to know which are the control pins responsible for driving the motor,i want to do position control using PID control on that,so i want to use DAQmx functions or DAQ assistant to acuire and generate signas to andfrom NI elvis.first of all i want to generate AC voltage to control motor when i click on DAq assiatnt it shows me a0,a1,vps neg,vps pos.. simplarly in the case of data acquisition it shows me ctr 0 and ctr1.
please help me regarding which pins are responsible(eg ctr 0 or ctr 1) for contolling the motor and getting the data from encoder.
and also please provide me information ragrding position control of motor using PID using DAQmx and DAQ assitant VIs
04-15-2011 08:02 AM
The voltage command to the amplifier to drive the DC motor is ao0 and the encoder is on ctr0.
You can drive this through the motor through DAQ Assistant on ao0. Just remember that the amplifier gain is 2.3 V/V. However, you won't be able to read the encoder through DAQ Assistant. This has to be done through DAQmx programming. See the attached image on how to configure encoder.
Do you have the VIs that were supplied with the QNET system? If you purchased this QNET recently, the VIs are on the "Resources CD". You can have access the VIs by going through the registration process. The QNET_DCMCT_Position_Control.vi does exactly what you need - control the DC motor position via the encoder using PID.
04-16-2011 01:24 AM
thank you very much sir,
but before going to PID position control I tried to do speed control of motor using DAQ assiatnt,i clicked on DAQ assistant and tried to generate analog voltage,and in DAQ Assitant i set signal type analog and Voltage min -10 ,max +10. and triggering none and generation mode N samples and In the Block Digaram i connected control input to the Data pin of DAQ Assistant. and error out of DAQ assiatnt to a simple error handler.but when i try to execute that i am getting an error requested value is not a supported value(error 200077 Occured at DAQmx write).
and also i want to convert that DAQ assiatant to DAQmx code.
Please Help me regarding This and if possible provide me some examples or useful data to proceed
04-18-2011 12:26 AM
thank you very much sir,
but before going to PID position control I tried to do speed control of motor using DAQ assiatnt,i clicked on DAQ assistant and tried to generate analog voltage,and in DAQ Assitant i set signal type analog and Voltage min -10 ,max +10. and triggering none and generation mode N samples and In the Block Digaram i connected control input to the Data pin of DAQ Assistant. and error out of DAQ assiatnt to a simple error handler.but when i try to execute that i am getting an error requested value is not a supported value(error 200077 Occured at DAQmx write).
and also i want to convert that DAQ assiatant to DAQmx code.
Please Help me regarding This and if possible provide me some examples or useful data to proceed
04-18-2011 08:56 AM
See the attached example. It uses DAQ Assistant to read the TACH and feed a voltage to the DC motor (via the amplifier).
These DAQ Assistant VIs are placed inside a Simulation loop (since we eventually want to perform control). Because they are in a loop, when configuring the AO channel set the aquisition mode to "1 Sample (On Demand)".
You can also convert this to DAQmx by right-clicking on the DAQ Assistant VI in the block diagram and selecting "Generate NI-DAQmx Code" (or just do it yourself).