How do I set up a triggered analog output on a USB 6009?

Hi! I am very new to LabView and am working on the control portion of my senior ME design project. It is an anti-tip brake system for a bicycle. The goal is: When critical time to tip is reached (by reading values from a rear wheel normal force sensor, taking the derivative and calculating this critical time), my cheap DAQ USB-6009 device will put out an analog signal to a transistor, which will spin a DC motor (attached to a worm gear setup) for a certain length of time (...This will change a pivot location in the mechanical assembly which will decrease brake mechanical advantage).
I have been trying to work with LabView 8.5. I get bogged down in confusion when I try to use G-code and get unexplained errors in using Express VI's (they're rather black box-ish to me).
I think that all I need to do is set up an analog input channel, take derivatives and values and put them into a formula for critical time. Then if the result is a "True", I want to begin an analog out sequence for a certain period of time (to get the motor to the right position).
I would appreciate any help that I can get with this one.
Attachments:
ABScontrol1.JPG ‏43 KB

chowph,
You are
correct with your last statement about performing a comparison on your data.
1.  Are there any error codes or messages in the
errors you are getting? Or if you have screenshots of the errors you could post
then that would work too.  Knowing the
errors would help in understanding where to start. 
2.  In your previous
post did you have a chance to try the examples or Kent’s example code he
posted?
3.  What were the results of those examples and
your experiment?  Again screenshots would
work fine here.
Since you
new to LabVIEW make sure to take advantage of the online training material and
tutorials we have on ni.com.  I have posted
a few that I think may be helpful.
Learn 10 Functions in
NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
Complete Data Acquisition
Tutorial
How Can I Learn
LabVIEW?
I hope this helps!!
Message Edited by Ryan N. on 03-31-2008 11:52 AM
Ryan N
National Instruments
Application Engineer
ni.com/support

Similar Messages

  • How can I set up a delayed analog trigger on PCI 6115 DAQ

    I have an S-Series PCI 6115 DAQ which I’m running with Labview. I’m using it to measure signals from an acoustic emission sensor and two force transducers. I’d like to set up a delayed analog trigger which will start acquisition on all three channels a period of time after a selected channel’s voltage exceeds a threshold.
    Currently I’m using the AI Config VI in line with the AI Start VI and AI Read VI to capture data after a analog hardware trigger occurs. A software trigger probably wouldn't work because I have to sample my data at 10MS/sec. My setup works fine for triggering without any delay or skip counts. However, if I set the delay or skip count in the additional trigger parameter field of the AI start VI, there is no effect, and the device still starts capturing data immediately after the trigger is received. What is the cause of this, and how can I get around it?
    Also, is it possible to sample the channels of a PCI-6115 DAQ at different rates? Right now, I’m sampling all my channels at 10MS/sec and throwing away data on all channels except one. However, this seems relatively slow and eventually I would like to attempt pseudo-real time control using my data.

    rpursley8 is right about needing to get the counters involved if you want a hardware timed delay in your application.
    Concerning whether or not you can sample at different rate, check this document out.
    Sampling Different Channels at Different Rates with NI-DAQmx
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • How do I set the environment to change outputs when I press a button?

    Hi guys!
    This is a question for the Logic pros:
    How do I set up my environment so that when I press a Button on my Midi Controller the Outputs from the Master Channel switch from 1-2 to 3-4 (to hear my music through different loudspeakers)???
    Does somebody know how to do that?
    Thank you in advance!
    Greetings from Germany

    The easiest way is to route your mix to all the outputs you're using. Then set up fader objects in the env that transform toggled cc's from your keyboard switches. Cable those fader objects to the output channel objects. To toggle the Mute on an output channel you'll need to send it a fader message #9, value 0 or 1, on channel 1.
    That would work, as long as you have switches on your keyboard that can transmit toggled cc's.

  • How do I set Airport Express up to be a wireless USB server??

    I was reading on CNET that this was possible with the express and I had been trying to do this with my Airport extreme without any success, im pretty sure the extreme doesnt do it.
    Thanks guys

    I wanted to set my airport up to print from work to my home 20 miles away.... my original workaround was going out and purchase a "wireless usb print server". I then ran across info on CNET that states the Express is a wireless USB print server.
    Am I missing something?

  • USB-6009 Analog Waveform Output

    I'm trying to create an analog waveform from a USB-6009 device through one of the analog output channels. However, through the DAQ Assistant, I can only select the 1 Sample (On Demand) setting. When I test the device, I can only push a constant voltage out. If anyone has any advice on how to create an analog voltage waveform using this device, I would like to know.

    >I am only a novice at LabVIEW and data acquisition in general.
    I don't use Labview (I write in C++) so I can't help you with that. I try to answer questions about C/C++ and general hardware questions.
    >What did you mean by software-timed waveform generation?
    That's where the software driving the device sends a sample to the DAQ device, waits for the prescribed time interval, then sends the next sample. So the timing of the waveform is driven by the software, using the computer's clock, instead of by the DAQ hardware. Software-timed is less reliable and has (often) lots more jitter because of competition for CPU resources.
    >Does this mean that I cannot generate a waveform that is more than 150 Hz?
    It's worse than that. It means you can't generate a waveform faster than 150/N Hz, where N is the number of samples (data points) that define the waveform.
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • How do I set up analog 0-10 VDC output pulses with varying duty cycles?

    I am trying to control a 400 watt laser so that it can pulse on and off within a few milliseconds. The laser controller reads a 0-10 VDC signal, with 0V being 0 watts and 10V being 400 watts. I am using a PCI-6221 DAQ and LabVIEW 8.0.
    It seems that all of the examples have square waves that are symmetric about the 0 volt range. I need a square wave that goes from 0-10VDC with different on/off timespans. I would like to have something as follows:
    1) 0 seconds = laser off
    2) .001 to .002 seconds = laser on at full power
    3) .002 to .009 seconds = laser off
    4) Repeat steps 2-3 500 times
    Any ideas?
    Michael Fidler

    Michael, 
    I ran your code, but was unable to reproduce the problem you are
    seeing. I measured the signal in two fashions’. I brought the signal back into
    the card (LabVIEW_Square Wave.JPG) and into a benchtop scope (Benchtop
    scope_Square Wave.jpg).
    I would like to ask that you run the attached code twice. The
    first time, please run it with the analog input as ‘Dev1/_ao0_vs_aognd’. This
    take the analog output and compares it with the cards AO ground, therefore eliminating
    the need for external connections and simply doing internal routing. The second
    time, please run it with the analog input as “Dev1/ai1”, and wire your AO
    channel to an AI channel. These tests are to ensure that there is not a stray
    capacitance in your scope, the probe, etc. Let me know the results (pictures
    are always great)
    David L.
    Systems Engineering
    National Instruments
    Attachments:
    Cont Gen Voltage Wfm-Int Clk_Test VI (8.2).vi ‏64 KB
    Benchtop scope_Square Wave.jpg ‏38 KB
    LabVIEW_Square Wave.JPG ‏36 KB

  • How to toggle LED at analog output from my VI Using NI USB 6009

    Greetings,
    I bought this NI USB 6009 Multifunction I/O and found various uses for it. In my VI, I am acquiring some signals using the DAQ assistant. After doing a couple manipulation I would like to toggle a LED at one of the two Analog outputs available. I tried configure it in Max and was able to toggle it there, but now I would like to have the VI do it once a certain value is attained. Can anyone  tell me how this is done as I think I might be doing something incorrect.
    Thanks
    Edward

    Greetings,
    Attached you will find just a simple code to turn on the LED if the indicator on the VI's front panel illuminates. In my original code it is something similar. I have also check the wiring and I don't think that's the problem since I was able to toggle it through Max. I am using LV 2009. When  the output channel was configured in Max, the output voltage was set to range from 0-5V. I am not sure if the DAQ  Assistant  analog output is being triggered properly.
    OK, Lets say that I wanted to turn on the LED if a number was greater than the one stored in memory. How would I pass that to the NI USB 6009 to turn on a External LED. Please assume that the output is wired properly.  
    Thanks
    Edward
    Attachments:
    LED Application.vi ‏43 KB

  • How do i set up a second display for my iMac desktop?  I want to use both displays at the same time.

    how do i set up a second display for my iMac desktop?  I want to use both displays at the same time.  My iMac is the 24" Late 2006 model.  I recall that there is a cord for plugging in a second monitor, but I want to make sure that i can use both monitors side-by-side at the same time.  thank you.

    If the Display supports DVI, then you will need a > Mini-DVI to DVI Adapter and a DVI cable.
    If the Display only supports VGA, then you wiil need a > Mini DVI to VGA Adapter and a VGA cable.
    Noting that the (digital) DVI is far better than the (analog) VGA connection.
    Also see > Using Dual Displays on Mac OS X: The Experience

  • How do I set up my mail to automatically reply that we are on holiday?

    How do I set up my mail to automatically reply that we are on holiday?

    From Mail Help:
    You can create a rule to have Mail automatically reply to incoming messages. For example, you can set up a rule that’s triggered by a specific subject so that Mail replies automatically to all messages with that subject.
    This feature is useful if you receive a lot of similar messages from an online form on a website, and you want to reply automatically.
    To automatically reply to messages:
    Choose Mail > Preferences and click Rules.
    Click Add Rule and type a descriptive name for the rule.
    Set the conditions necessary for the rule to apply to a message.
    From the “Perform the following actions” pop-up menu, choose “Reply to Message.”
    Click “Reply message text” and enter the text for your reply message.
    Mail will include the text you enter, along with the full text of the original message, in the message that it sends.
    Mail must be running to automatically reply to messages, because rules aren’t processed while your computer is shut down or you’re logged out. To set up automatic replies while you’re on vacation, ask your email service provider how to set up an out-of-office reply.
    Carefully consider the rules you create for sending automated replies. If they’re too broad, you can send messages inadvertently or create message loops (replies to replies you sent). If possible, test the rule.
    After a rule has processed a message, the message’s status icon changes to a gray arrow to indicate a reply was sent.

  • How do I set individual properties for a column in report layout at runtime

    How do I set individual properties for a column in report layout at runtime? I need to change this based on a user's input. This is for v10g.
    I need to change either the "Read from File" attribute or the "File Format" attribute for one column based on the user's input. IS this possible?
    Thanks in advance!

    Hi,
    define 2 columns and use format triggers to show the one or the other column.
    Regards
    Rainer

  • How do I get an analog output signal from my PCI-MIO-16E-4 card?

    I need an analog output from 0-10 V to control the mass range on a mass spectrometer. Do I use the DAC0out channel to do this? The manual only talks about analog out (ao) channels. Is this the same as DAC0out and DAC1out? How do I set up the DAQ assistant for this process? I do not need a waveform, only a constant signal.

    Yes indeeded. The DAC0out and DAC1out are the analog output channels (ao0 and ao1).
    Simply follow the examples that ship with LabVIEW. You can also easily create code with DAQ assistant.

  • How do you set amplitude of pulse train?

    I have successfully downloaded and executed the sample program shown here:
    http://www.ni.com/white-paper/2991/en
    and see the pulse train generate in my oscilloscope.  When measuring the value of a pulse high, the oscilloscope says 5V. 
    How do I change it to 3?
    Looking at the DAQ Create Channel node I don't see any inputs for amplitude, only frequency and duty cycle.
    Where is the amplitude of 5volts being set and how can I change it to 3V?
    Solved!
    Go to Solution.

    Hi Nathand, and Ricky - 
    Do you guys think this website:
    https://decibel.ni.com/content/docs/DOC-3545
    Could help me? I noticed there is a minimum and maximum value passed in to the Analog Output function.  
    I could set the minimum = 0V and maximum = 3V.
    I will also look into the level shifter and transistor ideas.

  • How can I set a delay between the measuremen​t of different channels..​.?

    Hello everyone,
    I am using Labview 8.0, and a PCI 6221 card. (windows XP).
    I am using the 8 AI of the card to measure 8 Voltages (diff. mode).
    The problem I have is that I get an offset except on the first channel I measure. If I set the DAQ assistant like this : AI0;AI1;AI1. This is what I measure : 0.320V;0.1695V;0.168V
     I only get the offset  with the first AI1 and not the second AI1 (0.168 is the correct value). I suppose the multiplexer hasn't got the time to change impedance when changing from AI0 to AI1.
    I have attached a simplified version of my program where I am measuring 3 channels, and generating a square wave analog output.
    My idea is to introduce a delay between the change of channels....  Is that a good idea...? and I am sure there is a very simple way to do this based on my program, but I don't know how. How long should the delay be?  Or any other idea...?
    Thanks for your help,
    Marc
    Attachments:
    forum.vi ‏71 KB

    If I choose just one channel ( AI0, AI, AI2,....or AI7) I have no offset. The offset only occurs when I set more than one channel to be measured ( but the first channel in the order of reading is always fine what ever it is). I have explained my problem in a previous post :
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=257677&query.id=32291#M257677
    I have some noise on my measures (roughly +/5 mV), so for the moment I am taking 1000 samples every 1ms on each channel and making an average of the 1000 samples. 
    I will try your solution : taking a look at the first points of my measures to see if the offset goes away quickly or not. However since I have been  making an average on 1000 points at 1Khz, if I get a 2mV offset (after making the average), it means there are many points conerned by the offset.... I will see that anyway when looking at the 1000pts.
    I don't have much experince in this, but I am surprised I have to deal with this kind of multiplex problem on a NI card. What do you think about it...?  Does it surprise you...? What could I be doing wrong ?
    Thanks a lot for your help anyway 
    Marc

  • How to reset buffer pointer for analog output generation?

    I am doing a finite analog output generation on a USB-6216
    Sequence of events:
    DAQmx Create Task
    DAQmx Timing (finite samples, 1000Hz)
    Use DAQmx timing property SampQuantamples per channel to set buffer size
    Write buffer with DAQmx Write
    Repeat
      DAQmx Start Task
      DAQmx Wait until done
      DAQmx Stop Task
    Until finished
    DAQmx Clear Task
    I get a full waveform output on the first iteration of the loop. On subsequent iterations I get only a small section of the waveform, but no error. It seems that it is regenerating the waveform, because when I switch off regeneration I get an error at Start Task, but before it can regenerate all the data Wait Until Done.vi decides that the generation is done and exits, stopping the generation.
    I have done this with a PCI device and it works fine; every call to Start Task generates the whole waveform again.
    OK, so it looks like after every waveform generation completes I need to reset the pointer to the start of the buffer, so that the Wait Until Done vi does not think the generation is done. Or - maybe there is a way to reset the "Generation Done" state?
    I'm sure there's an easy way to do this....?

    Hi CDancer,
    Many thanks for contacting National Instruments. If I can start by giving some general advice, it would be well worth posting your actual VI. This helps others on this forum in helping you with your application. 
    From the sounds of things, you want to do continuous analog output generation. I have had a look at the examples that come with LabVIEW and I think you should look at the one below.
    I would have a look at some of the DAQmx examples that come installed with LabVIEW. The following example would be particularly relevant I feel
    Cont  Gen Voltage Wfm-Int Clk-non Regeneration.vi 
    Please let me know how you get on.
    Many thanks,
    Andrew McLennan
    Applications Engineer
    National Instruments

  • How to know the packages,functions,triggers owned by schema

    I got the script to find the tables,columns and indexes belonged to a schema
    how to find the packages,functions triggers owned by a schema.
    I need to compare schema of PROD with UAT
    Any help will be appreciated

    is it possible to find the source of all those
    objects in a single scriptWhat do you mean?
    user_source will give the script?Yes.
    You can get script more easily with DBMS_METADATA
    SQL> drop FUNCTION "HR"."F11";
    Function dropped.
    SQL> CREATE OR REPLACE FUNCTION "HR"."F11" return varchar2
    as
    v_date varchar2(1000);
    begin
    select to_char(sysdate,'mmddyyyy') into v_date from dual;
    return v_date;
    end;  2    3    4    5    6    7
      8  /
    Function created.
    SQL> set pagesize 0
    SQL> set long 90000
    SQL> select DBMS_METADATA.GET_DDL (
    'FUNCTION',
    object_name,
    'HR')
    FROM    all_objects
    WHERE owner = 'HR'
    AND object_type ='FUNCTION'  3    4    5    6    7
      8  /
      CREATE OR REPLACE FUNCTION "HR"."F11" return varchar2
    as
    v_date varchar2(1000);
    begin
    select to_char(sysdate,'mmddyyyy') into v_date from dual;
    return v_date;
    end;
    Is there any script to identify source for all those
    objects

Maybe you are looking for

  • Update with a Single Quote value

    how do i update a field containing a sigle quote in a record ? e.g : i have a table s_order_item_xa filed: attr_name old value: Noofndk new value: Noofn's how can i update above field value? i am using row_id in where condition to identify rows which

  • IDOC-Acknowledgement for Scenario  IDOC_Sender to 3rd Party Filereceiver

    Hello, We have the following async scenario: SAP-ISU (BS_OU9_300)=> IDOC-SenderAdapter => FileReceiverAdapter (BSV_EDSN). We would like to receive an Acknowledgment (ALEAUDIT) back from XI to SAP-ISU (BS_OU9_300) when the fileadapter has written the

  • How to restart imac?

    New to mac: how to restart iMac?

  • Error in Business Rules

    Hi Experts, I'm receiving an error each time I try to save or validate a business rule in the Admin Console. The error message is as follows: Cannot access a disposed object named "StatusDialog". Object name: "StatusDialog". This error occurs in all

  • Bug in Adobe Updater

    I think, that adobe updater is misleading users. The button "Download" should actually be called "Open browser to download" My computer has crashed due to unrelated problem, making me not very happy already. After computer has restarted, the first th