Start NI Spy with Labview
Has any one written a LabView code module that programmatically opens NI Spy? And a module that closes it as well? I have a app that uses TestStand 3.1 and LabView 7.0. I've looked into using a call executable step type in TestStand but because of the custom process model and custom UI I would have NI Spy open for each UUT. I've seen the System Exec .vi but am not sure how to use it. Not sure what to put in the command line to open and close NI Spy when the sequence runs. Any help would be appreciated!
Using LabVIEW 2010SP1 and TestStand 4.5
You can certainly use System Exec.vi to launch NI Spy. To do that, wire the path to your NISpy.exe file into the command line input of System Exec.vi. For instance, on my machine (LV 7.1 installed), I wire "C:\Program Files\National Instruments\NI Spy\NISpy.exe" into the command line input and, when I run the VI, NI Spy opens. However, closing it programmatically is a different story. I can't find any way to do this. To make this possible, we would need one of two ways. First, if there were an ActiveX server for NI Spy, we could control it that way, but I searched for you and could not find anything like that registered on my machine. The second option is to close it via System Exec.vi which would require us to be able to do this through the command window "Start>>Run>>cmd". I've search and searched on Google but can't find a command that does this. Therefore, it may be that you can open it programmatically and the user can close it. I hope this helps you out.
Similar Messages
-
Control DC Motor (start and stop) with LabView
I never used Lab View before. For a project, we have to use Lab View to make a small dc motor (HP:1/2, RPM 1725) start, and stop. I have no idea how to do this. Any advice/help anyone? Any tutorial or vi. would help!
Hi there,
Search for “H-bridge” for a common DC motor control circuit, the input terminals from the bridge can be controlled using any DAQ device with digital output lines from LabVIEW. For example: https://decibel.ni.com/content/docs/DOC-17062
Regards,
Alejandro | Academic Program Engineer | National Instruments -
Execute an applescript with labview 7.1
Is it possible to execute an applescript with labview? In my opinion an applescript isn´t a appleevent or? So i can´t execute the script. Is there a possibility to communicate with programms on the macintosh? I want to start a applescript with labview and want to read the information from the .txt file which the script writes also with labview. The reading from the .txt file is no problem but to start the script....I found a file which can do scripts. but something is strange with the file. It would be nice if someone could have a look to file and correct it or maybe have good tips for me.
Thanks a lot
volgi1
Attachments:
DoScript2001.vi 20 KBYour VI is missing the CIN resource file. The error message says:
"This Code Interface Node has no code to execute. Right-click the node, select Load Code Resource from the shortcut menu, and select the object code file (.lsb)."
In LV7.1 there is an Apple event vi called AESend Do Script.vi at Functions >> Communications >> Apple Events. It sends a script to a scriptable application. I have not used Apple events much so I really cannot help you beyond this point.
Lynn -
Where should I start from to use HP4145B with LabView?
I am not familiar with LabView, but I have to set up LabView to make it work with HP4145B.
I downloaded the driver from NI, placed it at the correct directory, and can see VI's in function palette.
Also, when I run MAX, it shows "Instrument 0" under GPIB0.
When I click on "Scan for Instrument", it says something about IDN query, but now I know HP4145B is too old to understand IDN query.
I saw a lot of posts that say they can write to the instrument but cannot read.
However, I don't even know how to test whether my labview can write to 4145B or not.
My questions are....
1. 4145B manual says it has "ID" code.
I tried testing it by using "Interactive Control"
And I got this by NI Spy
1. ibsic(GPIB0)
Process ID: 0x00000C1C Thread ID: 0x00000EB4
Start Time: 15:23:22.485 Duration 00:00:00.000
ibsta: 0x160 iberr: 0 ibcntl: 0(0x0)
2. ibsre(GPIB0, 1)
Process ID: 0x00000C1C Thread ID: 0x00000EB4
Start Time: 15:23:26.070 Duration 00:00:00.000
ibsta: 0x160 iberr: 1 ibcntl: 0(0x0)
3. ibcmd(GPIB0, "@?1", 3 (0x3))
Process ID: 0x00000C1C Thread ID: 0x00000EB4
Start Time: 15:24:18.606 Duration 00:00:00.000
ibsta: 0x178 iberr: 0 ibcntl: 3(0x3)
4. ibwrt(GPIB0, "ID", 2 (0x2))
Process ID: 0x00000C1C Thread ID: 0x00000EB4
Start Time: 15:24:30.242 Duration 00:00:00.010
ibsta: 0x168 iberr: 0 ibcntl: 2(0x2)
5. ibcmd(GPIB0, "? Q", 3 (0x3))
Process ID: 0x00000C1C Thread ID: 0x00000EB4
Start Time: 15:25:12.333 Duration 00:00:00.010
ibsta: 0x174 iberr: 0 ibcntl: 3(0x3)
> 6. ibrd(GPIB0, "", 20 (0x14))
> Process ID: 0x00000C1C Thread ID: 0x00000EB4
> Start Time: 15:25:23.289 Duration 00:00:16.784
> ibsta: 0xc164 iberr: 6 ibcntl: 0(0x0)
There are four LED's on the front panel of HP4145B.
It shows status of HP4145B whether it is talker or listener.
LED changes properly to my command. (So I don't think there is any problem with harware connection)
But, I still get nothing but EABO error when I want to read something.
What am I doing wrong?
How can I test "ID" code?
(I do not have ultra-fast typing speed so I think I gave 4145 enough time to respond before I typed new command)
2. I tried to use driver I downloaded from NI.
Other posts say that people used "HP 4145 Example.vi" for testing.
However when I put "HP 4145 Example.vi" on the block diagram, I cannot run it.
How do I test with "HP 4145 Examble.vi"?
3. I tried testing other vi's such as "HP 4145 source setup.vi".
I put that vi on the block diagram window, added constant of 17 to GPIB address,
and other constants to other inputs and run it.
A new window popped up, so I ran it again.
However it does not seem to work since I see no change when I go into source set up menu directly from HP4145 front panel.
Again, LED indicator changes to LTN(which means HP4145B is in listener mode) when I run vi.
What would be the problem?
I'm experiencing a lot of trouble with this HP4145B, and I know too little to solve this by myself.
Somebody please help me with this.
Thanks in advance.My 4145b uses address 17.
I checked switch setting on the backpanel of 4145b and CRT on the front panel says "HPIB(17, COMMA, EOI)". Also, when I change address to 16 and execute vi file, it gives me an error message of "HP 4145 Define Channel; HP 4145 Send Message"
When I change back to 17 and execute, error message disappears(and no more error message comes in when I send command to 4145b), but nothing happens on 4145b.
As I said eariler, LEDs on 4145b seems to be saying that 4145b understands basic command such as "change to listener" or "change to talker".
In addition, when I try to read from 4145b from "HP4145 example.vi", for example by clicking on "Display Graphics and Plot" and execute, I get error message "HP 4145 Take Measurement; Wait for Interrrupt (GPIB)". However, reading is not the problem to think right now because I don't even know how to read.
I have Newport 1830-C with me, and I checked this instrument with same GPIB-USB-HS and same PC I am using with HP4145b.
It works with 1830C. Therefore, it doesn't look like there is something wrong with my PC and GPIB-USB-HS.
Anyway, thank you for your attention.
메시지가 06-25-2008 01:28 AM에 Min Yoon에 의해 편집되었음
메시지가 06-25-2008 01:36 AM에 Min Yoon에 의해 편집되었음 -
Error, in Getting started with Labview. Chapter 3, part 4.
Hi.
Still struggling on, trying to find the time to work through the "Getting Started with LabVIEW" document.
Only 19 days left to go, and I'm still only in chapter 3!...
Right. In the "Saving Data When Prompted by a User" exersise, part 4...
4. Right-click the Signals input of the Write To Measurement File
Express VI and select Insert Input/Output from the shortcut menu to
insert the Comment input.
Problem is, that option is greyed out, so not available!...
I did what the instructions said, I right clicked on the "Signals" input, and it doesnt do what it says on the tin!
Any pointers? Please don't mention search the help, I've crashed the entire LV environment 3 times now, trying to search for something in there. It's OK if it finds someting, but it seems to bomb at times, when there is some ambiguity when searching.
Also, I won't be able to do anyting with any replies for a day or two, as I have to go up country to a customer, and mess about with hot oil, high volts, and lots of RF. It never ends. (I've still got the day job to do, while trying to fight my way through this "evaluation". 30 days of "Use" would be better, than 30 calendar days for some of us.)
Regards.
Dave Baxter.
Technical Manager: AR-UK Ltd.
AR United Kingdom
OK... Who let the smoke out?Hi Dennis, and everyone else..
That is not how it looks when first dropped on the BD. On my machine, it is partialy expanded by default, after you clear the Configure dialog that pops up ocupying most of the screen.
Again, if it makes a difference to the way the Right Click shortcut menu works, it should be documented in the Getting Started document, especialy as it seems to be a critical point.
OK, explain this...
I've just rubbed out the save to file VI, cleaned up the broken wires etc, and then planted a new one on the BD. Once I cleared the Configure dialog that covers up most of the screen before you see it the first time, the VI was partialy expanded. I forget the exact list, but "Signals" was not at the top.
I did *EXACTLY* the same again, deleted it, cleaned up, and then planted a fresh new one. That DID appear that time with nothing but the "Signals" item showing, and two down caretts below that, indicating more items.
So......
Why the different behaviour each time, on the same BD, in the same session. Some underlying working data not being correctly initialised when invoked? Of course, that never happens, right? ('C' programmes eh?)
Trying some more, it seems the behaviour loosley depends on just how close to the edge of the While loop grey border you place it. Odd. I have a 1280x800 screen to play with, and a 1280x1024 second screen I use for the Getting Started document. That is the absolute maximum I can have, due to hardware limits.
I also find, that if you fully expand the "Write to Measurement File" VI block, then fully collapse it, then expand it again, all the items in that list have changed places! Why?
I had noticed earlier that there is no uniformity in the layout of even the items common to many if not all VI blocks (error in, and error out to name but two) Sometimes one is above the other, sometimes the other way round, sometimes they are not even ajacent to each other. Has that been done as a source of minor ammusement or something?
Talking to another colegue here, who just wandered in to see how I was getting on with this. Seems he also has tried the introductory entry into LV (V8.something) in the past. But he too, found too many things that behaved differently from one time to another, so abandoned it as a lost cause, then decided to learn how to use Visual Basic with NI-GPIB IO instead. Not without issues either he said, but at least it all behaves exactly the same, each and every time.
End of the day now...
Regards.
Dave B.
OK... Who let the smoke out? -
I'm intensively using Labview as a test platform for communication
interfaces
Currently I've a serial spy decoding HDLC which works quite well
I need also to perform some traces on TCP/IP
WhichVI should I use ? How do I have to configure it ?
Many ThanksHi,
I recently work on it. Even if I have some difficult I wrote a dll using
Libpcap ( see winpcap.polito.it but it can't be used by LV6 ) and the
associate vi. These run with NT4. My problems now are to decode these
ethernet frames to something usefull like in ethereal or somethink else.
Give your e-mail I'll send you all I do but I can't say when.
Eric
"pfg158" a ecrit dans le message de news:
[email protected]..
> I would like to decode ethernet frames betwenn two equipements.
> So, I'm a quite newbie with Labview and it's seems to be not so easy
> to use dll's in Labview.
>
> I look for a tool (vi using a dll?) that give me all ethernet frames
> transmitted between two equipements. -
how to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and +i am a novice in interfacing(networking... jst know tidbits) skill ..so plzzzzz explain me in a litle detail
Sir
We were able to solve that problem...but now could you advice as to which DC power supply we should use (preferably avalable in India) so that it can be controlled by Labview (through a gpib/rs232/any other port) to give a square wave of desired frequency/other parameters.
Regards
Shivam -
Problems getting started with LabVIEW FPGA
Two (probably) related questions:
1. I am trying to get started with LabVIEW FPGA, and I am having trouble using a host VI to test my FPGA VI. I started with a basic QAM modulator VI, to be run on the FPGA, and I have reached the point where I need to verify the logic and timing with this VI running on the development computer with simulated IO. I have tried various combinations of putting the code inside single-cycle timed loops vs not; putting the modulator block directly into the host VI, and using the "FPGA reference" block. When neither the host VI nor the modulator VI use a single-cycle timed loop, I see correct behavior. In every other case, the output of the VI is either absent or incorrect. I need to use a single-cycle timed loop in the FPGA VI to properly verify timing behavior (as far as I know), so the one functioning case is not enough for me.
I'm sure there is a key step I'm missing or misunderstanding, but I have not been able to figure it out myself yet. I've attached my modulator diagram as well as two different attempts at host VIs. I can share other information, but I'm not sure what is most relevant.
2. I am also trying to test a simple wrapper VI for the Xilinx FFT block, and I am having trouble accessing FIFOs inside the host VI. I thought this would be relatively straightforward, but when I tried to change the "method" on an "invoke method" block, there were no options for accessing FIFOs, as I understood there should be. This is a total roadblock for me. These two diagrams are also attached, the test diagram shows the options available to me for the "invoke method" block.
Labview 2013, PXIe-7965R, PXIe-8133 controller.
I had to combine the diagram images; in case they are hard to follow this way, see the individual images here: http://imgur.com/a/oB6OD .
Thanks in advance for any suggestions.
Attachments:
mod_all.png 68 KB
fft_all.png 52 KBHello Monguin61
If you are having problems reading from DMA FIFO's you should test them using a very simple code to understand their behavior. First, you could start taking a look to the linked documents:
Reading DMA FIFOs from Host VIs (FPGA Interface)
Using DMA FIFO to Develop High-Speed Data Acquisition Applications for Reconfigurable I/O Devices
FIFO.Read (Invoke Method)
Then you could test and analyze a simple example to understand how it works, for example this one: Simple DMA FIFO Example for FPGA.
Check the references when you are using DMA FIFO's, I noticed you did not connect them in the second picture attached.
Regards
Frank R. -
Simulate induction motor online starting with labview
Hi All,
I want to simulate induction motor online starting with Labview. I have installed labview 2009,with control design and simulation,simulation interface toolkit
Solved!
Go to Solution.Have you looked at the free online LabVIEW tutorials?
Introduction to LabVIEW 3 hour tutorial
Introduction to LabVIEW 6 hour tutorial
Also, there is a control design and simulation tutorial:
Introduction to LabVIEW in 3 Hours for Control Design and Simulation
Check those out...they should get you started. -
I'm using Labview as a test platform for communication
interfaces.
I would like to perform some traces on TCP/IP.
Which VI should I use ? How do I have to configure it ?
Many Thanks.Hi,
I recently work on it. Even if I have some difficult I wrote a dll using
Libpcap ( see winpcap.polito.it but it can't be used by LV6 ) and the
associate vi. These run with NT4. My problems now are to decode these
ethernet frames to something usefull like in ethereal or somethink else.
Give your e-mail I'll send you all I do but I can't say when.
Eric
"pfg158" a ecrit dans le message de news:
[email protected]..
> I would like to decode ethernet frames betwenn two equipements.
> So, I'm a quite newbie with Labview and it's seems to be not so easy
> to use dll's in Labview.
>
> I look for a tool (vi using a dll?) that give me all ethernet frames
> transmitted between two equipements. -
Electrical Engineer with LabVIEW Experience, Windsor, CO - Start Immediately
National Analytics, Inc. is looking for a talented and motivated Electrical Engineer with a proven electronic hardware design and development background to complement our team of system integration experts. Experience with RF and DC power supplies or high power, high voltage inverters is highly desirable.
Located in beautiful Northern Colorado, National Analytics has become a mainstay in remote monitoring & control, systems integration and engineering solutions. Our services include software engineering, hardware engineering, mechanical and electrical design, contract manufacturing & test, project management and training. Some of our recent customer markets include:
* Government
* Aerospace
* Nuclear, Fossil & Wind Power
* Environmental Remote Monitoring
* Defense
* Medical
* Oil & Gas
* Manufacturing
Eligible candidates must be hard working, eager to learn, and able to adjust to rapidly changing project demands. We provide a fast-paced, fun work environment that promotes personal growth with challenging opportunities.
Requirements:
1. BSEE
2. Proven electronic hardware design and development experience
3. 3 years minimum LabVIEW programming experience required.
4. Experience in analog and digital circuit design, schematic capture, board level PCB layout, design, and validation
5. Embedded microcontroller programming
6. FPGA programming
7. Experience in design and development of automated test equipment for products with analog, digital, and embedded software content
8. Ability to operate a variety of test equipment (oscilloscope, function generator, spectrum analyzer, etc.)
9. Altium or similar electronics design package
10. Demonstrated proficiency with LabVIEW
11. Ability to solve complex technical problems independently
12. Good verbal and written communication skills
13. Ability to work in fast paced, high-pressure environment
Please include professional references and salary expectations.
Due to government contracting requirements, only US Citizens will be considered.
Learn more about us at http://www.nationalanalytics.com
No phone calls please.Hi Dan,
I am the manager for the Customer Education department for NI Canada. We are looking for Engineers with extensive LabVIEW/LabWindows experienced to become certified as Professional Instructors of our courses. We are currently looking for someone experienced developing Real-Time applications, TestStand and CVI.
We do not offer a full-time position, rather are Contract work.
If you are interested and have the experience, feel free to contact me for further details.
Thanks,
Berenice Tostado
National Instruments Canada
Customer Education Manager -
Open and close multisim contact with LabVIEW
Can I open and close multisim contact with labview and read the receptor estatus (p.e. lamp)?
Thanks.
Attachments:
Dibujo.JPG 13 KBHi Guddan,
I created a RFC having a query which is taking a long time to execute. So i want to close RFC connection with portals which is via java connector(JCO) before that query and open the connction again after that query.
I guess i will need to understand your requirement a little more in detail, as i understand you have an RFC which has a query within to fetch some data and is taking a long time to do so. In the meantime you don't want to keep the connection open?
My question would be, Is the role of this RFC to only execute the query and fetch the data or does it do something else?
If it does other things and these are independent of the query execution, then you can span a parallel call within the RFC to execute the query and in the meantime the RFC does the other things (or vice versa) hence reducing the overall time taken.
If the sole purpose of this RFC is to execute the query, then you will not be able(i mean to say there is no simple and direct way of doing this) to close the connection after the Query is started and re-establish the connection after its execution, for a simple reason that - how will you know if the query has completed it's execution, so that you can establish the connection back.
Alternate solutions, make this a two way asynchronous call, 1) You invoke the RFC asynchronously and close the connection, the RFC in turn will execute the query and transfer the data to JCO via another RFC call.
If this needs to be a synchronous call, then you will need to optimize the query to its best.
Regards,
Chen -
Error -1074397038 occurred at IMAQ Start.vi for 64bit Labview 2011 SP1, Win7
Hello,
I am using a MC1362 camera from Mikrotron with a PCIe1433 framegrabber. I was using it with windows XP, 32 bit, labview 2010 SP1 32 bit, it was working perfectly fine. I just switch to windows 7 with labview 2011 SP1 64bit, and it is not working anymore with my custom routine in labview, though it works with MAX and camera file generator and I use the same camera file.
When I run my routine, I have this error message:
Error -1074397038 occurred at IMAQ Start.vi
Possible reason(s):
NI-IMAQ: The requested serial termination string was not found in the returned buffer.
Then, If I try to run the camera with MAX, it doesn't work anymore, I have to reboot the camera, and put it in the right mode with the Mikrotron control tool to obtain an image.
I have seen similar issue on a Basler camera on the forum, and it has been solved by using a camera file to set the different parameters. There is no camera file complete to set all the parameters of the camera, so I had to program them in serial to drive the camera with my Labview routine.
Could you help me to solve this issue please?
Thanks
Bests
David DulinThis forum post is already handled --> SR 1154262.
Kind regards,
Corné Westeneng
Applications Engineer
NI-Netherlands -
How can I create a new excel workbook only with labview
Hi everyone...
I'm trying to create a new excel workbook only with labview but I can't find the file in the hard disk.
Someone knows?
Labview 8,0
Attachments:
Create new WB with LV.vi 18 KBYou are not using the correct mechanism. Pull up the Example Finder in LabVIEW, click on the "Search" tab, and enter "Excel". Look for an example called "Write Table to XL". Use this as a starting point for creating new workbooks and adding data to it.
Note: on disk the example is at <LabVIEW install directory>\examples\comm\ExcelExamples.llb.
Message Edited by smercurio_fc on 06-05-2007 11:08 AM -
How to search for a text node with a particular value in an xml document with labview
supposing i have the following xml document:
<head>
<book>
<bookname>zio</bookname>
<author>dan</author>
</book>
<book>
<bookname>the spear warrior</bookname>
<author>britney</author>
</book>
<book>
<bookname>the beard</bookname>
<author>derrick</author>
</book>
</head>
i want to search for the author of the book "the beard" using for example the V.I Get first match of labview to access the the node with value "the beard" and then use Get next sibling V.I and Get node text content to get get the author of this book..so my question is how do i write the xpath expression for Get first match so as to access the node with bookname "the beard" instantyly? am trying to minimise the use of loops because they increase the time duration,..thank you (NB:i dont want to use Get all Matched V.I because it obliges me to use a loop in order to access the name derrick and this increases the time duration for my v.i)
Solved!
Go to Solution.Since it's all text, why not use a real quick Match Pattern (or Regular Expression, but you don't need that much power here), see attached.
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ
Attachments:
Two-stage match demo.vi 8 KB
Maybe you are looking for
-
Java Regular Expressions in J2EE
Does anybody know when Java Regular Expressions will be available in J2EE. They are currently in the latest release of J2SE in the java.util.regex package.
-
Shipping instructions not cpoying correctly from sto to delivery
hi , i am facing issue like shipping instructions from STO header are not getting copied correctly to delivery , what may be the problem , please help. regards, veeru. Moderator message: please do more research before asking,
-
The application version J2EE_1_4_OR_LESS is not supported
Hi All, What does the below shown exception mean? Please help. I found the below shown exception in the Netweaver 7.1 logs: com.sap.tc.jtools.jlinee.orpersistence.model.ORPersistenceModelBuilder##com.sap.tc.jtools.jlinee.orpersistence.model.ORPersist
-
I don't recall this happening before. Is it an issue with Mozilla Thunderbird or with Telecom New Zealand ?
-
Patchset and PSU installation order
Hi, I am upgrading from 10.2.0.4 to 10.2.0.5.4 and I am wondering what is correct order 1) Install patchset 10.2.0.5, then upgrade database and then install PSU 10.2.0.5.4 2) Install patchset 10.2.0.5, install PSU 10.2.0.5.4 and then upgrade database