LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading datas from an excelsheet

Hi,

       In the below attached example,while running it is displaying junk values.From one of the threads in LabVIEW I came to know that we have to 'export the data as a text file or must have ActiveX control.How can I export data as a textfile?Or how to activate ActiveX control??Please reply.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
Download All
0 Kudos
Message 1 of 13
(3,111 Views)

You are using the spread sheet read function to read a file that is formatted in Excel. So you have to use ActiveX or Report Generation toolkit to read the data. For more details on Excel you can check in this thread.

 

Good luck.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 13
(3,106 Views)

Ok.Thank you verymuch for your reply.Now Iam able to do that.I have one more question.From the Read Excel.vi can we serially read those datas and display them in another VI. using serial port reading?please reply.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 3 of 13
(3,100 Views)

Hi danil,

 

???

How os reading a file connected with reading data from serial port? These are two completely different things...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 13
(3,095 Views)

Hi GerdW,

                My question is can we read those analog values from another vi?

  

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 5 of 13
(3,091 Views)

Hi danil,

 

any text or binary file (like your XLSX) stores digital data. Also the serial port transports digital data.

 

I don't see any "analog values" involved here and so I don't understand your question...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 13
(3,087 Views)

Yes why not you can use Global variables to get the values from other vi's. But it should be in the same PC running if you want to transfer data from some other system or an RT controller you need to TCP IP. But I believe you do not require all these things.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 7 of 13
(3,086 Views)

In the above attached VI.How can we incorporate Global Variables to read from another VI?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 8 of 13
(3,076 Views)

sorry GerdW,

                    I just mean the values.sorry for writing analog values.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 9 of 13
(3,074 Views)

In the vi I see you are reading from a .bin file and writing the data to the Excel sheet instead of reading from the .bin file use a Global variable to read the value and write it to the spread sheet file and also the file you are writing is not excel foramtted it will be a simple tab delimited file. The Global variable you can write it in any other vi.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 10 of 13
(3,072 Views)