LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To enter double data type in the Binary read file

Hello,

 

   I am trying to create a vi, which will read from a binary file, count = 1, and then feed that data to the sine wave as the frequency.  I am not able to mention th data type input for the readfile icon.

 

   I am attaching the vi that is created and the xls file.

 

Thanking you,

with best regards

Gopi

Download All
0 Kudos
Message 1 of 3
(2,400 Views)

Presuming that you could read an Excel file, the function returns an array so you would have to use index array and you would actually have to wire up the data type. However, the read from binary is not at all suitable for reading native Excel files. You would have to be very familiar with the Excel data format to know which byte in the file contains the column data and separate that out from all of the Excel formatting junk. Use ActiveX or export the excel file as comma or tab separated text and use the Read From Spreadsheet function.

 

If you want to keep the native excel file, just search the forum for Excel. There are literally thousands of posts (and answers) on the subject. If you have the report generation toolkit, you have all that you need for reading Excel.

0 Kudos
Message 2 of 3
(2,390 Views)

hi gopi,

  You didn't attach the binary file...Inn the program you didn't mention the data type which you are going to read from binary file in the read from binary file vi...For what you are using xls file,which you didnt mention in the post..

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 3 of 3
(2,370 Views)