Serial Send speed
Hi all
I want to read an array of 2500bytes from serial port with bouad rate set to 2,000,000 bit/sec. I'm supposed to have 2500 bytes 100 times in every seccond ((2000000/8)/2500) ,but I just have it 3 or 4 times in a seccond... what should I do?
This is my VI in the attachment..
My program waits until it recieves one byte with value "255" from the port, then recieve 2500 bytes from the serial port.
Attachments:
FF2500 Froum.vi 19 KB
Ranjeet_Singh
1- I have attached a modified VI in 2011version.
2- I made sure that the transfer boaud rate is 2,000,000bit/sec.
3- I moved the VISA configuration outside the loop.
Attachments:
FF2500 Froum 2011.zip 15 KB
Similar Messages
-
I am getting very slow speeds while transferring from my computer to a server. I only have two accounts on this computer - my account and then an administrator account I use as a backup and clean user. With the admin account I am getting 25 MB/sec (limit of the firewire drive I tested with), but only ~10 MB/sec while logged in to my account. Would seem very odd but is there a preference somewhere that would effect the speed of only sending data? Pulling from the server I get ~65 MB/sec. Output of ifconfig shows that I am connected in 1000baseT full-duplex. I have tried both ethernet ports on the Mac, two ports on the switch, and two cables from the etherent port on the Mac to the switch, so the problem doesn't seems to be on the physical layer, but rather only when logged in to my account. Any ideas are appreciated as this is killing my performance during large file saves. Thanks!
Tried again on the admin side. Seems that has slowed down now too. Getting about the same speeds on that account. Is it possible Vmware Fusion is causing any problems? Looks like it created a couple interfaces for network bridging to function, but I can't see how this would effect my network speeds on the host OS. Here is an output of ifconfig just in case it helps
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0 mtu 1280
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
lladdr 00:21:e9:ff:fe:c8:62:4a
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>
en0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
ether 00:1f:5b:39:ba:a8
media: autoselect (<unknown type>) status: inactive
supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control>
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::21f:5bff:fe39:baa9%en1 prefixlen 64 scopeid 0x6
inet 192.168.2.12 netmask 0xffffff00 broadcast 192.168.2.255
ether 00:1f:5b:39:ba:a9
media: autoselect (1000baseT <full-duplex>) status: active
supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control>
en2: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:22:41:d0:38:a1
media: autoselect status: inactive
supported media: none autoselect 10baseT/UTP <half-duplex>
vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 172.16.95.1 netmask 0xffffff00 broadcast 172.16.95.255
ether 00:50:56:c0:00:08
vmnet1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.179.1 netmask 0xffffff00 broadcast 192.168.179.255
ether 00:50:56:c0:00:01 -
Poor serial communication speed
I'm programming a unit via serial port which has FLASH on there.I send S-records (1 line at a time) and get back an "ACK" if the programming was o.k. My vi works.
But my vi is aprox. 50% slower, then an other programm? They other program does exactly the same (checked with Portmon). My vi seems to get slower, after running a while.(Total time for programming 6min. @38400)It seems that my last answer didn't get to the Internet last night. So here are my vi's.
Yes, i get an "ACK" after every line sent succsefully.
Is arrayprocessing faster then multilinestring?
Are shiftregisters faster then local variables?
Attachments:
MSK_multiprogrammer.llb 104 KB
MSK-Programmer_HC+0.llb 347 KB
hoax.mhx 59 KB -
Question to "serial sending a message from R/3 to XI"
Hi,
I want to know when I serialize the receiving of the message in XI and one sending of a message goes wrong.
So are the following message blocked??
Thanks.
Regards
Stefanhi,
yes if you use EOIO (proxies or IDOCs)
the rest is blocked
IDOC serilalizing is described in my book:
(and how to handle error with IDOC EOIO)
<a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
Regards,
michal -
Mail Send Speed has slowed down since adding 10.6
I updated on Saturday and now it takes much longer for a message to send. I tested with a small (64K) photo and it took 1.5 minutes to send it. I am no computer expert and need an easy fix.
I am also having this problem and it has been there from 10.6 and 10.6.1. The 10.6.1 update seemed to help - it about halved the delay in sending, but sending still takes a long time - about 30-45 seconds.
Anyone got any ideas how to solve this?
Thanks, Tom -
Cisco 4-Port Async/Sync Serial High-Speed WIC
As per the document of the above hardware, a speed of 230kbps can be achieved using PSTN lines. However it is not mentioned what end to end infrastructure we need to achieve 230kbps using PSTN lines.
what i understand that I need cisco 1800/2800/3800 series router and cisco Async/Sync High speed WICs at both end and PSTN line.
Could some have idea/implemented such a solution using above hardware/infrastrcuture to achive 230kbps using PSTN lines.Hi,
Many modern devices can exceed the low known speeds of asynchronous communication (38,400 and 57,600 bit/s being common, and 115,200 and 230,400 bit/s making occasional appearances) while still using RS-232 compatible signal levels.
http://www.quatech.com/support/comm-over-asyncserial.php
http://en.wikipedia.org/wiki/RS-232
HTH,
Mohammed Mahmoud. -
Sending speed grade back to premiere CC
I'm not able to do this as the option "Direct link to Premiere Pro" is greyed out. Am I missing something?
Version 7.2.0 on SG. Version 7.0.0 on PP.
Opening a PP project through SG I do have the option to go back "direct to PP". Weird, it just seems to be this tutorial project that is not working and giving me the direct to PP option. Hmmm.
Hoping that this will work for all my non-tutorial projects in the future. I appreciate your help. -
Serial-ATA speed? 1,5 3 6?
How faster is my sata port on my MacBook Pro from 2009 13tum
So it is no idea to install an SSD 6 GB/sec disk
-
Why is the MacBook Pro Serial ATA transfer speed half that of the new iMac?
I have a MacBook Pro 2.4 GHz 15.4 inch with a Seagate Momentus 160 GB, 7200 rpm, serial ATA, PRT hard drive. This hard drive has a serial ATA transfer speed rating of 3.0 Gigabits per second. The MBP logic board has an Intel 965 chip set that has a serial transfer speed rating of 3.0 Gigabits per second. I was at the Mac Store the other day and noticed that the new iMac 20 and 24 inch computers (that have the same intel 965 chip set) have an Intel ICH8-MAHCI speed rating of 3.0 Gigabits per second. My question is why does the MacBook and MacBook Pro's only have an Intel ICH8-M AHCI speed rating of 1.5 Gigabits per second? Attached is a copy of my Serial-ATA information:
Intel ICH8-M AHCI:
Vendor: Intel
Product: ICH8-M AHCI
Speed: 1.5 Gigabit
Description: AHCI Version 1.10 Supported
ST9160823AS:
Capacity: 149.05 GB
Model: ST9160823AS
Revision: 3.DAE
Serial Number: 5NK03DBN
Native Command Queuing: Yes
Queue Depth: 32
Removable Media: No
Detachable Drive: No
BSD Name: disk0
OS9 Drivers: No
S.M.A.R.T. status: Verified
Volumes:
Macintosh HD:
Capacity: 148.73 GB
Available: 78.21 GB
Writable: Yes
File System: Journaled HFS+
BSD Name: disk0s2
Mount Point: /
MacBook Pro 2.4 GHz (MA896LL) W/ 4GB RAM Mac OS X (10.4.10) Seagate ST9160823AS Hard DriveFor several reason although the main one is that the vast majority of 2.5" drives have a 1.5Gbps interfacce. Drives with a 3Gbps interface in this size are rare where as they're very common in the 3.5" drive size which is used in the iMac.
Additionally you'll find that few drives do in fact make use of this larger bandwidth. For instance, the fastest 3.5" SATA drive one can buy for an iMac/Mac Pro up to 500GB is in fact a Western Digital Raptor 150GB which has an SATA I 1.5Gbps interface. So the interface bandwidth isn't everything. Yes there are faster drives than this now but they are in the 750GB size and up. -
MacBook Pro 15.4", 2.4 GHz: Serial-ATA Transfer Speed Question
I have subject MBP with a Seagate Momentus 160 GB, 7200 rpm, serial ATA, PRT hard drive. This hard drive has a serial ATA transfer speed rating of 3.0 Gigabits per second. The MBP logic board as an Intel 965 chip set that has a serial transfer speed rating of 3.0 Gigabits per second. I was at the Mac Store today and noticed that the new iMac computer (that has the same chip set) has an Intel ICH8-MAHCI speed rating of 3.0 Gigabits per second. My question is why does the MacBook and MacBook Pro's only have an Intel ICH8-M AHCI speed rating of 1.5 Gigabits per second? Attached is a copy of my Serial-ATA information:
Intel ICH8-M AHCI:
Vendor: Intel
Product: ICH8-M AHCI
Speed: 1.5 Gigabit
Description: AHCI Version 1.10 Supported
ST9160823AS:
Capacity: 149.05 GB
Model: ST9160823AS
Revision: 3.DAE
Serial Number: 5NK03DBN
Native Command Queuing: Yes
Queue Depth: 32
Removable Media: No
Detachable Drive: No
BSD Name: disk0
OS9 Drivers: No
S.M.A.R.T. status: Verified
Volumes:
Macintosh HD:
Capacity: 148.73 GB
Available: 78.21 GB
Writable: Yes
File System: Journaled HFS+
BSD Name: disk0s2
Mount Point: /Try this procedure:
http://support.apple.com/kb/ht3964
And this one:
http://support.apple.com/kb/ht1379 -
Sending Attachments slow (kind of...)
When using Mail, I've noticed that sending mail with attachments runs very slow. (Sending a regular text email works fine). It quickly drops down to a send speed of 30kb/sec or less. At least that's what it says. Sending a 1mb attachment takes almost 2 minutes.
One strange thing I've noticed is that the mail actually gets to it's destination BEFORE I hear the "swoosh." For example, if I send a 1mb email to my second email address, it still shows as "sending" on Mail, but I receive the email at my second address. Mail still shows as "sending" (at around 30kb/sec) for another 30 seconds or so before I hear the "swoosh."
Can anyone explain this to me?
I've used iAntiVirus and done a full scan. I thought maybe I had a virus that was using mail to send stuff out, but I don't think that's what's going on.
Any help would be appreciated.
Thanks.There are no Mac viruses in the wild. The issue with anti virus software on a Mac is that it tends to slow down your system and some cases literally corrupt system software. And it can be a major headache to remove from the hard drive.
If you back up your important data on a timely bases, if you don't visit sites that are known for malware, anti virus software on a Mac is pretty much useless.
This is just one example of Norton a/v... http://discussions.apple.com/thread.jspa?messageID=9734451�
If you are running Windows on your Mac or if you send e-mail attachments to Windows based computers, then keep trash the PC Tools and get ClamXav
It's free and easy to use and won't slow your system down.
Carolyn -
Sun Fire X4100 - Serial redirection is very unstable.
Dear all,
I am having new troubles with X4100 hardware.
I am setting up console serial redirection and it does not work properly. Here is what I am doing :
- I set up the SP serial port speed to 115200 and commitpending to true.
- I set up console redirection port speed accordingly in the BIOS.
When I do a start /SP/console I only get weird chars on screen (symptom of a speed configuration mismatch). Moreover, when I reboot the server if I have a serial console started , the BIOS does not boot successfully, only '033' is being printed on the bottom right of the screen. I can to stop serial console redirection and to reset the server...
I am using bios version 1.1.8.
Can anyone help ?
Many thanks.
EricEric,
Generically (and generally, as well) CLI serial connections are done at 9600 baud.
That's the default that the serial ports have, out-of-the-box.
The ILOM manual for your system gives guidance how to configure such a connection.
( that's document # 820-0280 from Docs.Sun.Com )
( and the document is linked from the X4100 page in the SSH )
See section 2.1.2 in that document.
http://www.sun.com/products-n-solutions/hardware/docs/html/820-0280-12/sp_initial_setup.html#50491423_pgfId-1012120
I hope that long link doesn't break as it wraps to two lines. -
SRW2048 Serial Port - Never works!
I have three SRW2048 switches and I am desperately trying to use the INCLUDED serial cable and connect to my laptop but it will not work at all. What is the problem? Did they not include the correct cable?
Thanks,
ScottAlso make sure that the serial port speed sets to 38400. Most of the serial port defaults to 9600.
-
I'm considering ordering an OpenGear console server to connect to our Xserve, for access via the serial port. The Xserve User Guide says (pg 20) to set terminal software to 56KB/s, which translates to 458 752 bits per second. The console device that I'm considering:
http://www.opengear.com/product-cm4001-spec.html
...does up to 115 200bps. My question is: can the Apple serial port scale down to more standard serial communication speeds?You're misinterpreting the docs. The default speed it 56kbps, or 57,600 bits per second, well within the limits of the unit you're considering.
-
Controlling sending rate over UDP socket
Hello,
After some NIO study, i finally managed to send and receive UDP data from a single thread. Here is my code
so far:
try {
DatagramChannel channel = DatagramChannel.open();
channel.configureBlocking(false);
channel.socket().bind(localAddress);
boolean flag = true;
int LIMIT = 1000;
Selector selector = Selector.open();
channel.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE);
ByteBuffer buffer = ByteBuffer.allocate(4);
int n = 0;
int numbersRead = 0;
while (flag) {
selector.select();
Set readyKeys = selector.selectedKeys();
Iterator iterator = readyKeys.iterator();
while (iterator.hasNext()) {
SelectionKey key = (SelectionKey) iterator.next();
iterator.remove();
if (key.isReadable()) {
buffer.clear();
channel.read(buffer);
buffer.flip();
numbersRead++;
} else if (key.isWritable()) {
n = queue.poll();
buffer.clear();
buffer.putInt(n);
buffer.flip();
channel.write(buffer);
System.out.println("Wrote: " + n);
if (n == LIMIT) {
// All packets have been written; switch to read-only mode
key.interestOps(SelectionKey.OP_READ);
} // end try
catch (IOException ex) {
System.err.println(ex);
} // end catchThis thread both receives and send integers from/to my UDP echo server. Another thread acts as data generator and add data to ConcurentLinkedQueue. The sending thread poll the data from the queue and sends it.
Right now, the thread is sending at full speed.
I would like to know how i can control the sending rate ?
I would like to be able to specify a given rate like 50 packets per second, 100 packets per seconds...?
Of course i can always slow down the sending part by adding Thread.sleep(someValue) before or after sending..
but this way i am not sure what is the real rate achieved.
any advises would be welcome.
thanks
sepi
Edited by: sepi_seb on Dec 17, 2007 6:50 PMhi
thanks for your reply.
I have some difficulties calculating the amount of time i need to sleep to achieve a proper sending speed.
basically it takes 16ms to send 20 requests so 1250req/s. Hoe can i regulate this accurately.
I added this kind of code in my sending part: Every 50 requests i execute this code.For some reason i get a divided by zero exception at the line marked in bold.
it happens at the second execution of this code.
if(count == 50){
count = 0;
elapsedTime = System.currentTimeMillis() - startTime;
System.out.println(elapsedTime);
*sendingRate = (50 * 1000) / elapsedTime;*
System.out.println("sending at:" + sendingRate + " req/s");
if(sendingRate > speed){
long diff = sendingRate - speed;
long sleepTime = (diff * elapsedTime) / 50;
try {
Thread.sleep(sleepTime);
} catch (InterruptedException e) {
}any comments are welcome
thanks
sebastien
Maybe you are looking for
-
Hello, I have a system AMD Athlon 64 2x 6000+ with windows XP Pro sp3 with 32 bit, dual core. When I changed to Firefox 3.6.11 (I don't know what it was before) the Firefox crashes each time when I click on "tools/options", "File/open File" or if I t
-
Accounting documents not getting generated for mvt. type 221 Q
Hi friends, When goods are issued for consumption for project accounting documents are not getting generated. I have tried with mvt. type 412 Q, 211 Q, by mvt type 412 Q, the stock is transfered to project stock, it shows the stock of material in pro
-
Making Checkbox complete a function? HELP
First and foremost, forgive me if I do not explain this in technically correct fashion. I have enough knowledge to understand, but not enough to be dangerous. In other words, I probably have no clue what I am talking about! I am working with Adobe Xi
-
I have just acquired an iPad and noticed for the first time your synch feature; while trying to fill it out, there was nothing visible in the "prove you're not a robot" screen. Since I use my own system colors on the browser, this happens frequently,
-
My phone can only play mp4 not mp3, most of my music is mp3... How do i convert mp3 to mp4?