LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI ELVIS II and Quanser DC Motor control

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)

 

 

0 Kudos
Message 1 of 9
(5,023 Views)

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).

0 Kudos
Message 2 of 9
(4,999 Views)

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

0 Kudos
Message 3 of 9
(4,988 Views)

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.

0 Kudos
Message 4 of 9
(4,979 Views)

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

0 Kudos
Message 5 of 9
(4,710 Views)

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.

0 Kudos
Message 6 of 9
(4,704 Views)

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

 

0 Kudos
Message 7 of 9
(4,690 Views)

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

0 Kudos
Message 8 of 9
(4,675 Views)

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).

 

0 Kudos
Message 9 of 9
(4,670 Views)