LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting String to Array

Solved!
Go to solution

Hello everyone .. 

 

I am making a program to read data from the buffer of 2182A (nanovoltmeter) using VISA (SCPI Programming). Now I can get the data from the buffer but it is in the form of a string. Can you tell me how I can convert this into an array (separate out each reading) (screen shot of my test data is attached)..

 

Also this is a small sweep of only 10-11 steps. In measurement the sweep might be more than a 100 steps so please keep this mind as well...

 

 

0 Kudos
Message 1 of 4
(2,925 Views)

Hi Hamza,

 

use SpreadsheetStringToArray function with a 1D array constant at the lower left input and a comma as separator char…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,922 Views)
And if you used the instrument driver as recommended in your other thread (or looked at the block diagram), you would not have needed to post this question.
0 Kudos
Message 3 of 4
(2,901 Views)
Solution
Accepted by topic author HamzaZG

Found my solution .. Posting it here for everyone maybe it may be useful for someone

0 Kudos
Message 4 of 4
(2,736 Views)