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!
Tags: NI Software
Similar Questions
-
How to send data in eloqua with using ajax?
Hello
someone tell me how to send data using ajax?
Thank you
Rahul
Hi Rahul
Using this code to send data to AJAX
$.ajax({)
URL: ' your action? elqformname = name of the form eloqua & elqSiteID = eloqua site ID',
type: 'POST',
data: "field name =" + document.getElementById('field_id').value + "="+ document.getElementById('field_id').value field name,
success: {function (html)}
}
})
Thank you
-
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");
}
-
How to send data to a Web service
Hello everyone. I have a very simple example of sending data (2222) to an existing Web service as follows:
topmostSubform.Page1.SEND::click - (JavaScript, client) var url="http://Localhost:8080/4DWSDL"; var serv = SOAP.connect(url); app.alert("hello "); serv.MethodeSOAP(2222); app.alert("hello 2");
However, it works fine in Acrobat, but not in the drive. Is it possible to make it work?
In addition, although in this example, the data to be sent are only worth 2222, but my goal is to send all the information from the form to a Web service. Someone has tried it before, or is there an other way easier to do? I would appreciate any suggestion on your part thanks
Hello
Via web service calls data connections will not work in the drive, unless the form has been activated in LC Reader Extensions ES2 to drive:
I have a summary here:
http://www.assuredynamics.com/index.php/2010/11/using-LiveCycle-Forms-in-Acrobat-and-Reade r.
Hope that helps,
Niall
-
How to send data from the client to the server using tcp
1. as I am new to watch I need help with sending data from client to server. I went through various examples of labview, but each of them also explains transfer of data to the client server. But I need help regardng send data from the server to the client.
2.i would use the data type variant for sending my data.
Can someone help me please. Thank you
Regardless of the meaning. Once you have a connection each end allows it to send data to another. Just create what you want to look like interaction.
Do you want the client sends a command that request data?
How do you think the response data to look like?You can send variants, but probably not worth the effort.
Mike...
-
How to send data to a datagrid, when you click on a line on a label in the other State.
I mean the Datagrid in state1, and state2 label
I try with this code:
protected function listDg_gridClickHandler(event:GridEvent):void
{
If (slistDg.selectedIndex == 0) {}
lblid. Text = "My Text";
currentState = 'State2 ';
}
}
If the label is on the main State it displays the text, but if I use the label in the state2 it gives me an error:
TypeError: Error #1009: cannot access a property or method of a null object reference.
any help?
I have fixed my car, just move the current state to the top and that's all!
protected function listDg_gridClickHandler(event:GridEvent):void
{
currentState = 'State2 ';
If (slistDg.selectedIndex == 0) {}
lblid. Text = "My Text";
It works!
-
How to send data from CANOE to LABVIEW
Hello
I need to receive data from canoe in Labview.
I prepared the VI (ex command.vi) sender and receiver VI (Simple UPD - receiver.vi) attached.
My problem is:
(1) when I run Canoe (arrested measure) and send the command start-> Canoe starts measurement. (OK)
(2) when I run VI receiver and send the command Start-> receiver receives the command. (OK)
(3) when I run the canoe, then run VI receiver and send the command start-> receiver VI receives command but DO NOT canoe starts measurement (canoe does not receive order). (NOK)
I use the FDX Protocol (UDP-based) and it looks like canoe and receiver VI can work simultaneously on the same port (2809).
How can I solve this problem?
PS: Later I want to put the canoe in free run mode to control the Labview application so I need to work VI receiver with canoe.
OK, now I get it.
Is there a reason that you need three applications (transmitter + receiver + canoe) at the same time?
Could not put the sender and receiver in a VI? That would solve your problem of port.
Another way would be to send messages to general circulation, so canoe and the other VI can receive.
A third option would be to send the message twice, once at canoe, once the receiver VI.
-
How to send data from c ++ to qml to an another qml.
Hello
I'm quite confused about a simple problem, I'm sure. Let me put some of my code and then I'll ask my question
hand. QML
// Default empty project template import bb.cascades 1.0 import bb.data 1.0 // creates one page with a label TabbedPane { Menu.definition: MenuDefinition { actions: [ ActionItem { title: "Refresh" } ] } showTabsOnActionBar: true Tab { title: qsTr("Employee") NavigationPane { id: everyonePane Page { id: everyoneFeed ListView { objectName: "FeedView" id: FeedView layout: StackListLayout { headerMode: ListHeaderMode.Sticky } listItemComponents: [ ListItemComponent { type: "item" DetailFeed { } } ] } } attachedObjects: [ ActivityIndicator { objectName: "indicator" verticalAlignment: VerticalAlignment.Center horizontalAlignment: HorizontalAlignment.Center preferredHeight: 200 preferredWidth: 200 } ] onCreationCompleted: { } } } Tab { title: qsTr("TimeSheet") Page { } } Tab { title: qsTr("Calendar") Page { } } }
detailView
import bb.cascades 1.0 Container { layout: StackLayout { orientation: LayoutOrientation.TopToBottom // this line stacks everything below } bottomPadding: 20 Container { // single row id: row1 // individual row container layout: DockLayout { } preferredWidth: maxWidth Container { // container for image preferredWidth: 150 //size of image if known preferredHeight: 150 topPadding: 10 leftPadding: 20 horizontalAlignment: HorizontalAlignment.Left verticalAlignment: VerticalAlignment.Center ImageView { preferredWidth: 150 //size of image if known preferredHeight: 150 imageSource: "asset:///images/person.jpg" // some image } } // stack labels Container { // container for labels horizontalAlignment: HorizontalAlignment.Left // align this container to the left translationX: 200 verticalAlignment: VerticalAlignment.Center layout: StackLayout { orientation: LayoutOrientation.TopToBottom // this stacks the labels } Label { objectName: "firstname" text: "first label" } Label { text: "second label" } } } Divider { } }
Employee.cpp
// Default empty project template #include "Employee.hpp" #include
#include #include #include #include #include #include #include using namespace bb::cascades; QString mQueryUri; Employee::Employee(bb::cascades::Application *app) : QObject(app) { // create scene document from main.qml asset // set parent to created document to ensure it exists for the whole application lifetime mQml = QmlDocument::create("asset:///main.qml").parent(this); // create root object for the UI mRoot = mQml->createRootObject (); // Retrieving my activity indicator //mActivityIndicator = mRoot->findChild ("indicator"); //mActivityIndicator->start(); // Retrieving my list from QML mListView = mRoot->findChild ("dribbbleFeedView"); GetFeed("everyone"); // set created root object as a scene app->setScene(mRoot); } void Employee::GetFeed(QString feedType) { // First off we initialize our NetworkManager QNetworkAccessManager* netManager = new QNetworkAccessManager(); if (!netManager) { qDebug() << "Unable to create QNetworkAccessManager!"; emit complete("Unable to create QNetworkAccessManager!", false); return; } // First off we initialize our NetworkManager netManager = new QNetworkAccessManager(); if (!netManager) { qDebug() << "Unable to create QNetworkAccessManager!"; emit complete("Unable to create QNetworkAccessManager!", false); return; } mQueryUri = "http://mycompany" + feedType; // We setup our url QUrl url(mQueryUri); QNetworkRequest req(url); // Setup the reply and connect to the reply function QNetworkReply* ipReply = netManager->get(req); connect(ipReply, SIGNAL(finished()), this, SLOT(onReply())); } void Employee::onReply() { QNetworkReply* reply = qobject_cast (sender()); QString response; bool success = false; if (reply) { if (reply->error() == QNetworkReply::NoError) { int available = reply->bytesAvailable(); if (available > 0) { int bufSize = sizeof(char) * available + sizeof(char); QByteArray buffer(bufSize, 0); int read = reply->read(buffer.data(), available); response = QString(buffer); success = true; Q_UNUSED(read); } } else { response = QString("Error: ") + reply->errorString() + QString(" status:") + reply->attribute( QNetworkRequest::HttpStatusCodeAttribute).toString(); qDebug() << response; } reply->deleteLater(); } if (response.trimmed().isEmpty()) { response = "Request failed. Check internet connection"; qDebug() << response; } bb::cascades::GroupDataModel* dm = new bb::cascades::GroupDataModel( QStringList() << "id"); dm->setGrouping(bb::cascades::ItemGrouping::None); // parse the json response with JsonDataAccess bb::data::JsonDataAccess ja; QVariant jsonva = ja.loadFromBuffer(response); QVariantList feed = jsonva.toMap()["employee"].toList(); QVariantMap player; foreach (QVariant v, feed) { QVariantMap feedData = v.toMap(); dm->insert(feedData); } mListView->setDataModel(dm); mListView->setVisible(true); } OK so here is my question. I load a listview, in my hand, calling another qml, detailview. Given that my PPC is load my json file how can I send what I receive in my datamodel in my detailfeed can I change we tell the label with objectName: "firstname" to change the text for datamodel.name?
Hope I am clear enough.
Thank you
I think that you can access ListItemData in detailView.qml. Say ListItemData.id.
Why do you add only a mapping in groupdata. I think you need to add all the necessary fields such as firstname and so on. Right?
bb::cascades::GroupDataModel* dm = new bb::cascades::GroupDataModel( QStringList() << "id");
-
How to send data from the Page with a form to fill out?
How can I automatically include the page title or any text in my Web page when my client click on the Submit button in a form to fill out?
This may seem obvious, but if you want to receive data from a form, and then place it in the form. A hidden form field with the title page and the text of your Web page will send these data on the form submission.
best,
Shocker
-
How to send data from 150 morethen FlashVars
Hello
I need to send the data to flashvars, size is more then 150kb. This data set will be created by javascript.
Thanks in advance.
Chavigny
use a return in your js function to return data to actionscript.
You can use a timer loop to repeatedly query the js function and check whether the data is available. When this is the case, put an end to the loop and use the data.
-
How to send data to another class?
I have two classes, the main class and class data.
Main class creates multiple instances of data class, and it also has a variable to the collection of the messages in this case. If the code goes like this:
myData import;main/public class extends MovieClip {}
report of the var: String;
public void main() {}
addEventListener (Event.ADDED_TO_STAGE, init);
}private void init(event:Event):void {}
var a: myData = new myData ("file to process 1");
var b:myData = new myData ("process 2 file");
var c:myData = new myData ("file in 3");
}}
Data class attempts to load the file specified from different locations, chargers, headphones, and others, and I would as as listener to report what happens during and after loading the data into the main class.
public class myData {}
public void myData(fname:String) {}
Charger code "fname".
COMPLETE and ERROR listeners
}onError() {} function
Send message to the report in the main class
}function onComplete() {}
Send message to the report in the main class
}}
It is the normal way of doing things and how do I make it work?
I can not access the variable 'report' from inside the class, and I don't know if I can refer to the main class of inside the data classFor example:
package { import flash.events.Event; import myData; public class main extends MovieClip{ public var report:String; private var a:myData; private var b:myData; private var c:myData; public function main() { addEventListener(Event.ADDED_TO_STAGE,init); } private function init(event:Event):void { a = new myData("file to process 1"); b = new myData("file to process 2"); c = new myData("file to process 3"); a.addEventListener(myData.COMPLETE, onComplete); b.addEventListener(myData.COMPLETE, onComplete); c.addEventListener(myData.COMPLETE, onComplete); a.addEventListener(myData.ERROR, onError); b.addEventListener(myData.ERROR, onError); c.addEventListener(myData.ERROR, onError); } private function onComplete(e:Event):void { removeListeners(); } private function onError(e:Event):void { removeListeners(); } private function removeListeners():void { a.removeEventListener(myData.COMPLETE, onComplete); b.removeEventListener(myData.COMPLETE, onComplete); c.removeEventListener(myData.COMPLETE, onComplete); a.removeEventListener(myData.ERROR, onError); b.removeEventListener(myData.ERROR, onError); c.removeEventListener(myData.ERROR, onError); } } }
And in the data class:
package { import flash.events.Event; import flash.events.EventDispatcher; public class myData extends EventDispatcher { public static var COMPLETE:String = "loadComplete"; public static var ERROR:String = "loadError"; public function myData(fname:String) { // 'fname' loader code // COMPLETE and ERROR listeners } private function onError(e:Event):void { // send message to report in main class dispatchEvent(new Event(COMPLETE)); } private function onComplete(e:Event):void { // send message to report in main class dispatchEvent(new Event(ERROR)); } } }
Post edited by: Andrei1
-
How to send data back to office applications
Hi guys, I want to know all the possible ways to insert data in CRM OnDemand for legacy systems also the integration of options packages, it is best if you can tell me how to do it via web services, but no idea would be great. I ve heard talk of web links, but I Don t like that option so... can I do with the events of integration?
Thank you!!There are several ways to extract data from CRM On Demand, including:
* Export - Manual of the process, generate the CSV file containing data On Demand CRM
* List/Analytics - manual process, export the contents of a list report to a CSV file
Services - programmatic Web, developing an application that queries data within the CRMOD
* Events - programmatic integration, use workflow to trigger the creation of the event and then query for events, namely that an operation occurs on a record (i.e. Insert new record of account)As to enter these data into another system, this will depend on the system and the methods for inserting data it makes available.
I hope this helps.
Thank you
Sean -
How to send multiple lists to MYSQL via JSON
I have 3 list that users can add to
Each item is added to an ArrayCollection collection
[Bindable]
private var arrayKeyPointList:ArrayCollection = new ArrayCollection();
[Bindable]
private var arrayBulletPointList:ArrayCollection = new ArrayCollection();
[Bindable]
private var arrayQuoteList:ArrayCollection = new ArrayCollection();
It is one of the functions that is called when a user wants to add something:
private function addBulletPointToList (): void
{
If (txtNewBulletPoint.text! = "") {}
arrayBulletPointList.addItemAt(txtNewBulletPoint.text,0);
txtNewBulletPoint.text = "";
}
}
When they have completed all 3 lists, they hit the Send button. The code below is for testing only.
private function sendNewProduct (): void
{
var sendData:Array = new Array();
sendData.push ({keypoints:arrayKeyPointList.toArray ()}, {bulletpoints:arrayBulletPointList.toArray ()}, {quotes:arrayQuoteList.toArray()});})
var jsonSendData:String = JSON.encode (sendData)
jsonSendData = escape (jsonSendData);
Alert.Show (jsonSendData);
}
Make me properly, is there a better way? Also if I change the function add to:
private function addBulletPointToList (): void
{
If (txtNewBulletPoint.text! = "") {}
arrayBulletPointList.addItemAt({bulletpoint:txtNewBulletPoint.text},0);
txtNewBulletPoint.text = "";
}
}
I get this JSON output
[{"keypoints": []}, {'bulletpoints': [{"bulletpoint": 'test point bullet', "mx_internal_uid": "8F1AAB73-0783-132B-EE43-F1F4F29284FA"}]}, {"quotes": []}]
Although the mx_internal_uid aren't a problem, this means I send more data than necessary, why it does not appear and how do I get rid of him, do I need to change the function to all the arrayBulletPointList.addItemAt({bulletpoint:txtNewBulletPoint.text},0). or just leave it as arrayBulletPointList.addItemAt(txtNewBulletPoint.text,0);
Thank you very much!I have no problem with how you are pushing several bays in JSON and hoping that you are actually their right on the server.
ATTA
-
How to send data from the GET method?
Dear all,
I am trying to send a value list to a web server. Add the function to determine the value, I do not have here. The method I use is as below. I would like to know how is the value of the shipment to the web server that is the form of http://mysite:8080/test1/test1.aspx?myMessage=outputToServer. How to achieve this format?
Try
{
URL url = new URL ("http://mysite:8080/test1/test1.aspx"); ")
HttpURLConnection connection = () (HttpURLConnection) url.openConnection;
connection.setDoOutput (true);
connection.setRequestMethod ("POST");
OutputStreamWriter writer = new OutputStreamWriter (connection.getOutputStream ());
If (connection.getResponseCode () is HttpURLConnection.HTTP_OK)
{
Writer.Write ("myMessage =" + outputToServer);
Writer.Close ();
}
on the other
{
System.out.println ("connection not found :");
}
}
catch (MalformedURLException e)
{
System.out.println ("MalformedURLException");
}
catch (IOException e)
{
System.out.println ("IOException");
}Remove anything to do with the writer.
-
How to send data to a usb RS232 port 6009?
Hello world
The converter that I intend to order has a RS232 port (terminals 71 and 72 according to the schema; RXD and TXD) and the use of this I can set and read parameters and control commands. I want to use the DAQ USB 6009 therefor. The format of data will take place as follows: -.
A logical bit - 0 start
Eight data bits
A stop bit - 1 logic
There are only 3 acceptable speeds which are 300, 600 and 1200, because the converter is very old.
This makes my head completely, because I can't imagine a solution. Is it possible for the acquisition of data USB 6009 card?
Any help will be appreciated
Kind regards
Sandeep
If you want to control the converter RS232 commands, you must use a RS232 device. If your PC is not a COM port (free), you can use a good USB2RS232 converter market. The driver accompanying will provide a COM port for the OS and with the driver NI-VISA you can use in LabVIEW. Perhaps it is a LV-driver for the controller, just check the network OR Web driver.
Will need you a cable custom at least three sons of the COM port (usually a DB9 connector) to the converter. GND (DB) - PIN5 at 55, PIN 2 to 71, PIN 3 to 72 (maybe you need to Exchange 71 and 72, if you can't get a connection, more details should be in the converter manual).
You can start with hyperterminal for a first check, or use the RS232 interface - simple to write and read vi found in the examples of LabVIEW-help-find (don't forget the stop here character ;-)
Maybe you are looking for
-
When I visit a Web site that requires SSL I displays the message "this connection is untrusted". Any Web site that I visit, it's always exactly the same message and the same SSL certificate that she is no longer valid for www.thawte.com support.Mozil
-
Qosmio F50 - weird theyr then freezes
Hello I have a Toshiba Qosmio F50-108 for about 3 months and all of a sudden, now brands laptop a few strange noises (like whistle 2 times) one of them freezes. After that restart using the power button it works very well for about 4 days and then ag
-
How to recover lost data?
Hello I've done a clean install and does not back up photos and documents. Is it possible to recover? I need it a lot Thanks in advance
-
Windows blocks all a few minutes after the last round of updates and latest installation of IE
I ran the last round of updates of security and the upgrade of IE over the weekend. Now by PC crashes every 4 or 5 minutes. All I can do is to draw power and restart. the problem seems to happen more when messenger, IE, or firefox are used. Before I
-
Changing from xp to xp media without disc
I have an old dell latitude xt with windows xp on it, I would move support for windows xp for the dell printer from a old stuff on top of office that I have, I have the product key for the MC but no disc, is it possible to do? The dell drive is not w