Keeping constant speed with variable voltage using Phidgets

I have 4 motors, 3 of which are being monitored using encoders.  What I want to be done is have the user input certain variables and then have those variables control the process.  My main program is the first attachment.  My control is the second attachment.  I call the phidget that I'm using to power my motors, Motor Controller, and it has a 0-10VDC range.  I'm using signal isolators that act as the pots for DC drive boxes that then control 90VDC motors.
The problem I'm having is I'm not sure how to control the voltage properly.  After the user inputs the variables, I then want the signal isolators to ramp up the voltage to get the motors to drive at the user input run speed.  All the speeds won't be exactly the same, which is why I use the "Equal-Greater-Less" VI 4 different times. (ie. The desired run speed might be 15 ft/min, but the chopper speed might need to be faster or slower depending on application.)  Once the voltage is ramped up enough to keep the motors at the desired levels, I want it to slighly adjust, if needed, to make sure that the encoders are showing the same measured speed as the desired speeds.  Currently the way I have it now, I have either 0 V or 10 V outputs.  I don't want the voltages to be extremes.  If the puller encoder is showing that the the measured speed is 14.5 and I want it to be at 15, I don't want 10V to be output to that signal isolator.  Basically, my question is, how can I have a variable voltage control for the code to try to keep the measured speed at the desired speed.
*I have three attachments for reference, but my main question is in the Equal-Great-Less Vi.  Also, I know there are other little things that still need to be done.  I know that my program won't run at this time.  The Event structure will also be removed at the end.  I have it in there now so I can manually control each motor by itself for testing.
Attachments:
Pre-preg Machine Program.vi ‏95 KB
Equal-Greater-Less.vi ‏31 KB
EncoderEvents.vi ‏20 KB

Hi ggpoly,
on your "Equal Great Less"-VI:
- It's RubeGoldberg to convert boolean conditions to enums just to select one of two cases…
- By moving index and output outside the inner case structure you don't need local variables…
- Comparing floats for equality is very dangerous as has been explained a lot of times before…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Drive heat tape with variable voltage

    I am looking to wrap some copper pipe with heat tape and drive the heat tape by either varying the voltage or current based on a temperature reading taken from the pipe.  I am hoping someone here has done this before and can recommend heat tape that can be driven in this manner, with a programmable power supply driven by LabVIEW.  I have done a little looking but am only finding heat tape that is either on or off, but it seems like what I am looking for shoulod exist.  Any thoughts or suggestions are welcome.
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

    With a variable voltage power supply you could very well implement PID control.
    We do something similar in one of our temperature-control products but do on-off PWM for PID control. The tape is switched by an SSR, and depending on the PID calculations the on-off times vary. Duty cycle is about 2 seconds.
    Hope this help,
    Mohit Mahajan.
    www.BioZen.co.in
    Starting with LabVIEW

  • Triggered pulse with variable delay using 6023E, getting started

    I am having a hard time getting started with my PCI-6023E.  My goal is to use it to create a programically controlled delay between the pulse I am inputting and the pulse I hope to output from the 6023E.  I have installed the 6023E into a computer and am trying to trigger using a function generator.  I am looking at the output using a scope.  I think that maybe I have to "turn on" the output of a certain pin.   I can't figure out which pins to connect where.  I think I am supposed to use Counter Group Config.vi to control the delay, but i'm not sure.  Any help or direction to helpful documents would be very much appreciated.
    Thanks,
    Emily

    Hi Emily,
    The PCI-6023E is supported by both the Traditional NI-DAQ driver and the NI-DAQmx driver.  Since you are getting started with development of a new application, I would highly recommend the NI-DAQmx driver (right now I believe you are using Traditional NI-DAQ because of the Counter Group Config.vi).  See the article here for information on the advantages of the NI-DAQmx driver.
    Let's first take a look at the hardware level and what the 6023E is capable of:
    The 6023E digital I/O lines are static, meaning that they either output a digital value or read a digital value at the instant the software function is called.  Ideally, you would receive a digital trigger and specify in software a delay past the trigger to output the digital value from another line.  However, the 6023E does not support triggers for digital tasks.
    Any timing or delay will have to be taken care of on a software level.  You could continually poll the digital line connected to your function generator to look for the trigger occurrence.  When that trigger is detected, a software delay could be implemented before making a digital write to another line.  If you choose to go the route of NI-DAQmx, there are a number of shipping examples included with the driver that could get you started.  They can be found by going to Help>>Find Examples in LabVIEW to bring up the NI Example Finder.  From there you would browse in the directory Hardware Input and Output>>DAQmx
    Regards,
    Andrew W
    National Instruments

  • Constant problems with external HD used for time machine.

    I have had numerous problems with my backup disk and can't seem to solve the problem... I often get errors with disk not ejecting properly, sometimes when the iMac has gone to sleep, sometimes not. Often the Mac won't recognise the disk when plugged back in (it recognises the other partition though). I can get the disk in disk utility sometimes, but if I run repair disk it finds a lot of errors and tells me it can't fix the disk. I'm told to Backup, format the disk etc.
    Running yosemite on a 2008 iMac - disk is Hitachi 1TB usb powered (plugged straight in to iMac). I have prevented spotlight from indexing the HD.
    Any advice ideas? Thanks in advance.

    applejoose wrote:
    I can't because it's a specific type.
    Is it hard-wired to the enclosure? If not, examine the connectors and compare with what is available. I doubt that it has a connector that is unique to this particular drive.
    If you choose to replace the drive, don't get another manufacturer-branded external. They are often "crippled" so that they can't be used in anything other than the generally cheap enclosure in which they are packaged, or only usable if you re-format them. Here's a comment from a recent Macintouch thread on new Seagate 5TB externals (http://www.macintouch.com/readerreports/harddrives/index.html#d23mar2015):
    A word of warning for those who want to rip out their drive. If you have data on it, it will only be read by Seagate controllers such as its original case or the GoFlex adapters. If you stick it in something like an IcyDock, it cannot be read and require a reformat. If you used it with another controller, it cannot be read when you put it back on the Seagate controllers.
    A good quality enclosure, such as the OWC Mercury aluminum cases, is a good investment. You can choose the drive you install, and you usually get a better drive warranty that way.

  • Keep published pages with old theme, use new theme on new entries?

    I've been using iWeb for about 18 months to publish (privately to my MobileMe account) a daily "diary" entry in blog style and would now like to change them default theme but WITHOUT changing it for the past 18 months published since the formatting of the content of the old theme doesn't FIT into the format of the new theme.
    Is this possible?

    No.  just tried adding a new entry page with a different theme and it changed the theme for all pages. 
    You could create a new blog with the new theme and link to it from your old blog. Not sure that would be as smooth a transition as you'd like however.
    OT

  • Fried my battery with variable voltage charger... new battery; wont work

    so i plugged my ipod into one of those cheesy charge anything car adapters when it was on the wrong voltage setting. only took a few seconds before my ipod died, permanently... so i ordered a replacement battery and installed it... but for some reason it wont take a charge when i plug it into my comp... i figured the new battery was faulty so i got sneaky and popped the case off my girlfriends ipod and plugged my battery into it and connected it to my computer, and the **** thing turned on... so after my new battery was charged i took it out of my girlfriends and put it back into mine and it turned on... i was stoked, until i plugged it into my comp it said "battery low please connect to power source", beeped at me a few times and shut off. the battery has a full charge but it wont connect thru the usb cord to my computer or a wall charger... why cant my ipod connect anymore did i fry some internal circuitry as well as the battery... please offer any advice you might have im stumped and i cant just pull the case of my girlfriends ipod everytime i need a charge.

    I assume by wrong voltage setting, you mean you had it set too high? Was it connected to your iPod through a USB connection?
    Patrick

  • Ken Burns Effect - Variable vs. Constant Speed

    On a test slideshow I worked on in iPhoto, I noticed that the Ken Burns effect uses a "variable" motion. Meaning if I'm utilizing the zoom effect, it'll start out slow, then speed up, then slow down again for each photo. However, I just want a constant speed zoom for each photo.
    Is there away to have the Ken Burns effect zoom (and/or pan) with a constant speed?

    100 brownie points to Terrabay! LOL
    For those that don't know how Terrabay arrived at his solution: iMovie DOES let you dictate how long your transition (for ANY transition) is when you put it into your show. When you press editing and go into transitions drag the transition you want into your time line - you can adjust how long you want it to be and which direction you want it to go before you put it in your show, and if youve already put it in but want to lengthen/shorten it, just click on your transition in the time line, make the change and press UPDATE. Simple.

  • Trouble with slow Macbook Air. I have first generation MacBook Air and have a hard time keeping hard drive from being full. Right now, I have almost 5 gigs available, but mac is slow and I keep getting color wheel when I use Mail. Any suggestions?

    Trouble with slow Macbook Air. I have first generation MacBook Air and have a hard time keeping hard drive from being full. After trashing many docs, I have almost 5 gigs available, but mac is slow and I keep getting color wheel when I use Mail. I'd like to install Lion, but now I'm afraid it will slow down my machine even further. Do I have enough free hard disc space? Is Mail problem related to free hard disc space? Thanks for your help!

    7gb of free disc space is required to install Lion.  Read this about how to free up disc space: http://pondini.org/OSX/DiskSpace.html.  Also, advice on how to speed up your mac: http://www.maclife.com/article/feature/25_ways_speed_your_mac

  • Is there a linear equations VI thatI can use for inputting the coefficients with variables attached to them? Thank you.

    Is there a linear equation VI that I can use for inputting the coefficients with variables attached to them? I am currently studying elec engineering and am in the thick of transient analysis. It is very time consuming figuring the mesh and nodal analysis in the transform domain. With 3 branches in a mesh analysis the resistors, inductors and capacitors are represented with variable s in them. I need to determine in the transform domain then convert to the time domain. One equation goes like this: (3+2s+1/4s)i1s - (2s)i2s - (1/4s)i3s = 6/s -6. The other equations are similar. I must keep the variable s in the equation and solve it with s in the result. I made several VIs for determining simultaneous linear equations some for complex numbers and they work great. This one has me a little stumped. I thinking that maybe Labview doesn't have a VI for this. The other VIs were fine because you just plugged in the numbers and ran the VI and got your result. Any VIs that do LaPlace transform operations?
    Thank you.
    Tom

    Hello Tom,
    You can find a VI for doing Laplace transforms in Functions->Analyze->Signal Processing->Frequency Domain (this VI is only available in the Full and Professional versions).
    You may also find the following tutorial of help in working with linear systems in LabVIEW.
    Linear Systems in LabVIEW
    Keep up to date on the latest PXI news at twitter.com/pxi

  • Contant selection use with variable restriction

    Hi gurus,
    My issue is as follows:
    I am trying to create a query where there will be a restricted key figure with a variable restriction (ZCALMON - ready for input-mandatory-single) on 0CALMONTH characteristic. I want this restricted key figure to be constant (no changes shall be allowed based on drill-down or any other filters in the query). So I selected the 0CALMONTH char in restrictions screen and made "Constant selection".
    In the filters part of my query, I am again restricting 0CALMONTH with another variable Z12MONTH(Customer exit-interval-mandatory). The from value of the variable should be 12 months before ZCALMON and to value of the variable should be ZCALMON. The value of Z12MONTH is determined via CMOD (it is correct as I have checked it via RSRT + Debugging).
    However, when I run the query, only the ZCALMON values for 0CALMONTH are coming (although this should only affect the restricted key figure and report should be listing all 12 months determined by Z12MONTH).
    What may be the problem?
    Is it because of using "Constant selection" with a variable restriction option?
    Thanks in advance for your support,
    Regards,
    Dilek

    Deepmala,
    I gues it is not possible..
    Check the following :
    Variable offset
    Dilek

  • Trying to burn CD but keep getting error message "The attempt to burn a disc failed. The burn failed because of a medium write error. Tried different speeds with no luck

    trying to burn CD but keep getting error message "The attempt to burn a disc failed. The burn failed because of a medium write error. Tried different speeds with no luck

    The burn failed because of a medium write error. Tried different speeds with no luck
    Then try to use a different brand of DVD or at least a different batch of DVD. The disk may be defective.

  • Problem with variables in formulas when using CrystalReportViewer

    Post Author: Aksu
    CA Forum: Formula
    Hi! I have a problem with variables in Crystal Reports formulas, when using CrystalDecisions.Windows.Forms.CrystalReportViewer class from VS2005-project. ReportViewer always gives error:*************Crystal Report Windows Forms ViewerThis field name is not known.Details: errorKindError in File C:\{dir&#93;}\{file}.rpt:Error in formula <mCustomerAttributes>.'Dim result As String'This field name is not known.Details: errorKind ************* Report without variables works fine with Viewer and in Crystal Reports Designer report with variables works also fine. I have tried with both "formula-syntaxes" - basic and crystal. But Viewer always gives error when trying to define new variable.I think the problem might be with CR -versions, because VS-project has formerly been designed to VS2003 and CR9 or 10. Now I'm using VS2005 and CR11. Though I have changed all references to new CrystalDecisions-asseblies (Ver.11.0.3300.0), when I debug the project and checkout the Viewers ReportSources FormatEngine Shows version CR9_2.... I have no idea where it gets this version...***************DEBUG-view when Viewer is created *******************CrystalReportViewer    |_        ReportSourceClassFactoryName ... , Version=11.0.3300.0 , ...    |_            ReportSource            |_                FormatEngine    {CrystalDecisions.CrystalReports.Engine.FormatEngine}                        |_                        ClientVersionHeader    {CrystalDecisions.Shared.ReportServiceVersionHeader}                            |_                            |    version = 920     (int)                            |_                                Static members                                            |_                                        VER_CR9    = 920    (int)**************************************** Could anyone have any answers or tips for this problem? I'd really appreciate it... ---Aksu

    Has anyone been able to answer this question?
    I am having the same problem:
    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.
    Edited by: Tim Haley on Nov 25, 2008 11:11 PM
    Edited by: Tim Haley on Nov 25, 2008 11:12 PM

  • HT4061 Every time I use my I pad it keeps popping up with enter my iTunes password. I have nothing waiting to download and not trying to purchase anything yet every time I want to listen to music or use my apps this happens. Can anyone tell me how to stop

    Every time I use my I pad it keeps popping up with enter my iTunes password. I have nothing waiting to download and not trying to purchase anything yet every time I want to listen to music or use my apps this happens. Can anyone tell me how to stop this?

    If you get an error that says can't backup, try moving the existing backup file to a safe location and thry again. again. You can find the location of the backup file here:
    iPhone and iPod touch: About backups

  • How to use wild card with variable in powershell

    HI
    i am trying to use wild card with variable but getting an error message, "You cannot call a method on a null-valued expression."
    $src = 'C:\Temp'
    $TabletzipPath = $src + "tab*.zip"
    i would like to copy the tablet zip file which is placed in in $src to be copied in $TabletzipPath.
    i am using tab* because this file name changes continuously. so if i give a fix name for example tablet1.zip than it works fine.

    Not sure if the wildcard will work without seeing how you're using the variable.
    That said, I can say that it looks like you're missing the backslash between the $src path and the wildcard filename. As-is the above code assigns a value to $TabletzipPath of "C:\temptab*.zip" instead of what you are likely expecting ("C:\temp\tab*.zip")
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Difficulty converting file keeps coming up with "file failed to be converted using Adobe ExportPDF online

    Can't convert file keeps coming up with message "file failed to be converted using Adobe ExportPDF online.

    Hi Dude291,
    I'm sorry that you're having trouble with ExportPDF. Can you please tell me a bit more about what's going on, so we can get to the bottom of the issue?
    What browser are you using? Have you tried clearing the browser cache?
    Are you converting from within Reader, or directly via the ExportPDF website?
    Are you able to convert other files? Or is the error specific to this one file?
    How large or complex is  the file that you're trying to convert?
    Are you accessing ExportPDF from a networked computer that may have firewall/proxy settings that are limiting access to the Internet?
    I think that's good for starters. Please get back to us with some detail about the problem and we will see what we can do.
    Best,
    Sara

Maybe you are looking for

  • Event in Table maintenance generator

    Hi, We are using the event in the table maintainenace to validate the data entred by the user. In one of the scenarios when user does enter anything and press enter , an error message should come. I have created a form on event 01-before saving the d

  • User field in FI document

    Hi guru, is it possible to add an user field in the position of FI document? Thanks in ad

  • H264 .mov to play in flash player 9

    Is anyone here currently using flash server 3 to play full screen H264 .mov on their flash players? Its an relatively expensive way to do it, but you can use the exceptional quality of the H264 codec with the broad usablity fuction of flash player 9.

  • Online Survey Help

    My partner has created an online survey as part of her PHD studies. Once the user has completed the form using drop downs and text input, they press a send button and the information is supposed to be e-mailed to her account. The Send is driven by Fl

  • RMAN change tag ?

    hi I am using oracle database 10g ,when i hv daily backup through RMAN , RMAN default tag is use ,but my query is that can chage tag (RMAN default tag) i have chage tag following way but when list backup set the tag is TAGYYYYMMDD RMAN>backup datafil