NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Mr Shayan
Posts: 3
0 Kudos

matlab

Hello:

 

I need to run the stepper motor, the problem is that the Logic (MATLAB code) will be interfaced by the "dSpace (Control Desk NGV version 4)", which does not support the Stepper motor block, available in the Simulink Library.

 
In this case I can only use the "Pulse generator block". That Pulse generator will continuously generate the pulses and two (Constant Blocks) will take the input (sec.) and generate the pulses unless the pulse reaches the second input block value, and then it should remain at zero.
 
Eg: I/P(1) = 0,    I/P(2) = 20,  so a Pulse generator will generate the pulses till 20sec and then it should be stopped.
 
The basic problem is that all of the comparison block with whom I am familiar will make the decision by looking at the "Amplitude (values on Y axis)" and I need to compare or want to make a decision by Looking the values on the (x-axis).
Knight of NI
Posts: 18,064
0 Kudos

Re: matlab

duplicate post

 

Please do not cross-post. It is very irritating. It also makes helping extremely difficult since nobody knows where they should respond, and nobody knows what has already been discussed.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page