How to generate digital impulses to run the engine step by step in a sinusoidal motion using the NI DAQ 6229 map profile


Hello

I finally found a way to do it. The analog sine wave is converted to digital and sampled. The consecutive values are compared and if the least significant bit (LSB) will change a pulse is sent to the stepper motor to activate a single step.

I've included the sub - VI who accomplish it for block engine and connector of particular Stairmaster I have. The front panel two sub - VI is quite messy, but the diagrams should be much clearer. The sub - VI get inputs from a third VI which I didn't understand. Then take a look at table VI of connector to understand. I hope this helps. A little messy but worked very well in the end of my application.

Thanks again for all the help. I appreciate that very much.

Kind regards

Sylvie abdo

Graduate student

Aerospace and mechanics Enggineering

University of Southern California

Tags: NI Software

Similar Questions

  • I have download an IDM software.there are as many files how can I understand that by running the file IDM will install in my computer and I can use it.

    I have download an IDM software.there are as many files how can I understand that by running the file IDM will install in my computer and I can use it.

    Hello

    Contact the Support of IDM in this regard.

    The link there is a Support tab on the top right > run the mouse cursor over them for the Support Options > 'how to use IDM.

    http://www.internetdownloadmanager.com/download.html

    See you soon.

  • How will I know when to run the oracle table statistics?

    I have a situation Here.Several weeks back, one of my application developer complained about the performance issue in one of the application. I looked at the table statistics, statistics on the table were outdated and ran the table statistics, query ran a lot faster. The same problem occurred in another application, and hoping that oracle will take the right decisions based on the statistics, I ran the statistics for the tables involved in the query, but this time things got worse? Why is this? According to oracle documentation the optimizer must have updated statistics on the tables and indexes that surround these tables, so how do we decide when to run the statistics on the tables by making sure that we have no worse things. Thank you

    You don't tell us your version of db, but if you're on 10g and above, Oracle marks as out-of-date statistics when the RASSI percentage reaches or crosses the 10%. 11.1 from automatic work, managed by the ABP process runs nightly 10om at 02:00 on weekdays (can't recall for weekends) and supports the same. The question, when to collect the statistics is actually very subjective in your environment. Most of the time, it would be a weekly or a night and work in a data warehouse, in the next window ETL. You would need to play with the amount of the percentage of blocks of the table before you would be able to come to percentage that can work for your plans in a good way. I also saw the return of cardinality plays a large role in the exercise sometimes. You can watch here as well.

    HTH

    Aman...

  • How to generate an impulse to test short circuit in an inducer

    Hello

    IM new to labview and am in need of complete SURG - SURGE STRESS TEST

    This test is intended to detect a short tour inter by applying a number of high
    voltage pulses (or surge) for the selected winding.
    Each pulse should produce one sinusoidal transient that eventually decreases to zero.

    How to generate the impulse using labview.

    Hi Jessica,.

    Please see the "pulse pattern.vi" function--> pallets of signal processing signal generation.

    Otherwise, you can browse through examples of LabVIEW.

    Kind regards

    Srikrishna.J

  • How to generate a valuable traffic on the SAA

    Hi team,

    Can you please let me know how to generate traffic on the code interesting asa 9.1 to check the site to site vpn tunnel.

    I tried configuration management access to the inside and that did not help

    When I ping my IP destination I get no response

    Concerning

    Belin

    If so, valuable local traffic differs within the subnet of the interface, then pings will not work if you use 'ping x.x.x.x inside'. You can only run packet tracer or create live traffic to display counters of encryption increases.

    Kind regards
    Dinesh Moudgil

    PS Please rate helpful messages.

  • How to generate a working executable from the example of writer DataSocket VI file

    I am trying to build an executable file of the example "DS Writer.vi".  The first problem was that the "Control.vi of DataSocket Server" was not distributed with my script compile/install.  I fixed it (thanks Dennis) but now I get the following error message.

    LabVIEW: (Hex 0 x 626) cannot open a VI with compiled code separate in a Run Time Engine that does not have access to the VIObjCache.

    There is a solution to this (http://forums.ni.com/t5/LabVIEW/Getting-LabVIEW-load-error-code-59-using-LabVIEW-2010-with-a-Run/td-...), but it involves change a property of a VI library of DataSocket (if I understand though).  I'm reluctant to make a change to a library OR standard, because it could cause maintenance problems in the future (other developers not having the same change, or updated versions of LabVIEW).

    Has anyone successfully built an executable using DataSocket?  If so, can you offer any advice?  I'm using LabVIEW 2011.

    Thank you, Mark

    Thanks Nathan.  I was able to create and deploy an executable with DataSocket.  The last obstacle was to "uncheck the option"Code is compiled separately from the source file"in the properties of the VI" for the "DataSocket Server Control.vi.  The only problem with this solution is that I now have a custom DataSocket library.  I think that a solution would be to copy as VI or library in my project folder so that the solution is transferable to others in the future.  I would like to hear how other developers LabVIEW with custom libraries, either by strictly avoid that, keeping their own copies, or another solution.  But this is probably a topic for a new thread.

  • How to close all windows after running the SaveAsPDF script?

    I ran into the problem where I adjusted the SaveAsPDF script to backup my PDF files with a preset specific PDF I use. But after executing the script, all newly created PDF files are open in illustrator and I have to close it manually one by one, choose if I want to 'Save' or 'do not save' (even if they are already registered). I would like for them to close right after that the PDF is created.

    I've added in the script:

    if (myFile.open("w")) {
      myFile.close(SaveOptions.DONOTSAVECHANGES);
      }
    

    Who's going to run the script and close the files, but for only 3 of the 10, I opened. The 7 remaining won't be saved or converted to PDF. Is there something wrong in my script or anything else that I can try to solve this problem?

    Here is my complete script:

    /** Saves every document open in Illustrator
      as a PDF file in a user specified folder.
    */
    
    
    // Main Code [Execution of script begins here]
    
    
    try {
      // uncomment to suppress Illustrator warning dialogs
      //app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    
    
      if (app.documents.length > 0 ) {
    
    
      // Get the folder to save the files into
      var destFolder = null;
      destFolder = Folder.selectDialog( 'Select folder for PDF files.', '~' );
    
    
      if (destFolder != null) {
      var options, i, sourceDoc, targetFile;
    
      // Get the PDF options to be used
      options = this.getOptions();
      // You can tune these by changing the code in the getOptions() function.
    
      for ( i = 0; i < app.documents.length; i++ ) {
      sourceDoc = app.documents[i]; // returns the document object
    
      // Get the file to save the document as pdf into
      targetFile = this.getTargetFile(sourceDoc.name, '.pdf', destFolder);
    
      // Save as pdf
      sourceDoc.saveAs( targetFile, options );
    sourceDoc.close();
      }
    
    
      alert( 'Documents saved as MarkPreset PDF' );
      }
      }
      else{
      throw new Error('There are no document open!');
      }
    }
    catch(e) {
      alert( e.message, "Script Alert", true);
    }
    
    
    /** Returns the options to be used for the generated files.
      @return PDFSaveOptions object
    */
    function getOptions()
    {var NamePreset = 'MarkPreset'; 
      // Create the required options object
      var options = new PDFSaveOptions();
      options.pDFPreset=NamePreset; 
    
    
      // See PDFSaveOptions in the JavaScript Reference for available options
    
      // Set the options you want below:
    
    
      // For example, uncomment to set the compatibility of the generated pdf to Acrobat 7 (PDF 1.6)
      // options.compatibility = PDFCompatibility.ACROBAT7;
    
      // For example, uncomment to view the pdfs in Acrobat after conversion
      // options.viewAfterSaving = true;
    
      return options;
    }
    
    
    /** Returns the file to save or export the document into.
      @param docName the name of the document
      @param ext the extension the file extension to be applied
      @param destFolder the output folder
      @return File object
    */
    function getTargetFile(docName, ext, destFolder) {
      var newName = "";
    
    
      // if name has no dot (and hence no extension),
      // just append the extension
      if (docName.indexOf('.') < 0) {
      newName = docName + ext;
      } else {
      var dot = docName.lastIndexOf('.');
      newName += docName.substring(0, dot);
      newName += ext;
      }
    
      // Create the file object to save to
      var myFile = new File( destFolder + '/' + newName );
    
      // Preflight access rights
      if (myFile.open("w")) {
      myFile.close(SaveOptions.DONOTSAVECHANGES);
      }
      else {
      throw new Error('Access is denied');
      }
      return myFile;
    }
    

    Try this change

    for (i = 0; i< app.documents.length;="" i++="" ) ="">

    for (i = app.documents.length; i > 0; i--)

  • How to generate a transparent overview of the document?

    Hi all

    I would like to generate trsansparent preview a document as PNG file. Normal (non-transparent overview) I do by JavaScript, as described below:

    myDocument var = app.open (File (app.scriptArgs.getValue ("documentPath")));
    myDocument.exportFile (ExportFormat.jpg, (app.scriptArgs.getValue ("thumbnailPath")) File, PDFExportPreset.acrobatCompatibility);
    myDocument.close (SaveOptions.no);

    The result is normal JPG file. But I would get a transparent image. How can I do this?

    Thank you for all the information!

    That's what you get for not to mention your version of InDesign... PNG_FORMAT has been added in CS4.

    Oh and thanks by the way to remind me to this site.

    Official website of Adobe...

    Don't make me laugh. "It's funny - it looks suspicously like HTML, I have generated bloody there is in the built-in Help files" is what I said when I saw the first time.

    A complete Javascript reference for scriptable objects both CS3 and CS4 are on http://www.jongware.com/idjshelp.html - and the original of my own hard work, no results of any piece pirate and unacknowledged and heavy-advertising flight.

  • Running two engines step by step at the same time of a port

    Hello

    I have to run two motors at the same time - was used to move a linear ball screw and the other to get a grip. I do voltage and test on small twist wires, but the tension and torsion must be made at the same time. I must also build capacity for each engine to take several steps, IE. have an engine steps number at speed x and then move x number of speed z steps. The two engines must be able to do. However, I have problems to make the engines to run at the same time and to take all measures. The engines are connected to two RMS Technologies R356 controllers. The two controllers are then connected to a RS485 to USB converter card and this card is connected to one of the USB ports on the computer. Currently, I spend an array of orders to two loops each VISA containing read and written. I have attached the vi to watch. All the stuff in the code synchronization is because a new order cannot be sent to the controller until the engine is running the previous command. If orders are sent right after the other, the controller will not execute the first command and then return with an error.

    Does anyone have a suggestion as to what I'm doing wrong?

    Thanks in advance for any help.


  • Generate digital impulses at the counter of Daqmx

    Hello

    I set up a counter so that when I apply an impulse to him, there are 1.

    I wish that she either while whenever it receives an input pulse and figures upwards by one, I want to generate a strong 'logic' for a short time, then go back to 'low '.

    How would I go to do this? I want this counter essentially be my clock and initiate events whenever a county is received.

    Hey mikeboxes,

    Here is an example of the old-but-good of how do you want:

    http://digital.NI.com/public.nsf/allkb/BA775B0E445BFA79482571FE0032CCEB

  • DAQ USB 6363 - generate digital data series through the single DIO line

    Hello

    I'm new with Labview, currently, I bought NI DAQ USB 6363 for generating control signals and signals analog accquire. I would like to send digital data series through one of the digital IOs with throughput of 30 kbps. Please see the attachment for the data frame. Could someone comment the feasibility of this? Y at - it codes for the example that I can refer to? Most of the examples I've looked at so far deals to generate several line instead of 1 single line. How can I achieve this?

    Thank you

    Diem

    Hey diem.

    After looking on your code, I understand what you were trying to do. Here's how I'd do. Usually we do not write code to clients, but you peaked my curiosity of! I hope this helps. Good luck!

    ~ kgarrett

  • How to generate a graph crossed in the tiara display menu?

    I am running DIAdem 2011. In the display screen, how can I generate a graph crossed?

    Hi Pierre!

    In the DISPLAY Panel you can get a shaft separated for each curve by clicking on the icon "Y axis" in the upper part of the graph, and then selecting the "n [linear] Axis' scale option.  This will put all the axes of the y-axis on the left, but otherwise, this looks like what you want.  You can get the second axis to be right in the REPORT, but not view.  What version of DIAdem do you use?

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • How to configure Task Scheduler to run the program when the connection is established

    Windows 7 64 bit
    Dial-up Internet access

    I want to use the Windows 7 Task Scheduler to run a program IMMEDIATELY AFTER a dial-up connection is made to the internet.

    How can I configure the Task Scheduler in Windows 7 to do this, please?

    I am familiar with the Scheduler of tasks with the command line parameters.  Any help is appreciated.

    Thank you

    FYI: If an example is needed, Microsoft Security Essentials can be configured to update virus through this path with the argument definitions:

    C:\Program Files\Microsoft Security Essentials/MpCmdRun.exe SignatureUpdate

    Maybe someone can use it to show how to configure the Windows 7 Task Scheduler to update MSE virus definitions, once the connection dial-up was made?

    Otherwise, for example, another program to run once established a dial-up connection would be OK, thanks

    Hello

    Scheduler of tasks is time driven.

    For order-driven event, you need a script.

    Question like that is much better treated in the TechNet IT Pro Forums.

    My moderator tools cannot transfer messages on Windows forums, please re - ask you question there.

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • How to generate PDF and CHM of the command line files in windows?

    I'm trying to set up a PC to build certain documents during the night. I was looking for a way to get from framemaker to generate PDF and CHM files through a command line in windows? How this is done with FrameMaker 12

    Thanks for the help

    Alex

    I have the pdf part of this work now. Make a jsx which generates the PDF file via the doc. Save(). And when the pdf file is generated the script then shut down of FrameMaker via the application. Close method.

    I then just copy the script in FrameMaker autorun dir and start FrameMaker to get the pdf genenerated.

    Now, I'm trying to do something with the chm filegeneration. But I can't find anything on how to get FrameMaker to make the extend script CHM files. Is there anyone who have some good places to look for that?

    Thanks for the help

    Alex

  • How start sqlplus on windows7 host running the Linux oracle database?

    OK, thanks to Re: How do I install emacs, openssh, and oracle database startup and get a connect? I can now run sqlplus. What a fight!

    Now this forum works on a host linux on a windows host. What I need to install on windows, so I can run sqlplus on windows to manipulate databases of the linux guest?

    I know that I can install all of the oracle database. I want just the sqlplus on windows.

    If I install just the sqlplus on windows, can I expect to be able to create databases, fill and interrogate Windows?

    Thank you
    Siegfried

    Try:

    sqlplus user@'hostname_or_ip:port/service_name'

    for example sqlplus test@'192.168.1.131/orcl' (assuming that the default port 1521).

Maybe you are looking for

  • Some options have disappeared, and download manager does not appear on every night. Help?

    Hello. I'll try to make it as short as possible. I'm under the program every night. Currently I have version 21, which came out today. But since last week, with the 20 version, I noticed something. Whenever I downloaded something, tried to open the D

  • Pink and green lines when jpeg used in iMovie

    Hi all I have a strange problem that I can't find an answer to the internet. Whenever I used a file jpeg or png as a background or a picture in picture during a movie, to export the movie space where was the image file is replaced by a series of pink

  • Satellite Pro A200 - 1 X 1: RAM upgrade problem

    Helloall I have a Satellite A200 - 1 X 1 with 1 GB of ram, I installed an another 1 GB ram that is the same brand: SAMSUNG 1 GB 2Rx8 PS2-5300-555-12-E3, it works fine, but after 10 min the laptop restarts and goes to a blue screen, can help me on thi

  • HP EliteBook 1 850 pointing Stick

    I'm trying to figure out how to turn off the device pointing and related top row of buttons above the touch pad click.  They are typing without accidentally selecting and clicking on the thing, a pain in the thigh.  I've searched and searched and fou

  • The Mac Mini and the games

    Hi everyone, I have a mac mini 2014 $ 499. I started working with her, with pages, IPhoto, GarageBand, etc.. My question is: Im playing thunder of war (I don't know if you know this game) or CS, it work fine, but when I go 2 or 1 hour, I touch the ma