Streaming data from another PC, combining it with DAQ measurement
Hi
I'm just getting back into LabVIEW after 2 years without using any NI software, so apologise if I'm missing something really obvious and this is a simple question. I have had a search of the forums, but can't find what I'm looking for. Perhaps I just don't know what to look for.
I'm starting to plan a combined data acquisition system for an engineering test, which will involve two PCs. I would like some advice on how to set up a LabVIEW system on one of them.
I need to produce a system which will:
(a) log measurement data using normal DAQmx method - that bit should be straightforward enough.
(b) import independent measurement data from the other PC, probably via an Ethernet LAN. What’s a good way to get data into LabVIEW?
(c) correlate the 2 sets of data. What I really want to do is feed the input data into my measurement system in real time.
(d) produce data files incorporating all data
I'm not involved in programming the system for the other PC, but can have some input into how it’s arranged.
Is TCP the best way to go? I would be very grateful for any guidance anyone can offer on how to do steps (b) and (c).
Thanks.
MRH wrote:
Hi
I'm just getting back into LabVIEW after 2 years without using any NI software, so apologise if I'm missing something really obvious and this is a simple question. I have had a search of the forums, but can't find what I'm looking for. Perhaps I just don't know what to look for.
I'm starting to plan a combined data acquisition system for an engineering test, which will involve two PCs. I would like some advice on how to set up a LabVIEW system on one of them.
I need to produce a system which will:
(a) log measurement data using normal DAQmx method - that bit should be straightforward enough.
(b) import independent measurement data from the other PC, probably via an Ethernet LAN. What’s a good way to get data into LabVIEW?
(c) correlate the 2 sets of data. What I really want to do is feed the input data into my measurement system in real time.
(d) produce data files incorporating all data
I'm not involved in programming the system for the other PC, but can have some input into how it’s arranged.
Is TCP the best way to go? I would be very grateful for any guidance anyone can offer on how to do steps (b) and (c).
Thanks.
You will have to give us more info about the dat on the other machine for us to be able to help.
Is the data on a web-page (DataSocket reads)
In a DAQ sub-system on the other machine (Action Engine Served to the clinet via VI server)
In a file on the other machine (map the drive and file read)
In memory on the other machine (SCRAMNet)
So tell us more about the data.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Similar Messages
-
How to stream data from TDS3000?
Hi there,
I would like to stream data from my scope into Labview for further analysis.
Hardware: Tektronix TDS3014C
Software: Labview SignalExpress 2.5.1 + Tektronix Extensions
I don't exactly know when the interesting transient signal appears, therefore I would like to save ~5-10 s of streamed data.
Right now I'm getting just fractions of 2 us and the scope switches into waiting for trigger.
Is there a way to deactivate trigger, or a keyword I could search for?
Thanks for your help,
nook
Solved!
Go to Solution.muks,
I think you got this post confused with another.
nook,
You can rarely continuously stream data from a GPIB scope. You can check the manual but often the scope cannot transmit at the same time it is acquiring so you have a sequential operation of wait, trigger, acquire, transfer, repeat.
Can't you set the trigger for the transient? -
How can i get data from another database SQL Server use database link from
I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?
hi,
u should see following documentation:
Oracle9i Heterogeneous Connectivity Administrator's Guide
Release 1 (9.0.1)
Part Number A88789_01
in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
regards
umar -
Fetch data from another mirosoft sql server to sap
Dear all,
I want to fetch data from another mirosoft sql server
to SAP(my sap server IN unix, oracle 10g).
Thanks
Shashi
Moderator Message: Try to do you own research before posting your question. Get back to the forums in case you are stuck with any issue
Edited by: Suhas Saha on Jul 26, 2011 3:21 PMhi,
u should see following documentation:
Oracle9i Heterogeneous Connectivity Administrator's Guide
Release 1 (9.0.1)
Part Number A88789_01
in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
regards
umar -
Chrome missing in Import data from another browser
I use both chrome and firefox portable from site portableapps because mozilla doesn´t have a portable version.
My dilemma today is this:
I always had on firefox on menu "import and backup" > > "import data from another browser" listing chrome like this
https://support.mozilla.org/media/uploads/gallery/images/2012-02-24-10-35-53-97ff60.png
today i want to import chrome bookmarks to firefox but chrome is missing on the list, in the past i always had it there listed now is just pointing to IE
Do i need chrome installed on machine to grab something from registry?
By what i can remember always had that option on portable versions, i am importating this with a fresh pc machine because i installed now windows where i previously wiped the disk from manufacturer erasing tool.
i digged the net and on questions here but cant find why its missing, can you guys tell me why?
P.S- i would like to say that this site, Mozilla and Mozilla support, forums and community are the best service i´ve seen in years over the whole web i believe its really the best one and am not writing this because of this question, only thing missing is having Mozilla apps portable, a online chat would be cool too for the community
Oh god i hope today the "fox" saves me cause i can´t find solution on this
You guys take it easy.....Do you mean the portable version of Google Chrome as well?
*http://portableapps.com/apps/internet/google_chrome_portable
Which that version you probably need to export the bookmarks to an HTML file and import that file in Firefox.
You can open the Bookmarks Manager in Google Chrome (wrench icon > Bookmarks > Bookmarks Manager) and select "Tools > Export Bookmarks"<br />
This will export the Chrome bookmarks to a file bookmarks.html.<br />
You can import that file in Firefox: Bookmarks > Show All Bookmarks > Import & Backup > Import HTML : "From File"
* http://www.google.com/support/chrome/bin/answer.py?hl=en&answer=96816 - Bookmarks : Import or export bookmarks - Google Chrome Help -
Recieve data from another program
hi, i'm trying to recieve some kind of data from another program i know where is the output of the program the problem is that i don't know how to get these datas. for example my program is writing the output in a temporary file but i'd like to recieve these datas without a temp file. the question is: Is possible to make a class that be listening to the meddle and when any program send any data to its it recieves??? if yes how can i do it?
i'm working with girds and is easy to descover where my output will arrive the only problem is how to recieve.
ThanksOr a pipe. In unix you can create a named pipe with mkfifo, which can hadilly do this kind of transfer.
-
Win7 / IE9: First time use. Example: One favorites folder has 4 HTML entries - only 2 get transferred. Some have none transfered - folder empty. Others have random correct + some missing.
Monday Nght
I can see complete IE9 Favorites HTML list in HTML file on Desktop with Firefox -> New Tab -> Open File.-> Open
In desktop HTML file, there are 37 IE9 folders with no more than nesting 3 deep in any one top folder. These are all correct wrt IE9 favorites.
All top folders + deepest nests are copied to FF ok. Contents random. Copied contents work ok
7 HTML web sites not allocated to IE9 top folders are also copied <- these 7 copy to FF and work ok
Example: First folder in IE9 list has no nesting., IE9 has 4 entries - Firefox has only 2. when either method of copying is used.
BTW - please advise how I can delete whole Bookmark list in Firefox in one keystroke to be able to retry with a clean Bookmark list
I am going to uninstall Firefox and start again with a clean copy and use HTML method only to try to transfer IE( files. I will report result.
BTW, I am in UK on UK time - hence delays in replying - need to sleep sometimes!!!!!
Tuesday Evening
Hi
I uninstalled Firefox. Re installed and loaded IE9 favorites from HTML file.
All seem copied correctly
First time I started by using the "import data from another browser". Partial copied.
Then I tried "Import from HTML file" without deleting whatever favorites had been copied. Still partial copied.
All seems well. -
Why the "Import Data from Another Browser" option cannot be chosen
I click on History on the menu, then, Show All History option, a new window appears called Library.
I click on the button: 'Import and Backups', a drop down menu appears with the option 'Import Data from Another Browser'; however, this option in my browser is light gray, i.e. I cannot choose it. Why?Are you in the Private Browsing mode when you try that Import menu item?
http://support.mozilla.com/en-US/kb/Private+Browsing -
Reference data from another sheet
Hey everybody, I am sorry to post here if it has been previously posted. I am looking to use a conditional format a cell with a value less than 84 to be changed to red. I am using the iPad.
I also need to reference data from another worksheet.
Thanks,
GregI had this same issue, I finally figured you you need a space before and after each ::
'MY BUSINESS 2014 EXPENSES - Table 1' :: B242 -
Data from another table, to be displayed on table based screen
I have a block that is based on one table, if I found the record(s) on that table I will display it on the forms, No Problemo. But, if record(s) was not in the said table, I have to get the data on another table and then display it on the same forms. Is there someone who can show me how I can get the data from another table and display it on screen that is based on another table?
suppose you have 2 table emp_n and emp with same table structure
first check data from emp_n if not found then go to emp
try it:-
you will change block name at run time(query data source)
by
emp_n is old
emp is new
set_block_property('emp_n',QUERY_DATA_SOURCE_NAME,'emp');
if no data found in emp_n table then
change the block query name by
set_block_property('emp_n',QUERY_DATA_SOURCE_NAME,'emp');
in next try it will go to emp table for fetching record
kuljeet pal singh -
Hi everybody,
This is quite a general question and I am looking for some pointers\opinions\suggestions.
I want to stream data from several channels at diffferent rates from my cRIO to the host PC. As far as I can see there are three options:
1) Use a network shared variable (NSV) for each channel and read them in a loop on the host PC.
2) Use one NSV which uses a cluster of an enum and variant. In this case the enum specifies which channel (and therefore data type) the packet contains and the variant contains the data.
3) Use STM to stream the data over the network using TCP/IP
These are my questions/thoughts:
1) not very scaleable as each NSV has to be read individually also just seems messy!
2) Seems nice and clean and scaleable, multiplexes the data into one channel. I am aware NSVs are not quite as efficient as directly using STM TCP/IP BUT... is there an additional (significant) overhead converting all the data to variant?
3) According to the documentation on NSVs using TCP/IP is the fastest way to stream the data. This method seems to offer the same avantages as (2) - clean, multiplexes the data. BUT it does add complexity in developing the cod. Also the data is still flattened to string, is this much different than converting to a variant?
THE QUESTION: is method (2) a reasonable compromise if the absolute highest data rates are not required?
Many thanks,
Steve.Hi Steve,
I have been looking into this problem for you. It seems that each of the three options you highlighted could be used to achieve your goal though since you want to stream multiple channels method 1 would be highly inefficient and therefore should not be considered for this application. I would suggest that method 3 which uses TCP/IP to stream the data over the network is the optimal solution in this case though as you have alluded to, this does add a level of complexity. If you decide to pursue this option I have found a really useful link provides more details about this methodology and a LabVIEW example which should help you get started with the coding. I have also found this link to a forum which may be of interest to you (especially the final post by Kurt).
I would also like to add that I completely agree with Brian K, in that I believe method 2 is a very acceptable compromise, especially if high data rates are not necessary.
I hope this helps.
Best Regards,
Christian Hartshorne
Applications Engineering
National Instruments -
Receive POST data from another URL and process using Struts
Hi there
We have a website and as of now we are receiving some data from another URL which is received as an appended part of the URL. My application uses Struts and we process the received data and send back a response.
Now my question is, I have been asked to change this behavior because there are more parameters now which cannot be passed through the URL. I am supposed to get the data from the other URL as POST data (as a form) and I have to create a new Struts action to receive this data, process it and send the response back to the requesting URL.
Please explain me how to do this using some example code snippets.
Thanks a lotLookup in XI is used to call the target data storage system and get data from there to your mapping programme.
In XI you can do Lookup in Message Mapping, Java Mapping and in XSLT Mapping. Previously Lookup in XI was system dependent. But now what ever the system are i.e. SAP system or non-sap system(Oracle,MS SQL etc) lookup API are same.
Overview of Lookup
- Lookups are used to identify/request the data from mapping program.
- It interrupt the process and looking for data which was stored in target system.
- It get that data and comeback to process and continue with that data.
Types of Lookups in XI
- JDBC Lookup: JDBC lookup is used for accessing data from database (non SAP).
- RFC Lookup: RFC lookup is used for accessing the SAP Data.
- SOAP Lookup: SOAP lookup is used for accessing data from Webservice
Steps to perform Lookup in Mapping
Import package com.sap.aii.mapping.lookup.*;
Create connection to the target Database system.
// Determine communication channel created in ID
Channel channel = null;
channel = LookupService.getChannel("DB-SYSTEM-NAME","DB-CHANNEL-NAME");
// Get system accessor for the channel.
DataBaseAccessor accessor = null;
accessor = LookupService.getDataBaseAccessor(channel);
Build the Query String.
Getting Result
// Execute Query and get the values.
DataBaseResult resultSet = null;
resultSet = accessor.execute(Query); -
Issue in Data from DSO to DSO Target with different Key
Hello All,
I am having Issue in Data from DSO to DSO Target with different Key
Source DSO has Employee + Wage + Post numner as key and Target has Employee + Wage Type as key.
DSO semantic grouping works like Group By clause in sql, is my understanding right ?
Also if someone can explain this with a small example, it would be great.
Many Thanks
KrishnaDear, as explained earlier your issue has nothing to do with semantic grouping .
Semantic grouping is only usefull when you have written a routine in the transformation for calculations and in error handling .
Please go through this blog which explains very clearly the use of semantic grouping .
http://scn.sap.com/community/data-warehousing/netweaver-bw/blog/2013/06/16/semantic-groups-in-dtp
Now coming to your above question
DSO 1
Employee WageTyp Amount
100 aa 200
200 aa 200
100 bb 400
100 cc 300
If we have semantic group as Employee . If we have Employee as key of the target DSO and update type as summation .
then target DSO will have
Emp Amount
100 700
200 200
In this case Wage type will be the last record arriving from the data package . If the record 100 cc 300 is arrivng last then wage type will be cc .
2) Case 2
DSO 1
Employee WageTyp Amount
100 aa 200
200 aa 200
100 bb 400
100 aa 300
if we do Semantic grouping with Emp and Wage Type If we have Employee and wage type as key of the target DSO and update type as summation .
then target DSO will have
Emp Wage Amount
100 aa 500
200 aa 200
100 bb 400
Hope this helps . -
How to display data from a recordset based on data from another recordset
How to display data from a recordset based on data from
another recordset.
What I would like to do is as follows:
I have a fantasy hockey league website. For each team I have
a team page (clubhouse) which is generated using PHP/MySQL. The one
area I would like to clean up is the displaying of the divisional
standings on the right side. As of right now, I use a URL variable
(division = id2) to grab the needed data, which works ok. What I
want to do is clean up the url abit.
So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end all
I want is clubhouse.php?team=Wings.
I have a separate table, that has the teams entire
information (full team name, short team, abbreviation, conference,
division, etc. so I was thinking if I could somehow do this:
Recordset Team Info is filtered using URL variable team
(short team). Based on what team equals, it would then insert this
variable into the Divisional Standings recordset.
So example: If I type in clubhouse.php?team=Wings, the Team
Info recordset would bring up the Pacific division. Then 'Pacific'
would be inserted into the Divisional Standings recordset to
display the Pacific Division Standings.
Basically I want this
SELECT *
FROM standings
WHERE division = <teaminfo.division>
ORDER BY pts DESC
Could someone help me, thank you.Assuming two tables- teamtable and standings:
teamtable - which has entire info about the team and has a
field called
"div" which has the division name say "pacific" and you want
to use this
name to get corresponding details from the other table.
standings - which has a field called "division" which you
want to use to
give the standings
SELECT * FROM standings AS st, teamtable AS t
WHERE st.division = t.div
ORDER BY pts DESC
Instead of * you could be specific on what fields you want to
select ..
something like
SELECT st.id AS id, st.position AS position, st.teamname AS
team
You cannot lose until you give up !!!
"Leburn98" <[email protected]> wrote in
message
news:[email protected]...
> How to display data from a recordset based on data from
another recordset.
>
> What I would like to do is as follows:
>
> I have a fantasy hockey league website. For each team I
have a team page
> (clubhouse) which is generated using PHP/MySQL. The one
area I would like
> to
> clean up is the displaying of the divisional standings
on the right side.
> As of
> right now, I use a URL variable (division = id2) to grab
the needed data,
> which
> works ok. What I want to do is clean up the url abit.
>
> So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end
> all
> I want is clubhouse.php?team=Wings.
>
> I have a separate table, that has the teams entire
information (full team
> name, short team, abbreviation, conference, division,
etc. so I was
> thinking if
> I could somehow do this:
>
> Recordset Team Info is filtered using URL variable team
(short team).
> Based on
> what team equals, it would then insert this variable
into the Divisional
> Standings recordset.
>
> So example: If I type in clubhouse.php?team=Wings, the
Team Info recordset
> would bring up the Pacific division. Then 'Pacific'
would be inserted into
> the
> Divisional Standings recordset to display the Pacific
Division Standings.
>
> Basically I want this
>
> SELECT *
> FROM standings
> WHERE division = <teaminfo.division>
> ORDER BY pts DESC
>
> Could someone help me, thank you.
> -
Best way To get data from another application using NDDE lbrary
My vb.net application gets data from another application using NDDE Library. I got stocks prices (open,high,low,close,volume,change......(about 15 records for each stock)) (about 200 stocks) . I don't know if there is a problem in my code.
This is my code:
l : is the list of stocks.
This Sub connects to server and requests the data :
Public Shared Sub GetQuotes()
Try
client1 = New DdeClient(server, topic)
client1.Connect()
For i As Integer = 0 To l.Count - 1
client1.StartAdvise("QO." & l(i).t & ".TAD$last", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$open", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$high", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$low", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$pclose", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$volume", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$date", 1, True, 60000)
client1.StartAdvise("QO." & l(i).t & ".TAD$time", 1, True, 60000)
Next
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
and then I get the data from Client_advise sub (called each time a value changed )and fill the list. What I know is that client advise gets only one record for single stock each time is called..
Example: for stock AAPL. 1st time enters client_Advise I get open price for AAPL, 2nd time I get high price for AAPL,3rd time I get low price..... and I update the value in the List (l)
This the client_Advise Sub:
Private Shared Sub client1_Advise(ByVal sender As Object, ByVal e As NDde.Client.DdeAdviseEventArgs) Handles client1.Advise
For q As Integer = 0 To l.Count - 1
If l(q).t = w(1) Then
Dim item() As String = e.Item.Split("$")
If l(q).Open = "#" Then
l(q).Open = "0"
End If
If l(q).hi = "#" Then
l(q).hi = "0"
End If
If l(q).lo = "#" Then
l(q).lo = "0"
End If
If l(q).Close = "" Or l(q).Close = "#" Then
l(q).Close = "0"
End If
If l(q).pclose = "#" Then
l(q).pclose = "0"
End If
If item(1) = "open" Then
l(q).Open = Format(Val(e.Text), "0.00")
ElseIf item(1) = "last" Then
l(q).Close = Format(Val(e.Text), "0.00")
ElseIf item(1) = "high" Then
l(q).hi = Format(Val(e.Text), "0.00")
ElseIf item(1) = "volume" Then
l(q).Volume = Val(e.Text)
ElseIf item(1) = "low" Then
l(q).lo = Format(Val(e.Text), "0.00")
ElseIf item(1) = "pclose" Then
l(q).pclose = Format(Val(e.Text), "0.00")
If l(q).pclose <> "" And l(q).pclose <> "#" And l(q).Close <> "" And l(q).Close <> "#" Then
l(q).c = Format(l(q).Close - l(q).pclose, "0.00")
l(q).cp = Format(((l(q).Close - l(q).pclose) / l(q).pclose) * 100, "0.00")
End If
l(q).flag1 = 2
ElseIf item(1) = "date" Then
l(q).Date1 = e.Text
ElseIf item(1) = "time" Then
l(q).Time = e.Text
End If
Exit For
End If
Next
End Sub
Am I doing something wrong which inreases CPU usage to 80 or 90 % ?
Thanks in advance.Hi MikeHammadi,
According to your description, you'd like to get data from another app using NDDE library.
When using the NDDE library, the CPU usage is high. As the NDDE library is third-party library, it is not supported here. I suggest you checking if the problem is caused by the NDDE library.
If you'd like to get data from another app. I suggest you could save the data in the dataBase, and then read it in another application if necessary.
If you have any other concern regarding this issue, please feel free to let me know.
Best regards,
Youjun Tang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Day link - want Item to contain day number from calendar
I'm a bit stymied here. Using the calendar, I would like to add a branch to a page based on the DAY of the calendar that the user clicks on. For example, if the calendar is on the screen, and the user clicks on day number 15, then I would like that "
-
I have created a fillable form, and would like to prepopulate two fields from data in an excel spreadsheet. Any ideas?
-
Start tiles ( all of them ) do not work
I clicked at Start > Insider Hub > it blinked for a second and sent me back to desktop. Same applied to all tiles. The all apps shortcuts at the left do work.
-
What is the "other bar" on capacity means
Hi I have noticed that a part from the photos, apps, movies,etc.. there is a yellow bar named "other" and it is already 3,4 GB, how can I do it to reduce this space?. What is it exactly? Thank you
-
Setting the speed of imported files?
if i import mp3s into garage band, is there any way to speed them up/slow them down?