Generate analog signal using samples fpga
Hi,
I have 20 samples of (time,data). using these samples i need to write data to AO channel in FPGA card. Here the data should be written to a channel w.r.t time. i need to generate signal(ramp) based on time and data available.
for example -
time( in seconds) - 0 0.01 0.04 0.05 0.07 ...
data - 0 1.0 3.2 2.5 1.3 ...
Please suggest me best way to achive this.
Thank you,
Ranjith
Keep all ur samples in a array and auto index the array to a for loop, Inside the for loop put a wait timer and give the dt as input(t2-t1) to the timer. Inside the loop connect the auto indexed output to the A0 Channel.
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better
Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Similar Messages
-
Reading analog signal using DAQPad-6016
I'm trying to read an analog signal using DAQPad-6016. One input is ground, the other is Vdc. I can't get it to work in MAX and I'm confused becaue MAX only gives me an option for differential reading, but the pinouts don't give enough information on how to connect differentially. Is there a reference as well?
Solved!
Go to Solution.Hello Bernadette,
This link should have everything you need to get set up correctly: http://www.ni.com/gettingstarted/setuphardware/dataacquisition/analogvoltage.htm
After you have a task set up, specifically see step 11 to verify the connections to the device.
I hope this helps!
Matthew R.
Applications Engineer
National Instruments -
How to generate two signals using NI myDAQ
Dear Sir:
I designed a circuit to generate a sine wave successfully using Labview. What I want is using NI myDAQ to generate another 3V DC signal as a power supply. I can do this seperately but when I add them together there is an error: NI Platform Services: The specified resource is reserved. The operation could not be completed as specified.
I would like to use A01 to generate a sine wave and A02 to generate a DC wave, could you please check my file and tell me how to solve this problem. I found a solution which generates two signals together but what I need is to control these two signals seperately and using two channels.
Kind Regards
Jeff
Attachments:
signal gen and acquire.vi 126 KBThanks very much for your kind reply.
No. I tried for a long time, change the samples of each simulate signal to the same but the warning also came out. Could you please check my file and tell me how to solve this kind of problem?
Kind Regards
Jeff -
Generating PWM signal using Signal Express
Hi,
Would anyone help in generating PWM signal usinf Signal Express 2.5.1. I am using a cDAQmx and connected NI 9472 to the slot number 6 to output the PWM signal. Also I have connected a NI 9421 to the slot number 5 to acquire the PWM signal, so that I could verify the signal.
So would you please let me know how could I generate a PWM signal using Signal Express without any LabVIEW Programming. Please help me out.HI Aamruth,
I atached a project, where you can see how to do it. I hope this helps.
Regards, Mona
Attachments:
PWM.seproj 29 KB -
Triggering an analog signal using USB6008
Hi I'm trying to use the start trigger with DAQmxBase acquiring analog signals with the USB 6008.
When i configure the trigger as Start Digital Edge I become an answer, but only starting at an rising edge.
I want the acquisition to start at a define level, so I've tried with Start Analog Edge, but the acquisition is stopped.
Can someone help me how to configure better than i do?
Thanks.
Regards
Patrick
Patrick EtoumannHi!
It's not possible to configure an analog trigger with an USB 6008 -> only digital trigger is available!
If you want to start on a predefined level then is the only option to do this with an analog-software trigger!
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=C16B1501B4D9168DE034080020E74861&p_...
regards
ThSa
http://www.newgistics.com -
Sending analog signals using SCXI bus to SCXI-1600 for digitizing
I want to measure a signal generated in the SCXI-1181 custom bread board module.
Is it possible to send the signal using SCXI bus to SCXI-1600.
The signal is less than +5V & is positive.
Is it possible to use AB0+ & ABO- in SCXI bus for this purpose?
I have a SCXI-1001 chassis installed with SCXI-1600 in slot 1 & SCXI-1181 in slot 2.
I have 4 more switch modules (SCXI-1160s) installed from slot 3 to 6.
Will the above has an interference when you want to control the switches?see here:
http://forums.ni.com/ni/board/message?board.id=250&message.id=20644 -
Why is the Analog signal from the FPGA is distorted?
Hi,
I am using the PXI-7831R board with LabView 2010. I'm trying to transmit TDMS files from the computer hard drive via the analog output of the 7831R. I've used the "Basic DMA output - R series" example and replaced the generated signal with a TDMS file. When I tried it on a synthesized pure sine file, it transmitted the positive part of the sine wave (which was a little distorted) but instead of the negative part I saw 0V DC. When I tried to use a "real" TDMS file (that I sampled earlier) the signal came out completely distorted. In both cases I used a graphic output in the host VI and checked that the data coming from the file is ok. Can anyone help me with that?
I would also appreciate some explanations on the "Update Rate" block (I suspect that he's the one causing all my trouble) - how am I supposed to use it and is it mandatory?
Thanks in advance.It sounds like when you are using the sine wave, you are clipping the data. I am assuming that this is because you are sending it negative values. R-Series cards can not handle fixed point values, so try to offset the signal so that the lowest point of the signal is at 0. See how that works for you. As far as the Update Rate goes that controls the speed of your loop. If you do not set it high enough, the loop will simply run as fast as it can. I hope you find this helpful.
Brandon Treece
Applications Engineer
National Instruments -
How do I eliminate noise in an analog signal using a filter?
I have noise in a 0 to 5 volt signal. I am attaching a sample vi that when I run it Whatever My number is going in is different when it goes through the filter why is this?
Attachments:
Filter_Example.vi 32 KBA correct filter type to get rid of noise is a low pass filter. Very basicly it takes the previous value(s) and calculates new value(s). So if the previous value is 0 and the next one is 100 it will probaly come out with something like 50, 50.
In your vi you take a single sample of several parallel channels into one array and present it as input to the filter vi. But this vi takes it as a sequence (in time) of one single reading and tries to compare them to each other.
You might rather want something like a sliding average.
Initialize an array (of e.g. ten) with zeros and in a loop replace one element after the other with a new reading. At the end restart from the beginning. Take an average of the readings and the result will reflect
the last (ten) samples.
Gabi
7.1 -- 2013
CLA -
Niscope for pxi5105, use a digital pulse signal to control analog signal sample
i want to use ni-scope to drive pxi5105. And the PFI1 connect to a digital pulse signal(10KHz, 0-3.3V), to control a single channel analog signal continuous sample(Chan 0). I want a loop when the digital signal falling, the analog singal start to sample, and when the digtal signal rising, the analog singal stop. And by the low level of the digital singal, the analog singal sample (coupling by DC) can get an average and export to txt. I have tried the "start_and_reference_trigger.vi " and it did not work correctly. i need your help, thank you very much.
Attachments:
start and stop triggers for analog sample.vi 94 KBHi Phil,
The SCC carrier is only conditioning your signals (i.e. if your signals are not in optimal ranges, bandwidth or need external excitation). The actual counters and all digital lines are controlled directly by the M-series board. This means you will never be able to refer to a counter in the SCC module.
If you route the signals of the M-Series board, is as if you had done so externally from the SCC. Look at this example and might give you more insight to how to implement it (This is software timing). The hardware timing would be doing correlation DIO. Here is an example that needs to be modified to adapt to your timing: http://zone.ni.com/devzone/cda/epd/p/id/4414
Hope this helps,
Yardov
Gerardo O.
RF Systems Engineering
National Instruments
Attachments:
Finite Dig Output High.vi 31 KB -
Servo motor control using CRIO+FPGA and 9477 digital out module
Hello experts,
I have a futaba BLS551 brushless motor digital servo (3 wires-+,-, signal). i also have a CRIO+real-time+fpga and 9477 digital out module. how can i generate servo signals using this module
please help...
Thanks,freemason,
In order to control your servo motor with the FPGA and or DIO module you will have to write drivers to control your motor and drive. While this is possible is an extremely complicated and time consuming process. I would highly recommend you consider using the NI 9514 with soft motion as it will provide full servo functionality and is relatively easy to use.
Regards,
Sam K
Applications Engineer
National Instruments -
Synchronize Motion velocity with DAQ analog signal
Hi Everybody
I am acquiring analog signals using hw trigger and external clock with C and A signals of a 1024 counts TTL encoder.
Now I want to measure the rotation speed of a shaft. I have a Flex-Motion board with which I want to read the velocity (or the same encoder), but I don't know how to synchronize each scan of the analog signals with the velocity signal for that instant.
I can´t use RTSI bus because my Motion board doesn´t have RTSI connector.
Software and hardware:
LabView 6i (v. 6.0.1.b3)
DAQ-Board: PCI-6023E, NI-DAQ 6.8.1, MAX 2.0
Motion board: PCI-FlexMotion-6C, NI-FlexMotion 5.0.1
Thanks a lot for your help.Hi chia,
with the hardware configuration that you have, I think it´s not posible to synchronize both boards due to you cannot share the same clock source (not RTSI on the motion board).
http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/66e6f4ee7e0848d686256a55006...
Sorry for the delay :-)
Regards
DiegoM. -
How to generate a chirp(linear FM) signal using dds theory in LabVIEW FPGA.
how to generate a chirp(linear FM) signal using dds theory in LabVIEW FPGA.
attachment:a sine signal using dds theory. Hope to get some help. Thanks!
Attachments:
FPGA DDS SineGen IP.vi 42 KByou need to increment the "accumulator increment" during the duration of the chirp. the "accumulator increment" controls the frequency of the DDS cycle. by increasing it's value, you are increasing the frequency. the math for increment values follows the same math as determining the frequency to increment value.
Stu McFarlane
Viewpoint Systems, Inc. -
Directly convert the analog signals into digital without passing through FPGA
To whom it may concern,
I am using a SCB-68 board R-series and I have a couple of technical questions:
In my system at the moment 8 analog channels are connected to the 8 input analog ports and then data are sent to a FPGA (PXI system 7852R). I am planning now to add other 4 channels to the system. Since over the total 12 channels I just need a very fast acquisition mode (using the FPGA) for 6 of them, while the other 6 can be sampled in a ms scale, I was wondering if you can suggest me something that I can use to directly convert the analog signals into digital and in this way used many unused digital signals provided with this model.
Thanks in advance.yes it is correct, what do you need is:
software + (pc) + PXI + cable + chassis + C-series module
With embedded controllers, there’s no need for an external PC
With PXI remote control kits, you can control PXI systems directly from desktops, laptops, or server computers.
What Is PXI?
To configure a complete PXI System please go to: Build Your PXI System -
How do I use a counter to measure frequency and multiple analog signals in the same VI?
I have a PCI-6071E, an SC-2345 with multiple modules, and a PXI-8184 (with a PXI-1002 Chassis).
My goal is to monitor pressures, flows, temperatures, and speed in one VI.
I am using Measurement and Automation Explorer version 3.1.1.3004 to manage my channels.
My speed is a PWM signal which I recently rewired through the counter 0 of my board.
I was hoping to configure this to read frequency directly in measurment
and automation, have this scale the value to RPM, and then feed it
directly in to my labView program.
In labView, it will not except this signal though.
I get error -200300 from the DAQmx Start Task.vi
Possible reasons(s):
Invalid timing type for this channel.
Property: SampTimingType
You Have Requested: Sample Clock
You Can Select: Implicit, On Demand
After doing some research, it seems that the counter wants "Implicit"
selected for the DAQmx Start Task.vi, but then I cannot use my other
channels. Also, counter is included in the "Sample Clock" option
description, so I do not understand why it is not working.
Does anyone know how to work around this problem or a way to configure the counter so that it will work in this way?
All my other channels are Analog.
Thank you.I am working on getting just the counter working by using
the program posted previously, and I am running into issues. Periodically I get
the error:
Error -200141
occurred at DAQmx Read (Counter DBL 1Chan 1Samp).vi
Possible reason(s):
Data was overwritten
before it could be read by the system.
If Data Transfer
Mechanism is Interrupts, try using DMA. Otherwise, divide the input signal
before taking the measurement.
It seems to work better if I use cascaded counters, but I need timer 0 for
analog channels when I run this code along with the program for the other
measurements.
I have tried averaging, and selecting different values for the millisecond
timer, and these did not seem to have an effect.
I tried different DAQms configurations and "Counter DBL 1Samp" seemed
to work the best.
The program will work for a while and then it will give me the above error
message.
If I use counter 0 as a cascaded counter input, the program runs fine. If I run
this with other analog channels, it errors out because the analog channels use
counter 0.
If I use counter 1 as a cascaded counter input, it seems to work better than a
single channel, but it will still error out with the above error.
If I use only counter 1, I get the error above even faster.
Also, none of the
configurations give measurements outside the While Loop.
The only place I can add a speed dial for the front panel is within the While
Loop.
Is there someway to get the signal to continuously send out of the while loop?
I thought if I could get the signal out of the while loop, I could condition it
anyway I wanted without the program erroring out.
Any suggestions would be much appreciated.
Thank you.
Attachments:
Counter_error.jpg 45 KB -
Why use FIFO to read analog signal?
Why must we use FIFO to obtain analog signal from FPGA? I can use a normal method of calling the FPGA using Read/Write Control and the results in a waveform chart is much more smoother.
I've uploaded 2 real-time VIs with and without FIFO. MQ convert is the subVI in my computer. Do have a look at it...
My waveform chart is done that way so that I can easily export to excel ( i think) but this is a different problem in a different topic http://forums.ni.com/t5/LabVIEW/3-Waveform-Chart-to-a-Single-Excel-but-in-Different-Spreadsheet/m-p/...
Attachments:
Real-Time With FIFO.vi 397 KB
Real-Time without FIFO.vi 391 KB
MQ Convert.vi 19 KB
Maybe you are looking for
-
How can you exceed AW 17 Library Limit ??
Im desperate to play FLC animation files externally. At the moment FLC animation files have to embedded into your piece or you put them into AW libraries. But I have thousands of FLC animations I need to store and the AW 17 library limit is rearing i
-
My Camera isn't Showing Up!
I just installed Final Cut and when I enter it doesn't read my camera which is plugged in, on, and on playback mode. It finds it in iMovie but if I go into "Capture" it just quits immediately. It doesn't find it when I open the application either. It
-
How r photos sent in iPad text messages
How are photos included/ sent in iPad text messages?
-
"New" iPad display "ghosting"/"image retention"
My "new" iPad/ipad3 is experiencing intermittent "ghosting" or what apple is calling "image retention:" some elements of a previous image on the display remain faintly even after the display changes. The retained image does not have to be on the scr
-
Can't send texts or call, but can use 3G?
I got an iPhone 4s a few months ago and it's locked to EE. Everything has been fine but today it won't let me send texts or call someone, even if they also have an iPhone and I'm connected to the internet. I have signal and 3G is working. Can anyone