Send/receive data without a terminating character
I am trying to use the visa driver to send hex data over a serial port. I have tried to disable terminating characters but when I read from the port the trasnmission still terminates with a 0x0A character. How can I send/receive data without a terminating character???
You need to call viSetAttribute with VI_ATTR_ASRL_END_IN set to VI_ASRL_END_NONE. In LabVIEW, use a write property node with the Serial End In mode set to None (0).
Dan Mondrik
Senior Software Engineer, NI-VISA
National Instruments
Similar Messages
-
I need to find out how much wifi data my apps are using. I am on a very limited amount of WiFi data each month, which I am regularly exceeding. I have been told to work out which of my apps is using the data. Also, I think I have closed an app by double clicking the home button, then swiping the app up - is this the way to close it, or will it still be sending/receiving data?
Go into your Settings : General : and turn off background refresh for your apps. In Settings : Mail turn Fetch new data to OFF and Load Remote Images to OFF. This will mean that Mail will only check for messages when you actually use it, and all your advertising junk mail won't have all the images in it.
Turn off push notifications every chance you get.
Make sure you are actually quitting apps: to quit apps press the Home button twice and you should see a bunch of smaller screen images for every open app. To quit the app swipe from the screen image (not the icon) upward off the top of the iPad. You can swipe left and right to see more open apps, but there must be no left-right movement on the screen when you swipe upward to close the app.
Turn off your internet connection when you do not need it. The easiest way to do this is to swipe up from the bottom of you screen to get the control centre, and then touch the airplane to turn on airplane mode. You can repeat this sequence to turn it back on again when you need it. Most especially turn airplane mode on whenever you are sleeping your iPad for long periods. This will save battery life too. OR actually turn your iPad off - which means holding the power key down for several seconds until the red swipe bar appears, and then swipe to turn it off. If you go this route, note that it will take longer to turn on then it takes to wake from sleep. -
SCOM SQL Query to find Mail Latency (Send/ Receive) Data.
Hi,
I unable to find Mail Latency (Send/ Receive) Data in SCOM 2012 SQL Query.
need your help to find SQL query that fetches below details
1. Average Time for Accessing Mailbox.
2. Average Time to Send and Receive Mail.
Regards,
Vinoth Kumar.Hi Vinoth
There are no specific tables storing the mailbox related data.
To find information about Exchange in SCOM you need the Exchange management pack for the version of Exchange you are running, as well as monitoring the Exchange servers.
When that has been done you can find reports and performance views for Exchange.
I am unsure if you can find this specific information for Exchange in SCOM, i would look into the management pack. If you cannot find the information, i suggest you consult your Exchange administrator to get this information.
www.coretech.dk - blog.coretech.dk -
Possible to send POST data WITHOUT a submit button?
Is it possible to send POST data without a submit button, but
instead, using PHP redirect or PHP header?
I need to process a form's POST values before sending some
selected values to a third party web
site. So I'd like to be able to send processed POST values to
that site, without asking the user to
click on a submit button again.
how?...
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing ListYou can't send client-side data with server-side scripting, I
think. You
can do it with javascript, but then your form is dependent on
js being
enabled....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"(_seb_)" <[email protected]> wrote in message
news:eosqf2$p0n$[email protected]..
> Is it possible to send POST data without a submit
button, but instead,
> using PHP redirect or PHP header?
> I need to process a form's POST values before sending
some selected values
> to a third party web site. So I'd like to be able to
send processed POST
> values to that site, without asking the user to click on
a submit button
> again.
> how?...
>
>
> --
> seb ( [email protected])
>
http://webtrans1.com | high-end web
design
> Downloads: Slide Show, Directory Browser, Mailing List -
I have a master/slave setup with a 2-wire RS-485 connection via a StarTech PCI2S485 card http://www.startech.com/product/PCI2S485-2-Port-PCI-RS-422-485-Card-with-DB9. A Vista PC running LabVIEW 2010 is acting as the master to 6 slave devices. I am running a driver VI supplied by the company that made the slaves.
I've used a terminal program called Termite to monitor the ports during operation and have concluded that both the PC and the slaves are sending correct data packets (i.e. correct protocol and reasonable data). Termite indicates that the slave's response is being received by the PCI card, but the problem is that LabVIEW simply isn't reading the response from the card. Each time the driver VI is run it returns a "timeout waiting for slave to respond" error.
The VI and slaves I am using are designed for both RS-232 and 485 communication. I've verified the VI to run in 232 mode on a different COM port. I also wrote a simple VI using the VISA functions to test the ports on the PCI card, but I've had the same results. Hardware connections have been looked over carefully, but the fact that the card actually sends a correct message and receives a correct message indicates a different problem.
Any idea why LabVIEW can talk to the PCI card but can't hear it? Is there anything I can do about this, or does LabVIEW generally not like StarTech's PCI2S485 cards?
Thanks,
TimTim359 ha scritto:
I have a master/slave setup with a 2-wire RS-485 connection via a StarTech PCI2S485 card http://www.startech.com/product/PCI2S485-2-Port-PCI-RS-422-485-Card-with-DB9. A Vista PC running LabVIEW 2010 is acting as the master to 6 slave devices. I am running a driver VI supplied by the company that made the slaves.
I've used a terminal program called Termite to monitor the ports during operation and have concluded that both the PC and the slaves are sending correct data packets (i.e. correct protocol and reasonable data). Termite indicates that the slave's response is being received by the PCI card, but the problem is that LabVIEW simply isn't reading the response from the card. Each time the driver VI is run it returns a "timeout waiting for slave to respond" error.
The VI and slaves I am using are designed for both RS-232 and 485 communication. I've verified the VI to run in 232 mode on a different COM port. I also wrote a simple VI using the VISA functions to test the ports on the PCI card, but I've had the same results. Hardware connections have been looked over carefully, but the fact that the card actually sends a correct message and receives a correct message indicates a different problem.
Any idea why LabVIEW can talk to the PCI card but can't hear it? Is there anything I can do about this, or does LabVIEW generally not like StarTech's PCI2S485 cards?
Thanks,
Tim
RS232 interface consist of 2 indipendent communication crossed lines between 2 devices (9DSub connector: Pin 2-RX Pin 3-TX pin 5-Gnd)
RS485 interfaceis a bus, shared between 2 or more devices. (like ethernet or CAN Bus)
This means that an incorrect use of the bus can lead to a "packet collision" if 2 or more devices try to send a message on the bus at the same time or at least their messages, partially "overlap"
About 10 years ago I have used a PCI 2 RS485 port: I remember that I have to change the status of RTS serial control line to switch between transmit and receive mode.
This can be done using the serial VISA property:
Serial Settings --> Modem Line Settings --> DTR State
or using the VI
<LabVIEW dir>\vi.lib\Instr\_sersup.llb\serial line ctrl.vi (LV 8.6.1)
The result was that the slave device connected, send me the response after few nanosec. causing the lost of the answer.
because LabVIEW use more than some nanosec. to change RTS property after sending message on the 485 bus calling a VISA Write.
So for me there was 2 possibilities:
- use 2 RS485 port (1 for transmit 1 for receive echo transmit included)
- use this converter
http://www.advantech.com/products/ADAM-4521/mod_2E78D425-8B08-43F6-81B0-1B924E53E075.aspx
this converter, after sending a message on the bus, electronically switchs back to receive mode without losing a byte.
But the question is :
what does it means
"RS-485 mode supports Auto Transceiver turn around (ATTA)"
of your card?
bye -
Question about send/receive data in as3
hello
i want to ask : how can i send data from flash to php using as3 and receive data from php using flash .
and another question : how can i upload files using as3 .
thank you .Look into URLLoader documentation for sending/receiving and FileReference for uploading:
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/URLLoader.html
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/FileReference.html -
Hi All !!!
I am developing a program to receive and send data over GPRS. A remote device is sending data at a particular port (6600) of my server. I am able to read that through ServerSocket. However I am not being able to send any data to that device.
Any help?I am using the code:
// Constructor
public ServerSocketReader(Socket socket) {
super("MultiSocketThread");
this.clientSocket = socket;
this.setDaemon(true);
public void run() {
try {
OutputStream out = clientSocket.getOutputStream();
InputStreamReader in = new InputStreamReader(clientSocket.getInputStream ());
//BufferedWriter bw = new BufferedWriter(new FileWriter(_filepath, true));
java.util.Date date = new java.util.Date();
SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd-MMM-yy HH:mm:ss");
GprsProtocol protocol = new GprsProtocol();
int charCount = 0;
char[] cBuffer = new char[1000];
byte[] bBuffer;
String fromClient = "", toClient = "START";
int ii = 0;
while ((ii = in.read()) != -1) {
fromClient = fromClient + (char)ii;
if (fromClient.endsWith("2Y")) { //according to protocol
toClient = protocol.processInput(fromClient); //Protocol
bBuffer = toClient.getBytes();
for (int k=0; k<bBuffer.length; k++) {
out.write ((char)bBuffer[k]);
out.flush();
fromClient = "";
out.close ();
in.close ();
clientSocket.close ();
//bw.close();
} catch (IOException ioe) {
//out.println("Error::" + e);
System.out.println("Error in writing file : ");
ioe.printStackTrace();
} catch (Exception e) {
System.out.println("Error in ServerSocketReader : ");
e.printStackTrace();
finally {
//this.destroy();
I am geeting the error at line :-
while ((ii = in.read()) != -1) {
the error is :-
java.net.SocketException: A connection with a remote socket was reset by that socket.: A connection with a remote socket was rese
by that socket.
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:104)
at java.net.SocketInputStream.read(SocketInputStream.java:82)
at java.io.InputStreamReader.fill(InputStreamReader.java(Compiled Code))
at java.io.InputStreamReader.read(InputStreamReader.java:256)
at java.io.InputStreamReader.read(InputStreamReader.java:229)
at ServerSocketReader.run(ServerSocketReader.java(Compiled Code)) -
Hi
The terminal of my system can be received only up to 32 bytes.
Can I correspond by the code like the under?
It is not possible to test with an actual terminal yet.
short MAX_DATA = (short)32;
byte retData[] ; // The response data is stored.
short retDataSize; // Size of response data
/* Omission ... Data is set. */
apdu.setOutgoing();
apdu.setOutgoingLength(retDataSize);
short sOffset = 0;
while (retDataSize >= MAX_DATA) {
apdu.sendBytesLong(retData, sOffset, MAX_DATA);
sOffset += MAX_DATA;
retDataSize -= MAX_DATA;
if (retDataSize != 0) {
apdu.sendBytesLong(retData, sOffset, retDataSize);
}Yes why not ... The code that you've sent above can be implemented.
Your applet is the one deciding how much data it will send back in its io buffer after
all. Then if you know that the application that is going to use the card has some limitations,
it's normal to modify your applet behavior for your system to work properly.
Thomas
http://jaccal.sourceforge.net/ -
MS Outlook send/receive data file missing
Whenever I open up MS Outlook 2007, I get an error message:
"outlook cannot start because a data file to send and receive mail cannot be found. To add a data file, such as a person folder file, double-click the mail icon in windows control panel."
I have gone through and repaired the office program through add/receive programs and it did not work. Also, I have another computer that has office in my house, and all of the data files are the same - i cant find anything else that is missing. Is there anyone out there that has any ideas on how to fix this problem???listed-as-unwise wrote:
Whenever I open up MS Outlook 2007, I get an error message:
"outlook cannot start because a data file to send and receive mail cannot be found. To add a data file, such as a person folder file, double-click the mail icon in windows control panel."
I have gone through and repaired the office program through add/receive programs and it did not work. Also, I have another computer that has office in my house, and all of the data files are the same - i cant find anything else that is missing. Is there anyone out there that has any ideas on how to fix this problem???
please try going to
control Panel
Mail
Email Accounts
Thne check if you mailbox has been removed, if it has then please try readding including your ms exchange server name
Finish
Try launching Outlook again -
Best scenario sending/receiving data to/from remote office
We must implement some interfaces, sending and receiving from/to a great number of local office (more than two hundred) located arround our country.
Moreover this local office may be off-line all night long and also at times, so we must control it sending them information.
So... what's the best scenario in the case of SAP --> local office?
and what's the best scenario in the case local office --> SAP?
It's very important to guarantee control of exception and avoid lost of information.
Thanks, in advance.hi
if you want to transfer data from local offices to SAP and vice versa u need to use SAp XI in between and schedule the interfaces.
if u tell me you requirement in deatil i can help you out
regards
Sheetal -
Establish connection with database to send/receive data through Xcelsius
Hi
Iu2019m working on a Xcelsius project that requires to establish 2 way communication with the SQL server.
2 way communication requirement: When user selects an option (country) from the accordion component, it needs to send that to database as a query and retrieves that particular country data onto Xcelsius and refresh the chart data accordingly.
Iu2019m thinking of using ASPX to communicate between Xcelsius and the SQL server, but not sure how to proceed.
Appreciate if anyone can provide instructions or pointers to where I can get started with it
Thanks,
MalikMalik,
I had worked on a similar requirement, where Sql server should be integrated with Xcelsius and should retrieve real time data.
Here is what we did...
-->Configured web service on SQL server side (you will find plenty of doc related to this on google)
-->Configured Web Service connection in Xcelsius (by passing the WSDL url generated from the SQL server)
-->Developed dashboard in Xcelsius which retrieves data from SQL server realtime i.e. when user passes Variable value through a component (Combo box or anything), then this value in inturn passed to webservice, and then this web service will retrieve the data to Xcelsius.
Hope this helps...
-Anil -
1310 Bridge Associated but cannot send/receive data
Hi everyone,
I've just setup in my office a pair of 1310 with external antennas and I'm trying to test the link by pinging the other side from each bridge, but it seems like it's failing as I can't get any data through the link.
I've doublechecked my configuration and everything seems ok.
Below is the configuration:
Root Bridge:
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
hostname root
enable secret xxx
no aaa new-model
dot11 ssid ip-mon
authentication open
authentication key-management wpa
guest-mode
wpa-psk ascii 7 12345
bridge irb
interface Dot11Radio0
no ip address
no ip route-cache
encryption mode ciphers aes-ccm tkip
ssid ip-mon
speed basic-1.0 basic-2.0 5.5 11.0 6.0 9.0 12.0 18.0 24.0 36.0 48.0 54.0
packet max-retries 3 0 fail-threshold 100 500 priority 5 drop-packet
packet max-retries 3 0 fail-threshold 100 500 priority 6 drop-packet
no preamble-short
channel 2472
station-role root bridge
beacon dtim-period 10
world-mode dot11d country GR both
bridge-group 1
bridge-group 1 spanning-disabled
interface FastEthernet0
no ip address
no ip route-cache
bridge-group 1
bridge-group 1 spanning-disabled
interface BVI1
ip address 192.168.10.2 255.255.255.0
no ip route-cache
ip default-gateway 192.168.10.1
ip http server
ip http authentication local
no ip http secure-server
ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
snmp-server community community RO
bridge 1 route ip
line con 0
login local
line vty 0 4
login local
end
Non-Root Bridge:
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
hostname non-root
enable secret xxx
no aaa new-model
dot11 ssid ip-mon
authentication open
authentication key-management wpa
guest-mode
infrastructure-ssid optional
wpa-psk ascii 7 12345
bridge irb
interface Dot11Radio0
no ip address
no ip route-cache
encryption mode ciphers aes-ccm tkip
ssid ip-mon
speed basic-1.0 basic-2.0 5.5 11.0 6.0 9.0 12.0 18.0 24.0 36.0 48.0 54.0
packet max-retries 3 0 fail-threshold 100 500 priority 5 drop-packet
packet max-retries 3 0 fail-threshold 100 500 priority 6 drop-packet
no preamble-short
channel 2472
station-role non-root bridge
beacon dtim-period 10
world-mode dot11d country GR both
bridge-group 1
bridge-group 1 spanning-disabled
interface FastEthernet0
no ip address
no ip route-cache
bridge-group 1
bridge-group 1 spanning-disabled
interface BVI1
ip address 192.168.10.3 255.255.255.0
no ip route-cache
ip default-gateway 192.168.10.1
ip http server
ip http authentication local
no ip http secure-server
ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
snmp-server community community RO
bridge 1 route ip
line con 0
login local
line vty 0 4
login local
end
Any help or suggestions are welcome.
Thank youI understand your reluctance to use the GUI to configure the AP but having worked with this product since it ran on VXWorks the GUI is the way to go because the CLI documentation falls a little short on this product when it comes to configuring anythisn but the IP address and WEP encryption. That is why I always reccommend using the the GUI for these configurations. With the GUI you can eaisly save the config file and reapply it to an AP, also as it is saved as a .txt file you can edit it to your hearts content in notepad or telnet to the AP and use the CLI to edit it in place.
I have seen to many config errors when the CLI is used when 5 minutes with the GUI resulted in a working AP.
I know the GUI works give it a try and check the resulting config file.
I'll get off my soap box
good day
Bill -
Tomcat doesn't send all data while Jetty does
I am using the following code in a servlet to send data back to a J2ME application:
data = myResp.serialize();
response.setStatus(response.SC_OK);
response.setContentLength(data.length);
response.setContentType("application/octet-stream");
OutputStream os = response.getOutputStream();
os.write(data);
os.flush();
os.close();
.and the following input code on the J2ME side (simplified a bit):
int len = (int)conn.getLength();
in = conn.openInputStream();
_data = new byte[len];
while (total < len) {
total += in.read(_data, total, len - total);
.Using Jetty as the servlet container, I am able to SEND and RECEIVE data without any problem. Using Tomcat, I usually get a -1 on the CLIENT side when trying to read the data. The CLIENT gets the length from the content header but there doesn't seem to be any data.
Simply put, what is wrong ? Is there a setting in Tomcat that I should look at ? Why would Jetty work with this code and not Tomcat ? This seems like simple standard stuff.
Thanks
=Alan=You should never explicitly close the ServletOutputSteam. The J2EE container will do that for you. You can still do the flush, but try it without the close.
-
Port number on which SAP receives data from extrernal systems
Hi,
We have an external application which sends/receives data to/from SAP. I am trying to figure out the port on which SAP server getting/sending data. Every time on SAP server side, the port opened is sapgw01( sapgw<system number>). Can anyone tell how to figure out the correct port on which SAP is operating in this case ?Hi
check the following link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4e515a43-0e01-0010-2da1-9bcc452c280b -
Sending/reiving data remains on screen. How to get pass this?
Password protected PDF (e-book) does not open anymore with Adobe Reader. "Sending/Receiving data" remains at bottom of screen. What to do?
Put it in Recovery Mode. If your computer won't recognize your iPod, try another one. How did you wiped the iPod? With iTunes or directly with the settings app?
Maybe you are looking for
-
Help, iMac is unusably slow
Hi, I have a mid-2007 iMac running 10.9.4 which has become incredibly slow: 5 mins to open an app, 30-60mins to start up. I've searched the forums already for similar problems and here's what I've tried so far: Verifying/repairing disk (and permissio
-
I teach at a school that is using netbooks next year - the screen size is 1024 x 576 for one model and 1024 x 600 for another model and color quality is 32 bit. To our dismay, when we loaded Lego Mindstorms software to test it, we discovered that th
-
Provisioning users to access Planning apps in Calc Manager
What provisioning role in Shared Services determines whether or not an end user can see a Planning application in Calc Manager? One of my analysts can only see one of our three Planning applications in Calc Manager. I can see all 3 apps in Calc Manag
-
After itunes update to 10.7.0.21, videos won't play
After udating to the latest version (10.7.0.21), none of my videos will play. These are all itunes-purchased videos that have played before with no problems. I do not receive any error messages from itunes. Instead, the video jumps, skips, and freeze
-
How to transfer stock(lgort) amount to another stock(lgort)
Hi, i want to transfer some of the one warehouse amount to another stock, how can i do that? thanks Moderator message : Not enough re-search before posting. Thread locked. Edited by: Vinod Kumar on Aug 3, 2011 11:38 AM