Reading states of usb-6501 kit from command prompt?
Hi all!
I have been planning to use USB-6501 kit as one part of my test bench.
There will be need of checking state of some relays on
tested unit.
I would like to connect 6501 to those relays and read those
states using bare command prompt commands like readDigPort.exe
1. What software in need to install minimum to use writeDigPort.exe or readDigPort.exe commands at command prompt??
Those commands should be included in python script.
2. Is there such Linux commands also included somewhere in installation media/net ?
I am Using Fedora 3 ( Comedi not supporting 6501 ?)
3. I need only easy way to set and read values from 6501 ports which are my possibilities to do it?
Thank you!
Narsu Man
Hello,
Here are the answers:
1) You need NI-DAQmx Base driver for Linux. You may find the driver from web:
http://digital.ni.com/softlib.nsf/websearch/930D8687AD03A02C86256F8C00823BDB
Supported platforms and installation instructions can be found from here:
http://zone.ni.com/devzone/conceptd.nsf/webmain/42b73a7b82f0fec786256fb1007227ec
Please read the readme-file before installation.
2 & 3) LabVIEW and C-examples are shipped with the driver. C examples are installed by default to /usr/local/natinst/nidaqmxbase/examples. Use the example as a basic body for your application. NI-DAQmx Base Function reference help can be found from here:
http://digital.ni.com/manuals.nsf/websearch/D7184CB9E6366E2186256FBF0076BBC3
This should help you to continue.
Vesa K
National Instruments
Similar Messages
-
Error while running a ODI scenario from command prompt
Hi,
I'm trying to run a ODI scenario from command prompt. I've edited the tnsnames.ora and odiparam.bat file with exact host and port details. Even though I'm facing the below error.
command:startcmd.bat OdiStartScen -SCEN_NAME=INT.CUSTOMER_STG -SCEN_VERSION=001 -CONTEXT=ICM -AGENT_CODE=KANBAN
Error: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:orcl
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:280)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:361)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:595)
at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.c(SnpsConnection.java)
at com.sunopsis.sql.i.run(i.java)
Please help in resolving the error...
Thanks in advance.
Edited by: 894841 on Dec 22, 2011 11:15 PMHi,
Are you able to start the Standalone Agent(KANBAN) and test it in the Topology?
Check the value of the ODI_MASTER_URL variable in odiparams file(at the path <ODI_HOME>\oracledi\agent\bin) of the agent.
Specify the full the JDBC URL properly not like localhost(until the DB is on same machine as your ODI). -
Test Execution hangs while executing a test from Command prompt option
I have done the following
1) Created a script Test driver
2) Added different scripts as Script->Properties->Assets to the driver script
3) Call each of this asset script from TestDriver using command getScript("<<ScrptName>>".run(1, true, true, true);
4) Now calling this TestDriver script from command prompt with command
e:\\OracleATS\\agent
runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriver
TestDriver.jwg
The script execution hangs at "Initializing VU 1 for Script TestDriver. After few mintues of seeing this message i get error "Execution Timed Out".
Do I need to keep openscript UI open for script execution from command line ?
Is there any way to increase this Execution Time out ? May be it is taking time to load the internal script assets. AS other scripts are running fine on the same machine from command prompt itself.
Complete error is as follows
C:\Documents and Settings\oracle>e:\\OracleATS\\agent\\runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriv
er\\TestDriver.jwg
Running "TestDriver" ...
Agent started. Available commands:
stop - Stop the virtual user after it finishes the current iteration.
abort - Abort the virtual user cleanly, before it finishes the current itera
tion.
exit - Terminate the process immediately
You may type the above commands at any time.
12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.utilities.api.UtilitiesService"
12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.browser.api.BrowserService"
12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService"
12:17:53,465 INFO [1] Initialized script service "oracle.oats.scripting.modules.webdom.api.WebDomService"
12:17:53,856 INFO [1] Initialized script service "oracle.oats.scripting.modules.datatable.api.DataTableService"
12:17:53,856 INFO [1] Initializing VU 1 for script TestDriver
Execution Timed Out.Hi e_raja_sekar,
You wrote:
public static void main(String args){should be
public static void main(String args[]){Granted, the below code was tested on Windows XP using J2SE SDK 1.4.1_02 (and not 1.2.2 like Sridhar is using), but when I compiled and executed this code:
public class BadMain {
public static void main(String args) {
System.out.println("Hello World");
}The output I got was:
Exception in thread "main" java.lang.NoSuchMethodError: mainSo I don't think this is Sridhar's problem (but I could be wrong) since he says that he gets no error message.
Cheers,
Avi. -
How to Get Input from Command Prompt?
How can i get input from command prompt like
C:\
or linux ?
(Here's what I use now)
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
Whlie((line=in.readLine())!= null)
{ System.out.prinln( line) ; }
IS THERE A BETTER WAY?The main method within a java class accepts command line input through a String array.
In this example args is the String array. You can access the parameters as args[0] for the first parameter, args[1] for the second parameter, etc....
The usage for the example below would be :
c:\EDIFormat file1 file2
Where args[0] would equal file1 and args[1] would equal file2.
public class EDIFormat {
public static void main(String[] args) {
if (args.length < 0) {
System.out.println("No Parameters supplied. Exiting....");
// open input and output files
EDIFiles(args[0], args[1]);
Hope that helps! -
Call an ABAP program or a function module from command prompt/python script
Dear All,
I want to call a function module/ABAP program from command prompt or a python script.
Let me explain with an example.
There is a function module "z_add" that takes two integers as input parameters and generates their sum.
the sum is the output parameter.
Now i want to call this function module from command prompt / python script and pass parameters to this function module.
In return i must get the sum(i.e. the output of function module).
I tried using STARTRFC ,was able to call the FM but could not get the return value(output) from FM.
Can you please provide me the code of such a function module and the method to call it thereby passing parameters and getting the sum.
Thanks and regards,
Gaurav
Edited by: gauravkec2005 on Mar 4, 2010 7:41 AMthank you both! helpful answers! :o)
anyway!
i have written the program which is called from the SAPScript:
/: PERFORM GET_VATNUMBER IN PROGRAM ZFI_F140_OPERATIONS
/: USING &BKPF-BUKRS&
/: CHANGING &VATNUMBER&
CE VAT Registration No : &VATNUMBER&
REPORT zfi_f140_operations.
FORM get_vatnumber TABLES in_par STRUCTURE itcsy
out_par STRUCTURE itcsy.
DATA: lv_co_code TYPE bukrs,
lv_vat_no TYPE stceg.
READ TABLE in_par WITH KEY name = 'BKPF-BUKRS'.
MOVE in_par-value TO lv_co_code.
SELECT SINGLE stceg FROM t001
INTO lv_vat_no WHERE bukrs = lv_co_code.
out_par-name = 'VATNUMBER'.
WRITE lv_vat_no TO out_par-value.
CONDENSE out_par-value.
MODIFY out_par INDEX 1.
ENDFORM.
it is not working and i cannot work out why...
i have not been ABAPing for very long but have had a go....
any thoughts as to what i have done wrong?
or point me where i should be looking? thank you! -
Not able to start managed server from command prompt
Hi,
I am trying to start manged server from command prompt. The command i am using is as follows:
startManagedWebLogic.cmd MS1 [http://]<Listen_Address>:<Admin_port>
Where MS1 is the name of my managed server.
But i am getting following exceptions:
There are 1 nested errors:
weblogic.management.ManagementException: Unable to obtain lock on C:\bea\user_pr
ojects\domains\PB530Domain\servers\AdminServer\tmp\AdminServer.lok. Server may a
lready be running
at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.ja
va:159)
at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.ja
va:58)
at weblogic.management.internal.DomainDirectoryService.start(DomainDirec
toryService.java:73)
at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesMan
ager.java:459)
at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServ
icesManager.java:164)
at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:711)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:482)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:440)
at weblogic.Server.main(Server.java:67)
>
<Feb 10, 2009 6:48:16 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
te changed to FAILED>
<Feb 10, 2009 6:48:16 PM IST> <Error> <WebLogicServer> <BEA-000383> <A critical
service failed. The server will shut itself down>
<Feb 10, 2009 6:48:16 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
te changed to FORCE_SHUTTING_DOWN>
Please help me to resolve this issue.
thanks,
Sonal
Edited by: [email protected] on Feb 10, 2009 5:16 AMLooking at your error message a little closer, I don't believe it has anything to do with port conflicts but rather that even though you are executing the startManagedWeblogic.cmd with your managed server name (MS1), the error indicates that it is trying to start the Admin Server (not MS1). Note in your error message the following: Unable to obtain lock on C:\bea\user_pr
ojects\domains\PB530Domain\servers\AdminServer\tmp\AdminServer.lok. Server may a
lready be running
It is saying that it cannot start the Admin Server because it is already running (which is probably true in your case). Have you made any changes to the startManagedWeblogic.cmd or the startWeblogic.cmd scripts? I would start debugging there and try to figure out why the script is trying to start your admin server instead of MS1 as you requested on the cmd line. -
How to search specific text/string in pdf files from command prompt?
Hi,
How to search specific text/string in pdf files from command prompt?
Will be great if you can refer to any adobe provided command base utility to achieve the above target.
Best Regards,You can't. The commandline parameters for Acrobat and Adobe Reader do not allow any type of commands to be run.
-
Connecting to oracle10g from command prompt
Hello All,
Please reply to following doubts/queries. Any help is highly appreciated.
1.Without having any other tool, is it possible to connect to a remote oracle10g server from windows command prompt.
I have used following command in MySQL database for this purpose:
"mysql -u database_user_name -ppassword".
2. My second question is about Oracle SQL developer(version 1.5.4). I am having this tool installed on my machine.
So, how can i now connect to remote Oracle 10g server from command prompt.
My purpose is to run batch file thereby calling a stored procedure.
Thanks.Hi,
1.Without having any other tool, is it possible to connect to a remote oracle10g server from windows command prompt.
I have used following command in MySQL database for this purpose:
"mysql -u database_user_name -ppassword".AFAIk, we can't correct in such ways. I might be wrong too, since I have not tested with mysql anytime.
2. My second question is about Oracle SQL developer(version 1.5.4). I am having this tool installed on my machine.
So, how can i now connect to remote Oracle 10g server from command prompt.
My purpose is to run batch file thereby calling a stored procedure.You need to configure the appropriate connections identified - user/ password - wher DB host is residing IP address and port number and sid of oracle instance. Carry out those things then you can connect to DB.
Execute the batch files from DB Server - its better approach.
- Pavan Kumar N
Oracle 9i/10g - OCP
http://oracleinternals.blogspot.com/ -
Running my application from command prompt
Hi im a student and kind of a rookie. My program runs fine from eclipse but when i run from command prompt it gives:
Exception in thread "main" java.lang.MoClassDefFoundError: Mainclass
This is what i am typing: java Mainclass. And i am sure i am in the right folder. I know it gives the same problem when you are not in the right folder. ALso my program uses jre5.0 and it runs fine on eclipse.
Any help greatly appreciatedFrom the directory containing Mainclass.class try java -cp . Mainclass The effect of "dash cee pea space dot space" is to
set the classpath to the current directory. -
Hi All,
Can i execute MDX query from Command Prompt.
If yes how can i execute please give me example
i want to execute the below query.
SELECT
[Year].[Qtr1].Level.Members
ON COLUMNS,
[Product].Levels(0).Members
ON ROWS
FROM Sample.Basic.
Thanks a ton in advance.
Regards,
Mink
Edited by: Mink2 on Dec 11, 2009 9:08 AMHi,
Just start a Maxl (essmsh) session from a command line, log into the essbase server and then paste the MDX;
e.g.
Loging admin password on localhost;
SELECT Year.Qtr1.Level.Members ON COLUMNS, Product.Levels(0).Members ON ROWS FROM Sample.Basic;
Ok?
Cheers
John
http://john-goodwin.blogspot.com/ -
To test proxyservice from command prompt
Hi,
I need to know the complete steps that I need to follow to test my proxy service from command prompt. Its urgent so please help.
regards
rahul.You should be more specific as it's hard to guess what you really want to achieve.
If you want to perform functional test from command line, then you can perhaps try command line features of SoapUI:
http://www.soapui.org/Test-Automation/functional-tests.html
First, create a common project using SoapUI GUI and than you can execute it from command line. -
Can I change user name after running essbase from command prompt??
Hi,
I run essbase from command prompt and during this activity I was asked to give user name and password, but by mistake I put wrong user name and now wolud like to chanege it.
Is it possible??
cheers,It worked,
now I was able to connect to easbase from planning, I ve created sample aplication and initialize it but cannot connect to Eas to download data for sample application. After I run the validation there is now only one error displayed:
Essbase / Essbase Administration Services
FAILED Web App Availability of web application context (POL-MPIKULSKI 10080, eas)
Error: com.hyperion.cis.utils.BadResponseCodeException: Bad response code: 404
Recommended Action: Check application is started
I tried to start the eas from start>programs>epm system>essbase>administration services>start administration services(java embeded) but it didnt help.
can I start in in different way??
cheers, -
Not able to compile from command prompt
Hi,
I have a javafx class which calls java object. I'm able to compile project from NetBeans but not from command prompt.
When i compile from command prompt compiler shows error saying it can not identify symbol (treats java class name as symbol).
I have already compiled my java class, and is in same dir as my java fx class.
Any reason for such beahviour?? and some solution plsssimport java.lang.Math;
import javafx.application.*;
import javafx.input.*;
import javafx.scene.*;
import java.lang.System;
import com.sun.javafx.runtime.sequence.*;
import java.util.Iterator;
import dekoh.photo.command.ImageService;
public class ImageRotater extends CustomNode{
public attribute image: Image;
public attribute x: Number;
public attribute y: Number;
public attribute angle: Number;
private attribute startX: Number = 0.0;
private attribute startY: Number = 0.0;
private attribute startA: Number = 0.0;
private attribute moverOpacity: Number;
private attribute rotatorOpacity: Number;
private function toggle(mo:Boolean, ro:Boolean): Void {
moverOpacity = if (mo) 0.5 else 0.0;
rotatorOpacity = if (ro) 0.5 else 0.0;
public function create(): Node {
var cx = image.width / 2.0;
var cy = image.height / 2.0;
var mover = Circle {
cursor: Cursor.CROSSHAIR,
radius: 20,
centerX: cx, centerY: cy,
anchorX: bind x + cx,
anchorY: bind y + cy,
fill: bind Color.rgb(200, 200, 255, moverOpacity),
onMouseMoved: function(e:MouseEvent):Void {
toggle(true,false);
onMouseExited: function(e:MouseEvent):Void {
toggle(false,false);
onMousePressed: function(e:MouseEvent):Void {
toggle(true,false);
startX = e.getStageX();
startY = e.getStageY();
onMouseDragged: function(e:MouseEvent):Void {
toggle(true,false);
x = x + e.getStageX() - startX;
y = y + e.getStageY() - startY;
startX = e.getStageX();
startY = e.getStageY();
var rotator = ShapeSubtract {
cursor: Cursor.HAND,
fill: bind Color.rgb(200, 200, 255, rotatorOpacity),
onMouseExited: function(e:MouseEvent):Void {
toggle(false,false);
a: Circle {
centerX: cx, centerY: cy, radius: mover.radius * 3.0,
b: Circle {
centerX: cx, centerY: cy, radius: mover.radius,
var border = Rectangle{
width: image.width, height: image.height
arcWidth: 20, arcHeight: 20,
return Group {
anchorX: cx, anchorY: cy,
rotate: bind angle,
translateX: bind x,
translateY: bind y,
content: [ ImageView {
clip: border,
image: image, clipAntialiased: true,
}, DelegateShape {
shape: border,
stroke: Color.rgb(200, 200, 200, 1.0), strokeWidth: 4,
}, rotator, mover ]
var contents:ImageRotater[] = [];
var i = 0;
var urls = ImageService.getUrlList(); // calling static method of java class
var j=0;
while(j<urls.size()){
var img:Images = urls.get(j) as Images; // another java class.
var imgRot = ImageRotater {
image: Image { url: img.getUrl() },
x:img.getX(), y:img.getY(), angle:90
insert imgRot into contents;
j++;
Frame {
title: "JavaFX"
width: 1080, height: 480
visible: true
closeAction: function() {
java.lang.System.exit(0);
stage: Stage {
fill: null
content: contents
On Compiling from command prompt
F:\dekohv6\butterfly\installer\samples\picApp\src\dekoh\photo\command>javafxc ImageRotater.fx
ImageRotater.fx:17: cannot find symbol
symbol : class ImageService
location: package dekoh.photo.command
import dekoh.photo.command.ImageService;
^
ImageRotater.fx:115: cannot find symbol
symbol : variable ImageService
location: class dekoh.photo.command.ImageRotater
var urls = ImageService.getUrlList();
^
ImageRotater.fx:118: cannot find symbol
symbol : variable Images
location: class dekoh.photo.command.ImageRotater
var img:Images = urls.get(j) as Images;
^
ImageRotater.fx:118: cannot find symbol
symbol : variable Images
location: class dekoh.photo.command.ImageRotater
var img:Images = urls.get(j) as Images;
^ -
RunInstaller fails while running from command prompt
Hi,
The runInstaller when run fails from command prompt:
Starting Installation...
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /vol2/newtmp/OraInstall2009-05-17_11-02-45PM. Please wait ...Success!
Done!
[oracle@saudas oracle]$ Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.
Unexpected Signal : 11 occurred at PC=0xF7D617CE
Function=(null)
Library=/vol2/newtmp/OraInstall2009-05-17_11-02-45PM/jre/1.4.2/lib/i386/client/libjvm.so
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
I have made a temporary directory logged as root user:
Then login as root:
$mkdir /vol2/newtmp
$chown oracle:oinstall /vol2/newtmp
$chmod 777 /vol2/newtmp
Then login as oracle:
$export TMP=/vol2/newtmp
$export TEMPDIR=/vol2/newtmp
Any help will be needful for me
Thanks and Regardsuser598986 wrote:
I am using Oracle 10g Server Release 2 64 bitThat's a good start.
The OS is:Red Hat Linux 64 bit.Which version ?
Did you set DISPLAY env variable ? Did you set the kernel to the required value ?
Check again all the prerequisites.
Nicolas. -
Unable to run discoverer report from command prompt
Hi,
I'm trying to run the discoverer report from command prompt and i need to schedule the same.
How could i pass multiple values for the parameters?
If i don't pass the optional parameters, the parameter screen is getting pop-up? How to skip optional parameters?
Also, how to pass the data ranges (format for date parameters) ?
I'm using the below command in command prompt:
cd/d E:\oracle\BIToolsHome_1\bin
dis51usr /connect username/password@database /opendb "TIMS-PCJ status Report" /sheet "TIMS observation status report (based on performed date)" /parameter "Test Number" 40351 /parameter "From Date" "01-JAN-2007" /parameter "To Date" "28-FEB-2007" /parameter "Observation Status" C /parameter "Observation Name" "Abdominal Girth" /export HTML "C:\DISCOVERER_REPORT_SCHEDULING\DIS_OUTPUT\PCJStatusOutput11"
Any one please reply me. Its very urgent.
Regards,
SreedharHi,
How could i pass multiple values for the parameters? You should be able to use a comma separated list e.g.
/parameter "Observation Name" "'Abdominal Girth','Abdominal Girth2'"
How to skip optional parameters?I don't think you can. You have to supply all parameters and then decode out the parameters you don't need in the workbook.
how to pass the data ranges You cannot pass a date range. You can pass a start and end parameters. The default format for the date parameters is DD-MON-YYYY but this can change depending on the NLS settings and format of the data item.
Rod West
Maybe you are looking for
-
SQL query with multiple tables - what is the most efficient way?
Hello I am learning PL/SQL. I have a simple procedure where I need to find number of employees and departments per location as per user input of location_id. I have 3 Tables: LOCATIONS location_id (pk) location_name DEPARTMENTS department_id (pk) loc
-
Using Profile to limit resource access
Hello, I'm trying to use the profile feature to limit access for specific users the featue I want to limit is: CPU_PER_CALL defined as follow: Limits the amount of CPU time that can be consumed by any single database call in any session established b
-
Tcode s_p00_07000134 give message "Message no. 7Q702"
Dear Expert, I got this message "Message no. 7Q702" when i execute s_p00_07000134. Below is the value i keyed in. Process type = STD Output group = CER Country key = TH Reporting period = 01.01.2012 to 31.01.2012 Please help to advise. The posting pe
-
Syntax error in program "HINCALC0 ".
Hi, After applying the Snote -1474958 along with the Prerequisties (Snote -1455387,1425161,1452218,1456076,1459813,1459875,1475735), when we exec the TC PC00_M40_CALC we are getting the abap dump. Runtime Errors SYNTAX_ERROR Date and Time
-
Howto create special level based measure
Hi all I have a geography dimension : All -Region --coutry ---store I'm reporting the sales per year: I need to create a measure that able the user to display 'shareof sales' for every level in the hierarchy. In other words In need a logical column t