How to trigger data recording to a text file for multiple channels for a certain voltage threshold?
I am working with 6 channels, from each of which I am obtaining voltage values ranging from 0.6-6 V. I am using the DAQ Assistant to acquire and write the data to a text file. However, I only want the data to be written to the text file when the difference in voltage (DeltaV) from one data point to another is greater than or equal to 0.04 V. I am acquiring the data at a sampling rate of 64 Hz. Any ideas on how to accomplish this? I have attached my current VI.
Attachments:
Data Triggering.vi 116 KB
Faizah wrote:
I am obtaining voltage values ranging from 0.6-6 V.
I only want the data to be written to the text file when the difference in voltage (DeltaV) from one data point to another is greater than or equal to 0.04 V.
Your code does not do what you describe above..
I just want to make sure I understand your request...
Let's say you have the following signal:
0.00
0.01
0.00
0.03
0.02
0.01
0.03
0.04
0.07
0.05
0.08
0.03 < delta greater than 0.04, so start recording
0.11
0.21
0.45
0.93
2.87
5.85
5.86 < delta less than 0.04, so stop recording
5.87
5.89
6.00 < delta greater than 0.04, so start recording
5.85
5.86 < delta less than 0.04, so stop recording
etc..
Is the above what you are describing?
Right now, your code does this:
0.00
0.01
0.00
0.03
0.02
0.01
0.03
0.04
0.07
0.05
0.08
0.03
0.11
0.21
0.45
0.93
2.87 < threshold greater than 1 so reset timer
5.85 < threshold greater than 1 so reset timer
5.86 < threshold greater than 1 so reset timer
5.87 < threshold greater than 1 so reset timer
5.89 < threshold greater than 1 so reset timer
6.00 < threshold greater than 1 so reset timer
5.85 < threshold greater than 1 so reset timer
5.86 < threshold greater than 1 so reset timer
4.35 < threshold greater than 1 so reset timer
2.21 < threshold greater than 1 so reset timer
1.09 < threshold greater than 1 so reset timer
0.98
However, you did not provide a set start time to the Elapse Time (I never use Express VI's so I'm not sure what will happen..) However, something does not appear correct with the logic. I'd have to check.
Similar Messages
-
How to load date and time from text file to oracle table through sqlloader
hi friends
i need you to show me what i miss to load date and time from text file to oracle table through sqlloader
this is my data in this path (c:\external\my_data.txt)
7369,SMITH,17-NOV-81,09:14:04,CLERK,20
7499,ALLEN,01-MAY-81,17:06:08,SALESMAN,30
7521,WARD,09-JUN-81,17:06:30,SALESMAN,30
7566,JONES,02-APR-81,09:24:10,MANAGER,20
7654,MARTIN,28-SEP-81,17:24:10,SALESMAN,30my table in database emp2
create table emp2 (empno number,
ename varchar2(20),
hiredate date,
etime date,
ejob varchar2(20),
deptno number);the control file code in this path (c:\external\ctrl.ctl)
load data
infile 'C:\external\my_data.txt'
into table emp2
fields terminated by ','
(empno, ename, hiredate, etime, ejob, deptno)this is the error :
C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Commit point reached - logical record count 5
C:\>any help i greatly appreciated
thanks
Edited by: user10947262 on May 31, 2010 9:47 AMload data
infile 'C:\external\my_data.txt'
into table emp2
fields terminated by ','
(empno, ename, hiredate, etime, ejob, deptno)Try
load data
infile 'C:\external\my_data.txt'
into table emp2
fields terminated by ','
(empno, ename, hiredate, etime "to_date(:etime,'hh24:mi:ss')", ejob, deptno)
this is the error :
C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Commit point reached - logical record count 5
C:\>
That's not an error, you can see errors within log and bad files. -
How to read some records from a text file into java(not all records)
hello,
how to read text files into java. i need only few records from the text file not all records at a time.
If any one knows plz reply me
my id is [email protected]this snipet reads a text file line by line from line 1 to 3
try {
FileReader fr = new FileReader(directory);
BufferedReader br = new BufferedReader(fr);
int counter = 0;
while ((dbconn = br.readLine()) != null) {
switch(counter){
case 0:
status = dbconn;
break;
case 1:
userName = dbconn;
break;
case 2:
apword = dbconn;
break;
counter++;
br.close();
}catch(IOException e){
} -
Mail Adapter: How to send data as a simple text file attachment?
Hi All
I have a proxy to file scenario, where i write data to a text file.
Now, i need to have a second receiver. I have to send an email, with the above file as an attachment, to this receiver.
How can i do this?
How can i send the data as a text file attachment to the receiver?
Many Thanks
ChandraHi,
To send the message to the second receiver you need to have:
1) Necessary mail message format (can download from service marketplace)
2) Receiver mail communication channel.
3) Create the necessary Configuration Objects .... Receiver Determination, Interface Determination, Receiver Agreement.
3) You can do a XSLT mapping (if required)....if no complex logic is needed then you can do a simple Message mapping.
4) In the receiver CC make sure that you check the Adapter Specific Message Attribute checkbox.
For more info you can refer my answer in this thread:
Re: xml in mail
Also refer the blog:
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Regards,
Abhishek. -
How to export data in to a Text File
Hi,
Can anyone provide any guidance of exporting data in an Advanced Table or data of a VO in to a Text File instead of CSV file.
ThanksExporting 5 mil records is going to require lot of memory and even if you implement, the users are not going to like it.
May be, you can implement a 'submit' button and when the user clicks submit a concurrent program. This concurrent program will generate the output file.
You can do other fancy things like displaying the status and to download the file in OAF itself.
HTH
Srini -
I have an InDesign tagged text file I've translated from .xml. I need to automate the following steps:
1 - access specific InDesign template (eg. ABC_template.ind)
2 - import tagged text file into InDesign
3 - autoflow text to END of document (normally around 3-5 pages)
4 - save document as either .ps or .pdf file
5 - where the input file stub name matches the output stub name (eg., OrigName.txt outputs as OrigName.pdf).
I would like to completely automate this whole process using JavaScript (because I don't know anyone that knows AppleScript). I've automated the first part using a perl script. I've been trying to find sample snipits of JavaScript that would do one or more of the items listed above, but am having a hard time finding what I need.
Please, I'm desperate!! Can any of you InDesign scripting guru's out there help me??
Thanks in advance!!
LindaDHi Linda,
I might be able to help you out. You can contact me by email (click on my user name for the address), or if you post your email here. -
How to place outbound files to multiple channels for a single agreement
Hi All,
We need to send single HIPAA 834 document to two different locations(channels) of the same TP. We have single HIPAA 834 agreement with one TP and one channel. is there a way to add two TP outbound channels for a single TP/agreement?
Thanks,
KatharHi Kathar,
is there a way to add two TP outbound channels for a single TP/agreement?One TP may have multiple channels but one agreement can have only one associated channel. You may consider using the broadcast feature of Oracle B2B here.
You may read about this feature here -
https://blogs.oracle.com/oracleb2bgurus/entry/broadcast_feature_in_oracle_as
Please note that this blog was written for 10g but concept and implementation is same in 11g.
You need to create two TP profiles for same TP (you should use different name/identifiers for both) and then make them part of same group by adding identifier "Grouping" in both the profiles with same value. From middleware pass the header "Grouping:<value>" in action name or event name header. At runtime B2B will send the same message to both TP profiles.
Regards,
Anuj -
How retieve ste data records(I did not export) in Site manager
corrupted my vista (files exist not lost) how retieve ste data records(I did not export) in Site manager for use in a new installation... was dw cs4 now dw cs6...
Unless you previously exported all your site definition setting and saved them to a safe place (i.e. an external drive, local or remote site folder), you must manually recreate them in CS6 via Site > Manage Sites > New...
Nancy O. -
Download data to Fixed Length Text File
Can anyone share the sample code on how to download data into fixed length text file and place the file in the server directory?
One way i would advice is to declare a text variable and move values using offset.
Eg:
move: <struc>-fld1 to l_text(8),
<struc>-fld2 to l_text+8(3),
<struc>-fld3 to l_text+11(15).
transfer l_text to <file>.
Try this approch and see the result.
Kind Regards
Eswar -
SQL Loader-How to insert -ve & date values from flat text file into coloumn
Question: How to insert -ve & date values from flat text file into coloumns in a table.
Explanation: In the text file, the negative values are like -10201.30 or 15317.10- and the date values are as DDMMYYYY (like 10052001 for 10th May, 2002).
How to load such values in columns of database using SQL Loader?
Please guide.Question: How to insert -ve & date values from flat text file into coloumns in a table.
Explanation: In the text file, the negative values are like -10201.30 or 15317.10- and the date values are as DDMMYYYY (like 10052001 for 10th May, 2002).
How to load such values in columns of database using SQL Loader?
Please guide. Try something like
someDate DATE 'DDMMYYYY'
someNumber1 "TO_NUMBER ('s99999999.00')"
someNumber2 "TO_NUMBER ('99999999.00s')"Good luck,
Eric Kamradt -
HOW TO WRITE AND READ FROM A TEXT FILE???
How can I read from a text file and then display the contents in a JTextArea??????
Also how can I write the contents of a JTextArea to a text file.
Extra Question::::::: Is it possible to write records to a text file. If you have not idea what I am talking about then ignore it.
Manny thanks,
your help is much appreciated though you don't know it!Do 3 things.
-- Look through the API at the java.io package.
-- Search previous posts for "read write from text file"
-- Search java.sun.com for information on the java.io package.
That should clear just about everything up. If you have more specific problems, feel free to come back and post them. -
How to read the content of a text file (by character)?
Guys,
Good day!
I'm back just need again your help. Is there anyone knows how to read the content of a text file not by line but by character.
Please help me. Thank you so much in advance.
Jojohttp://java.sun.com/javase/6/docs/api/index.html
package java.io
InputStream.read(): int
Reads the next byte of data from the input stream.
Implementation:
InputStreamReader
An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted. -
How to get summary columns in delimited text file
How to get summary columns in delimited text file
I am trying to generate a delimited text file output with delimited_hdr = no.The report is a Group above report with summary columns at the bottom.In the text file the headers are not getting repeated & thats ok.The problem is the summary data is getting repeated for each row of data.Is there a way where i will get all the data & summary data will get displayed only once.I have to import the delimited text file in excel spreadsheet.Sorry there were a typos :
When I used desformat=DELIMITEDDATA with desttype=FILE, I get error "unknown printer driver DELIMITEDDATA". When you look for help, DELIMITED is not even listed as one of the values for DESTFORMAT. But if you scroll down and look for DELIMITER it says , this works only in conjuction with DESTFORMAT=DELIMITED !!!!!!??!! This is in 9i.
Has this thing worked for anybody ? Can anyone please tell if they were able to suppress the sumary columns or the parent columns of a master-detail data for that matter ? -
How to export data from a spread sheet which has multiple work sheets?
How to export data from a spread sheet which has multiple work sheets to a single text file with fixed length fields?
Hello s1,
saving them as CSV will not give a fixed legth output but, as the naming says, a Character Separated Value file.
Regards
Marcus -
How to check the content in a text file line
hi all,
i had the following problem:
There is a text file with multiple lines of data in it
The data comprises of characters, numbers and symbols
In this file, any line can be commented (till the end) by using symbol ';'(semi-colon)
Now i have to find the number of occurences of a symbol '$' in this data, such that
it should not exist in a commented line
One more limitation is that ';' (semi-colon) could occur at any position in a line, i.e., if this occured in the middle of the line, then all the following data in the line is taken to be as commented one and we have to skip it and move to next line.
Plz do help.
Regards,
santosh
Regards,
santoshHi santosh,
just a guess this is what you need.
Greets, Dave
Message Edited by daveTW on 09-15-2006 09:59 AM
Greets, Dave
Attachments:
search & count $.vi 13 KB
search & count $.png 10 KB
Maybe you are looking for
-
How to Change Report Font Size in 11i
Hi, Please let me know how to change font size of an existing report in Quick steps. Basically the printed report font size is too small. We change the font size from the printer but still it dose not change. We have 11i on Unix Server and a dot matr
-
hi all does anybody know how can i map between pixels and cm? taking into consideration i don't have the real picture's dimensions how can i tell the cm distance between 2 points on that picture but ofcourse i know the pixel distance between them? th
-
Files recieved via Bluetooth in message folder
Hi, I've recieved a couple of files via bluetooth and they sit in my messages folder - they are ms objects such as powerpoint & visio. I thought I'd be able to viw them or save them using my PC and Nokia Pc Suite - however I can't see how to havigate
-
Efficiency of data type for surrogate keys
Hi all In my fact table I have a foreign key of data type NUMBER and in my dimension I have a primary key of type NUMBER(12,0). In my understanding, these two columns are stored in the same way and there will be NO conversion that needs to take place
-
Invalid statement when accessing JavaBean in CQL query
Hello everybody, I'm trying to access a property of a nested JavaBean, but I always get an invalid statement error. It's telling me, that there could be a problem with the member access on the complex type. This is what the query looks like: Select m