How to output square wave with pci 6110 from digital output
and the frequency of the wave should be variable and quite precise.
"from digital output" is not possible if
your timing req's are less than a second
and
you are not running Real-Time.
It can be done from the analog output port.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Similar Messages
-
SQL Developer: How do I copy data with Column Headers from the output grid?
Hello,
I am using Version 2.1.1.64.
I run a SQL query, I get the results grid in the "Query Result" window down below. Say I get 10 rows returned, with 5 columns.
I want to Copy this entire grid, plus the column headers/names, to the clipboard. So I can paste it under the original query to document the results of that query.
I can't find any way to do this. I can copy/paste the results grid, but it doesn't copy the headers.
The only way I see to do it is to go through numerous steps to Export to a TXT file, then paste that. Unfortunately, that is a lot of wasted steps if I need to do this over and over, plus, the output gets pasted in an ugly format with double quotes, etc.
It seems like the simplest functionality is to copy/paste the entire results grid, and of course you might the headers. Why is this so complicated/impossible to do?
(I believe Toad has the same problem. DBArtisan allows you to copy/paste the entire results, plus headers, though.)
Any assistance would be appreciated!
Thanks,
JohnAh, ok...
I had tried that before, and it didn't work, it seemed to copy the path of filename I was using. But I think that was because I had clicked on a Column Header first, and it had asked me if I wanted to filter. I think then it lost track that it was in the grid. It's a little flukey.
What I did now was to click on an individual cell in the output, then hit CTRL-A to select all, then hit SHIFT-CTRL-C. That gives me exactly what I want.
Thanks very much for your quick solution, I appreciate it!
John -
Can I generate sine and square waves with NI PCI-MIO-16XE-50 card??
Can I generate sine and square waves with NI PCI-MIO-16XE-50 card??
How Do I generate those signals?Hello;
You certainly can do that. The way to go about that is to use one of the Analog Output channels your board have available.
If you are using Labview to program the board, you can find good examples at Search Examples->I/O Interfaces->Data Acquisition->Analog Output->Multiple Point (buffered) Analog Output.
If you are using other Software language to program the board, you can fing examples at C:\Program Files\National Instruments\NI-DAQ\example\VisualC\AO.
Hope this helps.
Filipe -
How to avoid jitter in analog output(square wave) generation
Hi all,
Iam working with PCI-6723 32 channels analog output,iam generating a square wave,sampling at 100ks/s.
ican able to generate upto 10kHz square wave.The wave form appears clean when it is below 1000Hz if i crossed 5KHz to 7KHz, iam getting jitter in the output square wave form,i have experimented with the digital filter but still the jitter is persisting,
since iam using 12 channels for such similar generations so i have fixed the sampling rate.100Ks/s.
kindly suggest me how to avoid this jitter in high frequency generation.
OS::WINDOWS 2000
HARDWARE PCI-6723.
I/O CB 68
NIDAQ:7.3
LABVIEW 7.1
kindly find the attached file.
Thanks and Regards
RAJESH
Attachments:
Untitled.vi 73 KBHi ALAN,
Thanks for your reply, well the square appears to be overlapped ie one ON/OFF period another waveform tries to overlap, actually i planned to take a snapshot of my oscilloscope (tetronix) but since its not advanced one ,i have attached the file kindly look into it,you can observe the at some higher frequencies there is lot of difference between rise time and fall time.
Thanks and Regards
rajesh
alan actually iam decorating my front pannel do u have any sample layouts for coloring ,buttons kindy forward me .
Attachments:
Doc1.doc 56 KB -
Why do i get ringing when i am generating Square Wave using PCI 4461 DSA Card
Hi,
when i generate square wave form DSA card PCI 4461 i am getting ringing effect as per my observation of waveform generated in CRO.Can anybody tell me why is this effect seen and how can it be rectified and removed from the signal in LabVIEW.
Regards,
SnehaThe analog outputs on the 4461 (and the analog inputs, for that matter) are band-limited by digital lowpass filters. These low-pass filters have a brick-wall response in the frequency domain, which results in Gibbs-phenomenon ringing in the time domain. See this discussion, among others:
http://en.wikipedia.org/wiki/Gibbs_phenomenon
The ringing will be excited whenever there is significant signal power near the abrupt band edge, because the abrupt cutoff will result in signal power being located just below an absence of power in the spectrum. Whenever signal power appears in spectral isolation like that, you can expect ringing in the time domain response. Your square wave consists of a series of harmonics at frequencies below, near, and well beyond the digital filter's cutoff. When the digital filter cuts off the higher harmonics, the ringing is created.
To prevent the ringing, you must create a waveform mathematically that is bandlimited already. The result will be a square wave with slower rise and fall times, but no ringing.
Hope this helps,
Ed -
Generating square wave with variable duty cycle
We like to generate a square wave with variable duty cycle using LabView 6.1 and SCB-68 and this duty cycle comes from some PID controller programmed by LabView by reading a voltage and feeding back this square wave
the story begins with some one called separately excited DC motor
this thing sometimes changes its speed
so we are trying to keep a constant speed
irrespective of the load no matter how it changes
this comes by reading the voltage out from
the tackometer which represents the speed as voltage
then comparing this with a reference set by the labview program
the labview program will send a control signal to some chopper circuit
which is connected to the field of the motor which controls the speed
we are tending to make the labview program as pid controller
that will generate our beatiful square wave with some duty cycle
which will vary to increase or decrease the voltage across the field
we tried "Real-Time PID Control.vi" example and other examples
and we are discussing different solutions for this duty cycle thing
but till now no output
this is our whole story with this DC motor thing -
How to send a mail with HTML body from Oracle
Hi Team,
Can somebody guide me how to send a mail with HTML body from oracle.
Here is the piece of code i am trying to send a mail.
procedure SEND_MAIL is
cursor c_1 is select * from table_name;
l_mail_id varchar2(40);
-- ls_mailhost VARCHAR2(64) := Mailhost;
ls_from VARCHAR2(64) := ‘[email protected]’
ls_subject VARCHAR2(200);
ls_to VARCHAR2(64);
l_mail_conn UTL_SMTP.connection;
ls_left_menu_name VARCHAR2(64);
ll_emp_num number(8);
begin
for i in c_1 loop
begin
l_mail_conn := UTL_SMTP.OPEN_CONNECTION('IP');
UTL_SMTP.HELO(l_mail_conn, 'IP');
UTL_SMTP.MAIL(l_mail_conn, LS_FROM);
UTL_SMTP.RCPT(L_mail_conn, LS_TO);
UTL_SMTP.DATA(l_mail_conn,'From: ' ||ls_from || utl_tcp.crlf ||
'To: ' ||ls_to || utl_tcp.crlf ||
'Subject: ' ||ls_subject|| utl_tcp.crlf);
UTL_SMTP.QUIT(l_mail_conn);
exception
when no_data_found then
null;
when others then
RAISE_APPLICATION_ERROR(-20000, 'Failed to send mail due to the following error: ' || sqlerrm);
end;
end loop;
end;
ThnxHi Nicolas!
Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
Hope this helps!
Regards
Geir -
How do I transfer Fish with attitude game from IPad 2 to Ipad Air
How do I transfer Fish with /attitude game from IPad 2 to Ipad Air
Assuming you own both iPads (and are using the same Apple ID on both), simply sync your iPad 2 using iTunes, then sync your iPad Air using the same iTunes on your computer.
-
How do i send emails with outlook express from firefox
how do i send emails with outlook express from firefox
You can add a button by using the [http://webdesigns.ms11.net/getmail.html Get Mail] add-on.
-
How to generate multiple digital outputs (square waves delayed) at 50 kHz?
I would like to generate 3 digital outputs like the picture attached at 50 kHz. Using the "digital pattern generator (marching values).vi", I can generate 3 digital square wave but without the delay time. How can I do that?
I'm using the card PCI 6034E.
Thank you
Attachments:
digital outputs delayed.png 8 KBHi,
the digital pattern generator (marching values) only shifts the binary value of the first signal and sample to the next signal/sample.
Have you tried generating your waveforms via build waveform and use t0 terminal to change the lead delay?
In general, this DAQmx example could be helpful which you can modify to your needs.
DAQmx Write Digital Channel- External Clock: https://decibel.ni.com/content/docs/DOC-11142
Regards,
Thomas -
I can only save 3 seconds data with 1MHz sampling rate using PCI 6110. Is it possible to continuously save longer time data (say 1 minute)?
Many thanksif the binary file is big the ASCII file is very very very big.
1 measurement is coded in a I16 => 2Bytes ( 4bit is not used 611X is 12bit
card)
if you use +/-1V range the quantum is (2 * 1V) / 4096 = 0.0004883V or 0.4883
mV you need to use 8 digits minimum.
And If your binary file is 1 Mo your ASCII file is 4 Mo.
You can use this VI for inpiration you need to add the translate I16 to DBl
to make a real value before saving.
For Help you can mail inthe newsGroup.
I'am a french user and my english is not good Sorry..
Fabien Palencia
Ingenieur d'etude ICMCB CNRS
"StephenZhou" a ?crit dans le message de news:
506500000005000000A5AF0000-1031838699000@exchange.ni.com...
> Hi, Fabien Palencia
>
> The program is great.
Do you happen to know how to convert the big
> binary file to ascii file? Thanks
[Attachment recup data I16.vi, see below]
Attachments:
recup_data_I16.vi 57 KB -
I am having trouble using analog triggering on PFI0 with PCI-6110
I am having trouble with analog triggering. I am trying to use PFI0 as an anlog input for triggering purposes and this is on a PCI-6110 card. I am outputing a 10Hz 5Vpp triangle wave signal from an analog output channel and inputing it into PFI0. I am configuring the trigger with the code listed at the bottom. When I start the data acquisition is not triggered. If I increase the frequency up to about 480-500Hz then the trigger will start and then I can actually move the frequency back to 10Hz and it will continue to trigger. Also if I leave the code the same and the waveform the same but switch the trigger type to cwaiHWdigital then it will trigger at the 10Hz level. I suspect that this may have something to do with the coupling of the PFI0 input but I am not sure if this is the case and if it is I do not know how to configure the coupling of PFI0 in measurement studio VB. Any thoughts would be appreciated.
cwaiDAQ2.StartCondition.Source = "PFI0"
cwaiDAQ2.StopCondition.Type = cwaiContinuous
cwaiDAQ2.StartCondition.Type = cwaiHWAnalog
cwaiDAQ2.StartCondition.Mode = cwaiFalling
cwaiDAQ2.StartCondition.Level = 2
cwaiDAQ2.Configure
cwaiDAQ2.StartI tried increasing the voltage and this did not seem to have nay affect on the frequency that it started triggering. I also tried to lower the trigger level. As far as trying other PFI's I dont believe I can. As fas as I can tell PFI0 is the only one that can be used as an analog input and analog trigger.
I looked at the article in the knowledge base 2ZD9B3W3 and it seems to be a similar problem. I tried to replicate the code in my program but I really have no experience with NI_DAQ function calls in visual basic so maybe I am doing it incorrectly. I did not get any errors but the NI_DAQ function calls are mixed in with CWAI measurement studio function calls so maybe when I configure cwai it resets what I have just changed with NI_DAQ. I could really use some specific direction on how to succesfully set PFI0 to DC coupling with the CWAI control or how to mix measurement studio and NI_DAQ functions. -
Data Acquisition on a 20MHz Timebase with PCI-6110
I would like to acquire a data point (viz a voltage value) every 50ns (20MHz timebase). Then I would like to write these voltage values and the corresponding time value to a text file and finally plot the voltage values over the time. The data acquisition should be started on a trigger. How can I program this application in LabVIEW 7.1.1? I use a PCI-6110 card for the data acquisition. Thanks for any help!
I would suggest you look at the shipping examples. Open the Example Finder and from the browse tab, select Hardware Input and Output>DAQmx, Analog Measurements>Voltage. Start with one of the simpler examples such as Cont Acq&Graph Voltage-Int Clk. You can also try the DAQ Assistant. Also, saving data to a text file can be pretty slow and will be a problem trying to maintain high acquisition rates. If you acquire data for a finite amount of time, you'll probably want to save the data once it's all been acquired and not real-time. You can use any number of methods for this. The Write LabVIEW Measurements File can be used to save an array of waveforms that you've captured. There are other shipping examples for saving real-time in a binary format. There are other examples at the NI Developer Zone.
-
DAQmx: Digital - Continuous Output.vi example with PCI-6519 (error -200077)
Bonjour everyone,
Main goal :
I want to use 1 digital output of the PCI-6519 harware to make a staked light indicator blink when user is needed to operate the test station.
What I am trying:
I open the labview 2013 wxample "DAQmx: Digital - Continuous Output.vi" to learn how I could use a DAQmx task to perform this blink instead of using a dynamic call of a VI changing the output in 'while loop'.
The example states that my hardware should be able to run it but I always get an error -200077 right at the beginning with the DAQmx Timing.vi mentionning that my PORT2, line 0 does not support the 'Sample Clock' property which is hard coded in the example. I can't find a different property that this example will accept to try to change the status of my digital output on a time basis. Does the PCI-6519 device support timing for a digital output or not?
If anyone has a better or simplier idea to achieve such a simple goal, feel free to suggest. I am using DAQmx for the first time and I don't know much about what my options are.
ThanksHi Nienscecco,
Unfortunately PCI-6519 doesn't support HW timing, I've just tried with a simulate PCI-6519 device and I confirm you that you must specify an external clock in order to use this example.
Do you have some kind of frequency generator to provide it ? Or maybe another NI board with embedded counters in order to build it ?
Thanks in advance for your answers.
Mathieu_T
Certified LabVIEW Developer
Certified TestStand Developer
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
LabVIEW Tour
Journées Techniques dans 10 villes en France, du 4 au 20 novembre 2014 -
Minimum sample rate for 10KHz square wave with MIO
Need to display a 10KHz square wave input to a 16E MIO. Presently sampling 1 channel at 400KS/s. Gives me 2.5uS/sample. Even at 800KS/s-same thing. How come I can't get a decent picture of the waveform. Presently I see a ramp up-down akin to an RC time constant. At 1KHz I get a decent waveform. I'm wondering if I have something set wrong in my program. Did I miss something in determining the proper sample rate?
Hi Steve,
Are you sure you are sampling at 400 and 800 KS/s?
I thought those boards only go up to about 100KS/s.
(show your point on your plot. Are you getting 40 samples per period?)
If you really are sampling that fast, then you have partially answered your own question. There is a small capacitance at teh input to the board. A high impeadance source will combine the input capacitance of the board to give you the charge ramp you mentioned. Only solution to this situation is ussing a low impeadance output buffer between your signal source and the AI.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Maybe you are looking for
-
F.13 Automatic Clearing of customers subject to EWT
Hi All Customer is subjected to withholding tax (in our case TCS). We have received down payment and appropriate amount of TCS (configured as EWT) was deducted. Now an invoice is generated for an equal amount which is appearing in Customer amount (i.
-
I have a new special ledger Z2 setup in 2012.02.01, before that some accounting document are created but not posting to this ledger Z2. now when I transfer old document to Z2, it report error: This document was not posted to any ledger because of cus
-
How can I know or list all methods of a class?
-
Adobe premier pro not working on w530
i have w530 and adobe premier pro not working any body can help i increased the ram to 32 gb but still not working
-
I am planning to delete the CBS (*D and *C) of a particular track. As I am getting multiple password/id errors when deploying to the runtime systems According to some research/readings that I have done, the CBS can be regenerated by resaving the Trac