Control CMD (command line interface) using Labview 2011.
Hello
I'm trying to control software that has an interface to command line using LabView 2011 but I have problems when reading the information.
Is attached the VI I created so far, but it is not working properly.
Problems so far:
1 - if I use ReadLine(), it blocks showing no error and nothing else.
2 - ReadToEnd () same problem as the previous line, the software hangs just at this stage.
3 - if I compare the response of the "peek" in waiting for the - 1 indicating there is not more character, the hook of software as the previous steps.
You have some clues as to what might be wrong or another way to 'control' the CMD to send messages, read and send messages, etc...
Thank you very much for your help.
I've done it before - I posted about this on the forum here: https://forums.ni.com/t5/LabVIEW/How-to-open-close-and-monitor-a-application-xyz-exe-using/m-p/32511...
I did also wrap in a library at a given time and post it on the forums, but I couldn't find this particular post.
Tags: NI Software
Similar Questions
-
Good afternoon
Please can you help to create custom reports in "Essential Openmanage" using "Essentials" command line Interface
The default reports are not feasible.
Hi there Oswaldo and thank you for the question.
Currently, OME 1.3 doesn't have a custom report generator. I don't think that the CLI help as it is mainly used to set up from the beaches of discovery and things like that.
There is a REST API that _may_ allow to return by the data of the database of the MEO program. The REST API guide is in the section of the Documentation on the Dell TechCenter for OME page.
Thank you
Rob
-
Hello, how is it possible to create the FAT32 BOOTCAMP on CoreStorage partition via the command line interface?
I mean ' diskutil cs * " and so on..."
Yes, you must use the resizeStack command. Please see Re: how to repair fsck "your drive could not be partitioned..." Bootcamp does not as an example.
-
zedboard Xilinx Zync 7000 interface using labview
Hello
I'm doing my thesis in Zedboard for the development of a test for DDR3 memory and verification. For this I need to set up a base of dedicated on NI Measurement Studio LabVIEW graphical user Interface.
Theme: Algorithmic Szudy of test set-up for DDR3 SDRAM with a Xilinx architecting.
Here, I made my algorithm Xilinx SDK. But I need to create a graphical interface using labview. To run these programs. Please let me know how I can do this.
1 or is it possible to directly access the SoC architecting using Labview. If yes how?
2. or if I have to do the coding of Xilinx SDK and how do I run this code using Labview?
Please give me a detailed answer. As I am new to labview. I m not understanding how to start with. If you have any design example please share with me.
Thank you best regards &,.
Nithin Ponnarasseri
No you can not grow directly in LabVIEW and deploy this program to the Board of Directors Zync. NOR has their own material base platform Zync (cRIO and myRIO) but the tools to target these tips are specific to the hardware implementation OR and will not work with other hardware. Develop an interface for another hardware platform is a lot of work and must be adapted for each unique flavor to a new hardware platform. And NEITHER does not support this for other devices.
If your option will be to develop an application with the SDK Zync for Zync ARM controller and provide a form of communication interface (serial port, TCP/IP, or similar) to this application you can send commands to LabVIEW for your embedded application.
-
How do I access the command line interface so I can set up my series of cisco router 2600. I don't seem to know where that on my netbook. What port also can connect the cable to the internet router.
Hello
You must Access the port console of the router using a cable from the console. Your netbook probably doesn't have a serial port to do this, so you will need a USB-serial adapter.
Once you have, you need terminal software. PuTTy is a good lightweight program that you can download for free.
If you want to give the internet router, you must choose a WAN port. Assuming that you don't have a HWIC-ESW in the router, any port will do.
There is here a guide that can be useful for:
http://www.internetworkingcareer.com/command-line/how-to-access-the-Cisco-CLI-from-the-console/
I hope this helps.
Kind regards
Tim
-
vSphere command-line Interface (vCLI)
Hello
first of all, sorry for my English...
I'm new here and I have a question for VMWARE vSphere Hypervisor.
I have donwloaded VMware vSphere Hypervisor (ESXi) and installed the server component and the Client.
Now, I want to use my client "vSphere command-line Interface (vCLI)", but I can't find it on my client.
Can someone help me?
Greetings
Markus
Hello
I think you should download the bundle separately. Please download the version of your esxi version.
VMware vSphere 5: Private Cloud Computing, server and data center virtualization
Post edited by: Dee006
-
Deal with failure when using LabVIEW 2011 and DSC MODBUS communication
I'm currently reading from operating records a PLC with MODBUS/TCP. I confirmed that the PLC will update the values and in response to a MODBUS communication correctly by using a third-party program called Modbus Poll. However, when I try to query the PLC using the LabVIEW shared variable engine, I am unable to read the values of the same addresses that I consult with Modbus Poll.
My installation is simply to a PC directly connected to the controller via Ethernet without a router between the two. I'm using LabVIEW 2011 SP1 with the DSC module.
I opened the Manager of distributed systems OR to display the State of all variables in the Modbus Library that I created, and I noticed that the ILO CommFail permanently the value 'true '. All other variables with a 'read' access mode signal "failure of process". I tried to restart the process and stop and start the local variable engine without success. I also restarted my computer several times to see if any services did not exist, but this does not appear to have solved the problem.
Finally, I resorted to listening to communications on the network card I have the PLC connected via Ethernet using Wireshark and found that while Modbus Poll communicates with PLC, number of MODBUS and TCP packet is sent and received. However, when using only LabVIEW or the DSM OR communicate with the controller, there don't seem to be any communication on the network card.
Something that may be interesting to note is that I could communicate with the PLC and to read values with the DSM just once, when I understood everything first what address I should be reading of. All of this has stopped working shortly after. Prior to this, 'CommFail' was not generally set to 'true' with my current setup. Thinking it was my firewall, I have since disabled my firewall, but this seems to have had no effect on the problem either.
Any help on this would be appreciated.
So, I thought about it. It turns out that the IP address of the server i/o MODBUS must be set to the address of the MODBUS slave, not the local computer. The address of the i/o MODBUS server is defined by the navigation in the Explorer window projects, expanding the variable engine shared library for MODBUS and right click on the server MODBUS (for example Modbus1) item and select Properties.
In addition, the addresses seem to be shifted by + 1.
Thanks for the tip so.
-
How to create a 'command-line interface' for a game?
Hey people,
For a game that I have to make a similar command-line interface where the user has at least 3 options to respond with, anyone know how to on this subject?
I hope someone here can help me out!
Kind regards
Angela
I don't know what part of it, you are having trouble with. Imagine for a moment that instead of asking for your end user typing something into a text input field and monitor what they type (maybe), who instead of you provide 3 buttons on your stage. Answering a press of button in this scenario as respondent to typed user input - your film something is based on the interaction of the user. Enter the user entered text scenario, a text or field sprite can detect the key ENTER and examine the string that the user entered, something like:
on keyDown me if _key.keyCode = 36 then stopEvent sText = sprite(me.spriteNum).member.text case sText of "hack": -- do whatever you need to here "research": "wait": otherwise: end case else pass end if end
-
WS8 - shared control VM command line
On the linux machine, I have a job of rsync that records everything on an external hard drive. I would like to make, just before the backup, stop the shared 2 VM I have running, save it, and then restart them again. I can't stop the virtual machine with the vmrun command fines. However if I start the virtual machine by using the nogui option I can't control them from the GUI. If I starts them with the option of the GUI, it starts them by running another instance of the workstation, but the VM I start is more shared. It appears in the above list of the shared VM.
Looks like you can't control shared virtual computer from the command line. However, can someone tell me if it is possible what I want to do?
Because the shared virtual machines are managed via pass, vmrun will work, but you must use the 'server' type and give host/user/password name.
vmrun T - server h https://127.0.0.1/sdk u
Pei Start '[standard] VM/VM.vmx '. You can get the path of the data store (the "[standard]... ") to the tab of the virtual machine summary page.
-
How to update the data of the CLI command line interface store
Dear friends
I use VMWare Server 2.0 on a debian linux server.
I need to be able to update the store data from the command line, this because I put the command Refresh within a bash script.
Of course, I know how the web management, but as you understand, I need to do from the console.
Thanks for the answer, help or advice
Robert
Post edited by: FAsTec
Hello
Try vmware-vim-cmd.
As in:
vmware-vim-cmd /hostsvc/datastore/refresh
You may need to add the store of data as a parameter.
See also:
http://www.VI-Toolkit.com/wiki/index.php/hostsvc/datastore/refresh
Beware that your username must have good credentials to run the command.
Hope this helps
--
Wil
_____________________________________________________
VI Toolkit & scripts wiki at http://www.vi-toolkit.comWriter to the blog www.planetvm.net
Twitter: @wilva
-
Where can I find more details about command line interface?
Specifically, I wonder how we remove something that has been installed, like homebrew, xcode, etc.. But, just generalities would be useful.
-
How to divide the amount of import control program command line
Hi Experts
Divide the amount of command-line client 102000 99000 and 3000.
I used following scripts, but he just updated the quantity on the line, but do not add a new line for the remaining quantity.
1 INSERT IN oe_headers_iface_all
(
order_source_id,
orig_sys_document_ref,
org_id,
ORDER_NUMBER,
CUSTOMER_PO_NUMBER,
SOLD_TO_ORG_ID,
CLIENT_NAME,
CUSTOMER_NUMBER,
OPERATION_CODE,
created_by,
CREATION_DATE,
last_updated_by,
last_update_date,
CHANGE_SEQUENCE,
FORCE_APPLY_FLAG
)
VALUES)
0,
"LT_TEST7,"
204,
67081,
"4500007067-01',
1290
"Networks of c. a.",
'1143 ',
"UPDATE."
-1,
SYSDATE,
-1,
SYSDATE,
1,
« Y »
);
2. INSERT IN oe_lines_iface_all
(
order_source_id,
orig_sys_document_ref,
orig_sys_line_ref,
orig_sys_shipment_ref,
org_id,
ORDERED_QUANTITY,
ORDER_QUANTITY_UOM,
PRICING_QUANTITY,
PRICING_QUANTITY_UOM,
SOLD_TO_ORG_ID,
REQUEST_DATE,
INVENTORY_ITEM,
created_by,
CREATION_DATE,
last_updated_by,
last_update_date,
operation_code,
CHANGE_SEQUENCE,
CHANGE_REASON
)
VALUES)
0,
"LT_TEST7,"
"LT_TESTLINE7,"
"OE_ORDER_LINES_ALL810289.1,"
204,
99000,
"Ea."
99000,
"Ea."
1290
AUGUST 13, 2014 '.
"AS54888,"
-1,
SYSDATE,
-1,
SYSDATE,
"UPDATE."
1,
'FR '.
);
3. INSERT IN oe_lines_iface_all
(
order_source_id,
orig_sys_document_ref,
orig_sys_line_ref,
orig_sys_shipment_ref,
org_id,
ORDERED_QUANTITY,
ORDER_QUANTITY_UOM,
PRICING_QUANTITY,
PRICING_QUANTITY_UOM,
SOLD_TO_ORG_ID,
REQUEST_DATE,
INVENTORY_ITEM,
created_by,
CREATION_DATE,
last_updated_by,
last_update_date,
operation_code,
CHANGE_SEQUENCE,
SPLIT_FROM_LINE_REF,
SPLIT_FROM_SHIPMENT_REF,
CHANGE_REASON
)
VALUES)
0,
"LT_TEST7,"
"LT_TESTLINE7,"
"OE_ORDER_LINES_ALL810289.1,"
204,
3000,
"Ea."
3000,
"Ea."
1416,
"05 - SEP - 2014."
"AS54888,"
-1,
SYSDATE,
-1,
SYSDATE,
"INSERT."
1,
"LT_TESTLINE7,"
"OE_ORDER_LINES_ALL810289.1,"
'FR '.
);Any advice?
Christy
Hi all
The problem was resolved after customer compensation request_id in the header and line, thanks for your help.
Christy
-
Java command line interfaces seem to have limits?
Hello
The code I use normally use stuff 'old-school' process (Runtime.getRuntime () .exec ("...")) when I noticed this problem, but I have since moved to the 'new school' ProcessBuilder class (ProcessBuilder.start ()).
Basically, what I do is to dynamically generate an order of command line based on some user input. It is be a netezza command ("nzload"), but I don't think it's really too important.
The command that has been generated is:
nzload-host 'ipaddress' u 'username' - pw "password" - db "databasename" t "tablename" securityLevel - preferredSecured - df "/ pretty/long/path/to/data/file.csv"-logFileSize 2000 - delim, - quotedValue No.
(P.S. I got this NZLOAD command by adding an 'echo' in front of 'nzload' in my processbuilder. Output, then the published standard my order that I could copy and paste in a test outside Java shell.)
If I copy/paste this line in the shell on the computer, on that copy the following code executes, it works perfectly. However (and don't forget, this line has been generated by my code), it runs using ProcessBuilder.Start () gives me weird errors. From the beginning, it seemed that errors had something to do with the quotes. I tried single quotes, double quotes, and finally I took the quotes on. So far my experience with this is that if I have even a set of quotes in there, the NZLOAD utility return strange errors like "can't connect" or something on the level of security is not wrong. It seems that maybe the quotes are somehow If incompatible in Java so it tries to take 'more' than I want only it for, say, the "hostname" parameter However, these errors are B.S. since I can run the same exact command in the command line with success (no copy and paste nonsense).
For reference, my code processbuilder is something like this:
ProcessBuilder pb = new ProcessBuilder();
PB.Command (). Add ("nzload");
String hn = this. Host;
* if (hn! = null & & hn.trim () .length () > 0) {*}
PB.Command (). Add("-Host");
PB.Command (). Add (HN);
*}*
* if (user.trim () .length () > 0) {*}
PB.Command (). Add ("u");
PB.Command (). Add (User.Trim ());
PB.Command (). Add("-PW");
PB.Command (). Add (Pass.Trim ());
*}*
*//...*
Process p = pb.start ();
RV = p.waitFor ();
* //grab deviation / entry and displays TI *.
(Obviously it's an extract without any quote either. A_le_prealable, I got the quotes around all of these areas, such as pb.command () .add ("------" "+ hn +" \ "");.)
(1) how can I debug this problem so that it is more generic and easy to understand (rather than use orders nzload that none of you guys probably know anything)?
(2) are there any limitations/known issues with using Java shell command execution?
Thank you guys!Where "certain limits" == "huge PITA? Can't disagree with that.
I would not spend more time trying to debug that. I would just pass to the ProcessBuilder constructor that takes a list or an array of strings and let him deal with the problems of scoring. Or at least start with that and see if there are still citing questions yet.
-
Interface using labview instruments
Hello
Can I interface a micropipette with PC using the LabVIEW DAQ module? This kind of micropipettes (electrically powered) available on the market?
Hi Aruvnam,
You must ask these manufacturers to check availability!
'Interface to a PC' should be a point in your list of requirements that you must discuss with these manufacturers!
-
How to convert a txt to a graphic file using labview 2011
Hi all
Please help me on how to convert the .txt file to graph in labview. the txt file is the input file. I've attached the txt file. ITI consist of 7 data according to the date and time. Thank you.
Maybe you are looking for
-
PAVILION 17-g119dx: UPGRADE HP PAVILION 17-g119dx wireless!
Hi, I am pleased with this forum, I think I'll find answer to my question. I have PAVILION g119dx 17 with 7 64 bit, I want to update my wireless card, I need wireless and Bluetooth, if can help me someone to choose the right card. Thank you
-
R7000 does not restart after hitting the buttons wireless &; WPS
Need help on my r7000. It has been installed and works fine for months but my son hit the WPS Wifi buttons and now it does not restart. I have just the lights power & internet on I must say that I am tech challenged & currently without laptop or PC.
-
When I brought my laptop hp, I do not have my laptop motherboard drivers CD... Please send me this CD
-
Pavilion 17 t: Wireless no longer works
I used this laptop on my desk with a wireless a few months network connection. Today, I lost my connection. When I click on the signal strength icon in the tool bar, it is said: "no available connection. When I run the troubleshooting, it is the foll
-
Monday Nite I downloaded a driver site HTC syn my Android Hero phone. After extracting and installing the driver in the zip file, I tried to sync with my phone which was hook up my laptop. It did not work. Interrupt the synchronization process and I