MyDAQ university project basic help needed

Hi,
I am looking to set up a myDAQ in Labview to take in audio waves, and control a vibration motor if a certain decibel limit is reached. I have used the daq assistant to manage an audio input and have this setup so voltages from a mic are read continuously. I don't really know what step to take next to control a vibration motor. Can anyone offer and guidance on what hardware I require and how to set up the software through labview?
Thank you kindly,
Olly

Dear ollyneedham,
Thank you for posting to the forums. 
I wanted to get some further information from you.
What type and version of LabVIEW are you using? Do you have LabVIEW Base, Full, Professional or Development? 
In regards to the audio waves you will take in, what range of frequencies are you looking at? 
Use of the DAQ Assistant is a great start and I see you have already configured this to read voltages from the mic continuously.
The next step is to look at using the analogue input signals, with some boolean logic (for the threshold) and route this with a control algorithm. #
Is your motor a stepper motor or a DC brushless motor? Does it require a motor drive to run? Would you be able to post up the model and specifications of the motor? 
Would you also be able to post up a diagram of the system you are creating?
You will need to use Digital I/O in order to create the control algorithm. This will be using the DAQmx driver.
Here are some links that will hopefully get you started in regards to controlling a motor using DAQmx.
- Turn on a DC Computer Fan using a Solid-State Relay, myDAQ, and LabVIEW
- control dc motor with mydaq
- Control Stepper Motor while Reading Encoder
- Studying Earthquakes With the myQuake NI miniSystem for NI myDAQ (Pioneer Release)
- DC Motor Controller using a Tachometer
- Pulse Width Modulation
- Digital Frequency
- Using SW-Timed Digital I/O to Control a Stepper Motor with DAQmx
- Motor Control with NI DAQ Motor Control System
- Two Plane Balancing Example with DAQmx
- Pulse Width Modulation (PWM) Using NI-DAQmx and LabVIEW
If you could let me know how you get on that would be great.
Kind Regards,
Dom C

Similar Messages

  • Project organization help needed

    I work for a rather large health care company and we are just beginning our move from eGate to JCAPS. We have approximately 100 separate interfaces, each with an average of five eWays.
    Our initial idea was to organize our JCAPS projects as follows:
    Outer Project (equivalent to eGate schema)
    Inner Project (equivalent to eGate eWay)
    - collaboration
    - connectivity map
    - deployment profile
    - any external files, schedulers, etc needed by the collaboration
    Inner Project for OTD's
    Inner Project for Queues and Topics
    Inner Project for shared collaborations that are used by multiple projects (such as resending, journalling, etc)
    My concern is if we make a change to a single project, when we go to export that project to our production system, we may be forced to export a lot more than we need.
    I would like to know how others have organized their systems interfaces, and any issues they may have come up with.
    Thank You
    Steve

    I would be wary of creating projects within projects.
    The concept of project in JCAPS is nebulous.
    Even though JCAPS allows you to nest projects within projects the nested projects are treated more like folders.
    Like most other IDEs, projects are the ones created at root level.
    Unlike most other IDEs JCAPS does not have the concept of project view and file view.
    If you create an "Outer Project" and then inside it a bunch of "inner project" , JCAPS would treat the "Outer Project" as a project and all the inner projects as artifacts of this "Outer Project".
    If any other project were to refer to any one of these "inner projects", then JCAPS will assume that this other project is dependent on the "outer project".
    If you try to export this other project, it will export the whole "outer project" as a dependent project.
    So, if possible, I would try to create all projects at root level especially if they are going to be referenced by other projects.
    Use a flat structure rather than a hierarchical one. Use naming conventions to segregate and organize.
    Instead of
    ProjectA
    ProjectA1
    ProjectA2create
    ProjectA_ProjectA1
    ProjectA_ProjectA2
    If this looks too cluttered you might want to consider branching to separate major projects
    Also I would be careful of creating dependencies between projects.
    Lets say you have a JCD which refers to an OTD in another shared project.
    If somebody updates the OTD and creates a new version of the OTD, your JCD would automatically start referring to the new version.
    Without your knowing a build will pick up the new OTD.
    Of course if you know that a new version was created ,you can specify an older version of the OTD during a build.
    Not so if you are editing the JCD. Here you will be stuck with the latest version.
    This may or may not be what you want.
    A better alternative would be to copy over the OTD to your project and use the local version.
    Hope this helps.

  • Setting up a new Free Software Project, organizational help needed.

    Hi
    I need some help with a project I am working on.
    I have been working on this project for some time now. I have written a program using JDK 6 and Eclipse.
    The actual software is not the problem here. The actual problem, as I am starting to find out, is how to distribute this program.
    I think I have organized the actual files incorrectly. Since I have been working on this program for some time now, its gotten a lot bigger then
    I originally thought it would be. Also I have been using SVN and sourceforge, so I have been reluctent to make drastic changes to the layout of the
    source code.
    But I am starting to see that I need to adapt the source code to some standard if I am to either get other to help me or to release the program.
    And here is where your help comes in.
    I need to know how to organize my files.
    I have organized the *.java files in a somewhat orderly fashion, but from what I understand most source code is organized into "src", "lib", ect folders.
    This is what I need the help with.
    My program uses some external jar files that contain some methods, functions and class I use.
    I also have some images and icons used in the program.
    There are also files that are created, written to and read from the program, which I need to keep.
    What is the best way to organize these files and is there some sort of "standard of free software" out there?
    I would appreciate any help on the matter.

    Just a shot in the dark here...
    Are you JARring your project when you make it into a binary? You can JAR it the same way with your source, as well. As for the folders that you are talking about, I'm not an Eclipse user, but doesn't the IDE organize your files into packages and such while you are working on a project?
    My perspective comes from NetBeans. When I create a project, the IDE automatically creates an Ant file and also organizes the project into packages. For example, if I start a project called StripNewLines, my Main class will be located in a package called stripnewlines, which I can refactor later to something like net.mycompany.stripnewlines, for example. Then, when I need to include resources such as files or icons, I go into my file manager and simply create new folders under my project's source tree. For example, my project file tree may look something like:
    + StripNewLines/
    + dist/
    + lib/
    + StripNewLines.jar
    + README.TXT
    + src/
    +net/
    + mycompany/
    + stripnewlines
    + Main.java
    Once I get done adding my files and icons, it might look like this:
    + StripNewLines/
    + dist/
    + lib/
    + StripNewLines.jar
    + README.TXT
    + src/
    +net/
    + mycompany/
    + stripnewlines/
    + Main.java
    + files/
    + LICENSE
    + README
    + art/
    + file-open.png
    + exit.png
    + new.png
    Once I've added those files and icons to my file heirarchy in my file manager, NetBeans will automatically update the project and add the packages net.mycompany.files and net.mycompany.art. Then I just have to access them by their paths to use them in my application.
    Once you've gotten your application completed and compile it to a jar file, you can drop to a shell and use the `jar` command to "pack up" your source tree. By doing it this way, you have a single file for download as a binary and another single file for download as a source archive. Obviously, if you are using libraries, you will need to zip up or tarchive your lib/ folder and JAR file for the distributions, so that your external libraries will also be available to your application on another machine.
    Anyhow, just some thoughts. I do hope this helps you a little and doesn't confuse you more.
    Cheers,
    Sean Carrick
    PekinSOFT Systems

  • Basic help needed very much

    Hi,
           I have an Epson 3800 printer and Adobe Elements 7 (Epson advised me that I should buy some version of Photoshop to take full advantage of the printers capabilities).....Problem is need basic info on how to set all the buttons to make a decent print. There are many,many choices on various drop down tabs all through the process of making a print. Also, It seems that all my pictures are 72 ppi ...is this a default setting ? Or, did I do something wrong when I downloaded them from my camera ?  PLEASE help !   If at all possible someone could guide me through the process step by step I would be very, very grateful.  I need guidance from the download, through the myriad of buttons (ie: color management, size selections (why do I have to tell both Elements and the printer the size of my paper?!!$#@) what's up with 72ppi on all my pics, if i change to 300 ppi wont pics get worse ? )
    I called Epson and asked them to walk me through a print but they wouldnt because  they said  I'm going through Elements first and that is not their responsibility!  BUT THEY ADVISED ME TO GET ELEMENTS IN THE FIRST PLACE !!!
    Please help...I am an artist (painter) ...my website is www.theeastcoastartist.com I will send a free 8 X 10 signed print of a painting to anyone that can help me get a decent print or just tell me which settings to make each step of the way.
    Thanks,
    Frank

    Frank, here's a couple links to tutorials that may help. They use Photoshop but the print settings in Elements are similar enough.
    http://www.wonderhowto.com/how-to/video/how-to-print-from-photoshop-to-the-epson-stylus-pr o-3800-260408/
    http://people.csail.mit.edu/ericchan/dp/Epson3800/printworkflow.html
    As far as the resolution, stated in pixels per inch (ppi), the images from your camera have a fixed number of pixels, so resolution is determined by the size of the print...the larger the print, the larger the pixels, the lower the resolution. 300 ppi is considered optimum for printing...higher won't hurt, lower than 250 ppi may start to be noticable.

  • CSS11506 - Some basic help needed

    Alright, I have a CSS11506 in the lab and I am trying to configure it into a reverse proxy config. So I would like to have all inbound http requests hit the CSS and then have it redirect to our web server on correct DMZ. Having never setup a CSS before I need some help.
    - Is my service type proxy-cache, type redirect or type transparent cache ?
    I know this should be fairly easy to do with the 11506. Can you also provide some docs explaining the config walkthru.
    Any help would be appreciated.
    Cheers
    Dave

    Thanks, that explains a few things.
    So assuming the following, DMZ web server ip is 192.168.20.50 and VIP for CSS is 192.168.20.100, basically I would want to redirect all inbound http requests from 192.168.20.100 to the 192.168.20.50 using the following CSS config ?
    service rprox1
    ip address 192.168.20.50
    protocol tcp
    port 8080
    active
    owner clee
    content redirect_rule
    add service rprox1
    vip address 192.168.20.100
    protocol tcp
    port 8080
    url "/*"
    Like I said, never configured one yet so this is my first attemtp.
    Thanks again for the help
    Cheers
    Dave

  • Oracle Final Year Project Choice Help Needed

    hi everyone,
    I m Amir from Pakistan, I m a student of CS final year at a IT University powered by Govt.of pakistan.
    Can any one help us regarding choice of Final Year project/proposal. we want to build oracle based solution for any industry or sector which will also helpfull for me and my team not only for College Final Year Project but also for after college industry solutions.
    As in consideration different sectors are in front of us, i.e Oil & Gas, Manufacturing, Automobiles, Communications etc
    But, we think this forum is much help full cause different professional peoples are much better able to guide us with respect to current and upcoming trends.
    Thanks
    Amir

    Hi Amir,
    I can think of a dozen different projects. You could check the functionalities in Oracle's eBusiness Suite (Oracle Applications). For instance you could implement a human resource module (employees details, salaries etc), or a employee time card application. Why not a resource booking system (conference rooms, beamers, computers etc).
    All these examples could easily be split into parts. Say for instance time reporting. One group could implement the interface to the employees, one group the interface to the managers, to the human resource department, and there's also quite some administrative setup modules.
    What project proposals have you come up with yet?
    Well, because it's your first post I warmly welcomes you to the Oracle Forums here at Oracle Technology Network.
    Regards,
    Martin Malmstrom
    ORACLE Consulting

  • Security project.. help needed

    hi friendz and gurus!
    i am doing a project on security and permissions
    i have planned to use passwords for that purpose
    and i have to use java! coz' i am a student and
    doing this for purpose of learning.
    can somebody implementat the encryption algo of linux
    password encryption(des) which encrypts 8 char string into
    13 char one way String.
    please give me the java working code and not the hints
    as haven't much of time.
    thanx in advance!
    sparya
    thanx in advance!

    i have tried several combinations but couldn't get
    success now it is scaring me so finally i want to see
    it working and to see where was i wrong?
    now in such consition plz don't send me such comments i am
    already frustated, that's why i asked only for code
    if you wan to help me please do it
    any effort to help me 'll be highly appreciated!
    sparya

  • Inconsistant overlay issues in same project - urgent help needed please!

    Hopefully this has not been asked. I searched and found nothing.
    The issue is that using overlays works great for two of the three menus in my project, but the third does not display properly when viewing a finished DVD or the TS folder. It looks perfect in simulator.
    Now for the details: the menus are pretty simple. They each consist of a Photoshop file with two layers. One is the background buttons (mostly plain text) and an overlay layer (underlines under the text). These are saved as psd files.
    When built and viewed, two of the menus operate normally - you roll over the text buttons, and an underline appears beneath them. The third menu does nothing when rolled over, yet if you click on a piece of text, it jumps to the proper section as expected.
    I have checked every setting I can think of to make sure everything is the same between the different menus. I even rebuilt the whole DVD from scratch, and made new menus in Photoshop. Each file was made as a "save as" to ensure that the settings were the same. Same for the menus in DVDSP - duplicates of a menu that work properly. Is there something I've overlooked? Is this an issue with DVDSP 3?
    Any help or suggestions are most appreciated. This forum is a great resource.

    Hi There
    The only thing that comes to mind is that something's changing in your button highlight states between your menus. Go to a menu that is working the way you want and select a button. In the button inspector go to the Colours tab and ine the bottom right corner click the Save As Default button. Then go to a menu that is not performing correctly, highlight a button, go to the Colours tab and click Restore Default.
    If that doesn't fix it at least you'll have ruled out a major culprit.
    Good Luck
    B

  • Basic Help needed with Hyperion 9.3 Scheduling jobs

    Hi!
    Is there anyone who would be willing to help a novice understand the Scheduling features in Hyperion 9.3? We are converting from Brio 6.6 where we used the "Broadcast Server". We don't yet have many jobs - so I'm not migrating them. But, the documentation with Hyperion is not helping me really understand how to set a job to actually do anything. I don't yet know how to add cycles and direct specific output to specific places. The jobs "run" and I've created events ...
    If you would have some time to talk me through the process, I would be very grateful.
    Jeanne Loehnis
    [email protected]
    920-832-6613

    I agree about the documentation. It's not always easy to understand how to do something if your situation doesn't exactly match the examples. I had to use a lot of trial and error to finally get some jobs running.
    The first misunderstanding I had was that if I want to schedule a document, I have to import my .bqy file as a job from the filesystem. You can't take an Interactive Reporting document from Workspace and use it as the basis of a job. So if you're using the web-based client and working on documents stored in Workspace you have to export the document to your filesystem and then import it as a job. You're probably beyond that point.
    The second misunderstanding (and I wonder if this is your problem) is that you must set the job to allow users to create their own cycles for it. If you don't you're stuck with the default cycle set, and you cannot change it. This is where the documentation falls short -- it mentions the attribute, but doesn't go far enough to tell you what happens if you don't check it off -- that even you, as the owner-and-most-likely-also-administrator won't even be able to maninpulate the cycles. What's more, if you don't set this attribute on import, you can't set it later. There's no way to reach the dialog with Properties. I can't vouch for the Batch Scheduler, we don't license that (if it even applies). Maybe it's a bug, maybe I'm missing something, but this is the only way I can get the full functionality to work.
    You will find this attribute on Step 3 of the import dialog "Interactive Reporting Job Properties". Check the box labeled "Users running this job can define their own cycles and actions". Once you finish and schedule the job, you can go to Manage Job Schedules and modify the schedule properties. Go to the Select Job Parameters tab, and create or use an existing parameter set (using the Go button).
    This takes you to the Job Parameter dialog box, and that is where you set up your cycles and actions. You can set them up, save them as your own personal sets, or as public sets so your team can use them for other jobs. You should be able to make some headway here, the documentation becomes more useful again at this point.
    Hope this helps
    --Julie
    Julie Johnson
    University Computing
    Western Connecticut State University

  • To Physically Delete WBS in a Project- Urgent Help Needed

    Hi,
    In a process of physically Deleting WBS which contains other objects (network, activites) from a project , It requires us to cancel the Deletion Flag on the wbs .For this I am trying to use a Bapi BAPI_BUS2054_SET_STATUS,
    but to unset DLFL for a project this Bapi takes a very long time for a project which has more wbs marked for deletion,
    Can Someone suggest me other way to delete wbs permanently, the business logic we follow here is to delete only those wbs which are marked for deletion after certain period of time.
    This is kind of urgent to me.. so any help is truly appreciated.
    Thanks
    Kumar

    If your wbs is not used, you can delete with the transaction CJ20N.

  • Basic Help Needed - Exporting

    Hi everyone!
    I am currently drawing a 1600X900 interface for a touchscreen system. I am using illustrator to make the buttons, but I have an issue. The touchscreen program will only upload buttons as an image (anything besides .png simply looks awful), so I need to export JUST certain images of certain buttons in illustrator. My question...
    Is there a way to export a certain selection/object/layer in illustrator? I am currently running CS4. I know I can copy and paste each object onto a new print and export - but when the .png is uploaded it has a border (even if its translucent). Again, there are buttons so I need the full image and nothing else.
    Also, for a more complicated question;
    When I began the illustrator document, I chose 1600x900 pixels in hope that the buttons would appear smooth on the touchscreen program. Should I perhaps lower the pixels since the actual buttons may only take up a tiny fraction of the whole 1600x900 screen? I've never really imported my work into 3rd party programs - this is new to me.
    Thanks so much!

    Loading a plug-in, then exporting to layers...if there's a more simple solution, I'd certainly love to hear it. 
    Don't fear the plug-ins, they're here to help.
    Once you load the plug-in, there will be a new menu item for you in Illustrator.  At that point, simply clicking the "Export Layers to .png" option exports all visible layers to the .pngs you want, perfectly sized 1:1 with your art, perfectly cropped, named to the name of your layers and ready to go.

  • SSH basics - help needed

    I'm new to networking, so bear with me. Here is what I am trying to do:
    I would like to get to websites that are blocked by a corporate firewall (websense). (I take full responsibility for what I am doing and am not putting myself at risk - don't worry).
    It seems like I could use SSH to connect to my home internet connection thus bypassing the firewall.
    Is that true? If so, what do I need to do?
    Here's my equipment - 2 Macbook Pros, one fuctioning as a desktop at home, one portable. Airport Extreme N router (not gigabit). Comcast home cable internet.
    I just downloaded a program salled SSHTunnel that sounds like it should help, but I don't know where to start.

    The easy route.
    Use TeamViewer <http://teamviewer.com>. Leave TeamViewer running on your home Mac. It will display a "Wait for session ID". Copy that session ID number, and take it with you to work.
    On your work system, run another copy of TeamViewer (there are both PC and Mac versions).
    Configure the work TeamViewer with your corporate Proxy settings
    TeamViewer -> Preferences -> General -> Proxy Settings...
    Now on your work TeamViewer enter the Wait for session ID you got from your home system, and enter that in your work system's Create session ID field. Then click Connect to Partner button.
    This is the easiest way I know about.
    The HARD WAY: You can do this via ssh, but there are a lot more detailed steps.
    1st question. Does your company allow "Out-Bound" ssh connections? If it does, that helps a lot. If they DO NOT, then you would need to mess with an OpenSource program called "Corkscrew" that will get ssh through a proxy server.
    Once you get through the firewall, then you will need to get a dynamic DNS name for your home system. No-IP.com and DynDNS.org offer free dynamic DNS names. You use this so you do not need to worry about your ISP changing your home IP address.
    Now you need to configure your home router so it Forwards Port 22 from the internet side to your destination Mac.
    On your destination Mac, you need to enable System Preferences -> Sharing -> Remote Login, and while you are at it, you should enable screen sharing preference.
    Now on your work system, you ssh to your home system. The form of the command depends on whether you need to use corkscrew or not.
    Without corkscrew:
    ssh -L 5901:localhost:5900 [email protected]
    With corkescrew:
    ssh -L 5900:localhost:5900
    -o 'ProxyCommand /path/to/corkscrew proxy.server.address 8080 %h %p'
    [email protected]
    Now you have an ssh tunnel which you can run screen sharing across. Using a VNC client. On a Mac you can use:
    Finder -> Go -> Connect to server
    vnc://localhost:5900
    If using a 3rd party VNC client, you still specify localhost and port 5900 as these what the ssh tunnel established as the path to the remote Mac's VNC server.
    Now you should be able to use your home Mac and its browser to surf anywhere you like.
    If you wish to increase your complication, you could use ssh to create a SOCKS proxy. You would add the following to your ssh command:
    -D 12345
    Then you configure your bowser to use the SOCKS proxy server via port 12345

  • RV120W VPN Setup - basic help needed

    Hi all,
    I've recently bought a RV 120W Wireless-N VPN Firewall hoping it would ease me in creating VPN and remote connectivity. But I seems to be struggling with this.
    Here is my situation.
    When I bought my Cisco router I didn't know it had an ethernet port for WAN. I thought it would have a RJ11 compliant port. So now I am having to put the router behind my modem.
    I gave my modem's LAN 192.168.2.1 and to RV120W I gave 192.168.2.2.
    All PC's are not connected to internet via RV120W. For RV120W, the local IP network is 192.168.1.0. I've set 192.168.1.1 as the management IP of the Cisco RV120W. All the PC's can get internet from the above layout arrangement.
    With frustration, I've portforwared all my ports on the modem (except 1 port) to RV120W i.e to IP 192.168.2.2.
    If I enable PPTP on RV120W I can ping its port (1723 i remember) from outside. If I connect to port 80 from outside my network, I can get the managemnt interface of the RV120W.
    With the help of the RV120W's userguide I managed to create VPN policy stuff via the 'basic VPN Setup' menu. The guides says to use a wizard but there is no wizard for VPN setup.
    With that I have even created users (of every type) but I just can't make the connection.
    When I use the QuickVPN to connect... its goes from "Connecting", "Activating Policy" again "Connecting" and then a big error saying a couple of things that might have caused the error.
    I want to start from the beginning.
    Can somebody please help me.
    First... what I am I supposed to put in the fields of the following screenshot. Especially the fields "Remote WAN's IP Address", "Local WAN's IP Address" and "Local LAN IP Address".

    Once I knew about the bridge mode thing from this discussion, I started reading the manual of the modem in regard to the brigde mode setup.
    According to the manual, the 'Data' bulb on the modem would be off if the modem is in bridge mode. and I've successfully put the modem on bridge mode I guess. It was pretty easy. I just deleted all the WAN setup rules/configs and began with the initial setup wizard which basically had the option to set the modem to bridge mode. After so, the 'Data' bulb got off meaning the modem is now in bridge mode. I am happy about that
    But... still not done.
    I put one ethernet cable into of the LAN ports of the modem and put the other end in RV120W WAN port. Logged into to RV120W, configured new PPPoE profile (I have the user and pass details) and attached it to the WAN internet setup config.
    I went back to the dashboard of RV120W to see if WAN was up. It didn't. I gave some time. It didn't work. It says 'connecting' but never connects.
    What am I doing wrong? Am I putting the cable between the modem and router the right way?
    ...and also, when the modem is in bridge mode will it forward all packets from lan to wan and vice versa or is it like forwarding packets to all ports once recieved.
    (I am learning so much with this RV120W )

  • Really basic help needed bouncing tracks to mp3

    Hi
    We have been working on some new music in MIDI format and really would like to have them available to play on our ipod. I have read the manual on bouncing to mp3 format. However I have 2 problems.
    1) Some tracks don't even allow my to bounce to mp3. When I try to select file>Bounce, I cannot select it as it is not available and is the light grey colour of unavailable items.
    2) The tracks that I have been able to bounce have no sound when I play them back in itunes or quicktime player.
    What do I do to fix these two problems. Thank you for your help.

    Hi and welcome to Logic Express,
    First of all: Bouncing is usually done by bouncing from the Master Output Channel. You should see a small Bounce Button (Bnce) below the Fader (look to the left in the Inspector window - there are 2 Channel Strips. The Left is for the selected Track and the right one usually is the master Output (Out 1-2). Or you can select Bounce from the File Menu. Only Output Tracks can be bounced! You can't bounce individual tracks, but have to route them to an output. Usually, this routing is on by default, so if you didn't change it, it shouldn't worry you.
    See if none of your tracks are muted and if you can actually play back the entire project and hear the desired result in Logic. If so, hit the bounce button below the master output (1-2) fader.
    The second step is to select the right method of bouncing. There should be a popup menu now asking you about filename and so. Enter the desired filename and maybe another folder. If not, Logic names it Output 1-2.mp3, which isn't that bright. To the lower left, u should see some available file formats. Check mp3 (this is important!) first. Also select offline bounce, if not checked. Check if "normalise" is activated. If not, activate it.
    Now, the options change to allow some mp3 specific tweaks. Use the ones you like. I use about 160kbits for stereo, normal stereo mode, and tweak all the ID3 Tags as desired. Also check "add to itunes library".
    Now, before you bounce, check if the start and stop marks of the bounce are actually the same that you want them to be. Sometimes they snap to the last marked region, which isn't neccesarily the correct song length. I messed up some bounces before i got this right.
    If everything looks good, hit bounce. Logic should bounce, normalize and convert to mp3 now. Wait some seconds for iTunes to get the song imported. There you are. If not, ask again
    Fox

  • Basic help needed creating a trigger

    I'm completely new to SQL programming altogether, and I'm trying to set up a trigger that will make some checks before adding a new row to a given table. I am trying to do this because I need to enforce a CONSTRAINT that checks whether the dates entered for 'deadline' and 'startDate' are greater than sysdate and less than (sysdate + 365), and I found out that you cannot reference sysdate from a CONSTRAINT. Therefore I am now attempting to do this using a trigger, but I don't really know how to do this. Here is the sql code used to create the table:
    -- PLACEMENT TABLE
    DROP TABLE placement;
    CREATE TABLE placement
    contactId Int,
    placementId Int,
    position VARCHAR(60),
    description CLOB,
    lengMonths Int,
    salary Number(7,2),
    deadline DATE,
    startDate DATE,
    addrLine1 VARCHAR(120),
    postCd VARCHAR(10)
    And here is my attempt at creating the trigger that will only allow the deadline and startDate to be entered if they satisfy the following check: (sysdate < deadline/startDate <= sysdate+365)
    CREATE OR REPLACE TRIGGER trg_deadline_low BEFORE INSERT OR UPDATE OF deadline ON placement
    BEGIN
    IF :deadline <= SYSDATE THEN
    ROLLBACK;
    END IF;
    END;
    CREATE OR REPLACE TRIGGER trg_deadline_high BEFORE INSERT OR UPDATE OF deadline ON placement
    BEGIN
    IF :deadline > SYSDATE + 365 THEN
    ROLLBACK;
    END IF;
    END;
    If possible, I would like for these triggers to display an error rather than just using ROLLBACK, but I'm not sure how! At the moment, these triggers do not work at all; I get an error message "Warning: Trigger created with compilation errors." when I attempt to create the triggers in the first place.
    Can anyone tell me why I am seeing this error when trying to implement the triggers? And if anyone could also improve on my amateur attempt at coding a trigger, then that would be great! Thanks for any help!

    Oops!
    Nicolas, Thank you for correcting my mistake.
    SQL> edit
    Wrote file afiedt.buf
    1 CREATE TABLE placement
    2 (
    3 contactId Int,
    4 placementId Int,
    5 position VARCHAR(60),
    6 description CLOB,
    7 lengMonths Int,
    8 salary Number(7,2),
    9 deadline DATE check (deadline between sysdate and sysdate+365),
    10 startDate DATE,
    11 addrLine1 VARCHAR(120),
    12 postCd VARCHAR(10)
    13* )
    SQL> /
    deadline DATE check (deadline between sysdate and sysdate+365),
    ERROR at line 9:
    ORA-02436: date or system variable wrongly specified in CHECK constraint
    SQL> edit
    Wrote file afiedt.buf
    1 CREATE TABLE placement
    2 (
    3 contactId Int,
    4 placementId Int,
    5 position VARCHAR(60),
    6 description CLOB,
    7 lengMonths Int,
    8 salary Number(7,2),
    9 deadline DATE check (deadline between to_date('2007-03-21','yyyy-mm-dd') and to_date('2008-03-21','yyyy-mm-dd')
    10 startDate DATE,
    11 addrLine1 VARCHAR(120),
    12 postCd VARCHAR(10)
    13* )
    SQL> /
    Table created.
    On the contrary, I think that OP want an error instead of rollback : "I would like for these triggers to display an error rather than just using ROLLBACK"Ah, I had misread additionally. Sorry.

Maybe you are looking for

  • WebLogic 10.3.2 integration with PHP and Sybase ASE 15.5

    Is posible integration between php5.2.8 and ASE 15.5 in WebLogic 10.3.2 ? Thanks

  • Notification only specific PO s

    Dear Experts.. We have different different product and Project leaders.. Wheen ever the PO gets created the notoification should go to the specific leaders(Internal and External).. Willl it be possible...

  • Flash or Shockwave serios problems

    I've been having real issues with Shockwave or Flash plug ins. They keep on crashing. I've been deleting and re-installing the latest versions and keeps on crashing. They've been happening a lot in the last 2 weeks and never had this issue before. I

  • Yahoo In box not keeping sync after 2.2

    i deleted and moved some e-mails from my Yahoo account on my PC. When I refresh the iPhone the mails remain in the IN box. The mails that were moved to other folders now appear in two places... Is this right ?

  • I installed CS4 Web Premium, do I need to uninstall CS2? (I don't have CS3) If so, how?

    I thought the installer would just upgrade my existing CS2 apps but after I installed CS4, I saw that all the CS2 apps were still there! Do I need to uninstall them manually? If so, how? Is there any danger in doing that? Or should I uninstall CS4 th