How to continuous​ly do AOAI and buffer the data for later use?
Is there a way to do simultaneous AI and AO and keep the data in the buffer until I am finished with reading, then read the buffer and save the data to disc. I want to acquire 1000 scans on up to 10 chanels at 10 000 Scans/s, while generating one output signal.
I have seen plenty of continuous AIAO examples, but all they do is show the data. I don't mind not viewing the data, all I want is to hold it for later analysis, while avoiding writing to disc as I fear this will slow the process too much. Or would a different approach than simultaneous AIAO be more appropriate?
I am using LabView 6.1 with 6024E DAQ card on a P-IV 1.5GHz.
Use this vi MainProg.vi in the llb
i use a same engine to acquire at 2 MS/s and generate at 3 MS/s
"Fil" a ?crit dans le message de news:
506500000008000000C8620000-1031838699000@exchange.ni.com...
> Is there a way to do simultaneous AI and AO and keep the data in the
> buffer until I am finished with reading, then read the buffer and save
> the data to disc. I want to acquire 1000 scans on up to 10 chanels at
> 10 000 Scans/s, while generating one output signal.
> I have seen plenty of continuous AIAO examples, but all they do is
> show the data. I don't mind not viewing the data, all I want is to
> hold it for later analysis, while avoiding writing to disc as I fear
> this will slow the process too much. Or would a different appro
ach
> than simultaneous AIAO be more appropriate?
> I am using LabView 6.1 with 6024E DAQ card on a P-IV 1.5GHz.
[Attachment 4x10KSps to Disk& generate AO.llb, see below]
Attachments:
4x10KSps_to_Disk&_generate_AO.llb 128 KB
Similar Messages
-
How can i read the text files and buffer the data in Vector?
hi. I have been running into this problem for days, but with no luck and losing right direction.
The problem is : I am trying to read a text file and buffer the data into a
Queue for each user.
the sample text file is as below:( 1st column is timestamp, 2nd is user_id, 3rd is packet_id, 4th is packet_seqno, 5th is packet_size)
0 1 1 1 512
1 2 1 2 512
2 3 1 3 512
3 4 1 4 512
4 5 1 5 512
5 6 1 6 512
6 7 1 7 512
7 8 1 8 512
8 9 1 9 512
9 10 1 10 512
10 1 2 11 512
11 2 2 12 512
12 3 2 13 512
13 4 2 14 512
14 5 2 15 512
15 6 2 16 512
16 7 2 17 512
17 8 2 18 512
18 9 2 19 512
19 10 2 20 512
20 1 3 21 512
21 2 3 22 512
22 3 3 23 512
23 4 3 24 512
24 5 3 25 512
25 6 3 26 512
26 7 3 27 512
27 8 3 28 512
28 9 3 29 512
29 10 3 30 512
30 1 4 31 512
31 2 4 32 512
32 3 4 33 512
33 4 4 34 512
34 5 4 35 512
35 6 4 36 512
36 7 4 37 512
37 8 4 38 512
38 9 4 39 512
39 10 4 40 512
40 1 5 41 512
41 2 5 42 512
42 3 5 43 512
43 4 5 44 512
44 5 5 45 512
45 6 5 46 512
46 7 5 47 512
47 8 5 48 512
48 9 5 49 512
49 10 5 50 512
50 1 6 51 512
51 2 6 52 512
52 3 6 53 512
53 4 6 54 512
54 5 6 55 512
55 6 6 56 512
56 7 6 57 512
57 8 6 58 512
58 9 6 59 512
59 10 6 60 512
60 1 7 61 512
61 2 7 62 512
62 3 7 63 512
63 4 7 64 512
64 5 7 65 512
65 6 7 66 512
66 7 7 67 512
67 8 7 68 512
68 9 7 69 512
69 10 7 70 512
70 1 8 71 512
71 2 8 72 512
What I wanna do is to read all the data above and buffer them in a queue for each user( there are only 10 users in total).
I already created a class called Class packet:
public class packet {
private int timestamp;
private int user_id;
private int packet_id;
private int packet_seqno;
private int packet_size;
/** Creates a new instance of packet */
public packet(int timestamp,int user_id, int packet_id,int packet_seqno, int packet_size)
this.timestamp = timestamp;
this.user_id=user_id;
this.packet_id=packet_id;
this.packet_seqno=packet_seqno;
this.packet_size=packet_size;
}then I wanna to create another Class called Class user which I can create a queue for each user (10 users in total) to store type packet information. the queue for each user will be in the order by timestamp.
any idea and sample code will be appreciated.Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave. -
I need to collect the data for every rising edge a trigger perfoms. So far I could collect the data but it seems that it only collect the data in the start of triggering, but not continuously. I also want to put the data in an excel spreadsheet and automatically add new set of data when the next rising edge occur. Please help.
thanks a lot.LabWindows/CVI actually ships with a comprehensive set of examples for just about every area of programming you can use it in, including triggered analog data acquisition and ActiveX control of Microsoft Excel for data logging. Go to the following two directories on your computer to find respective examples for the two areas you are inquiring about:
1) C:\MeasurementStudio\CVI\samples\DAQ\Ai\DAQsingleBufExtTrig.PRJ
2) C:\MeasurementStudio\CVI\samples\activex\excel\excel2000dem.prj
Just make sure to study the examples carefully so that you fully understand the processes followed for triggered analog acquisition and the process of launching an ActiveX automation server for control, and then you should be able to merge the concepts shown in both of the example
s to make the application you desire.
Jason F.
Applications Engineer
National Instruments
www.ni.com/ask -
How to get target file name and buffer the incoming messages?
Hi Experts
I have one scenarion like
I wanted to find whether is there any file existing in target folder. If it exists I dont want to overwrite it but I have to buffer the incoming messages in some queue or something like that. And when ever the request comes next time I have to send the data buffered in queue first.
I dont want to add any time stamp for target file to avoide duplication.
Can we do this using XI. If yes please suggest me how to achive this.
Regards
Sowmya>
Sowmya wrote:
> Hi Experts
>
> I have one scenarion like
> I wanted to find whether is there any file existing in target folder. If it exists I dont want to overwrite it but I have to buffer the incoming messages in some queue or something like that. And when ever the request comes next time I have to send the data buffered in queue first.
>
> I dont want to add any time stamp for target file to avoide duplication.
>
> Can we do this using XI. If yes please suggest me how to achive this.
>
>
> Regards
> Sowmya
there is no standard way to achieve this. I suggest a redesign.
post the files to a different directory and write a script which will move the file to the required target directory only if it is not present there. -
because i can not use the Canadian card to redeem in my account from USA. should i delete an account and create the new one that should valid in Canada by using the same email address? or what should i do? (i really want to use my recent email)
Hi Kazmania89,
Welcome to the Support Communities!
If you require additional assistance with this, click on the link below for guidance:
Apple ID: Contacting Apple for help with Apple ID account security
http://support.apple.com/kb/HT5699
Once you are able to gain access to the old Apple ID, this article may be helpful:
Using your Apple ID for Apple services
http://support.apple.com/kb/HT4895
I have purchased music, apps, or books with multiple Apple IDs. How can I get all of this content onto my iOS device?
First, you need to copy all of your purchased content so it is on the same Mac or PC with iTunes. This computer should be the one you sync your device with. For more information on how to move your content, see these articles:
Mac: iTunes for Mac: How to copy purchases between computers
PC: iTunes for Windows: How to copy purchases between computers
Next, authorize your computer to play content with each Apple ID in iTunes. Once your computer is authorized for all your content, it can be synced to your iPhone, iPad, or iPod touch.
Cheers,
- Judy -
How to set a default start and/or end date for New Events based on trigger date.
I'm using the CalendarActivityListener to get current row when clicking on an existing event. As per previous posts this listener gives you access to event detail including Start Date, End Date, etc.
However, what I want to do is to default the start (and end) dates for New Events based on the trigger date.
I've tried the CalendarListener and can grab the Trigger Date from it - however, I can't see a way to pass this directly to the popup/dialog I'm using to create the new event.
At present I'm putting the TriggerDate into the ADFContext session scope e.g. ADFContext.getCurrent().getSessionScope().put("TriggerDate",calendarEvent.getTriggerDate());
Then, I've tried multiple approaches to try and "get" the TriggerDate from session scope to drop it into my new Calendar Event basically, I'm trying to default the InputField(s) associated with the Start Date using the value from the session - I've tried
1. setting the default value for the InputField in the jspx using a binding expression i.e. value="#{sessionScope.TriggerDate}" - this actually sets the value appropriately when the jspx is rendered but, when I go to create I get a NPE and I can't debug. I assumed that it might be a Date type issue - it would appear that CalendarListener provides a date of type java.util.Date and that the StartDate attribute of my VO/EO/table is a DATE and therefore requires oracle.jbo.domain.Date so I tried casting it - to no effect
2. Using a Groovy expression *(StartDate==null?adf.context.sessionScope.TriggerDate:StartDate)* in my calendar's EventVO to default the Start Date to the same result
Any thoughts or ideas?John,
Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
Works just fine. Snippet from the listener follows
BindingContext bindingContext = BindingContext.getCurrent();+
*if ( bindingContext != null ) {*+
DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
Row currentRow = iterator.getCurrentRow();+
if ( currentRow.getAttribute("StartDate") == null)+
currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
if (currentRow.getAttribute("EndDate")==null)+
currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
*}* -
Hi ,
I have installed Jdev using silent installation .
Now I have some apps already created I want to create a default domain and then deploy apps into that through ant or any script?
Can anyone help me on this?
Thanks and Regards,
Vivek PemawatWe still don't know what you want to archive with here.
Cvele_new_account got you a pointer on how to install the DefaultDomain.
Tip: if you want to know or see the exact command line jdev uses to install the DefaultDomain, open jdev and in the application server navigator right click on hte integrated server and select configure DefualtDomain. In the log window you see the command line with all parameters.
Timo -
How to parse XML and store the data in tables using sql or plsql?
I want to parse the xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xmlListWrapper>
<size>2</size>
<AppTypeID>10</AppTypeID>
</xmlListWrapper>
and store in a table
|pk|apptypeid|
1 10You can extract data from your XML along these lines...
SQL> ed
Wrote file afiedt.buf
1 with t as (select xmltype('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <xmlListWrapper>
3 <size>2</size>
4 <AppTypeID>10</AppTypeID>
5 <AppTypeID>20</AppTypeID>
6 </xmlListWrapper>') as xml from dual)
7 --
8 -- end of example data
9 --
10 select x.*
11 from t
12 ,xmltable('/xmlListWrapper/AppTypeID'
13 passing t.xml
14 columns pk for ordinality
15 ,apptypeid number path '.'
16* ) x
SQL> /
PK APPTYPEID
1 10
2 20
SQL>
Inserting it to a table is obviously achieved using an INSERT ... SELECT ... where the SELECT is extracting the data from the XML. -
How can I export a video and keep the date?
When I export the video and import it again, it changes the date to the date of today. It doesn't happen with the photos, only with videos.
I changed the dates of a lot of videos and then re-imported them again, I realised I lost all my work of editing.
Thanks,You can only modify the File Created date with a 3rd party application after you export it to the Desktop. Video files do not have EXIF field that image files do so can't be modified by iPhoto or Photos. What I do is rename the file with the date created and a brief description like: 2005-01-08-LaHanbraSpain.mov
You can do that with one of the Automator/Applescripits that léonie has posted in the User Tips section:Photos for Mac
Photos for Mac: Batch Change the Descriptions
Then export the original out with the option File Name = Title -
How can I create a month and have the dates change on each page, auto?
Hey!
I need some indesign help.
I have a section "January" and another "February" etc for the 12 months.
I have one day per page with a month as a section. Then another month as a section and one day per page etc?
I want to auto change the date on each page.
I already have page numbers....
Any suggestions would be appreciated!
T.Have you considered using CSS styled text/list menus instead of image rollovers. It isn't hard really and it's actually a much better choice for web accessibility and for search engines to find and follow your links. Here are some links to several CSS menu systems you can try:
CSS Express Drop-Down Menus (tutorial)
http://www.projectseven.com/tutorials/navigation/auto_hide/
CSS Tab Designer creates 60+ CSS Styled Button and Tab Menus (download)
http://www.highdots.com/css-tab-designer/
List-O-Rama (DW Extension)
http://www.dmxzone.com/go?5618
CSS Menu Maker (On-Line Menu Generator)
http://www.cssmenumaker.com/
Pop-Menu Magic2 by PVII (DW extension purchase)
http://www.projectseven.com/products/menusystems/pmm2/index.htm
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
How to decrease "Free (freelist)" memory and allow the ARC cache to use it?
Hello,
I have a solaris express server that will be primarily used for storage. As such cache usage maximization is important. It appears however that a big chunk of the memory is not been consumed, and remains "Free Free". There must be a tunable to allow this memory to be consumed, and grow the Arc Cache.
Currently it shows (via arc_summary.pl and arcstat.pl) that it's however arround 39GB. It won't grow beyond that point. Here's memstat
root@storage1:~# mdb -k
Loading modules: [ unix genunix specfs dtrace mac cpu.generic uppc pcplusmp scsi_vhci zfs sata sd ip hook neti arp usba uhci stmf stmf_sbd fctl sockfs md lofs random idm mpt_sas crypto fcp cpc smbsrv nfs fcip sppp nsmb ufs logindmux ptm ipc ]
::memstatPage Summary Pages MB %Tot
Kernel 2042997 7980 16%
ZFS File Data 8679483 33904 69%
Anon 179051 699 1%
Exec and libs 4623 18 0%
Page cache 19172 74 0%
Free (cachelist) 6730 26 0%
Free (freelist) 1646526 6431 13%
Total 12578582 49135
Physical 12578581 49135
>Hello Abrante,
These values are their default:
$ arc_summary.pl
System Memory:
Physical RAM: 49135 MB
Free Memory : 7052 MB
LotsFree: 767 MB
ZFS Tunables (/etc/system):
ARC Size:
Current Size: 36408 MB (arcsize)
Target Size (Adaptive): 36408 MB (c)
Min Size (Hard Limit): 6013 MB (zfs_arc_min)
Max Size (Hard Limit): 48111 MB (zfs_arc_max)
ARC Size Breakdown:
Most Recently Used Cache Size: 6% 2275 MB (p)
Most Frequently Used Cache Size: 93% 34132 MB (c-p)
...But as you can see, The server refuses to "consume" the last 7000 MB. -
Reading a file and parsing the data for a calculation method
i am trying to read a file with 3 feilds double double and int . am able to read the file but i am getting an exception right befor i parse the data ...code
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.*;
//import com.sun.java.util.jar.pack.Package.File;
public class FileTester {
public static String mLine;
public static void main(String[] args) {
BufferedReader in = null;
try{
File f = new File ("loan.txt.txt");
in = new BufferedReader(new FileReader(f));
catch(FileNotFoundException e)
System.out.println("file does not exist");
System.exit(0);
try{
String mLine = in.readLine();
while (mLine != null){
System.out.println(mLine);
mLine = in.readLine();
}}catch(Exception e)
{System.out.println(e.getMessage());
String []data = mLine.split("\t");
double loan = Double.parseDouble(data[0]);
double interest = Double.parseDouble(data[1]);
int term = Integer.parseInt(data[2]);
System.out.println(loan+interest+term);
afterwards i would like to break this up into three methods to feed the values to a calculation classTake a look at your while loop. It continues to loop as long as mLine != null. Therefore it stops looping when mLine IS = null. So can you now see why the following line of code would cause problems?
String []data = mLine.split("\t");How is the data stored in your file? Is it a single line with the three values separated by a tab? If so you can do away with the while loop and just call readLine() once. Otherwise you will have to process each line you read inside the while loop.
P.S. use the code button when posting code. There is a button above the textfield when use post a reply. -
How to Print a PDF file and Close the ACrobat Reader opened using WEBUTIL
Hi All,
I have used WEBUTIL successfully and printed files using webutil_host.nonblocking builtin. What happens is that after printing the file the Acrobat reader stays on the desktop of the client PC. How to close that file opened programmatically. I am unable to close it using any any commands or using following builtins from WEBUTIL.
WEBUTIL_HOST.RELEASE_PROCESS(PROCESS_ID)
WEBUTIL_HOST.TERMINATE_PROCESS(PROCESS_ID);My command to directly call the Acrobat reader file and print it is by using this command.
M_STR_COMMAND := 'cmd.exe /c start AcroRd32.exe /t '||CHR(34)||FILE_STR_PATH||'\'||FILE_NAME||CHR(34)||' '||CHR(34)||PRINTER_NAME||CHR(34);Help in this regard is much appreciated.
Thanks in advanceI think if you use the start-command, the execution is asynchronously and you won't get the correct process-id. Try to execute Acorbat directly without the cmd /c start in front of it.
-
How can I open a file and get the data inside file when using WebStart
When I use ClassLoader,
Which methold can I use the read the information inside that file?
Thanks
RyanAssuming you are trying to read the jar file.
http://forum.java.sun.com/thread.jspa?forumID=22&threadID=572955
rykk -
How can i call ajax and extract the data?
Hi all,
I don't know briefly about ajax..i want to learn ajax, so my question is how can i call ajax and extract the data. for ex, i have JSON file
"mobile": [
"Name": "Micromax",
"Model": A310
"Name": "samsung",
"Model": grand 2
for above example how can i call ajax..please anyone explain with small example because it'll help me a lot.
Thanks & Regards,
PalsaranHi Palsaran,
As i understood, your requirement is to POST data from UI to backend.
The above code you given is not correct if you want to use model based implementation.
In UI5 you don't need to do an explicit Ajax call, for which we can use Models like OData, JSON etc.
For your JSON example, you can use like,
var oModel = new sap.ui.model.json.JSONModel();
var oData = "YOUR JSON DATA";
oModel.setData(oData)
oModel.loadData(yourURL/Entityset,"POST");
For ref, you can use the below link
JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.model.json.JSONModel
Thanks
Naveenraj
Maybe you are looking for
-
My Ipod touch 2g wont sync with itunes and itunes wont close
Itunes wont recognise my Itouch (2nd gen, 16gb,ios 4.2.1) and wont sync. It occasionaly finds the ipod but doesnt sync and freezes whil displaying a rotating beachball symbol next to the device. It does not load from then and does not reach the it
-
My HP printer is no longer working
My HP printer is no longer working with my Macbook after installing Mavericks. It scans, but will not save or send any files. My computer has also slowed down considerably....
-
After reinstalling Lion, Safari refuses to open
My Macbook Pro from June 2010, currently running Lion, was having a ton of issues with speed. Took it in to the genius bar, had them quickly repair a few disk errors, then I reinstalled Lion from the Recovery HD. The computer's been much faster sin
-
Can't place and Indesign CS5 created swf back in an Indesign CS5 file?
I hope someone can help me? I have created an animated swf file in Indesign CS5 using the amination and timing panels, for use in an interactive PDF. The swf has exported correctly and plays as expected in the browser. However, when I go to select
-
How to add a nvidia ge force video card for a pavilion g6 which has a intel hd 3000?
How to add nvidia ge force 525 video card for this laptop?