LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using spreadsheet function to convert string to 1d array

Solved!
Go to solution

what makes the visa commands better? Im not trying to be a smart ass i just really dont know.

0 Kudos
Message 31 of 51
(1,890 Views)

Hi Tod,

 

it will make your VI a little more hardware-independent as VISA separates the command writes and data reads from the used bus system. It can handle GPIB the same way as RS232 or USB...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 32 of 51
(1,888 Views)

ok so im reading about index array but i am just not getting how to use it.

0 Kudos
Message 33 of 51
(1,885 Views)

Hi Tod,

 

so you get an array from your data file and now you need some single values from the array. IndexArray will give them...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 34 of 51
(1,882 Views)

so i understand that part but how do get the strings to where i can use them as a control? i can the data to display in an array but its stuck as an indicator how do i convert to being usable.

0 Kudos
Message 35 of 51
(1,877 Views)

Hi Tod,

 

you only display the data in an indicator, but you can use the data also for setting up device communication. No need for a control here...

 

Maybe you should explain "usable". Do you want to change the values read from the file before using them? I thought you would use them "as read"?

 

IMHO the values from the file are instantly usable:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 36 of 51
(1,865 Views)

ok so i think i understand the picture you posted and i have my program working. But what im wondering is if there is a way to put the data im indexing out of the spreadsheet file into a text box for later use. Also is there a way to index the array i have created. Right now its setup as an indicator and i do not see an option to where is can be use as both an input and an output, Im trying to eliminate the need to keep accessing the file. 

0 Kudos
Message 37 of 51
(1,849 Views)

You can create a local variable of a control to be able to write to it, and a local variable of an indicator to be able to read from it.

 

It seems like you are missing some basic LabVIEW concepts.  I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 38 of 51
(1,842 Views)

Hi Tod,

 

one more useful link to learn LabVIEW...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 39 of 51
(1,836 Views)

Hello everyone!

I m posting here cause I think that my problem is relative with the subject.

I m taking some data from my instrument so I can graph them.The data are in form 34.123 , 25.845 , 41.298,etc

I m using spreadsheet string to array with "," as delimeter and "%f" as a format string but the array that I get is like this 34 25 41.

Where is my fault and I don't get all the digits?

0 Kudos
Message 40 of 51
(1,475 Views)