How to Connect SbRIO to Host using NEtwork Stream
Hi,
I am using a program to transfer data from the PC to the Starter Kit using NEtwork Streams.Can anybody tell me how the IP of the PC / SbRIo should be configured in order to connect successfully.
Hey,
The first thing to do is make sure that the sbRIO can been seen in MAX under Remote Systems. There is lots of info on the web for connecting cRIO which will be the same for a sbRIO. Try these:
Install NI LabVIEW, LabVIEW Real-Time and FPGA Modules, and NI-RIO Driver
Assemble Your NI CompactRIO System
Configure Your NI CompactRIO System for First Use
Configure NI CompactRIO for DHCP
Configure NI CompactRIO With a Static IP Address
Install Software on Your NI CompactRIO Controller
Introduction to NI LabVIEW
Lewis Gear CLD
Check out my LabVIEW UAV
Similar Messages
-
FPGA to Real Time using DMA to Host using Network Stream
Hi All,
So I am working on a project where I am monitoring various characteristics of a modified diesel engine being driven by a dynamometer. I am trying to log different pressures, temperatures, and engine speed. It basically breaks down into two streams of data acquisition.
Fast (125kS/ch/s):
In cylinder pressure using an NI 9223
Engine speed via shaft encoder/MPU using same NI 9223
Slow (1kS/ch/s)
Other pressures (oil, coolant, tank, etc...) using an NI 9205
Various temperatures using an NI 9213
My basic architecture is simultaneous data acquisition on the FPGA for both streams. Each Stream is feed into a separate DMA FIFO where it is fed to the RT side. On the RT side each DMA FIFO is simultaneously read and transferred into two separate network streams where it is fed to the host PC. Then the Host PC does all of the analysis, and logs the data to disk. I had this code working on Thursday with great success, then I tried to package the RT VI as an executable so that it could be deployed to the rio and called pragmatically from the host VI. After trying this approach I was told that we needed to do some testing, so I undid the changes and now the slow stream is not working properly.
Since then I have installed LV2013 and installed NI RIO 13 so that I could have a fresh slate to work with. It didn't help however, and now I'm having issues just working in scan mode and with simple FPGA applications. Does anyone know if there are some settings that I could have messed up either building the executable application or deploying it? Or why the fast acquisition is still working while the slow doesn't, even though they are exactly the same?
Sorry to be so scatter brained with this whole issue. I really have no idea how it could be broken considering the fast stream is working and the code is practically identical. Let me know if you need more information. I'll upload my code as well.Hopefully these files work.
The "fast" stream gives data points every 8us without fail, as that is the scan period of a 125kHz sample rate. The "slow" stream on Thursday was giving out data points every 1ms, however, now it gives out data points in a very sporadic interval. Also, the data that it does give out doesn't make any sense, tick count going in the negative followed by positive direction for example.
I did uninstall all of the old rio drivers before installing the new set as well. Ill give it another shot though. :/
Thanks for the reply.
Attachments:
Pressure-HighSpeedRT.vi 665 KB
Pressure-HighSpeedFPGA.vi 680 KB
Pressure-Comp.vi 28 KB -
How to connect to Digital Camera using JMF?
How to connect to Digital Camera using JMF?
Any example?
thxIf the DC has a mode that works like a web cam, and can generate either a VFW or DirecShow stream, then you could capture a frame of the stream, yes.
-
How to connect to AD without using ADWS?
How to connect to AD without using ADWS? Is it possible to do it? If yes, can teach me how to connect to AD and find their attributed?
Hi Noobycy,
There are few tools to find AD attributes without ADWS. See options you have below
1.ADFIND -
http://www.joeware.net/freetools/tools/adfind/ This is a command Line tool
2.
The ADSIEDIT tool
from the Windows Support Tools is a great tool to "explore" the AD.
http://technet.microsoft.com/en-us/library/cc731547.aspx
3. ADUC -
http://www.boostsolutions.com/blog/how-to-find-attributes-of-objects-in-active-directory/
Regards, MassonTech -
How to connect Sql Server 2000 using JDBC ODBC Driver
How to connect Sql Server 2000 using JDBC ODBC Driver ?
plz Send Syntax.
thanksIn SQL Server 2000 the driver class is com.microsoft.jdbc.sqlserver.SQLServerDriver
The connection URL for the default SQL Server 2000 database is jdbc:sqlserver://localhost:1433
Class.forName(
"com.microsoft.sqlserver.jdbc.
SQLServerDriver");
String url =
"jdbc:sqlserver://localhost:1433";
Connection conn = DriverManager.
getConnection(
url, "sa", "sqlserver"); -
How ADBC connection is benefits by using SAP HANA as secondary database ?
Hi,
I have one more important question.
How ADBC connection is benefits by using SAP HANA as secondary database in terms of performance wise for the access of data from HANA database as a secondary database.
I have 2 options and which is better for the good performance for accessing the data-
1 . In ABAP Reports in the SELECT statements by using CONNECTION (“HDB”) will this improve the
performance.
e.g : select * from BSEG into TABLE IT_TAB CONNECTION (“HDB”).
2. Will Create the Stored procedure in HANA studio and Call
from ABAP as below by using NATIVE SQL–
EXEC SQL
SET CONNECTION (‘HDB’).
ENDEXEC.
EXEC SQL.
EXECUTE PROCEDURE proc (IN p_in1
OUT p_out1 OUT p_out2 )
ENDEXEC.
Regards,
Pravin
Message was edited by: Jens Weiler
Branched from http://scn.sap.com/thread/3498161Hi Pravin,
Option 1: In this case ADBC might even worsen the performance due to the overhead in the ADBC framework. OpenSQL is the method to go here, as OpenSQL - from the ABAP point of view - features the optimal communication with the database while ADBC has overhead like constructor-calls for the statement, parameter binding, etc.
Option 2: In this case ADBC is comparable with EXEC SQL but features more options, e.g. clean concept of multiple connection (connection objects via CL_SQL_CONNECTION), exception handling, etc. So I strongly propose to favour ADBC over EXEC SQL, but not simply for performance reasons. You might have a look at the ABAP Language Help in your system on more information on ADBC and the advantages over Exec SQL.
Cheers,
Jasmin -
How to connect to oracle10g Database using oracle11g Enterprise Manager.
Hi,
please suggest me how to connect to oracle10g Database using oracle11g Enterprise Manager.
i did setting in tnsnames.ora file of oracle11g database but when i am trying to connect sys@testvsr and password
using oracle11g Enterprise manager its not connecting but from command prompt its connecting.
its not acccepting hostname its simply telling invalid username and password ,if i remove and try to connect its connecting.
so please suggest its very urgent my manager is nagging.
Regards,
Srinu.you cant attach a database 10g instance with
Enterprise manager of 11g as enterprise manager is
meant for a single database only .. your problem cant be solved
enterprise manager it can be solved by using GRID CONTROL
For more details visit oracle documentation..
Hope This helps..
BI TC -
How to connect from java without using oracle client installation
hi ,
Please tell me how to connect from java without using oracle client
Thanks & Regarshttp://www.orafaq.com/wiki/JDBC#Thin_driver
-
HT1529 how to connect to internet by using Ethernet Cable
how to connect to internet by using Ethernet Cable
I have apple mac book pro with retina display.plz send me the setting thank uThere's no setting. Plug in the cable to the adapter for either USB or Thunderbolt and plug the other end into your router. You can turn off wireless at that point.
-
How to connect to excel document at network machine through oracle ?
Hello !
I am able to read excel doc at my local drive through sqlplus(oracle).
Please help me to modify steps to access excel docs at network machine.
steps:->
1) start\settings\control\panel\administartive tolls\data source odbc\system dns\driver for microsoft excel (*.xls)\dns source at my local drive.
2)C:\oracle10g\product\10.2.0\db_1\hs\admin\initNITIN.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
# HS init parameters
HS_FDS_CONNECT_INFO = TESTDS
HS_FDS_TRACE_LEVEL = 0
#HS_FDS_TRACE_FILE_NAME = aetna_xls.trc
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
3) adding one more listener in listner.ora
SID_LIST_HSODBC_LISTENER =
(SID_LIST=
(SID_DESC=
(SID_NAME=NITIN)
(ORACLE_HOME=C:\oracle10g\product\10.2.0\db_1)
(PROGRAM=hsodbc)
HSODBC_LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1555))
4) entry in tnsnames.ora
ABC.SCF.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1555))
(CONNECT_DATA =
(SID=NITIN)
(HS=OK)
5)lsnrctl stop listner
6) listner start HSODBC_LISTENER
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
System parameter file is C:\oracle10g\product\10.2.0\db_1\network\admin\listener
.ora
Log messages written to C:\oracle10g\product\10.2.0\db_1\network\log\hsodbc_list
ener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1555)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1555)))
STATUS of the LISTENER
Alias HSODBC_LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 30-JUN-2007 12:30:25
Uptime 0 days 0 hr. 0 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle10g\product\10.2.0\db_1\network\admin\listene
r.ora
Listener Log File C:\oracle10g\product\10.2.0\db_1\network\log\hsodbc_li
stener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1555)))
Services Summary...
Service "NITIN" has 1 instance(s).
Instance "NITIN", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
7)create database link test
connect to "ben"
identified by joe
using 'ABC.SCF.COM';
8)SQL> select * from all_objects@testin;
OWNER OBJECT_NAME S OBJECT_ID
DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_ T S T G S
Sheet1$ 0
0 TABLE 30-JUN-07 30-JUN-07
Sheet2$ 0
0 TABLE 30-JUN-07 30-JUN-07
Sheet3$ 0
0 TABLE 30-JUN-07 30-JUN-07
My queries are :
1)Is it possible to connect to a document at network
if yes then for , do i need to map a drive.
please explaqin how what changes required to make it possible to read a network excel documnet through oracle.
Thanks in Advance
--AjayHi Justin ,
Thanks for your prompt reply ...
I have mapped network machine folder to X:\
now I can access this on my local machine by x:\
And dsn it pointing to document on x:\
then i tried to connect , but got an error.
SQL> select * from all_objects@testin;
select * from all_objects@testin
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][Microsoft][ODBC Excel Driver] '(unknown)' is
not a valid path. Make sure that the path name is spelled correctly and that
you are connected to the server on which the file resides. (SQL State: S1009;
SQL Code: -1023)
ORA-02063: preceding 2 lines from TESTIN
Do I need need any other changes in above confiiguration..
or create link statement need to be modified...
SQL> create database link testin
2 connect to "SCF\ben"
3 identified by "joe"
4 using 'ABC.SCF.COM';
please suggest -
How to Connect My Printer to The Network
My printer is LaserJet M1212nf. According to the brief introduction I should connect the printer to the network first in order to enable its e-printing function. I'm working at home. I don't share information with other computers. Does "network" mean my home internet? Do I need to use either a cable or a USB to connect it to the home internet? Or is there another way? Once it is connected, how can I get an email address from HP for my printer?
Hi,
Your printer can be connected to your network to print but it's not an ePrint printer:
http://www.shopping.hp.com/shopping/pdf/ce841a.pdf
It has a LAN card, you can connect it to your network and print wirelessly (note: print wirelessly and ePrint are two different things).
http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c02272928
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
How to connect the database (JDBC) using service name rather than SID
How should we make the connection to the database using service name. Initially, we are using the SID to make the database connection, with following setting in the data-source.xml in OC4J using ABCDB as the SID.
<data-sources>
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="jdbc/ABCDB"
location="jdbc/ABCDB"
pooled-location="jdbc/OracleDSPooled"
xa-location="jdbc/xa/OracleDSXA"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="ABC"
password="ABC"
url="jdbc:oracle:thin:@191.1.4.126:1521:ABCDB"
/>
</data-sources>
It work, but now we need to make the connection using this service name ABCSERVICE, but it doesn't work in the OC4J (JDBC). May I know how should we handle this connection?
Thanks and Regards,
PangFinally, I got the solution to make the database connection using service name, with putting the tnsname setting in URL portion.
url="jdbc:oracle:thin:@(description=(address=(host=191.1.4.126)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME = ABCSERVICE)))"
And now, it is working fine.
Regards,
Pang -
How to run/test application using network streams
Hello,
I'm confused on what steps to follow to test an application using the network streams feature. After reading a lot and going through other discussions I found 2 simple VIs on the last post here http://forums.ni.com/t5/LabVIEW/Network-streams-problem-with-cRIO-9022/td-p/1401576 (I attached the VIs, which I modified just a bit) which I believe have been tested before and work so I was trying to do the same in my desktop and it does not work. I get the same scenario when I was trying to test the code I wrote: no bugs, both VIs run but nothing happens.
According to the link above this is what is supposed to happen: "a PC hosts a GUI (see mainGUI.VI) that sends an array of doubles to the cRIO via one stream and reads a double value back via another. The cRIO, via the scan interface, reads the array via the first stream and writes an analog value to the host via the second (see mainRT.VI). "
The current set up is:
1. Add both VIs to the blank project with the target device cRIO (see attached screenshot)
2. Deploy mainRT.vi on the cRIO
3. Run both at the same time
Am I missing something?
Also, I have been reading that there are two ways of testing this. One running both VIs on the PC and the other actually using the targeted device, in this case cRIO. Is that correct?
Please help!
Thank you
Attachments:
project explorer.jpg 36 KB
mainRT.vi 62 KB
mainGUI.vi 20 KBConnections have TimeOuts, so you have a little "wiggle room" in deciding which to load first.
In my situation, one side is a Remote Real Time system ("Remote"), which has the behavior that when it starts up, it runs the code that I want, which includes establishing the Remote side of the Network Stream. I make all (four) streams use the Remote as the site whose URL (or IP) I need to know. I set them up so that if they time out (I think I may use 15 seconds), they simply close the connections and try again, exiting when all four connections are established, and going on to run the rest of the Remote code.
On the Host, the expectation is that the code is already running on the Remote. Accordingly, on the Host side, the Initialization sequence establishes the four connections, all using the IP (URL) of the Remote. I also use a 15-second timeout, but run it inside a second loop to allow three tries before I give up (and generate an Error Exit). Otherwise, if all the connections get made, I've got my Network Streams connected and can continue.
In this scheme, both the Host and Remote code are in the same Project. What I typically do is to Build the Remote code, deploy it, and set it to run as the Startup. If you are not dealing with a Real Time System, you might not have that option. But you should deploy your Remote code, and start both programs within each other's respective TimeOut windows. Since in my scheme the Remote Window is infinite, I (automatically) start it first, then start the Host. I haven't timed it, but I'd guestimate that the connections are established in at most a few tenths of a second.
Bob Schor -
Can you please explain how can I connect to my desktop using my iPhone like ScreenSharing will do or file sharing.
Please describe step be step how to?
Thank you,
A new iPhone user who want to get the most out of itIf by it you mean Mocha VNC, that is how it works. You can connect when you are not on your network but you will have to enable forwarding on you router if you have one.
What is it tha you want to do remotly?
This world of remote management is that of the IT tech. Mocha is for techs and people that get the technology they are using or are interested in getting it. It is not plug and play stuff. You have to be willing to learn a bit and then with that comes a lot of power.
If you just want to turn it on and have it work anywhere you won't find that. The reason ports are blocked form the internet is to protect your computers from someone else doing exactly what you are trying.
So if you want you can enable port forwarding for port 5900 on your router. The IP address VNC Mocha will need is now the IP address of your router. Create a second connection on the list in Mocha for this connection as it is different than the one that will work on your network. Your router will forward anything on that port to you computer. I have successfully done this. It isn't very fast i will say. The screen refresh is very slow. You need patience to get anything done. I needed a file from a PC i had at home. It took about 15 minutes to get that file moved on to my iDisk through running Firefox on the PC from several towns away using Mocha. I might have been on a slow internet connection too. -
I have been looking all over for a simple "hello world"
example, on how to connect to a database, and pass a param, and
return a dataset. I would like one that does not use components.
(Actionscript only). That uses ColdFusion 7.x and Flash 8. Can
anyone point me to one?Thanks Craig, I saw that example, but it was meant for Flash
MX, and according to the Flash 8 documentation, the NetServices is
now deprecated. Anyway, I posted my question on another site and
some supplied me with a simple example. Here is the url if anyone
is interested...
sample
Maybe you are looking for
-
GetParameter() null value
Hi all, We are having a problem using the request.getParameter(String) method. We are using the method to define an argument for a Java Webstart (jnlp mime type) file we are creating with jsp. Other arguments have been successfully created using the
-
How to manage an iTunes library larger than the capacity of my iPod?
I have a 40G iPOD and now my iTunes library is larger than that. When I last synched, iTunes automatically created an iPod list. I'm unclear on how the subset of songs was selected. When I add new music, do I have to manually move things in and out o
-
Macbook stuck on startup when trying to restore from time machine
Recently, my MacBook Pro (running 10.6.3) crashed and when I tried to restart, it got stuck on the grey startup screen with the Apple logo with the spinning gear beneath it. I tried several times to start my Mac up, but each time it got stuck on that
-
Where to see the output of batch file run in java
I use RunTime.getRunTime.exec() to run a batch file, it seems going fine. But I can not see the output of the batch file. For instance, the batch file is to print sth on the screen, but it wont display under java. Why and how? Thanks
-
Itunes 12 won't play any tracks