VI loaded with either Invoke Node or Call by Reference only functions properly when it is already open
I have modified the Dynamic Loading example so that my case for the first button loads three VIs in succession, rather than one. The first VI generates a waveform, the second uses this waveform to calibrate the measurement, and the last VI stops the waveform generation. I discovered that the middle Calibrate.vi would only function properly if the Calibrate.vi was already open. I attempted the VI loading of the Calibrate.vi with both the Call by Reference (identical to the example) and the Invoke Node method. In both cases, the first and last VIs (Multitone Gen.vi and Stop Gen.vi) functioned properly, but the Calibrate.vi only worked correctly when it was already open.
I have tried resetting the NI USB DAQ device and that hasn't helped.
My search for answers has come up empty and I am hoping that someone in the forum might be of assistance. I have attached a snapshot of each version of my code, both built off of the Dynamic Loading example.
Thanks!!
Attachments:
Call by Reference.png 19 KB
Invoked Node.png 21 KB
Hello Anjelica,
I do not receive any error messages when the middle VI is loaded and run.
The Calibrate.vi acquires three separate corrections (Open, Short, Load), averaging results from a number (N) of measurements, determined by the user. When the VI is loaded and run correctly, information describing the multitone waveform generated by the first VI is first acquired. Then the user selects each correction individually. The corrections are made and averaged after N corrections, taking approximately 10 seconds per N.
When the Calibrate.vi is malfunctioning, the multitone waveform information is not loaded and when a correction is selected, the indicator displaying the number of measurements performed (n of N where n = 0 to N) instantaneously displays N of N. The correction measurements are not performed. I have even tried using the Front Panelpen method and then running the middle VI and this results in the same malfunction unless the Calibrate.vi is already open.
Though it is an obvious workaround, I can live with opening the Calibrate.vi via the Open VI Reference method outside of the while loop. This will be my solution for now.
Thank you for your response.
Attachments:
Open Outside Loop.png 23 KB
Similar Messages
-
My 128 Gb iPad cannot do airplay mirroring with Apple TV 3. It only airplays with screen off (like iPad 1), and it can only do airplay with apps which have the airplay button. No airplay button when sliding the bottom opened apps to the right! Note : This problem persists after HDMI cable has been changed, and Apple TV was reset. My another iPad 4 64Gb also on the same most updated ISO has no problem.
I restarted the iPad, it is okay now! I think it is because I have been using the smart cover for too long, without shutting down the iPad completely! It just works fine with the airplay signal appearing again after restarting the iPad.
-
Strange behaviour with ActiveX invoke node and Excel
I want to send a table of numbers from LV50.1f to Excel97. After getting a
reg to Excel8.Application I retrieve the Workbooks property, Invoke Item to
select a certain Workbook reference, retrieve the Worksheets collection
reference, Invoke Item and then get a reference to WORKBOOKS again.
Strangely, there is an example code from the NI web site that does exactly
the same, but in the last step a variant is returned in stead of a
reference, which is converted using Variant to G to a Worksheet reference.
when I copied that last invoke node to my VI I also had a variant returned,
so on one diagram I had to invoke nodes connected to the same sources, one
returning a ref, the other returning a variant!
Disco
nnecting the sources to my Invoke node and rewiring gave no change.
Also type casting the ref to workbooks to a worksheets ref, didn't work - I
get errors in the following property node that retrieves a Range - which
exists in Worksheet, but not in Workbooks.
Appearantly, LV gets the returned type mixed up sometimes, and there is no
way to fix it other then copying a invoke node from another diagram?
Finally I got it working though, but this behaviour puzzles me. Contrary to
the example from NI, I now managed to send a table (2d array of strings) in
one call to Excel (don;t need to loop over cells or columns).
PS
I used to do the same using DDE but ranges are different for each language
version of Excel (i.e. R1C1 for English and R1K1 for Dutch), so my VI's need
to know the language of Excel. Also with NT and Win98, getting a DDE
connection often hangs LV. But a big progress has been made - now I need
different VI's for each version of Excel!!!
Ferry Toth
Enraf BV, The Netherlan
dsHi Enric,
Can you try your queries again using the new release of DB XML? It contains some improvements in this area.
http://www.oracle.com/technology/software/products/berkeley-db/xml/index.html
John -
Unapproved caller. SecurityAgentmay only be invoked by Apple software. I just upgraded to Maverick and now I can't boot in regular or safe mode on my Macbook Pro.
I suggest you call Apple Care. However, the following is the BEST I can remember what I did as intructed by Apple Tech Support. I have a Time Machine Backup external hard drive.
Turn off computer
Turn on and @ first sign of life, press and hold the Option button
Follow the directions:
Click: Repair disk
Click: Repair Disk permissions
Get out of the section then pick the reinstall
Option reinstall
If that did not work: it did not for mine:
Do the same as above and click erase disk. If you have a Time Machine Back up, you can return you Mac back into working order w/your applications software, i.e. Word: mac 2008, Skype, etc.
Unplug you external hard drive to eliminate any possible confusion.
After an erase disk when starting like above (hold option button down while booting) and doing a total install,
Plug in your external drive with you Time Machine backups.
Only check applications and only users. Uncheck other files… and computer …
http://www.bing.com/search?q=macbook+migration&pc=MOZI&form=MOZSBR
After I did this, my computer went back to normal. Takes about a day. Good luck. It isn't easy and there are no short cuts I know of but better than having to find an Apple Store or shipping your Mac in for a repair. -
Does "Run VI" invoke node work on strict references to REENTRANT VIs?
I am using LV 6.02 on Windows 2000.
I am trying to use the "Run VI" invoke node method with a reference to a Reentrant VI, with no success. (It works when VI is not reentrant. Perhaps there is a reason this cannot work. But if not, I wonder if there is a workaround, or if LabVIEW 6.1 has a fix?
Hopefully the picture of the block diagram I included is sufficient...but I also included the actual code just in case.
Thanks!
Steve
Attachments:
block_diagram.jpg 66 KB
Parent_VI_Example.vi 43 KB
Prototype_subVI_shell_for_Simplex_Fit.vi 40 KBHi, Labviewguru,
Thanks for taking the time to look at my admittedly messy (flawed) block diagram. I will try to state my ultimate goal:
You may be familiar with Levinberg-Marquardt nonlinear curve fit in Labview, which is about 5 VIs in a LLB file. In order to change the type of curve fitting, one has to either modify a formula node in the lowest subVI (Target Func and Deriv), or place a different subVI in there. That's fine until I want to have many different sorts of algorithms.
What I was thinking of doing is instead passing Target Func and Deriv a reference to the VI which would perform the calculations. This would allow me to use the same fitting code to fit different types of data with substantially different methods--without modifyin
g the low-level fitting code at all.
I'm not sure this is going to make any sense to you, but thanks again for your help.
In regards to your answer above, let me clarify somewhat. I had the call by reference node in there to prove that the reference to the VI was "good" and worked fine...this same reference was passed to the invoke node, which didn't have any apparent effect.
Also, I don't think the path to the VI I am opening the reference to is redundant. It is required to tell the "Open VI reference" which VI to load.
I agree that using references to pass values around is not generally a good idea: I was using that method for my supposed versatility in the future.
Thanks,
Steve -
Hierarchy from flat file loading with errors - duplicate node names
Hello experts,
I am loading a product hierarchy from a flat file into a custom hierarchy
object. The issue is that it errors out saying I am loading
duplicates within nodes, however all node IDs within a level are unique.
It seems to be looking at the node name to determine uniqueness and I know
we have some duplication within the text there especially when you factor
in the 32 character limitation for the node name. Does anyone have an idea
as to whether it is possible to have it only consider the node ID instead
of the node name to determine uniqueness?
A colleague suggested using the link ID to fix this problem but I don't know how that field works or how to populate it.
I'm working in a BI 7.0 environment (I don't know if that makes a difference since you still have to use the 3.x objects to extract the hierarchy).
Any help would be appreciated.
NancyHi Nancy,
You may wish to check this OSS Note 1026749 - Hierarchies: Consistency check for duplicate nodes and 912115 (old one)
Symptom -
When you load or activate a hierarchy it terminates with error message RH 109 or RH 211. The hierarchy contains duplicate nodes and this is not allowed. The long texts of messages RH 109 or RH 211 do not describe the reason for the problem sufficiently or they are partially incorrect.
There is uncertainty about in which cases duplicate nodes exist in a hierarchy and in which cases duplicate nodes are allowed.
Hope this helps,
Bye...
Naga Timmaraju -
Before FireFox was updated to ver 3.6.15, FF would open in Avast sandbox with no issue. Since the update to FF I can only open FF outside of Avast sandbox. Avast version 6.0.1000
I turned off all Add-ons and still No Joy!
Windows 7 Pro 64 bit; I7-950 CPU, fresh reboot does not fix this issue.
Just populated : Troubleshooting InformationI had already tried a reinstall before, but thanks for the suggestion. Starting FF in Safe mode did not help either.
XULRunner is specific to FF. Mostly found discussion about using the code in web pages when I used Google before posting.
When FF went from version 3.6.14 to version 3.6.15 this issue started. Please note the Error message and the version info I just mentioned.
'''"Platform version '1.9.2.15' is not compatible with minVersion > =1.9.2.14 maxVersion < = 1.9.2.14"'''
'''The Platform was revved up from 1.9.2.14 to1.9.2.15'''
I could not find information on: minVersion or maxVersion much less how to change them in XULRunner.
'''''It is definitely a Mozilla FF issue'''''.
Avast sandbox is up to date and works just fine with everything else. More importantly it worked just before the update was installed.
The only reason I bothered with the update is because Mozilla touted it as a security issue and there was NO mention of any known issues with sandbox software. -
Call Hander transfer not working properly when extension dialed
In testing my call handers I have found that if you dial an extenstion during the greeting it only transfer to that extension when that extension has mailbox configured on the system. If the extension in call manager does not have a voice mailbox configured in Unity Connection then the transfer does not work.
When you dial our main number, the greeting tells the caller that if they know there parties extension they can dial it any time. This only works for extensions that have mailboxes.
Do I need to configure mailbox's for every phone even if they are not getting voice mail? Phones such as breakroom or conference room?
SethIf you're running CUC 7 you just need this:
Allow Transfers to Numbers Not Associated with Users or Call Handlers—Check this check box to allow callers to transfer to extensions that are not assigned to other users or call handlers. Connection attempts a release transfer as long as the number entered by the caller is allowed by the Default System Transfer restriction table.
HTH
java
If this helps, please rate
www.cisco.com/go/pdihelpdesk -
How can I fix it?
I would have the jack replaced. Use a third-party repair service via Google. It will be cheaper than Apple.
Basic troubleshooting steps
17" 2.2GHz i7 Quad-Core MacBook Pro 8G RAM 750G HD + OCZ Vertex 3 SSD Boot HD
Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
In Memory of Steve Jobs -
kindly look into this issue ASAP
including my friend am the 5th person having issue after upgrade also D pad is timing is slow
<Personal Information Edited by Host>With the URL of the feed one can check it in iTunes and submit it to FeedValidator as a first-line method of locating problems. It's nearly impossible to read right through a long feed's text looking for the one tiny error which may have borked it. With both URLs it's much easier to check things - including whether iTunes is using the feed the originator thinks it is (not always the case).
If you've been getting quick updates in the Store you've been lucky; the Store checks feeds in some sort of rotation and so it depends where you happen to be in the cycle when you upload a change. -
I recently bought an iMac and love it.
Only proplem I have is I keep getting an error message "the disk was not ejected properly"
Everything is backing up fine on my Seagate 2TB external USB drive.
Each time there is access on the seagate and it stops in between needing to back up again I get this message.
Can anyone help?The drive is malfunctioning.
If the drive has more than one interface (USB, FireWire, Thunderbolt, eSATA), try one of the other interfaces.
Check that the data cable is securely inserted at both ends.
Try a different cable.
If you're connecting the drive through a hub, connect it directly to a built-in port on the Mac.
If you're connecting it directly, try a different port.
Disconnect all other devices on the bus, or as many as possible.
If the drive is bus-powered, but has an AC adapter, connect the adapter.
If the drive doesn't work under any of the above conditions, it has to be replaced. You may be able to salvage the mechanism by removing it from the enclosure and installing it in another one, or in a drive dock. -
Error when executing VI with "Invoke Node" in loop
Hello,
please check if this is possible what i am doing here or if there is a better way to do it.
The goal is to have a VI that i can start in TestStand which is then running in a loop until i set a global variable.
I do this currently with:
1.) Starting the VI with "Invoke Node" (see screenshot 01)
2.) This Vi is then running all the time in a loop until the global for exiting is True (screenshot 02)
3.) Then i have another VO to set the Quit-variable to true
Normally this works as it should, but sometimes i get the error-message:
Invoke Node in NameOfTheViCalledInTestStand.vi
Method Name: Run VI
VI Path: NameOfTheViThatContainsTheInvokeNode.vi
LabVIEW: Das VI befindet sich in einem für diese Operation unzulässigen Zustand.
The question is: what does this error mean and what better ways are there to do what i want to.
Perhaps for better understanding, the VI which runs in a loop executes dll-functions to enable and disable an ample-tower to make a light blinking.
And because there is no function "blink", i have to make it on off on off on off....
So the vi loops and makes on off until i say "quit" then blinking stops.
Thanks for any ideas
Attachments:
01_InvokeNode.jpg 8 KB
02_ViRunsInLoop.jpg 23 KBI cant´t do this "Try changing the "Run" node
to "Wait Until Done" = True." because then the TestStand-Step is
hanging until the loop is finished.
I only want to start the "blinking" and the continue normally in the sequence.
To
avoid that the vi with the "Invoke Node" is started twice a have a vi
above it whick checks with the globalVariable "IsCurrentlyBlinking" if
the start is allowed.
If IsCurrentlyBlinking= True then nothing happens.
So normally it can´t happen that it starts twice. Only if the GlobalVariables are not correct.
The
variable "IsCurrentlyBlinking"is set to TRUE in the subvi before the
loop starts and after the loop is finished its set to FALSE in the
subvi.
Attachments:
03_CheckStart.jpg 16 KB -
How can i call a DLL file using invoke node from labview?
I cant call a DDL function using call library function.so plz tell me how to use invoke node and call DLL using invoke node
Please Mark the solution as accepted if your problem is solved and donate kudoesPlease stay in the same thread.
- Cheers, Ed -
Error 1172 occured at invoke node
Hello
I am new to Labview and object oriented programming. I have an already written c# code which communicates with a digital I/O card attached to a test system. I want to run those c# functions in labview. I am using .NET constructor pallett and then invoke node but I am receiving following Error:
Error 1172 occurred at Invoke Node Error calling method DmmCSharp.Handler.Reset, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
Inner Exception: System.Runtime.InteropServices.COMException: KtMDsr: A connection to the instrument has not been established.)
Image file of error and vi file is attached below.
Attachments:
vi file.png 5 KB
error.png 45 KBThe clue is in the 'A connection to the device has not been established'. You are trying to reset the device - presumably without having first configured the appropriate parameters or opened connection to it so the library is probably throwing that error.
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets -
Run VI Invoke Node: VI works, EXE doesn't?
This is LV2009 with no patches or updates. I am calling buffer.vi by static reference with an invoke node set to Run VI. I don't have an incredibly good reason for doing this, but just don't want that code on the block diagram. I hate to put alot of effort into this since I can just drop the code on the main diagram and I'm sure it will work, but I don't understand why it gives me the error 1000: VI not in a state compatible with this operation?
In the EXE, when I check the execution state of the buffer.vi before I tell it to run, it comes up bad. Same code in the VI, comes up idle. I also tried replacing the static VI reference with an open VI reference using the name of the buffer and received the same error. I have the buffer VI included in the build under always included.
Solved!
Go to Solution."You did not compile the vi to be in the EXE, did you?"
I'm not sure what you mean. I have included buffer.vi and all of its sub VIs in the build as Always Included. I am investigating creating a source distribution. Never done that before. I will let you know if it works.
I attached snippets of the caller and buffer.vi itself. I was playing around with the caller, trying to abort if running and such...
Edit: Sorry if its confusing, what I'm calling buffer.vi is actually Waveform FIFO AE.vi
Message Edited by deskpilot on 04-08-2010 09:04 AM
Attachments:
Remote Call.png 34 KB
Buffer.png 42 KB
Maybe you are looking for
-
Hi My Remote app has stopped working on my iphone, I kep getting nthe message to turn on homesharing. However homesharing is on, and it works on my iPad Any ideas, all software versions are up to date, although I haven't yet updated the iPad. Hmmmm
-
IDOCS Processing from XI to R3
How are inbound IDOCS to R3 processed from XI. When the IDocs are transferred to R3 from XI, I can see that there are many messages(Transaction Ids) in SM58 in XI, and these are not executed sequentially.In SM58 the messages are randomly executed(F
-
Adobe photoshop lightroom 64 bits dejo de funcionar
Windows 7 me dice que lightroom dejo de funcionar,que cierre el programa e intentara ver el problema,cosa que no hace. Todo esto ocurre cuando en EDITAR voy a PREFERENCIA. No puedo hacer otra cosa que apagar el programa. gracias por su atencion
-
Problem to install macromedia freehand mx in my new iMac (os10.7)
I juzt bought the freehand with the iMac today, but facing a problem on install it. And call & emaill & online chat with the adobe ppl, no one can answen the question. Adobe give me a good reply: we are no support macromedia software.
-
How to calculate the HFM Cube size in SQL Server-2005
Hi How to calculate the HFM Cube size in SQL Server-2005 ? Below query used for Oracle. Then what is query for SQL Server? SQL> select sum(bytes/1024/1024) from dba_segments where segment_name like 'FINANCIAL_%' and owner='HFM'; SUM(BYTES/1024/1024)