From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-15-2018 10:34 AM
i got your point but can you send me a pic or .vi file please
05-15-2018 10:34 AM
I tried but still face same problem
05-15-2018 10:47 AM
@pdpanchal05 wrote:
I tried but still face same problem
05-15-2018 10:57 AM
can you find that where i make a mistake ?
still not getting a data using Spreadsheet String to array
05-15-2018 11:05 AM - edited 05-15-2018 11:09 AM
You keep attaching useless pictures instead of the VI as instructed.
05-15-2018 11:24 AM
here is the both vi files
05-15-2018 11:30 AM
Sorry, I won't be near a computer for a while. Hopefully somebody else can look at it.
05-15-2018 11:37 AM - edited 05-15-2018 11:47 AM
Just like altenbach said, for the Spreadsheet String to Array function, the delimiter should be a single space character, not the string "apostrophe space apostrophe" like you wired to it, and the format string should be just a single "%d", not three of them separated by spaces. You need to tell the function that a single space is what separates values, and that each individual value is formatted as a decimal integer, so that it can correctly parse your received string.
Also, if you have a choice in the matter I would recommend sending a termination character at the end of your sequence of numbers, so the VISA Read knows when to stop waiting, instead of timing out. The default, as you have it configured, is a linefeed character.
05-15-2018 01:47 PM - edited 05-15-2018 01:50 PM
Hi pd,
every single item in the image is important:
Using a NULL byte as delimiter was a bad decision. It will give you headache when trying the same with other programming languages! Better use a comma, semicolon, or even a real SPACE…
Why did you try a delimiter of ' ' (including quotation marks) in your VI???
Is this really your "final year" homework?