LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scan from String error

I am having a problem with 'Scan from String'.  I get an error message everytime I try to use it as follows: "NI-488: Command requires GPIB controller to be controller in charge".  How do I fix this?
0 Kudos
Message 1 of 4
(2,720 Views)
Hi
 
It's quiet hard to help you, if you provide such little information (just imagine someone saying to you he's having problems with the telephone - you won't be able to help him if you don't know more). There can be lots of solutions if you just say you're having a problem with a function.
 
The best way is to attach the source and give a short but precise description of the problem. If you can't attach the code, even a picture (but please no *.bmp) of the source would help a little.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 4
(2,716 Views)
If you look before the 488 error, you should also see the line LabVIEW: An input parameter is invalid. Since I assume you're not using GPIB, this should be the one to interest you. Scan from String expects a string of a certain structure to enter it (that structure is determined by the string entering the Format String terminal, and can be configured by right clicking the VI and selecting Edit Scan String).
 
My guess is that you are feeding an empty string into the VI (use a probe to check), which is why you're getting the error. If this doesn't help, then you should do what becktho suggested. BTW, you should always read the help and use probes to check if things are working properly.
 
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).

___________________
Try to take over the world!
0 Kudos
Message 3 of 4
(2,711 Views)
Hi

You were right.  I tried to feed an empty string into Scan from String.  Thank you.  Sorry about the ambiguity in my question, I will attempt to be more detailed in the future.

Tuesday
0 Kudos
Message 4 of 4
(2,696 Views)