How to continously generate a voltage signal with dynamic amplitude.

Hello all,
I am looking for ideas and pointers (help in other words). I would like to generate a voltage signal (sine for example) on a AO of my NI cRIO-9263 (DAQmx). The signal should be:
continuous (without jumps ie. smooth)
dynamically able to be change the amplitude, frequency and sampling rate.
interuptable so that the AO can be turned off.
I have tried to use the DAQ Assistant but once it runs in continous mode, I have the impression that the waveform should not be changed. Is there maybe a way where I send repeatedly N samples of the waveform to the AO and gain more control over the signal that way. But if I do that how can I ensure that the signal is continous?
Further more this output has to be generated in an event application ie. in the background.
Your ideas and input is appreciated. Thanks, Bernie

See if this example VI helps
Ches this one too

Similar Messages

  • How to create user editable Crystal Report with dynamic dataset

    What I would like to achieve:
    A program loads a report in runtime updates list of database fields (possibly includes sample data), open report in "Crystal Reports 2011" (or 2008) where user customizes report and saves it. Later on the program loads the report, fills actualized data and displays it in .net report viewer.
    What I do:
    CrReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument
    CrReport.Load(TemplateFilename)
    Dim Results As DataTable
    DataTable is filled from a database
    CrReport.SetDataSource(mResults)
    CrReport.SaveAs(NewReportPath, True)
    The NewReportPath is opened in the default program.
    What are the problems
    The report is open in preview mode (not in design).
    When the field is added to the report the designer asks for XML datasource on preview.

    The short answer is that it is not possible. I broke the question to other two: How to save a report that it opens without preview? and How to create user editable Crystal Report with dynamic dataset, where it is possible to find details. Key answer is Re: How to create an editable previewable report?

  • How to continuously generate a pulse train with variable frequency

    Dear all,
    I am trying to use NI-USB 6259(BNC) to send Pulse signals to conduct position control of a servo motor with labview. The position control of servo motor follows these rules:
    The number of the pulse train determines how many degrees the motor rotate ;( e.g. the angular position of motor)
    The frequency of pulses determines how fast the motor rotate; (e.g. the speed of motor rotating)
    The digital determines the direction of rotation of motor (e.g. clockwise or counterclockwise)
    My question comes when I need to continuously generate a finite plus train signal in a period of time. Below is a sample:
    Time(s)
    Number of pulses
    Direction of rotation
    (1 is clockwise, 0 is counterclockwise)
    Frequency
    0-1
    923
    1
    923hz
    1-2
    3540
    0
    3540hz
    2-3
    1751
    1
    1751hz
    3-4
    2663
    0
    2663hz
    4-5
    353
    0
    353hz
    5-6
    1017
    1
    1017hz
    6-7
    3436
    1
    3436hz
    7-8
    302
    0
    302hz
    8-9
    1513
    1
    1513hz
    9-10
    570
    1
    570hz
    Here is the explanation of this table, the motor keeps rotating in clockwise direction during 0~1s. When the time reaches 1s, the motor just complete the rotation of 923 pulse signals. And then the motor starts to rotate in counterclockwise direction during 1s~2s. When the time reaches 2s, the motor just complete the rotation of 3540 pulse signals. So we can see that the rotating speed of motor in 0~1s is different from the speed in 1s~2s. Namely, the frequency of pulse signal in 0~1s is different from the frequency in 1s~2s.
    I have already use the counter output of DAQmx, it just can generate pulse signal with certain numbers and certain frequency in one time. The attachment is the vi which can generate a finite digital pulse train from a counter output channel and the frequency, duty cycle, Initial delay, and Idle state are all configurable.
    How can I continuously generate  a series of pulse train with varying numbers and frequencies during a certain period of time.
    Thank you very much for your help!
    Solved!
    Go to Solution.
    Attachments:
    Counter - Finite Output.vi ‏57 KB
    Finite output.png ‏13 KB

    Hi aacuna,
    Thank you for your reply!
    I already checked that  article.  The frequency in that Vi can change dynamically, but the method of adjusting the frequency is ‘manual’ .Below is the front panel of that Vi. When the Vi is running we can change the frequency by press the button.   
    Time(s)
    Frequency
    0-1
    923hz
    1-2
    3540hz
    2-3
    1751hz
    3-4
    2663hz
    4-5
    353hz
    5-6
    1017hz
    6-7
    3436hz
    7-8
    302hz
    8-9
    1513hz
    9-10
    570hz
    Thank you!

  • How can we generate a pulse train with variable inster pulse delays?

    I want to generate a pulse train with random inter pulse delays (100us-10000us) and the pulse width would be 50-100us. I programmed for single pulse generation using counter cfg,a for loop contaning set attribute parameters pulse spec 1 and pulse spec 2. I changed the pulse spec 1 value in every cycle
    This program is generating the pulses but not the exact values in the sense the some times the delays are more than 10 msec. As per the program the delay should be maximum 10 msec. please help me ASAP.
    thanks
    thota

    Hey Thota,
    I would suggest to take a look at the example program linked below. It shows how to change pulse specs on the fly. You have to be make sure you are ignoring a certain error when doing this.
    Pulse Train Generation with Changing Pulse Specs (PWM)
    http://sine.ni.com/apps/we/niepd_web_display.displ​ay_epd4?p_guid=B45EACE3E21756A4E034080020E74861&p_​node=DZ52328&p_source=External
    I hope this helps.
    Regards,
    Todd D.
    NI Applications Engineer

  • Aquisition of a voltage Signal with PXI 6713

    Hi.
    I want to make voltage aquisition with a PXI 6713 card. I take the Channels ai16 to ai33. The voltage at the clamp is 3.886VDC ( measured with a DMM ). When i measure the voltage and calculate it into a current ( see my applikation atteched ) the result is something between -10 and -24mA?!?!?
    Are the settinges in the DAQmx Express-VI "analog voltage aquire" wrong or could it be another Problem?
    My settings are:
    RSE
    voltage measuring from 0 to +8VDC
    N Samples
    I hope of yous Answer.
    Thanks
    Attachments:
    analog_voltage_aquisition.jpg ‏33 KB

    Is it a trick question??
    First of all, Looks like you mentioned the card wrong PXI 6713 is an AO card, without any AI channels
    Which card are you using??
    Are you connecting a 390 ohm Resistance on your connector block to convert current signal to Voltage equivalent?? ( Sounds like you are not )
    Are you measuring the Voltage correctly in the first place??
    if you are not, check if the signal is connected correctly for RSE mode
    Hope this Helps
    Regards
    Dev
    Message Edited by devchander on 07-28-2006 07:35 AM

  • Please, I need help - How can I generate a text file with Word format?

    Hello friends at www.oracle.com ,
    is it possible for me to create a text file - that is, with TEXT_IO.fopen, and so on - that's already formatted as a Word document?
    We have a Forms program here, where it's needed to generate a text file with .RTF format, 8 centimeters margin, Times New Roman font, with size 7.
    Best regards,
    Franklin Goncalves Jr.

    Hello Shay,
    sincere thanks for your answer. And, to answer your last question, I'm using client-server model.
    Since I couldn't create this .RTF file by using built-ins like TEXT_IO, I tried to generate an .RTF file using Reports, passing the parameters DESTYPE, DESNAME and DESFORMAT, as shown below.
    add_parameter (pl_id, 'DESTYPE', text_parameter, 'FILE');
    add_parameter (pl_id, 'DESNAME', text_parameter, 'c:\franklin.rtf');
    add_parameter (pl_id, 'DESFORMAT', text_parameter, 'RTF');
    However, the just generated .RTF file is uncomprehensible. After opening the file at Microsoft Word, I can see the following message at the top of file:
    This file was created by Oracle Reports. Please view this document in Page Layout mode.
    ... and informations doesn't appear as desired.
    If I can't generate such text format by using TEXT_IO, and if generating an .RTF file through Reports shows me an incomprehensible result, how can I export the selected result to an .RTF file?
    When Reports is opened, choosing Generate to file -> RTF doesn't export anything.
    Thanks, and best regards,
    Franklin Goncalves Jr.

  • Generate PXI Trigger Signals with PXI-6115

    Hello,
    I have a question.
    I have a PXI-6115 and some other card in my mainframe.
    These other cards nee 10 Mhz pulses on line PXI-Star1 and 2.5 MHz on PXI_trg7.
    So I thought to apply (somewhere on my PXI 6115 card) 10 MHz, divide the 10 MHz with a counter to 4 and route all this things to the backplane.
    But I don't understand how to do this.
    There are no good examples.
    And as far as I know the PXI-6115 isn't yet supported by DAQ-MX.
    Can anybody give me some good advises or tips, white paper or so to make me solve my problem ???
    Thanks Ruediger

    I don't have time to write any example snippets right now, but I'll try to provide you the general idea and hopefully you can take it from there.
    First, it's not clear whether you want to generate the 10 MHz from the 6115 and send it to other devices in the system or accept the 10 MHz externally and route it to the rest of the system.  If you're bringing in the signal externally, I would simply using the DAQmx Connect Terminals VI to route the signal from a PFI line on the front connector of the board to one of the PXI trigger bus lines in the backplane.  Check out the routing table in MAX to see what routes are possible.  To perform this route, the driver will have to route through Counter 0 so you won't be able to use Counter 0 for anything else.
    If you want to generate 10 MHz from the 6115, I would create a continuous pulse train task on Counter 0 using the CO Pulse Ticks version of the Create Channel VI with a value of 2 for both the high ticks and low ticks input.  However, to achieve 10 MHz clock on a PXI trigger line, you'll have to perform a couple of modifications that typically aren't done with counter tasks.  First, you'll need to use the DAQmx Export Signal Property Node to route the Counter Output Event to the desired PXI trigger line.  You can find this property by navigating the following menu hierarchy Events->Counter Output Event->Output Terminal.  By default, the driver routes this event to the Ctr0Output pin on the front connector of the board.  Using this property will override this behavior and route the output of the counter to a PXI trigger line instead.  Second, you will need to change the output behavior of the Counter Output Event from toggle to pulse.  This can be through the Events->Counter Output Event->Output Behavior property.  Normally, when generating pulse trains, the high ticks and low ticks parameters from the Create Channel VI determine the frequency and duty cycle of the pulse train.  When the high ticks count expires, the output of the counter toggles.  The low ticks value is then loaded into the counter, and the counter output toggles again when the low ticks value expires.  This process repeats to produce a pulse train of the desired frequency and duty cycle.  Since the counter uses a 20 MHz timebase and has a minimum low ticks and high ticks value of 2, you can only produce at maximum a 5 MHz pulse train using the toggle behavior.  However, by changing the output behavior from toggle to pulse, the counter output will issue a short pulse each time the high ticks and low ticks counts expire yielding a 10 MHz clock signal.
    Now that you have the 10 MHz signal taken care of, you need to generate a 2.5 MHz signal from it.  My guess is that since you have a 6115, you already have plans for the AI engine so I'll describe a route that uses AO instead.  First, create an AO task to perform continous waveform generation.  Use the DAQmx Channel Property Node and set the Use Only Onboard Memory property to true.  Setting this to true will cause the driver to download the waveform once upon starting the task and replay the waveform from the onboard FIFO.  Since you're only using this task to generate a clock, you don't really care about the data and this will prevent unneccessary traffic across the PCI bus.  Next, use the DAQmx Timing Property Node to set the Sample Clock->Timebase->Source to the PXI Trigger line that you're generating the 10 MHz clock on, and set the Sample Clock->Timebase Divisor to 4 (10 MHz / 4 should give you a 2.5 MHz sample clock).  Last, use the DAQmx Export Signal Property Node to set the Clocks->Sample Clock->Output Terminal to the PXI Trigger Line you want to generate the 2.5 MHz signal on.
    It requires some creative programming, but you should now have a 10 MHz and 2.5 MHz signal routed onto two different PXI Trigger lines.  I know this solution is a bit involved so if you have any further questions be sure to post back.

  • How do I generate a RAMP signal w/ SigEx and SCXI for MTS-407 hydraulic controllers.

    I'm trying to generate a +/-10v full scale ramp signal to pass through two channels simultaneously. This signal will be used as external function [generator] for two MTS-407 servo/hydraulilc controllers connected to a single specimen. When I hit the "Start" button I need the function generator to generate a ramp (rate and amplitude) and pass this voltage off to both 407's.
    My first question I guess is: do I need a special SCXI module to access the NI-FGEN output signals or can these signals be passed through the DAQ card via the SCXI 1302 and Feedthrough panel?
    More question to follow...
    SCXI- 1000 Chassis w/ 1346 adapter
    PCI 6281 DAQ card
    SCXI- 1520 Bridge Board w/ 1314 Terminal Block (x2)
    SCXI- 1180 Feedthrough Panel w/ 1302 Block
    Signal Express 2012.
    Win7 Enterprise

    Hello,
    I am trying to do something similar to what you mention. I trying to use a labview program with a NI PXI-8106 and NI-PXI 6251 card to send a signal to a 407 controller through the external program BNC connector.
    When trying the software I don't get any signal send or response in the actuator.
    How did you solve this problem?
    Do I need special hardware?
    Please any help is appreciated
    Mi software is attached.
    David P.
    Attachments:
    ATTestControlV1.0.vi ‏261 KB

  • How can I measure 2 floating signals with a DAQ?

    Hello, I have a DAQcard AI-16XE-50 with a BNC2110 adapter to connect signals.
    I need to read 2 analog floating signals (less then 1 V, DC).
    The configuration of the DAQcard si DIFF Input mode.
    I tried to read the first signal and everythings was OK, then I tried to read the second and everything was Ok, but when I tried to read them togheter the values were modified from original values, even measuring them with an external voltimeter.
    How I have to connect signals to my BNC-2110? I need some Bias resistor? or what?
    Thanks
    Lorenzo

    Hi lcaggio,
    You're BNC-2210 is designed to work in differential mode with your DAQ board. It sounds like this is how you have things configured though. Here are my main suggestions for resolving this.
    1) Make sure that the channel switch is set to "FS".
    2) Make sure that your DAQ board has the BNC-2110 configured as an accessory. (accessed through board Properties in Measurement & Automation Explorer)
    3) Make sure that your DAQ board is configured for the correct voltage range and that your inputs are configured for Differential.
    Now, by default, the NI-DAQ driver will sample channels as quickly as it can between channels. Since your channels are floating, it is possible that there is channel cross-talk between your two channels and that is why it l
    ooks good when you sample the channel individually but looks bad when you sample both channels together. This is corrected by increasing the period of time between sampling each channel. This is called the "Interchannel Delay".
    4) The following Knowledge Base describes and links to documents that mention the importance of the interchannel delay.
    What Are the Minimum and Maximum Values for the Interchannel Delay Setting on my DAQ Board?
    http://digital.ni.com/public.nsf/websearch/9AE87416C8792FC286256D190058C7D3?OpenDocument
    5) Connect an analog channel, both CH+ and CH-, to AIGND. This will ground the channel. Then sammple your first analog channel, followed by the grounded channel and then your second analog channel. The ground channel helps with channel cross-talk (channel ghosting).
    Anyway, hope these suggestions help your project. Have a good day.
    Ron
    Applications Engineering
    National Instruments

  • How can I generate a map file with LabVIEW?

    We wish to use a product which inserts code into our executable to prevent tampering with it by crackers.  The program, however, takes the executable file, as well as the map file (which is commonly generated by c++ compilers) and uses the map file to determine where in the exe the critical routines that need protection are at.  I can not, however, determine how to create such a map file for a LabVIEW generated executable.  Is there a special build option I need to invoke?

    Yes, I'm familar with NI's licensing technology, having talked with someone (you, Dennis, I believe) about it before.  The problem we have is our software is sold to factories in China where there are no internet connections.  We have a physical key 'dongle' which must be present in order for the executable to be willing to run.  However, it appears that people are taking the executable  which LabVIEW creates and they are editing it, probably by using a a debugger and tracing to the the code which checks for the dongles presence and bypassing it.  To my knoweledge, NI's products don't do anything to prevent this, right?
    We found a company which sells a product that encryptes, checksums, etc... an executable file, but it needs to know the layout of functions in the exe in order to determine which areas to focus the obfuscation on.  They were sort of matter of fact when they said it needs the exe and the map file, as if they expected any language which produced an exe could produce a map file.

  • How do I generate custom-made signals (impulses) from the parallel port

    I am trying to generate some simple pulses to drive an external device. I am sure this is simple, but I'm not sure how to do it in LabView. I need to generate to TTL-level (2.4 - 5v) pulses that are spaced 500ms apart and occur every 34 seconds (that's the period).
    Any suggestions?

    ilogix-
    The easiest way to write to the serial port in LabVIEW is with the Port Out.vi. You can find the help info here. You can find the address of the parallel port in the properties (located in Control Panel>>System>>Hardware Tab>>Device Manager) under the Resources tab. IT is the first number in the I/O range property (usually 0378).
    This is a digital line and the parallel port is written as a byte so your labVIEW program will need to write a byte, delay and write another byte to get a "waveform".
    Xaq

  • HT4587 How do you extend an airplay signal with a second airport express?

    I have a speaker system hooked up to an existing AirPort Express. I just bought another AirPort Express to extend that WiFi signal, but also wanted to extend the existing AirPlay signal as well. I set it up as a WiFi extender and it worked fine; however, it created a seperate option for AirPlay and won't "piggyback" the AirPlay signal off the original AirPort Express. Any help on how to resolve this would be appreicated. Thanks!

    I have a modem hooked up to an ethernet hub. From the hub I have an ethernet plugged into the first AirPort Express. In that AirPort Express under the Wireless tab the Network Mode is in Create a wireless network, and under the Network tab the Router Mode is on Off (Bridge Mode). Under the AirPlay tab the Enable AirPlay is checked
    The second AirPort Express is just plugged into an outlet with no ethernet hook ups. In that AirPort Express under the Wireless tab the Network Mode is in Extend a Wireless Network, and under the Network tab all the options are greyed out and unclickable. Under the AirPlay tab the Endable AirPay is unchecked. (I have tried checking that box and unchecking the box to see if either has an effect on AirPlay from the original AirPort Express, and either way it does not work). Checking the box just creates a seperate AirPlay channel.
    Let me know if you need any other info.

  • How do you generate a CHIRP Signal?

    The Chirp signal should generate a sine wave whose frequency increases at a linear rate with time

    The attached library (LabVIEW 6i or higher) includes different VIs that can help you perform sweep-based measurement, including a VI to generate a linear sweep (chirp). Note that the generation VI can generate your chirp in "one shot" or in multiple chunks (multiple runs) if you sweep is very long. You can use the reset control to re-start your sweep at any time. So the VI is functionally totally equivalent to any generation VI in the Analyze>>Waveform Generation palette. I hope this will work for you.
    Attachments:
    Sweep_Generator.llb ‏1056 KB

  • How: Extend a non-Apple wifi signal with Airport Express

    I have a Wifi modem provided by the ISP, Tiscali [Italy] unrelated to Apple.  I want to use my AE to extend the signal to another part of the house.  The Tiscali router was set up with WPA2.  I have Airport Utility 5.6.1 [yah, I know, old; haven't moved up from OS 10.8.5 either, MBk Pro] and the Airport Express is MC414Z\A  C86L9K02DV3R.  Opening the A Util w the AE powered up [yellow light showing] I immediately saw the AE listed at the left, but now that I go back to the Utility and rescan, it doesn't find the AE, altho Airport is one and lists that AE showing a full signal, properly calling it "gatti.11n."  Your advice would be most appreciated and likely will be helpful to many others saddled with a non-Apple wifi router.

    Apple AirPorts cannot wirelessly "extend" a signal from a third party product.  They can only wirelessly "extend" a signal from another Apple router. Another way of saying the same thing is that if you want to wirelessly extend a network using an Apple router, you need two Apple routers.
    You have two options:
    Option 1.  Add another AirPort Express and install it close to the ISP modem/router using an Ethernet cable and configure the Express to 'create" a wireless network. Then, your other AirPort Express can wirelessly extend the signal from the first AirPort Express.  The "extending" Express will need to be located where it can receive a strong signal from the first Express.
    Option 2. If you cannot run the Ethernet cable....or....you do not want to add another AirPort Express, then a pair of Ethernet Over Powerline (EOP) adapters might be able to send the Ethernet signal over the existing AC powerlines in your home.  These products are also sometimes called HomePlug adapters.
    The theory with these devices is that you already have the wiring in place.....you just need the adapters.  In practice though, things do not always work as well as the theory might suggest. So, if you decide to try a pair of these adapters, then it would be good idea to understand the store's return policies before you buy.
    Any computer / electronics superstore will have a selection of EOP adapters. Ask the salesman what type and brand that he would recommend.

  • How do I generate an Impulse signal?

    Hello,
    I'm relatively new to LabVIEW and I need to generate an impulse (Dirac Function) signal into DC motor. At the same time, I need to be able to modify the width of the impulse signal. 
    I am currently using LabVIEW 7.1. 
    Regards,
    Jemuel Ong
    National University of Singapore
    Solved!
    Go to Solution.

    Thanks for replying!
    I'm using a WinXP machine connected to PCI-6024E and AT-MIO-16E-10. The whole setup is supposed to drive a DC motor and I'm supposed to design an experiment to input an impulse signal to the system and get an impulse/step response. I have to be able to define the width of the impulse signal.
    Regards,
    Jemuel Ong
    National University of Singapore

Maybe you are looking for