LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

strange errors when running???

Hi ,
I am having a problem that is driving me nuts.
I made this small LabVIEW project that includes a series of vi's, and does some manipluation of a few Excel files.  The problem is that when I run the "main" vi, I get an error message that says:
An input parameter error message
0 Kudos
Message 1 of 9
(3,395 Views)
Unfortunately, that's not much to go on. Do you have an exact error code? The "source" string should tell you which VI actually generated the error. If it doesn't, then you will need to do some debugging, such as running your code with highlight execution on, and watching the wire values until you see which VI is generating the error. Then you can look inside that VI to narrow it down further.
0 Kudos
Message 2 of 9
(3,392 Views)

Not much info to go on there.Smiley Wink

Please post a screenshot of the error message.  Also your code, if possible, so people can help debug it.

0 Kudos
Message 3 of 9
(3,391 Views)

Gentlemen,

Sorry for the incomplete post.  I accidentally hit the wrong key and submitted before I was done typing.

More to follow...

0 Kudos
Message 4 of 9
(3,383 Views)

Hi all,

Sorry for the confusion.  Let me start over.

Hi,
I am getting a LabVIEW error message that is driving me nuts.
 
History - I created a small project that includes a series of vi's that does some manipulation of a few Excel spreadsheets.
 
Problem - When running the "Main" vi, I get an error message that says: "LabVIEW: An input parameter is invalid.  For Example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.  NI-488: Command requires GPIB Controller to be Controller-In-Charge."
 
Yes, I do have paths in my vi's, but they don't include any oddball characters, and NO, I'm not doing anything with GPIB.  There is no reference to it anywhere.  The vi's that give me errors are ones that run Excel Macros.
 
If I run through each vi individually, everything runs fine.
Any suggestions would be welcome.
Thank you.
0 Kudos
Message 5 of 9
(3,338 Views)
Error codes in LabVIEW can sometimes mean multiple things, as the one you received shows. You got error code 1. In your case it simply means "An input parameter is invalid". The rest within that first part is giving you a possibility, though that may not apply in your case. The other part is there because the GPIB functions also generate that same error code. That doesn't mean LabVIEW thinks it's due to a GPIB call.

That said, since you said you can run the VIs on their own just fine, but not when you run them from "Main", this tells me that you are probably not feeding the right inputs to the VIs. Or, you've left an input unwired, and the default value isn't correct. For example, at what point are you creating the references to Excel and your workbooks? Are they being inadverdently closed, or perhaps not wired through in subVIs so the next one in the chain receives a null reference? You should run the code in highligh execution mode and look to see what values are fed to each Excel subVI. Better yet, have each subVI open so that you can run them on their own after you stop Main.vi once you get the error.
0 Kudos
Message 6 of 9
(3,318 Views)
OK.  I'll look at that.  Actually, I am using a new fresh reference that gets opened and closed in each vi.  Would I be better off just using one in the beginning, and following through all of the vi's using the same reference and closing it at the end?
0 Kudos
Message 7 of 9
(3,308 Views)
Absolutely. It's pointless to open and close Excel with each VI.
0 Kudos
Message 8 of 9
(3,301 Views)

OK.  That sounds reasonable.  I'll do a bit of restructuring.  The more I think about it, the more I feel that both LabVIEW and Excel are kind of choking because I'm doing an open and close excel multiple times within a few seconds.

If I have any major issues, I'll post again here. 

Thank you for your time and help,

Bob

0 Kudos
Message 9 of 9
(3,294 Views)