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.
Tags: NI Software
Similar Questions
-
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 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
-
Sends data from LaunchPad MSP430G2553 Labview
Hi all
So, I have a MSP430G2553 LaunchPad and I want to be able to send data to Labview via USB to UARTusing.
What I do in the MSP430G2553?
Well, I wrote code that whenever I press a button on the LaunchPad it I send hollow text USB using UART. Using a program on my PC that monitors my serial port, I can confirm that, whenever I press the button, the text comes to the PC. I was also able to send commands to the monitor (it has a 'send the command' field) to the MSP430. If the connection works fine, between LaunchPad and PC.
What I did in Labview?
On the piece attached "" Labview_MSP430. "» JPG"you can see my code. Whenever I click on the "VISA resource name" there is no COM. It is said that "Refresh", and even when I click on it nothing happens. As you can see in the file "Device_Manager.JPG" PC can see my device in COM3 MSP430.
So my question is, what should I do for Labview can see my device COM3/MSP430G3553? And then, my correct code so that it can read the port series?
What is important is that the com port is visible in MAX (Measurement and Automation Explorer) and for the port is visible, you must install the driver NI-VISA.
In your code, you must also add the VISA configure the Serial Port. Replace the VISA open with her. Inside the loop, you should not use VISA bytes to the Serial Port. The msp code must be set up to add a newline of endpoints (i.e.) and simply set the number of VISAS read of bytes to an arbitrarily high number. Playback will be automatically terminated when the character is detected.
-
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 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 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.
-
Send with blackBerry Smartphones, how to retrieve data from blackberry?
Hi, I need to send an email to blackberry and on the user's response, I need to store this data in the database. Can u please help me in this regard. How to send email from web browser, and then retrieve the data in a database.
khushi289 wrote:
OK ya... We use Tomact 6. How do you after thatIt is a forum oriented BlackBerry technology, you have questions about web development. I think it's best for you is to find some tutorials on the internet on "how to create a web application on tomcat with a database" or try a forum oriented Tomcat directly.
-
How to transfer data from a DLL Delphi pascal class to a LabView data cluster?
Hi all
I have the following problem:
I use a dll written in Delphi Pascal to transfer data to LabView by using the "Call library function node".
My Delphi dll contains this class:
TFlash = class
Fi: TFileInfo;
constructor Create;
procedure LoadFi (Filedir_and_nametring);
end;TFileInfo = record
IDX:smallint;
IdxLstSpl:array [0.4] of longint;
Ms: Word;
[0.4] SP:array of the word;
end;I created the record datastructure of TFileInfo in a cluster of LabView to have the 'same' variable.
My plan was to call a DLL Deplhi function with the "call library function node" and pass the address of the folder TFileInfo, so the data would be transmitted to the cluster of LabView.
When I do a simple delphi dll function as this works because I only spend a small integer to Labview (without reference to the data structure):
...
var data: TFlash;
...
function GetNrOfRows(FilePath:_string):integer; STDCALL;
Start
Data: = tflash. Create;
Data.LoadFi (FilePath); This function returns the number of lines in the selected file.
Result: = Data.Fi.Idx;
end;When I try to use this procedure instead of the above function, in order to pass the address of the data set structure complex 'Data' (TFileInfo), I am unable to get the information of 'Data' in my Labview cluster:
procedure LoadFileInfo (FilePath: string;) DataPointer: Pointer); STDCALL;
Start
Data: = tflash. Create;
Data.LoadFi (FilePath);
DataPointer:=@Data;
end;Parameters of call library function node:
-stdcall (WINAPI)
-Run in the UI Thread
-Function prototype: void LoadFileInfo (PStr FilePath, void * DataPointer);
* DataPointer--> Type: "adapt the type" and the format of the data: "pointers to the sleeves.
* FilePath--> Type: 'string', format of the string: "pascal string pointer.
I'm struggeling with this problem for almost a week now and I can't really find a solution on the forum or google.
I also read the following posts:
http://forums.NI.com/NI/board/message?board.ID=170&message.ID=229930&requireLogin=false
http://forums.NI.com/NI/board/message?board.ID=170&message.ID=77947&requireLogin=false
http://forums.NI.com/NI/board/message?board.ID=170&message.ID=51245&requireLogin=false
(or did I miss something in these messages?)
Hope my explanation is clear.
THX
A little further:
Seems like it's not possible to pass data from Delphi to Labview through a DLL when I create a cluster with 2 bays in it in Labview.
This part of Delphi, I've had to make in Labview:
TFileInfo = record
IDX:smallint; {integer; Convert tool}
IdxLstSpl:array [0.4] of longint;
Ms: Word;
[0.4] SP:array of the word;
end;Instead of using 1 cluster with all the different data in it, I did a unit (1) with my 2 items (smallint and word).
To pass my data in my tables from delphi to labview, I created another group (2) in the unit (1) with 5 elements of longint (because my delphi is going to 0.4) and another group (3) in the unit (1) with 5 Word elements.
Right-click on the unit (1) and the clusterorder in the right order. First the smallint, then the longint table, then the word and the Word table.
When I then use this code in my dll Delphi, IT WORKS! :
procedure LoadFileInfo (FilePath: string;) DataPointer: PtrTFileInfo); STDCALL;
Start
Data: = tflash. Create;
Data.LoadFi (Copy (FilePath, 2, length (FilePath)-1)); --> I need to cut the first part of the pascal string because it's length, and I only need the string itself
DataPointer ^: = Data .fi; --> pass the record structure to the cluster of Labview
end;Thanks for the info Ralf!
-
How to acquire data from the memory of the meter
I am a beginner of Labview. I don't know how to acquire data from the memory of the meter.
I read a few examples of data acquisition, but apparently not similar to my case. I can't use DAQ in my computer, because I don't have DAQ card.
Could someone give me some pointers? Similar examples would be great.
-
How to transfer data from USB key
How to transfer data from the reader flash player (C), when you open send it to it does not have this option
Drag & drop.
-
How to erase data from the iphone if I lost and iphone is offline
How to erase data from the iphone if I lost and iphone is offline
< post branched out by host >
Hello
What to do if your iOS device is turned off or offline?
If your missing device is turned off or offline, you can still implement this Mode lost, lockor remote wipe. The next time your device is online, these measures will take effect. If you remove the device from your account while it is offline, pending actions for the device will be cancelled.
If your iPhone, iPad or iPod touch is lost or stolen - Apple supports
-
How to delete data from the iPhone 5 c?
How to remove data from my iPhone 5 c?
What do you mean by data? Applications, photos, music?? It depends on what you're trying to delete.
-
How to transfer data from a mac mini in 2006 for a new?
How to transfer data from a mac mini in 2006 for a new?
The following can help:
Move your content to a new Mac - Apple Support
OS X: manually the Data Migration from another Mac - Apple Support
-
How to transfer data from my computer to a new phone
How to transfer data from my computer/Itunes to a new device? I downloaded all my data from an Iphone 4 on my computer and I wonder how to transfer all of these data to an Iphone 5 that I own. I need to my emails and text messages transfer too. Any ideas? Email that I have Setup with my phone is an email from work, so it is important that I do not lose one of them.
You must put all your media files in iTunes. Synchronize your phone using iTunes.
Maybe you are looking for
-
Firefox icon from the top of the Web page, how to make this return?
Tab menu Firefox went
-
Photosmart 6520: Prints too small
I'm more able to print a normal size postage label. I used to and now suddenly it prints so small that there is no way a factor could read them. Any ideas?
-
Question of AirPlay with mid-2011 EL Capitan-ATV2 MBA
Hello I'm not able airplay for ATV 2 of my MBA mid-2011 with the latest version of EL Capitan. Airplay works perfectly fine with my iPhone and ATV 2 software up-to-date 6. The MBA Firewall setting is also disabled. Any help / tips to solve this pro
-
HP TouchSmart window 7 drivers x 64 15-n013dx
I need drivers Windows 7 x 64 for this laptop! I know it is installed with Win8 and only Win8 drivers are provided on the HP site, but my client prefers 7. Update Windows 7 supports usually most drivers for laptops, but it seems that I have both the
-
missing shortcuts = designates refers to has been changed or moved
After you have uninstalled a few eternal programs such as games and stuff from my computer and restart, most of the shortcuts icons photo Moose were replaced with General icons. When I try to open a place he says 'Point that this shortcut refers has