sharing data via TCP/IP
I finished by writing a LabVIEW program that I run in S.C. It would be nice to watch some variables from my office here in OH. Although we have several States apart we are on the same network domain. I suspect that there is an easy way to do it. Could someone point me in the right direction for the good vi or information?
There is an example of 'several customers' that comes with LabVIEW. Just look for TCP/IP in the finder of the example. If you set up your code to handle multiple TCP/IP connections, you can have it send data to multiple clients (your computer being one of them)
Tags: NI Software
Similar Questions
-
Hi all
I am trying to write a very simple application that will transfer data via TCP to another computer running a TCP server. (About 3K of data)
Although I followed the code example in the 4.6 Java Development Guide, page 101, on the use of the socket connections, (http://na.blackberry.com/eng/deliverables/3802/development.pdf) I've been running into questions that data transfer crashes after an undetermined number of bytes.
Someone at - it sample code to open a TCP connection and sending the data? This seems to be a very common thing to do, so I don't know what is my problem.
Thank you
DanielI'm not going to answer your first question, I think that we must resolve this problem before you watch something else (and I suspect they are all related).
I would almost guarantee that you run your socket send and receive on the thread of events. The thread of events, that's what treats your interaction Menu, trackball movement etc. If you perform a long running or blocking on this Thread, your device will freeze.
Look at the demo of Socket and move your network of transformation to a Thread separate, as does the sample.
To confirm that the treatment of your socket is executed on the event Thread, you can add this code, run it in the Simulator and watch it in the output window of the debugger and set a breakpoint on the line to System.out.
If {(Application.getApplication (), isEventThread ())}
System.out.println ("running in the thread of events and should not be");
}
-
The reading of data acquisition via tcp
Hello
I am building an application that controls an acquisition of data via tcp.
I have a JAVA program that communicate with labview, give a command and data acquisition starts. (So, I read the correct Java data at Labview)
My problem is if I try to read data acquired by data acquisition (continuous sample 1 k samples), I've read strange values.
I transform of double values in the string and send it via tcp.
How can I read it in Java? What type of socket should I use? What is a rate problem?
I also tried to transform small/big-endian byte order, but it does not work.I enclose a sketch of this part of the application.
Please help me, I try for 2 weeks!
Thank you all...I find the solution in the lavag forum.
I post here, if it can help someone.http://lavag.org/topic/16359-sending-LabVIEW-data-via-TCP/page__pid__99983#entry99983
-
flatten to a string for sending via TCP/IP contains CRLF characters
Hello
I use a function 'flatten in string' to send data via TCP/IP.
To minimize delays, I use CRLF mode so that the receive function returns as soon as it receives a sequence CRLF (stop character).
I noticed that every now and then that part of the data is transmitted as the flattened string itself sometimes (but rarely) contains CRLF characters.
I was wondering if this is a correct behavior, or if I'm missing something. I expected to flatten to string in order to get channels pure ASCII without special characters.Now I must first parse the string replace the CRLF characters of some known series of characters and do the opposite to the front desk and hope that that particular sequence never occurs.
Any comment is appreciated,
Manu
mkdieric wrote:
I expected to flatten to string in order to get channels pure ASCII without special characters.
I don't know why you would think this. A CR or LF is no more extraordinary than any character. In addition, the string you out is not "ASCII" and has never been--check the documentation. The output is entirely dependent on the entry, and it is perfectly possible to get a (hex 13) CR followed by a LF (10 hex) if the entry would produce flattened data which means that.
A better method, in my opinion, is to precede that you send with the number of bytes to wait. Then beside reception read you a fixed number of bytes for the numerical value that indicates the number of bytes comes, and read you this amount. The examples provided with LabVIEW show you this method.
-
How to send data then other more via tcp
Well guys, I am having some problems with it
I have a program to labview that record and show for me in a chart, the voltages and currents
now, I want to do a software... that I can follow the datas of my company...
so I do a server/client via tcp
and I've managed to pass data from one... but I need pass 6 data both
I tried to make a tab control...
But if I put the data received as a tab control
the values do not change x)
I put the server code and client...
so maybe if you guys see
you will understand!
Thank you guys!
-
Howdy,
To listen to the radio online or CD played from my computer, I used to connect the computer to my entertainment system at home since the headphone jack of the computer to the port on my home entertainment system.
Now, I wanted to get a better sound and bought the optical audio cable. However, I don't know how to tell my computer to send the audio signal to the system entertainmeny home via digital cable optical, rather than by the headphone. If I just disconnect the cable between the headphone and the port to THE and have only the PC and the system connected with the optical audio cable, I can't hear any sound. I suspect that the computer is not sending the data through the optical audio port. I'm not able to figure out how I can adjust the settings on my computer so that, from now on, all sounds are emitted through the optical audio.
(1) I want to do it especially for my desktop HP (configuration below) and advice on how to do this would be appreciated.
(2) I also have a HP laptop (configuration below) and I was wondering if this would be feasible too (even if she does not have an audio output, but it has an HDMI output - you can convert audio optical?)
Thanks in advance!
My office is:
WANT to h8xt,
• Windows 8 64
• 3rd generation Intel (r) Core processor quad-core i7-3770 [3.4 GHz, 8 MB of shared cache]
• 12GB DDR3 1333 MHz SDRAM [3 DIMMS]
• 1 TB 7200 RPM SATA hard drive
• No secondary hard drive
• 1 GB AMD Radeon HD 7570 [DVI, HDMI, DP, VGA adapter]
• 300W power supply
• DVD SuperMulti burner
• LAN wireless-N (1 x 1) card
• 15-in-1 reader cards, 2 USB 2.0 (front), 2 USB 3.0 (top)
• No additional desktop software
• No additional security software
• No TV Tuner
• Beats Audio (tm) - a built-in studio quality sound
• HP USB volume control keyboard and mouse with Win 8 keyboard
• Adobe Premiere Elements and Photoshop Elements 10And the laptop:
HP ENVY 15t Quad
Hello @_goma,.
Welcome to the HP Forums, I hope you enjoy your experience!
I read your post about how you want to send all the audio data via an optical audio cable instead of the headphone jack of your computer, and I'd be happy to help you in this case!
To configure your desktop computer to activate the optical audio cable, I advise you to follow the steps below:
Step 1. Click on the button of the Windows key on your desktop
Step 2. Type "Control Panel."
Step 3. Select "Control Panel" in the upper right corner
Step 4. Select sound
Step 5. On the Read tab, right click on the white box under available devices
Step 6. Select "Show disabled" and "show disconnected devices".
Step 7. Connect your Audio optical cable
Step 8. Select your cable Audio perspective as the default device, and click 'enable '.
Because it is not possible to convert the audio output HDMI output on your laptop, it is regrettable that the laptop is not able to connect with an optical audio cable.
Please re-post with the results of your troubleshooting, and I look forward to your response!
Concerning -
Transmission of data via the Ad Hoc network in LabVIEW
Hello
I'm trying to transmit some data (position, speed, etc.) a laptop computer to a host computer.
The laptop and desktop have the card installed wireless so I thought this would be a good
the idea of transmitting data via Wi - Fi using TCP.
However, the problem is that there is no router/modem in the area where the laptop is sitting
so, I create a network of Ad-hoc (computer to computer) between the laptop and the desktop computer.
Then, I use "ipconfig/all" in the Windows command prompt to extract the IP as follows.
IP address wireless laptop: 169.254.165.72
IP address Wireless Desktop: 169.254.102.126
Desktop Ethernet IP address: 129.94.229.230
I then use the code example in the TCP library named 'Data Server.vi' and "Data Client.vi."
I listen on port 6340 times the wireless and ethernet desktop on the side map server.
And on the side of the customer, I opened a connection to port 6340 169.254.102.126 IP address.
However, the connection cannot be granted. Anyone know why this is the case?
Note: I have disabled all firewalls.
Interesting, when 2 computers are connected to the same modem, their IP addresses
differ only by the last number (e.g. XXX.XXX. XXX.123 vs XXX.XXX. XXX.256), but when an ad
the House of Commons network is established, their IP addresses have 2 numbers that are different. (XXX.XXX.
102,126 vs XXX. XXX.165.72) I wonder if this has nothing to do with the failure.
Thanks for all your help.
Ron Liou
I somehow this job.
What I've done
-Once again set up an Ad hoc network for the labtop and Office
-verification of the IP address is always the same
> Portable wireless IP address: 169.254.165.72
> Portable wireless subnet mask: 255.255.0.0
> Wireless Office IP address: 169.254.102.126
> Wireless Office subnet mask: 255.255.0.0
-switch on the ICS of the ethernet on the desktop card
(This resulted in an IP different addresses assigned beng)
> Portable wireless IP address: 192.168.137.21
> Portable wireless Subnet Mask: 255.255.255.0
> Wireless Office IP address: 192.168.137.1
> Office Wireless Subnet Mask: 255.255.255.0
Now I use the ip address of office (192.168.137.1) to open the connection
and it works! ??
I am very pleased with the fact that it works but I would like to have one
explanation on why it takes an ICS.
Thank you!
-
Connect two targets in real time via TCP/IP
Hello everyone
I need to connect two targets of RT on TCP/IP protocols
I have two sbRIO Council related to a single host PC through an Ethernet router
and I have two IP address of these two targets, how do I RT - RT ping using the TCP/IP protocol...
Thank you
Syed irfan
irfan789 wrote:
As I am with RT if the IP address of the two targets has a role to play in this communication via TCP/IP
In order to open a TCP connection, you must provide the IP address of the remote computer. It does not matter what operating system, the remote computer is running. If that does not meet your question, so I don't understand what you're asking.
-
Sharing data between the host computer stores in different groups.
I read in several places that sharing of data warehouses between the host in different groups is possible, but I don't get the warm and fuzzies when the hosts are different versions.
vCenter is 4.1
Group Alpha is 4.0 vmfs 3.33
Bravo of cluster is 4.1 vmfs 3.46
My goal is to move the virtual machines that meet the specific criteria of group Alpha for Cluster Bravo then the availability of flowing freely between clusters.
The only concern I have is when adding Cluster Bravo to the same host of 3PAR alpha value of Cluster sharing all the data store, Cluster Bravo will try to reformat to vmfs 3.46 break Cluster Alpha to see the virtual machines stored in the warehouses of shared data? I don't want to present the old warehouses of data to the new cluster only break from old cluster.
Hello vmsjsn
ESX/ESXi 4.X supports all versions of VMFS file system.
Using your example of Alpha and Bravo. Kudos to will write more Alpha. you will be able to cross all hosts on the shared storage.
-
PDF attesting to the safety of the shared data or folio
Hello
We have a client with which we will begin a contract of application sharing.
He wants to have a document or .pdf attesting to the safety of the shared data or folio.
do you have a response to this topic please
Thanks in advance
http://wwwimages.Adobe.com/content/dam/Adobe/en/security/PDFs/adobe_dps_security_wp_web.PD f
Neil
-
Hello
I've given cluster and can store files and it is clustering ID in the new database using the ODM. I group these data via SQL dev. Oracle again but I'm not for any folder for the storage of cluster ID. How do I? can I put something in response or detail node?Hi Nasiri,
In your description, you have only the Cluster node as entry in the node to apply it. You should also connect a node type of source of data as well. Just to get this to work, why not connect the source of input data to your Cluster node to the node to apply it. If the node to apply it should have 2 inputs, a node of type of data source, but also a model node.
Thank you, Mark -
Lost ESX Server shared data store
Hello
I can't find the data store shared in one of my ESX Server. And I try to rescan and may find the logic unit number but just can't find the shared data store. This is the channel san fibre storage system.
Is it possible to return the lost shared data store?
Thanks in advance!
LAN
You mean it must be confirmed if the partition table is OK first? But how to confirm...
Just run this command:
fdisk-l
You should see your LUN with a VMFS (type fb) partition.
André
-
Store shared data will not be displayed in the laboratory Manager
I have a shared data store that is fully recognized by both my ESXi hosts in pointing that client vSphere vCenter Server. I can browse the data store, download files, delete files, but not even opinion in Lab Manager. I tried to remove and re-add the data several times store. using a different initial host each time. The data store is picked up again by the two hosts and its status shows as usual in the vSphere Client. No matter what I do well, I can't make it appear in the laboratory Manager. Does anyone know where I could go wrong?
Thanks for your help,
will be
You don't want to say that in the resources tab Datstores, you do not see this at all shared data store? You are in global org global org or not? What version of LM do you use?
If you are in an organization overall, newly added data store should appear immediately. But if non-global organization, go to the Organization-> properties-> data warehouses and add this new data store.
MoHA-
-
How to rename a data via command store during automatic installation
Hi, the automatic installation of my servers esx and post script exec I wan't to rename the local data store to esx 3.5. I tried to find a solution here in communities and also tried the following commands
vimsh - n e "datastore/hostsvc / / rename oldname newname.
VMware-vim-cmd hostsvc/datastore/rename oldname newname.
but nothing happens when I use these commands and I get no error message.
Anyone know what I am doing wrong and how can I rename local warehouses of data via command line?
Thankx
Frank
We have a set of post scripts that are executed after the first reboot after the construction, by default the local data store must be named storage1
You can do the following:
ln -sf $(readlink -f /vmfs/volumes/storage1) /vmfs/volumes/$(hostname -s)-local-storage
or of any naming convention you want
=========================================================================
William Lam
VMware vExpert 2009
Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
-
Hello
I have a simple display object that I use to connect, he questions just the user name and password in the users table.
I have an another display object that uses a query much more complex that retrieves detailed information about this user in different tables.
I have a simple taskflow, a view of the opening of session and a current view, if you log in successfully, you go to the main page.
Now if I use the first view (simple) object to display the username etc then it correctly displays the name of the user who is logged.
If use the other more complicated view opposing it just show the first returned row.
In short, my question is this, if I connect with the object from a point of view, how can I tell the view which line to select another object? I.e. the details of the logged-on user?
I tried to create a link between the objects in view, but which only sort of worked. After that I logged it didn't show the correct line, but after I went to another page that uses the original view object, then he did display the line concerned.
I bet that it would make no sense, but I don't know how else to explain it.
I connect with the view object X.
View object there may not know what line in X, I'm interested.
If I connect X to Y then I have to go to another page in the application X is used in front go understand what line X is on.
Help, please!Looks like your 'Complex' view must have a binding parameter to filter the query of a specific user and your speed of connection must pass this id on the container page.
Discover models of sharing data between regions here:
http://www.Oracle.com/technetwork/TestContent/adfregioninteraction-155145.html
Maybe you are looking for
-
Portege R600-S4201 - a problem the new Bluetooth connectivity
R600-S4201Windows XP - SP3Nothing weird about it. This laptop a kilo has been great for 1.5 years, although the "speaker" is insufficient. I just bought a great Yamaha Bluetooth stereo speaker and paired with success. HOWEVER, "coupling" does not las
-
Hello 1. I see that in the past was also file system VFAT was used. but I've never heard of this file system until today. is it now used in any system? 2. I see Linux a ext4, ext3, ext2, files systems, but where is been used or were using reiserFS f
-
error java\jre6\bin\ssvagent.exe on IE start-up
Hello Would appreciate your help in fixing this issue during startup of IE works on vista java\jre6\bin\ssvagent.exe
-
Dear customers, Must understand the traces in the JGW process below, these settings include what information and responsible? also if this monitoring can be activated for a longer period of time. > trace JT_TPREQUESTS /on > trace JT_JTAPI_EVENT_USED
-
To display the taskbar and Start Menu Properties dialog box
To display the taskbar and Start Menu Properties dialog box, click on? in the context menu of the taskbar.