Counting # of samples generate per sec - please help
Hi all
I am trying to find out how many times my this attached program can excute the calculation in the formula node in 1 sec. The most I can get is 1200000. This number is too low for me and do anyone know how I can speed up my this program? My processor speed is 1.73GHz
Please use the below parameter:
Span = 50
Upper limit = 200
Lower limit = -200
start freq = 0
Thanks alot..
Zhi Hong
Attachments:
Sweep rate and Span check using tick count to determine no. of samples per sec1.vi 32 KB
Please keep the discussion to the original thread.
Similar Messages
-
An app counting minutes and data use. Please help!!!
An app counting minutes and data use. Please help!!!
Here's one, there are others in the App store:
http://itunes.apple.com/us/app/data-usage/id386950560?mt=8
However, since your carrier is the one that bills you, the only stats that matter are your carrier's. Some carrier's offer apps that provide this info, see if yours does. -
Error:the number of sample must be 0 please help.
dear genius.
I searched the same error in this board but I can not understand how can i fix my problem.
I am just a beginner in LV so I need your help. I made AM modulation and demodulation vi .
when I first used "simulated signal" as message signal, noting happened.
but, I changed simulated signal as "acquire sound", and add a play waveform, after that, problem occured.
actually, I can not understand about sample number or sampler rate .
how can i fix my problem?
and do you know some website to exercise digital communication using usrp and labview for trying ?
please let me know your idea.
thanks a lot.
Solved!
Go to Solution.
Attachments:
error.vi 164 KBkimjihwan123 wrote:
thanks kingt of ni
thanks again. but can you tell me the differecne between sample rate and sample per second? (I thoungt it was same)
First of all Knight of NI is my title. Crossrulz is my alias.
Secondly, Sample Rate is the same as Samples Per Second. But you want to make sure your sample rate and number of samples gathered are the same from both sources. I would also turn off the Actual Time (or whatever it is called) in the Simulate Signal so that it just gives you the sine wave instead of using time to generate it.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Fatal Error when generating FlashHelp. Please HELP!
When I try to generate my Flashhelp output, an error occurs.
This didn't happen before I added a background and header image to
my template. Can anyone help, pleeeease??
Here is the error I get:
<b>
Starting compilation...
FlashHelp preprocessor 13.10.801
Compiling S:\Steph\Help Files\Project
Stop\!SSL!\FlashHelp\Project_Stop.htm ...
Preparing to create FlashHelp...
Finished preparing in 1 sec(s)
Initializing compiler...
Generating FlashHelp 1.00 (13.10.801)...
Template Active Script Error: (null) [Line: 13] (null)
Template Error: can not resolve macro: RegisterResolvers
Fatal Error: Cannot run macro: RegisterResolvers in
compilation script.
Template Error: can not resolve macro: WH_HOME_HTM
Template Error: can not resolve macro: WH_CSH_HTM
Template Error: can not resolve macro: WH_CSH2_HTM
Template Active Script Error: (null) [Line: 74] (null)
Template Error: can not resolve macro: PostCompile
Fatal Error: Cannot run macro: PostCompile in compilation
script.
Finished compiling FlashHelp in 1 sec(s)
</b>This topic is posted repeatedly as well as cross posted.
Click
here to see a post where an answer has been offered. -
Using an array to count in base 5?? please help!
Hey, I'm new to this so any help would be really gratefully received! I want to count down as follows:
[2 3 4]
[1 3 4]
[0 3 4]
[0 2 4]
[0 1 4]
[0 0 4]
[0 0 3]
[0 0 2]
[0 0 1]
[0 0 0]
but i'm having some major troubles at the point where:
[1 3 4 ]
jumps to
[0 2 4]
but apart from that it works fine - if anyone could help i'd be soo grateful!
for(int i=0;i<numbers.length;i++){
if(carryForwards==0)
{ numbers= numbers[i]-(amount);}
else{numbers[i]= numbers[i]-Math.abs(carryForwards);}
if(numbers[i] ><0){System.out.println("true");
carryForwards= Math.abs(numbers[i]);
numbers[i]=0;}
else{
break;}
System.out.println("carryforwards"+carryForwards);}
Thanks so much!
Jessica xxx
ps if(numbers <0){System.out.println("true"); - for some reason that line above has a >< rather than just a less than!Double post: http://forum.java.sun.com/thread.jspa?threadID=732329
-
Why doeas my voice capture midlet generates echo? please help
This midlet is for recording voice but it generates an echo of the voice while recording.. and i can't understand why. is there anyone who has any idea? i'd really appreciate any help.. it is required for my term project..
package com.apress.chapter8;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.*;
import javax.microedition.media.control.RecordControl;
public class SaveCapturedAudioMIDlet extends MIDlet
implements CommandListener {
// the display items
private Display display = null;
private Alert alert = null;
private Command exitCommand = null;
// players and controls
private Player capturePlayer = null;
private RecordControl rControl = null;
private boolean error = false;
public SaveCapturedAudioMIDlet() {
// create the display
display = Display.getDisplay(this);
alert = new Alert("Message");
alert.setTimeout(Alert.FOREVER);
alert.setString("Capturing for 10 seconds. Say something intelligent!");
exitCommand = new Command("Exit", Command.EXIT, 1);
alert.addCommand(exitCommand);
alert.setCommandListener(this);
try {
// create the capture player
capturePlayer = Manager.createPlayer("capture://audio");
if (capturePlayer != null) {
// if created, realize it
capturePlayer.realize();
// and grab the RecordControl
rControl = (RecordControl)capturePlayer.getControl(
"javax.microedition.media.control.RecordControl");
// set the alert as the current item
display.setCurrent(alert);
// if it is null throw exception
if(rControl == null) throw new Exception("No RecordControl available");
// and set the destination for this captured data
rControl.setRecordLocation("file:///test.wav");
} else {
throw new Exception("Capture Audio Player is not available");
} catch(Exception e) {
error(e);
public void startApp() {
if(error) return;
try {
// first start the corresponding recording player
capturePlayer.start();
// and then start the RecordControl
rControl.startRecord();
// now record for 10 seconds
Thread.sleep(10000);
// stop recording after time is up
rControl.stopRecord();
// commit the recording
rControl.commit();
// stop the Player instance
capturePlayer.stop();
// and close it to release the microphone
capturePlayer.close();
// finally, create a Player instance to playback
// check your device documentation to find out the root.
// The following will work on devices that have the root
// specified as shown
// and start it
} catch(Exception e) {
error(e);
public void pauseApp() {
public void destroyApp(boolean unconditional) {
if(capturePlayer != null) capturePlayer.close();
public void commandAction(Command cmd, Displayable disp) {
if(cmd == exitCommand) {
destroyApp(true);
notifyDestroyed();
// general purpose error method, displays on screen as well to output
private void error(Exception e) {
alert.setString(e.getMessage());
alert.setTitle("Error");
display.setCurrent(alert);
e.printStackTrace();
error = true;
}hi, i am trying to make a karaoke player with j2me and i want it to be able to record the user's voice while playing the background song.. how can i synchronize these two? what can i do to make it more efficient?
-
Register and Generate schema.. please help
Hi All,
I'm trying to do Reverse Engineering( Table to Entity).
I have schema called SCOTT and i want to register and generate SCOTT schema into REPS schema.
I have a problem with register and Generate the schema SCOTT.
I'm connecting as REPS.
I'm writing the code like this...
begin
jr_registration.register('SCOTT');
end;
begin
jr_registration.GENERATE('SCOTT');
end;
when i run this code, i'm getting lot of unwanted tables into REPS Schema.
Does anybody Know, where i'm doing mistake.. ?
Thanks in advance.I have given all the privilages, which are in the list.
And it owns by SCOTT only...
I'm connecting as a Repositiry OWNER...
The Interesting part is, it doesn't show any errors..but i couldn't see any tables in the REPS_OWNER schema.
I'm trying to generate from SCOTT SCHEMA ---> REPS_OWNER
schema.
Any clue.. ?
Thanks in advance. -
EXS Sampler Edit Window - pretty please HELP!
When I drag a bunch of audio regions* (kick,snare,hihat) onto the ESX edit window, It spans them across from the C1 key, one note per key. (GREAT! nothing wrong with that!)
But when I drag another bunch of audio regions, It asks which key do you want to start from C1, So I have to click UP,UP,UP,UP. until I get the next free key.
And I keep getting the wrong keys ALOT, Like I'm suppose to know its G#1 or something, just by looking at blank keys???
Is there anyway to have it add to the next free key? Automatically
I've tried dragging to the specific key I want it on (Which was how I did it in Logic7), it doesn't work.
Basically my whole workflow is thrown for a loop!
*audio regions, are multiple chopped sections of 1 audio file, not multiple audio files prechopped in recycleCheck out Keymap by Redmatica
www.redmatica.com -
Multiple Values per Key - PLEASE HELP!!
hi. im trying to setup a TreeMap so it contains multiple values for each key using a List to store these values and a string as a key to reference them. however, although it compiles, i recieve a ClassCastException: java.util.ArrayList error when it runs. heres some of my code:
Map resultRelation = new TreeMap();
List list = new ArrayList();
list.add(value1);
list.add(value2);
resultRelation.put(Key, list);
i cant seem to find much useful information on this sort of thing. any help would be appreciated.well after hours of labouring, it turns out that the code i posted is working but the problem is actually to do with printing out the values stored in the array. it was rather stupid of me but before i had created a print method which printed the key and its value from the map, assuming the value was one string not a List, and i hadn't updated it =) so the ClassCastException error was occuring because i was trying to cast the value (which is really a List) to a string in order to print it.
heres my updated printRelation method code as follows:
private static void printRelation(Map relation) {
Iterator keyIter = relation.keySet().iterator();
Iterator valueIter = relation.values().iterator();
while(keyIter.hasNext() == true) {
String primaryKey = (String)keyIter.next();
List foreignKey = (List)valueIter.next();
ConsoleIO.out.print(primaryKey); // ignore the ConsoleIO stuff. the key prints no prob.
Iterator iter = foreignKey.iterator();
while(iter.hasNext() == true) {
String value = (String)iter.next();
ConsoleIO.out.print(value);
at the moment im only adding 1 value to the List as shown in my previous post. e.g.
list.add(foreignKey1);
all this works BUT im getting the wrong results. instead of printing out the key and only its values, its printing out the key and ALL the values from the text file im using. i think its either got something to do with my while loop or my casting of the List but this is all new ground for me =)
thanks. -
Please help me by solving the following query
hi download the image from the above link and here i want latest dosi line count.....
Please help meI think you don't need a plsql for this purpose ... you can find the sub total & final total in the query itself like
select
DOSI,
ELEMENT_TYPE,
SUM(USED) USED
from
DOEMS_LICENSE_SUMMARY
where
DOSI in (DOSILIST)
GROUP BY
rollup(ELEMENT_TYPE, DOSI) ** duplicate** -
Please help in calculating average from random nos. generated
Actually i am new to LV and i don't understand e'thing pretty well. Can anyone please help me with this problem?
I have to construct a VI that displays a random no. once every sec., and then in the same VI, i am trying to compute the average of the last four nos. generated, i.e. the average is displayed only after 4 numbers have been generated, else the average displays zero.
Well, i was trying to get this, but so far what i have got is a VI that is generating average, but that is not what i need.
Thanks for any help.
CLEasiest would be to use "Mean PtByPt.vi" in the Analyze...Point by Point palette. It is most flexible, e.g. if you would want to change the averaging length in the future.
Alternatively, you could use shift registers initialized with NaN. I would prefer NaN over zero for incomplete samples, zero is not unique, it could be a legal value. See attached simple example (LabVIEW 7.1). Modify as needed.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Average4.vi 31 KB -
Join with count() issue, please help!
Hello All,
I have this (probably really simple) issue that I cannot seem to resolve...I have 2 tables here (tbl_system_engineer and tbl_task_request)...(only relevant columns are listed below)
tbl_system_engineer
- id NUMBER
- full_name VARCHAR2
tbl_task_request
- tr_number NUMBER
- submitted_on_date DATE (date task was submitted)
- ass_comp_date DATE (date task is due)
- closed_date DATE (date task was officially closed)
- requestor NUMBER (the system engineer id, the person who created this task)
The query is supposed to summarize how many of the system engineers tasks are as followed:
- "past completion date" - how many tasks have tbl_task_request.closed_date > tbl_task_request.ass_comp_date OR SYSDATE > tbl_task_request.ass_comp_date for the engineer
- "Approaching Completion Date" - how many tasks have a tbl_task_request.ass_comp_date in this month but not "past completion date" for the engineer
- "On Schedule" - how many tasks have a tbl_task_request.ass_comp_date > the end of SYSDATE month and year
The result set rows are supposed to look like...
"System Engineer full name", past completion date count, approaching completion date count, on schedule count
Please help!Hi,
Welcome to the forum!
That's an example of a Pivot , where you want to GROUP BY a combination of columns, and have some of the columns appear as different columns, not different rows.
The way to do that is to GROUP BY the expression(s) for which you want rows, and use CASE expressions for the others.
For example:
SELECT e.full_name
, COUNT ( CASE
WHEN r.closed_date > r.xyz_comp_date
OR SYSDATE > r.xyz_comp_date
THEN 1
END
) AS overdue
, COUNT ( CASE
WHEN xyz.comp_date < ADD_MONTHS ( TRUNC(SYSDATE, 'MONTH')
, 1
AND r.closed_date <= r.xyz_comp_date
AND SYSDATE <= r.xyz_comp_date
THEN 1
END
) AS approaching
, COUNT ( CASE
WHEN xyz.comp_date >= ADD_MONTHS ( TRUNC(SYSDATE, 'MONTH')
, 1
THEN 1
END
) AS on_schedule
FROM tbl_system_engineer e
JOIN tble_task_request r ON r.requestor = e.id
GROUP BY e.full_name
;I don't have versions of your tables, so I can't actually test this. I suspect that some consideration for NULLs needs to be added to the CASE conditions.
if you post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) then people can test their ideas.
Sometimes, especially when the columns are mutually exclusive, it's simpler to calculate a value in a sub-query, telling with which column of output each row is associated. That computed value is then used in very simple CASE expressions in the main query,
Among the annoying features of this site is ithat ir replaces what it thinks are naughty words with s. I suspect that happend in your post. I assume all the columns with ** are the same, for which I substituted above. -
I can go on it for about 10 secs then it freezes,
i have to keep restarting it and it doesnt show up on
itunes when i try to restart it please HELP!! >.<
HASNT BEEN JAILBREAKED ASWELL- Try a reset. Nothing is lost
iOS: Troubleshooting applications purchased from the App Store
- If still problem, see it iTunes nows sees the iPod so you can restore the iPod.
- Next see if placing the iPOd in recovery mode will allow a restore. For recovry mode:
iPhone and iPod touch: Unable to update or restore
- Last, try DFU mode and restore.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings -
Accounting document not generating for excise invoice-please help
Dear all ,
my issue is
accounting document not generating for excise invoice
we are creating accounting document in J1iin
with refferance to billing document but the accounting docuemnt is not generating
the accounting document for billing document is generated
so why the accounting document for excise invoice is not genrating its showing the correct amount in BED ,cee and HE Secc.
please helpDear G. Lakshmipathi,
As uknow i am getting problem when i am creating the debit memo
so is there any specific ETT for debit memo is there .because we are not maintaining delivery type to billing type here in CIN setting
so its not goods removal through sales . so what will be transaction type for this.
how to check the error that why the accounting document is not generated as no error log is also comming.
so please help me in this regards.
Thanks with Regards
Subrat -
How to use the LAN NetStream for peer transmission, please help, write a sample code
How to use the LAN NetStream for peer transmission, please help, write a sample code
No reply, I reply, Oh
Maybe you are looking for
-
My ipod is more problematic than a bad boyfriend! I need help
I've had so many problems with Itunes and Ipod, recent ones being these: I can't update to 1.2 firmware (And I've tried a lot!!) AND my purchased content hasn't been playing on my ipod for about 3 months now. I've tried ejecting and plugging back in,
-
Wiki won't work because of proxy error. Help?
Howdy All, After a long struggle I managed to get the Wikis working. Firstly, I didn't know the users and groups had to be in Open Directory - that could be made more clear and, by the way, why is that so? Secondly, it seems my OSXS upgrade didn't go
-
Hi gurus, is it possible to automatically determine freight costs on header level of a PO? I can enter freight costs on item level (condition types FRA1, FRB1 etc.) and create condition records for them in info records. But on header level, none of t
-
Single Threaded Model JSP- Servlet
Servelts can be set to have thread safe access (Single thread model). However, when a JSP is converted in to a servlet, is the servlet tagged as to use the single thread model?
-
Hi all, I recently downgraded to itunes 10.7, but when I sign-in, it always says that" need latest version of Itunes" So, How can I do now? I love to use itunes 10.7 than itunes 11. Thanks a lot