Measure pulse width and generate pulse depends on the width
Hi,
i have a serias of pulses ... 600 micro,30 micro,30 micro (around 10 times) ........ nothing for 1 mili second ..
so i need to generate a pulse after the first pulse arrives ... (its width around 600microSecond)
1. use the first counter to measure the pulses ...
2. if arrived pulse ... 500microSecond<the pulse width<700microSeconds .... then generate pulse with second timer ....
the problem is that i dont want to use the while loop inside the labview ...
can i programm the counters to make the width calculation and if the width is bigger to generate trigger to the second counter .... ?
the hardware is 6014 sample card ....
thanks
gena
(see attached)
Attachments:
F0087TEK.JPG 27 KB
Hi Gena,
I am assuming you are using the DAQmx drivers in LabVIEW for your
PCI-6014. Avoiding a While loop may be difficult if you need to
perform this measurement many times and you might not know when the
signal is going to begin. Without a While loop, you'll have to
set up your timeout period long enough so the pulses will begin before
your VI stops.
With this in mind, you may want to look at some of the shipping
examples with the DAQmx driver. You can find these in LabVIEW's
Help menu by going to Find Examples. For measuring the pulse
width, browse the folders in the Example finder by going to Hardware
Input and Output>>DAQmx>>Counter Measurements>>Period
or Pulse Width. In this folder, there is the Meas Pulse Width.vi,
which measures the pulse width once and stops. You should be able
to take the pulse width measurement you get from here and check to see
if it's in your range, then output a pulse on the other counter if it
is in the range. The pulse output examples can be found in
Hardware Input and Output>>DAQmx>>Generating Digital
Pulses>>Gen Dig Pulse.vi.
Thaison V
Applications Engineer
National Instruments
Similar Messages
-
Generating number depending on the condition
Dear All,
I have table with following structure.
formno number(5)
name Varchar2(100)
centreno number(2)
rollno Varchar2(10)
I want to generate rollno depending on the following condition.
1. Roll number should be generated based on the centreno
2. Roll number should be generated based on the alphabets but not in a sqeuence.
For eg.
my data is like
form no name centreno rollno
200 A1 01 1
206 A2 01 4
502 A3 02 6
234 A4 03 10
400 B1 01 2
501 B2 02 7
788 C1 01 3
100 C2 02 8
343 C3 01 5
130 C4 02 9
232 C5 03 11
i.e. first I need to sort names alphabetically by centreno. But then I need generate number in a sequence that first A, B, C...Z will be generated. Then it starts again from A, B, C...Z for that centre. Then it will run same process for other centres.
Any ideas how to do this?
Regards
Trusha
Edited by: trusha on Oct 10, 2008 3:53 PMSomething like .. (for given sample data)
SQL> select * from test;
C1 C2 C3
200 A1 01
206 A2 01
502 A3 02
234 A4 03
400 B1 01
501 B2 02
788 C1 01
100 C2 02
343 C3 01
130 C4 02
232 C5 03
11 rows selected.
SQL> select c1,c2,c3,
2 row_number() over(order by c3,rn,c2) regno
3 from(
4 select c1,c2,c3,
5 row_number() over(partition by c3,substr(c2,1,1) order by c2) rn
6 from test)
7 order by c2;
C1 C2 C3 REGNO
200 A1 01 1
206 A2 01 4
502 A3 02 6
234 A4 03 10
400 B1 01 2
501 B2 02 7
788 C1 01 3
100 C2 02 8
343 C3 01 5
130 C4 02 9
232 C5 03 11
11 rows selected.
Edited by: jeneesh on Oct 10, 2008 4:51 PM
corrected -
How can we trape the Keys Pressed on the Keyboard and do action depending on the keys
I want to know how we can capture the keys pressed on the keyboard by the user and do necessary action depending on the key pressed by the user....
For example.... If user press Alt+q the form should go in the Enter Query Mode.
Can anyone tell me how i can do this in Form 6i....
Please Help me out from this problem...
Thanks in Advance
ShanCan somebody point me to what I need to use to
intercept all the 'keys' for an application.
At the moment I have set Focus to parts of the
application when the Mouse is over it, and then get
the Keys with a KeyListener.
Is there a way to get the keys, as long as the Java
app is active.
- Its an image display program, and I want to use keys
for - next image , zooom etc etc.
If soemone could just point me to the right part of
the API to look in?java.awt.Toolkit.addAWTEventListener()
then use the mask defined in AWTEvent.KEY_EVENT_MASK to listen to all the events.
Steve -
Hello All
I have transfer supported measuring points. Whenever I create a measurement document for a measuring point, the measurement values are transferred to all its subsequest measuring points havin transfer supported check. The target measurement points gets readings from source measuing point and source document and creats a new document for this measuring point, . The measurement reading is calculated by adding the difference (as per the difference in the source document) to the last counter reading and creates the new Total reading. Can some one xplain why the system adds the difference value and calculate a total reading.
This approach leads to discrepancy between Source and Target measurment document reading as the reading of both the source and target can be different on same time stamp and also I observed that the Target reading can be greater than the Source reading which can never be true or logically exceptable.
How can we solve this? Is this right and standard approach.Please provide your views and solutions.
Regards
Murad.Hi Murad Ahmed,
Examine these 2 cases.
Case1
A Measuring point (Counter) created for recording Distance Traveled by a Car.
Case2
A measuring point (again a Counter), used to record the Fuel consumption in the Car.
In Case1, you have a meter fitted in the Car itself, which gives the Total Distance traveled. This reading you record in the Counter Reading in IK12. The Difference field is automatically updated.
In Case2, you read the amount of Fuel filled in the Car, from the Meter at the Gas Station, This reading you should record in the Difference Reading in IK12. Then the Counter Reading is automatically updated.
I hope you understand, in Case1, you can not know the Difference and in Case2 You can not have the Total readings.
About other doubts regarding Transfer of Measuring points, hope all the Measuring point invovled in the process have the same characteristics used.
The following document might be able to help you further.
Measurement Reading Transfer – A useful functionality
Jogeswara Rao K -
Preview and Generate view not displaying the same as design view
RoboHelp HTML Ver 8.0.2.208.
Hi all,
I have a topic that will not generate or preview what is displayed in the design view.
The topic is a table that uses a different image as the background for each cell (from the CSS).
The background images display fine in design view but will not display when previewed or generated. Everything else is displayed but not the backgrounds.
Any ideas.
Thanks
WowroninYou have this -
</head>
<script>
<!--
function msgopen(url, name, w, h)
w += 32;
h += 96;
var win = window.open(url,
name,
'width=' + w + ', height=' + h + ', ' +
'location=no, menubar=no, ' +
'status=no, toolbar=no, scrollbars=yes, resizable=yes,screenX=2,screenY=2,left=100,top=100,');
win.resizeTo(w, h);
win.focus();
// -->
</script>
<style type="text/css">
#preloader {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #fefefe;
z-index: 99;
height: 100%;
#status {
width: 200px;
height: 200px;
position: absolute;
left: 50%;
top: 50%;
background-image: url(ajax-loader.gif);
background-repeat: no-repeat;
background-position: center;
margin: -100px 0 0 -100px;
</style>
<body>
In other words, you have a script block AND a CSS block between </head> and <body>. That's invalid code. Move it to where it belongs inside the <head> region. You could have found this in an instant by checking the page here - http://validator.w3.org. -
HELP!! lost my iphone and my life depends on the info it had
i have lost my iphone 5s and it contains extremely confidential information i cannot emphasize more on this point but my life my family's life depends on it and i had my 'find my iphone' turned on and i have also erased it completely from icloud.com but it said that the iphone will be erased the next time it connects to the internet. i am very helpless at this point and my wife my kids everyone's life is on the line if anyone out there can please get apples attention somehow and please find a way to completely wipe the phone without it having to connect to the internet it would mean everything to me. i have the imei no. of the phone and my icloud email is ****** please help me ...
<Personal Information Edited by Host>There is nothing that Apple can do about this. The only way to locate and/or wipe the phone is via Find My iPhone and you have done that. In this last post you state, "give it away", are you referring to giving the thief the passcode? If so, then your data has been compromised. Until the device is connected to the Internet to execute the wipe command, the data is available for the thief to view. Nothing anyone here can say or do can change that. You need to immediately change the passwords for all accounts that were on the phone to help prevent them from accessing them. Report the theft to law enforcement.
-
The output is XCOFF64, along with other built libraries stored in big format archive (not shared object). Is there something wrong with the compile options or am I missing an option that Tuxedo needs to pass onto xlc for linking?
Archive options are ar -v -r
Build options: -r -q64 (includes, defines)
All else standard buildclient option listings.
Some more than likely to be asked for information:
exec(): 0509-036 Cannot load program aftct.exe because of the following errors:
0509-102 The size of the auxiliary header is invalid.
0509-194 Examine file headers with the 'dump -ohv' command.
----- dump -ohv output
***Object Module Header***
# Sections Symbol Ptr # Symbols Opt Hdr Len Flags
3 0x000987a2 4060 0 0x0000
Flags=( DEP_SYSTEM )
Timestamp = "Mar 25 18:57:22 2015"
Magic = 0x1f7 (64-bit XCOFF)
***Section Header Information***
Section Header for .text
PHYaddr VTRaddr SCTsiz RAWptr RELptr
0x100000138 0x100000138 0x00068ec4 0x00000138 0x00072598
LN#ptr #RELent #LINent Flags
0x00000000 0x00002423 0x00000000 0x00000020
Section Header for .data
PHYaddr VTRaddr SCTsiz RAWptr RELptr
0x110000ffc 0x110000ffc 0x0000959c 0x00068ffc 0x00091f82
LN#ptr #RELent #LINent Flags
0x00000000 0x00000770 0x00000000 0x00000040
Section Header for .bss
PHYaddr VTRaddr SCTsiz RAWptr RELptr
0x11000a598 0x11000a598 0x000266c0 0x00000000 0x00000000
LN#ptr #RELent #LINent Flags
0x00000000 0x00000000 0x00000000 0x00000080
---- some truss output
getgidx(2) = 201
getgidx(1) = 201
__loadx(0x01480080, 0x2FF21660, 0x00000A50, 0x2FF221D0, 0x2FF22F37) = 0xD054C128
access("/usr/lib/nls/msg/en_US/execerr.cat", 0) = 0
_getpid() = 3080398
kopen("/usr/lib/nls/msg/en_US/execerr.cat", O_RDONLY) = 3
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kfcntl(3, F_SETFD, 0x00000001) = 0
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kread(3, "\0\001 ù\001\001 I S O 8".., 4096) = 4096
lseek(3, 0, 1) = 4096
lseek(3, 0, 1) = 4096
lseek(3, 0, 1) = 4096
_getpid() = 3080398
lseek(3, 0, 1) = 4096
exec(): 0509-036 Cannot load program kwrite(2, " e x e c ( ) : 0 5 0 9".., 37) = 37Hi,
Can you post the commands you were using to build your client? Normally that library should be included by default if using buildclient.
Regards,
Todd Little
Oracle Tuxedo Chief Architect
PS Glad you found a solution! -
Unable to measure pulse time, using Counter pulse time 1samp.vi
Hi
I am using pci6624 board to measure pulse time . I have selected counter 0 to measure pulse time & connect the signal to gate0+ & gate0-.
When i used Counter pulse time 1samp.vi to read the pulse time , i am not able to read the value and i am getting following error msg . If i used Counter DBL 1samp.vi i am getting out put.
Please help me
Attachments:
pulse_time_measurment.vi 11 KB
Counter_errors.JPG 44 KBHi,
You can try changing the mode to counter -> single sample -> DBL in Daqmx read function
You can also try this example 'Meas Pulse Width-Buffered-Cont.vi' or related examples from NI Example Finder.
Cheers,
Sahil Gupta
NI India -
Simultaneously read more than one input and generate output
Is it possible To simultaneously read more than one input and generate outputs depending on these inputs? If this isn't possible what is the best way to go about making some sort of timed loop that will read an input, read the next input, decide whether or not to output and so on. Hope someone can help. Thanks.Message Edited by Esmith13 on 05-25-2005 01:36 PM
Hi,
You should look at the synchronized examples for analog input and output that can be found in the example finder under:
Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Synchronization>>Multi-Function
These will get you started to being able to handle multiple tasks at the same time.
I hope this helps. Have a Great Day!
George -
How to?? show smartform and generate pdf at the same time
hi experts,
how can i show the smartform and generate a pdf at the same time?? i have a control parameter gtotf in X and i generate the pdf but i want to show the smartform at the same time??
thx in advanceHi...
call fm <sf function name>
exporting...
importing..
tables..
now in the outputparam set the getotf as 'X'.
call the same FM again and get the otf data.
call fm <sf fm name> -
Accessing connection from java and generated code
In JDeveloper 10.1.2.x I set up a connection and selected a stored procedure and generated java to call the stored proc. All good.
Now, in a web service application I want to call the method in that class that was generated.
So, the generated class has setConnectionContext(), getConnectionContext(), etc methods. I don't know how to use them. What is a ConnectionContext?
How do I provide the database connection information and call the method in the generated code that I need?
My Oracle AS server has a datasource configured that is the one I would like to use, but I don't know how to 'access' it via java in the context of this generated class.
I am deploying to Oracle AS 10.1.2,
thanksHi, well CSV is not currently an Excel file, it is a Comma Separated Values
file which can be read through Excel.
Now, if you wish to remove the header, I would purpose that you develop an
application that reads the CSV file, as it is mere text, and that it also reads
another file (lets call it confirguration.txt) in which you determine the pattern
you want to remove, then you just read your report and if a string line
matches the pattern you defined in the configuration.txt file, then you simply
erase it.
And if you keep interested in reading real Excel files (xls), I would
recommend you use POI-HSSF API from Apache.org
http://jakarta.apache.org/poi/hssf/index.html
Hope this helps, cya around. -
Invertory damaged and generated scrap against it.
Dear Experts,
Pls guide me on below.
My stock is damaged in store and converted in scrap and i will do the scrap sale for the same.
MM consultant will reduce the inventory let say 10 rs is cost and generate scrap inventory for the same let say 4 rs.becoz damage stock is my scrap and have scrap inventory cost.
Then i will do the sale for the same throgh PSG as object and transfer cost and revenue for the same to copa.
MM consultant want to track or link 10 rs and 4 rs in order to capture how many cost i reduced stock and generated scrap for the same.The objective of link are to track loss on the above example (6 rs loss).
How to do costing for the same.Becoz when inventory are reduced or scrap qty are generarted against the same. need some cost object for the same. let say cost center.they how to do the treatment for the same.
regards
RRDear Ajay,
Thanks for your reply....
I want to reduce the stock with full value rs 10 and create GR for another scrap material code with rs 4.so i will use two material code.
All this entry will post on cost center and statistical internal order. so that i will get -6 loss on internal order and 6 rs loss on cost center.
Then i will do sales order for scrap material code with psg as real object and same statistical interal order.
So i will book revenue 5rs and cost 4rs for the same.
will it be possible?
But how my internal order balance look like in above scenerio.
rs 10 consumption fg stock
rs 4 scrap stock cost
then
rs 5 revenue and rs 4 cost on internal order at the time of same in same statistical internal order.
and second point is m posting rs 10 and rs 4 on cost center. what will happen with this cost.from where i will charge.
regards
RR -
# of tab canvases dependant on the # of groups that come back from a query
Hi,
I'm trying to create a dynamic creation of blocks, and tab canvases dependant on the number of groups that come back from a query. If 4 groups come back then I desire 4 tabs with the appropriate data in each tab.Basically Forms is not intended to build screens programmatically but it is possible to kluj it. Here's what you could do.
Create a form with (say) four tabbed canvases, enough to fill the display. Each canvas has its own block. Then you have video style buttons - Fwd, Bk, FFwd FBk - and just scroll the blocks across when the user clicks the button.
Did you enjoy the use of the word "just"? Sounds easy, doesn't it? In practice, what you need is an array that ties the filter criteria to the canvas number. Then you shuffle the canvases by applying the appropriate WHERE clause using SET_BLOCK_PROPERTY and then executing a query.
The problems with this are obvious and the same as any dynamically generated UI. It will perform badly (each navigation to a canvas will trigger a fresh query, plus there's the overhead of managing the stack). Also it is fragile: there's lots that can go wrong.
So you need to ask yourself what it is you are hoping to achieve. Can you deliver the same business function some other way? As another poster has pointed out, this is just a glorified master-detail form - the filter criterion being the master. Building this as a classic two block master-detail Form is more straightforward and more robust.
Regards, APC -
Revision: 14047
Revision: 14047
Author: [email protected]
Date: 2010-02-08 14:58:51 -0800 (Mon, 08 Feb 2010)
Log Message:
Modifying framework projects to not depend on the FLEX_SDK linked resource. Instead, we use the $ token (relative path to frameworks/) to point directly to the required swcs in the libs folder. This greatly simplifies the files, since there is now no need to exclude swcs from the SDK.
Also, modified the projects such that the spark and framework projects may be imported together to FB without any other projects by having them depend on the swcs in the libs folder rather than the projects. However, other projects that depend on spark and framework will depend on the projects still. Thus, you must import spark and framework projects before importing the others.
A developer working on the textlayout and osmf projects will have to replace the swcs on the build path in the spark/framework projects with their respective projects.
No code changes.
QE notes: N/A
Doc notes: N/A
Bugs: None
Reviewer: Pete
Tests run: checkintests
Is noteworthy for integration: No
Modified Paths:
flex/sdk/trunk/frameworks/projects/airframework/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/airframework/.flexLibProperties
flex/sdk/trunk/frameworks/projects/airspark/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/airspark/.flexLibProperties
flex/sdk/trunk/frameworks/projects/flex/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/flex/.flexLibProperties
flex/sdk/trunk/frameworks/projects/framework/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/framework/.flexLibProperties
flex/sdk/trunk/frameworks/projects/osmf/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/osmf/.flexLibProperties
flex/sdk/trunk/frameworks/projects/rpc/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/rpc/.flexLibProperties
flex/sdk/trunk/frameworks/projects/spark/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/spark/.flexLibProperties
flex/sdk/trunk/frameworks/projects/sparkskins/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/sparkskins/.flexLibProperties
flex/sdk/trunk/frameworks/projects/textLayout/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/textLayout/.flexLibProperties
flex/sdk/trunk/frameworks/projects/wireframe/.actionScriptProperties
flex/sdk/trunk/frameworks/projects/wireframe/.flexLibProperties -
Do the execution time of the insert command depend upon the no the indexes
hi,
Do the execution time of the insert,update and delete command depend upon the no the indexes created for a table......
Edited by: [email protected] on Mar 4, 2009 3:02 AMsure,..
An index is a structure which contains entries pointing to the actual data in the table.
When you insert a record into a table, the data which should also be indexed is inserted in the index structure. This index data needs to be in a specific place, not just anywhere (as opposed to e.g. a heap table).
So this might lead to an update and insert in the index structure.
This is just to give you an idea. More on the subject in Tom Kyte's Expert Oracle Database Architecture and of course Oracle's documentation.
Maybe you are looking for
-
Documents shift down and to the right when scaled and sent to CUPS server
This problem has been driving me up a wall, and I hope that you all might have some insight. We have a CUPS server setup within our department. This server runs Ubuntu 6.06 and CUPS 1.2.7 with native postscript to a variety of HP printers including C
-
Loading from text file unable to display certain letters such as w and ?
I downloaded a flash template that includes a text file that it uses to load the content. So, I opened the text file and started to make changes to certain text and when I view the changes I noticed that certain letters and characters are not being d
-
Filtering results in an MDX Query
This is the current MDX Query I have WITH MEMBER [Measures].[Prcnt] AS [Measures].[Value]/[Measures].[Fact Client Score Count] SELECT NON EMPTY { [Measures].[Value], [Measures].[Fact Client Score Count], [Measures].[Prcnt] } ON COLUMNS, NON EMPTY [Di
-
How to create a responsive menu using menu module V2
Hi Guys Just wanted to know if there is an article on how to make the module_menu v2 responsive? I don't have a problem making it vertical for mobile phones but I don't know how to change the hover state to click state to expand sub navigation items.
-
Hi all, i will first xplain the situation: i have page1 which sends 3 form data like year , date , name to page2 , in page2 im getting the form date(from page1) and store that data in new variables, In page 2 i have a form there i am using three hidd