Yes Mike you are right,it is the duty cycle i want to change, I currently have the option of an analog -10v - +10vdc output module or a digital output module for national instruments.the analog unit is much more expensive so i am hoping to avoid it if possible,my plan if nessesary would be to output a 0-10v dc signal to the arduino which i want to use as a position indicator for it, but i would prefer if i could use a digital signal where i could alter the duty cycle as it would cost the company far less,I am not sure i would be able to program labview to output the strings needed but thats another learning curve for me to sort out ! I need the motor to be pretty small and cheap!! but also very quick moving,I was looking at the Futaba site and was wondering if these little motors would be quick enough and torquey enough for my job. the entire range of the motor maybe two full revolutions.so if i increase the knob position i want the output signal frequency to increase and i want the motor to rotate x amount of steps cw,if i decrease the knob position i want the frequency of my signal to decrease and also the motor to rotate in a ccw direction until it reaches its new position. Thanks Mike.I am not too hot on the whole senging commands type programming,or programming in general as may be obvious ! sorry if my explaination wasnt great.What i hope to do is write a code for the arduino which will allow me to connect a pwm signal from my labview system to the arduino board.basically what i want to end up doing is turning a knob on my labview screen which will change the frequency of the outputted signal,i then want the motor to move to a position relative to the width of the signal i am outputting,basically one signal from labview and i am hoping that the arduino will figure out the forward and reversre from this. I will only have remote access to the labview unit and using pid control i will need the arduino unit to also stand alone with the program loaded onto it and just move the motor relative to the inputs it recieves from the digital output module on labview.is this possible.ps i have zero and i mean zero experience of arduino programming.Thanks all :-? Now, start the code execution and plot the analog reading of the potentiometer.Hi All, I am currently starting a project for work.I have to control the position of a small stepper motor using labview rt.I have as yet not purchased the output module for my compact rio device but it looks like i will be buying a digital output unit and not an analog 0-10v module.My plan is to control a stepper motor with an arduino inbetween labview and the motor.I would like to output a digital output and then use the arduino to control the position of the motor relative to the frequency of the output pulse.Is this posible ? the project is going to be on a standalone device,based on some calulations i am doing in labview i will need the pressure in a system increased or decreased,I plan to use labview to output the signal and the arduino to take care of the motor for me.
Now, go to block diagram panel and using LINX functions make the following block diagram to read analog value from the potentiometer of evive.In my case the directory is Documents\LabVIEW\ArduinoLibrary\LINX\examples\Arduino_Mega2560_Serial Go to the folder you have just generated libraries into and go to examples\Arduino_Mega2560_Serial folder and open the Arduino code.Choose the folder you want to save your Arduino library and click “Generate”.Go to Tools -> MakerHub -> LINK -> Generate Firmware Librarie… Once it gets finished, click “Finish” and close the application.Search for LINX in the search bar, and double click on LINX plugin.The application will look like this when it is open. Open VI Package Manager from start menu.Once installation is finished click “Finish”.Then choose the first option “Install” to install and click “Next”.Once the download gets over, execute the installation application.We are installing windows in this instructions.
Download VI Package Manager from here.
If you do not have it installed please visit here and install the software. You should have LabVIEW software installed on your desktop to proceed further. Use the built-in sensor VIs to start getting data to your PC in seconds or use the peripheral VIs to access your device’s digital I/O, analog I/O, SPI, I2C, UART, PWM, and more. LINX (LabVIEW Plugin) provides easy-to-use LabVIEW VIs for interacting with evive.