Sending a pulse to pin using an output switch
Hello
This is my first program in labview.
I want to use a while loop continually between data for the acquisition of data that displays on an oscilloscope. The output signal must be controlled by a switch (0 when the switch is open) and 1 when the button is pressed.
I put a toggle switch in the while loop and connected the output to data acquisition Manager, but he demonstrated a connection error.
Source type is Boolean.
Type of sink is 64-bit real.
So, how can I convert data from the switch so that it gets feeding the DAQ output?
Thank you.
Soham_S wrote:
When the switch is off, he sends a zero, when turned on, it sends a 1.
You will need to keep DAQmx inside the while loop probably you can use the structure of the event to do this. Also even if you set up the digital output you must select channel instead of multiples (unless you really have multiple channels) then you can connect the switch directly to it.
Tags: NI Software
Similar Questions
-
Specify the end point for the digital using an output circular buffer
When you use DAQmx and a NOR-DAQ for issuance of a digital signal using a circular buffer (buffer Renault). The program works and works, but when the 'DAQmx Stop Task.vi' function is called to end the task, he stops at the output buffering as soon as it is called and does not wait until the buffer pointer reaches the final value in the buffer. I would like that the program to wait until the buffer pointer is on the last value in the buffer, does anyone know how to specify this setting?
If you need to stop on exactly the last sample output you will need a way to trigger the stop in the material. The options available to you will depend on what hardware DAQ, you use, but here are some possibilities on the top of my head:
1. set up a digital output redeclenchables task finished (not all hardware supports). Set up a counter of output to issue a periodic trigger with the necessary synchronization signal such that the end result is a "continuous" digital output without interruption. When you stop your loop, stop the task of counter - digital output ends his generation but the trigger signal will be removed and so it will not continue after that.
2. If you have an unused extra digital output line, add it to your task. This line should exit 0 all except the last sample. Physically, this additional digital line in a wire line PFI and use it to trigger a meter output. Have the output counter generate a single pulse of some long-term (long enough to ensure that the software can respond prematurely). Use the output from the task of counter as a trigger of break for the task of digital output. Do not start the task of the meter until you leave your loop. Do not stop the task of digital output until you have detected in the software that the meter has been triggered.
If you need to stop on approximately the last sample output, you could query the TotalSamplesPerChannelGenerated property after leaving your loop and only stop the task once it reaches a multiple of the size of your circular buffer. This is no guarantee that it stops on the last sample (if you use a device on a bus with a latency higher as USB or Ethernet the non-determinisme would be worse).
Best regards
-
Counter trigger using the output of another counter
Hello
I want to configure my USB-6221 Panel in the next mode
1 Counter0: Generates impulses in continuous mode.
2 Counter1: Fires by the impulse of Counter0 (rising edge) and generates a train of 128 pulses with a certain frequency.
3 DigitalInput: Using the impulses generated by the meter read 128 digital input values
Cnt0: _____|______________|______________|______________|_________
Cnt1: ______|||||||||||| _________|||||||||||| _________|||||||||||| __________|||||||||||| ___
DigIn:___xxxxx___xxxxx___xxxxx___xxxxx___
The problem is: I can't seem to trigger the Cnt1 using the output of Cnt0.
If I connect using the Cnt0InternalOutput: I get the error: this connection is not supported by the Board of Directors
If I connect the trigger for a PFI (e.g. PFI5) I get the error: some resources used Cnt0 (I see no reason why by ok).
I tried for awhile to do in a different way (I completely mixed my vi) but I did not.
If anyone has any suggestions please shear them.
Thank you
Paul
Ignore my previous post.
A mistake is this sample clock: finished sample doesn't seem to work with shutter release in this configuration.
In any case, I found a way to get around and reach my final goal (the object) with a bath other counters and configuration of digital input.
-
How do you create a pulse train finished using a FP-CTR-502?
Recently, I replaced my FP-PG-522 module with a module FP-CTR-502, to achieve higher output frequencies (FP-PG-522 freq to maximum output is 5 kHz, while the FP-CTR-502 output max freq is 16 kHz).
I need to be able to generate a pulse train finished. Has anyone created a pulse train finished using a FP-CTR-502 module front? I started to study the issue, but my ideas so far have been complicated (compared to doing it in a PG module).
Advice on this would be much appreciated.
I can answer this question myself!
The answer is in the * OLD * version (July 2000) the operator of the manual for the FP-CTR-502. For some reason, it has been removed from the version the most recent (June 2003).
See page 11 of this link for more information:
http://www.NI.com/PDF/manuals/322660a.PDF -
I wanted to just kind of get a notice of some people here. I have two main screws the first is a data acquisition system that displays 99 different sensors and which feeds on these data in a table. The second is a real-time processing system that is designed to take the painting and do many calculations. The two output data from screw at the front that I want to see, so I don't want to use just as a Subvi.
Is there a simple way to run two screws, using the output of the data acquisition system to power the processor so that you can easily see the signs before two screws? I had thought to simply copy the code from the processor in real-time in the DAQ VI, but I fear that the VI resulting will be very large and unsightly.
On a side note, I'm more thinking about this? I apologize if this is a stupid question, it has been a long week... aaaand it's Wednesday.
Look at the Architecture of producer/consumer. It will be a good starting point, even if you find that you need to change. When performing data acquisition and processing of tasks in parallel loops, they can both run simultaneously. Both can feed data to the main draw of the VI.
I'd probably use three loops with the third being the user interface only. All that must be displayed to the user is sent to the GUI of the acquisition of data or processing loop loops and commands or entered by users are returned in these loops, probably through queues. The wall of the VI of data acquisition and processing VI are never displayed to the user. Especially the treatment, because it runs on a system in real-time, should avoid synchronization issues that can present a graphical interface.
Lynn
-
Using the output with 6009 or 6216 possible buffer?
Hello
I have a USB6009 and a USB6216. I need to generate a signal by using the analog output and I would use the output buffer. My questions are:
-The USB6009 has an output buffer? I always get an error, but I know from experience that this device is very limited, so I wonder if they have not only an output buffer... (Programs in input buffer are not a problem at all).
-J' took the USB6216 and I tried the example WfmGenUp.c downloaded from somewhere in the area of the developer (sorry I lost the link but fix the code) but I am not all analog output signals and after you press ENTER to stop the program (depending on the show) I get this error message:
NO MORTALS RUN - TIME ERROR: 'WfmGenUp.c', line 113, col 9, id thread 0x0000088C: DAQmxStopTask function: (is-200016 return value [0xfffcf2b0]). Measurements: On-board memory precision passing. Due to the limitations of system and/or the bandwidth of the bus, the driver could not write data to the device fast enough to track the rate of output of the device. Reduce your sampling rate, change the method of transfer of data (from interruptions on DMA), use a product with more on-board memory or reduce the number of programs that your computer runs simultaneously. Task name: _unnamedTask<0> Code of State:-200016
I don't know if the problem is just that the 6216 does not support the output buffering or the other...
-So, if the output control is not supported by 6009 or 6216 what would be the best way to constantly generate signals to 100 s/s?
Thank you very much
Kristel
Hi Ryan,
the USB-6009 case has 150 s/s softwaretimed AO, so you won´t be able to use AO stamped with the module.
The USB-6216 supported in the analog output buffer, just follow the recommendations that the driver gives you,
for example by reducing the sampling frequency, if there is an overflow memory due to the limitations of system and/or the bandwidth of the bus.
Experiment with the parameters and the basic to see in what range of sampling it works.
You can find appropriate examples
ANSI C:
C:\Dokumente und All Anwendungsdaten Users\Dokumente\National Instruments\NI - DAQ\Beispiele\DAQmx C\Analog Out\Generate Voltage\Cont Gen Volt Wfm - Int Clk ANSI
LabWindows CVI:
C:\Dokumente und Users\Dokumente\National Instruments\CVI\samples\DAQmx\Analog Out\Generate Voltage\Cont Gen Volt Wfm - Int Clk Anwendungsdaten All
0> -
When I send pdf files the recipients using aol receive a file "WinMail" they can't open.
When I send pdf files the recipients using aol receive a file "WinMail" they can't open.
I have my mail format HTML the value and we tried also plain text without change.
What email program are you using?
Assuming that Outlook 2010 or Outlook 2007, try the following article:
"When you use Outlook 2010 or Outlook 2007 to send an e-mail message, the recipient of the message sees an attachment called Winmail.dat"
<>http://support.Microsoft.com/kb/958012 >HTH,
JW -
How to send 31MB. WMV file using Outlook Express 6 on Windows XP?
How to send 31MB. WMV file using Outlook Express 6 on Windows XP?
If it is possible please provide step by step procedure.
All attachments add about 33% size thanks to the encoding. This makes your 31MB file around 41 ~ 42 MB. I doubt that your ISP/mail server allows something that big, and of course, I would not be the recipient of a message that size.
Create a YouTube account and put it there. You can make public or private and provide the link to the recipient.
-
phone calls in vista?
In Windows 3.1, I had the ability to send and receive calls by using a modem, it is possible to do it on Vista? If yes how?
The game, February 16, 2012 21:46:49 + 0000, metalfare wrote:
In Windows 3.1, I had the ability to send and receive calls by using a modem, it is possible to do it on Vista? If yes how?
This isn't a problem of version of Windows. Must see with what software
you are running. Yes, if you use a program that has this feature, you
can do.
Ken Blake, Microsoft MVP -
Windpws Mail & Wi - Fi
I just installed a TalkTalk wireless router which seems to have installed correctly. However when I try to send and receive e-mail using Windows Mail, she wants to use a made up connection. How can I use the wireless connection? Thank you very much, Dianthus MJ.
Go to tools | Accounts | Mail | Properties | Connection and check or change the connection properties. You will need to remove the account and then add it again, but try first and also check tools | Options | Connections.
Steve
-
Is it possible to send more than 100 pages using EchoSign?
Is it possible to send more than 100 pages using EchoSign?
Hello
EchoSign Transaction limits: -.
https://www.echosign.Adobe.com/en/support/knowledgebase/EchoSign_Transaction_Limits.html
You will need to contact support to adjust the page boundary.
Thank you
Jat
-
Call stored procedures and using its output parameters in a report
Hello
I have a procedure defined in a package on the database. This procedure returns a number of output parameters. How to call this procedure and use the output parameters in my report?
Thank you, MarkDepends on the level at which the procedure should be called. If its at the State level, call the form in the trigger-REPORT-BEFORE (or AFTER-PARAMFORM) and store the off-values space reserved columns. These you can use anywhere in your report.
-
Sending Email with multiple attachments using packages
Hi all
Version: 10.2.0
I am trying to send mail with multiple attachments using packages.
I tried to use Mail_tools which is in http://www.myoracleportal.com/
But I can send with only one attachment. Are there other options which i it allows to send with multiple attachments.
I have bad do I send attachments Jasper instance < < converted to bytes > >.
Please advice...
TIA,My dear friend,
If you are looking for in this forum - you can get it.
Have you checked the forum?
Anyway,.
Here's the starter for you->
http://forums.Oracle.com/forums/search.jspa?threadID=&q=sending+email+with+multiple+attachments+using+packages++&objid=F75&DateRange=last90days&NumResults=15
Kind regards.
LOULOU.
-
How do switch you between 2 numeric values using a Boolean switch?
Hello
I'm a newbie to labview, so it is perhaps easy to answer.
I would like to perform a calculation which, according to the test unit, will require a different numeric value to use in the Calc.
I tried to use a Boolean switch to choose which constant must be used during runtime mode as well for example or 0.01 or 0.02 will be selected. The idea is to labview so insert the constant selected in the calculation and spit out the answer.
There is only one output on the Boolean toggle switch and not of entry so that I can't work out how to do it. If there were 2 inputs and 1 output it would do the job.
Thank you
Andy
Try the joint. I have provided two methods.
-
HP pavilion dm4: removing the battery / output switch problem
MY hp dm4 Clubhouse has a switch relese battery does not move and so I can't remove the battery.
What can I do to take out the battery?
I was able to remove my battery, even if the trigger will not move
I have read the documents under the next heading
"Laptop battery seems to be stuck.
He pointed out that my problem was very common
BATTERY REMOVAL PROCEDURE
As suggested-
I inserted a piece of thin stiff plastic
(for example on the size of a credit card but a little thinner)
in the crack between the battery and the output switch
I pushed the upper part of the plastic down
and then I pushed up in the direction of the battery
up until the crack of batttery widened to the point where I could use
my nails in the battery of crack to pull the battery.
I don't have to much force to make
The angled battery to easily
BATTERY INSERTION PROCEDURE
As suggested-
To avoid the problem of gel battery switch
Move the latch of the battery in the middle of its sliding range
When reinserting the battery first tilting the battery
so that the side of the battery to the side of the computer case
is first inserted into the battery compartment
Then push down the other side of the battery in its compartment
in the end, release the battery button while he spingngs to its normal resting position.
I hope that this explanation is useful
Maybe you are looking for
-
Create a message put backups in _Bulk drafts folder while typing
While creating a new message, copy of message are placed in a Local folder at the rate of about 1 copy every 2 minutes while I'm typing. Each copy is different because it's a picture of what I had typed. This appeared about two improvements but there
-
After updated the Marshmallow, Motorola phones will receive monthly security updates?
-
Disable the single column of Table
Hi all It's perhaps something very stupid to ask. Would have a Table control in which two first column will not be editable by the user and remaining user. How can I go about disabling the two columns of the table control? Thanks in advance.
-
Windows cannot install the USB 2.0 drivers
None does not work when I plugged my USB a USB device. I looked in the management of the computer and the USB (USB 2.0 - CRW) mass storage device was a triangle with an exclamation point. I tried to uninstall, and then reinstall so it would work if a
-
New Vista 64 bit, Office 2003 crashing Word
I have a new laptop with Windows Vista Home Premium. I had dropped the old laptop XP one too many times :) I installed Office 2003. Excel and Access have worked without any problem, but a problem with the word which seems to begin from Outlook. Wo