취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Error 8 occurred at Read File+ (string): Read File

해결 완료!
솔루션으로 이동

LabVIEW is giving an error of excel file not found. Then if I press continue the program runs fine and just goes to zero every few seconds.

0 포인트
11/19 메시지
1,708 조회수

Hi nsaeed,

 

abVIEW is giving an error of excel file not found. Then if I press continue the program runs fine and just goes to zero every few seconds.

All those problems because of missing error handling:

IF no error THEN
  do something with CSV data
ELSE
  try again
ENDIF
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 포인트
12/19 메시지
1,700 조회수

I am an amateur when it comes to lab view can you please elaborate as to how I can introduce error handling I tried using a case structure but am unable to find a way to detect when the error occurs to forward it to the case structure. 

0 포인트
13/19 메시지
1,694 조회수

Hi nsaeed,

 

I am an amateur when it comes to lab view

You really should take the training!

 

how I can introduce error handling I tried using a case structure but am unable to find a way to detect when the error occurs to forward it to the case structure.

Use the error wire!

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 포인트
14/19 메시지
1,677 조회수

I tried that aswell, now I get no errors shown but still get the same errors.

0 포인트
15/19 메시지
1,667 조회수

@nsaeed wrote:

I tried that aswell, now I get no errors shown but still get the same errors.


Then could you share your csv file?  That is likely where your problem is.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 포인트
16/19 메시지
1,656 조회수

Sure,

I have attached the csv file plus the latest version of my labview program.

In my csv in order to save the file every second I introduce a two vba's 1 in the thisworkbook object and the other in a general module.

I have attached these aswell.

 

0 포인트
17/19 메시지
1,654 조회수

Something's fishy here.  You're talking about a CSV file as if it were an Excel file.  It's not.  There's no such thing as a CSV "workbook".  I've opened up your "CSV" file and it is an Excel file with a CSV file extension.  I think you'll have to work this out before we can really help you.  It's likely that your failure to realize that a CSV file is a pure text file while an Excel spreadsheet is causing at least part of your issues.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 포인트
18/19 메시지
1,587 조회수
솔루션
승인자 nsaeed

Sorry, but the format of your file is a mess.  It looks like you have a line for each variable, possibly multiple values.  But you throw in the variable names in the middle of the lines, with those strings being duplicated.  Those names will just be formatted into your 0s.  And then you have a bunch of "blank" values (multiple commas next to each other).  A simpler format would be to have the variable names first in the line and then the list of values for those variables.

 

And you could just use Read From Delimited Text File to do all of the reading for you.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 포인트
19/19 메시지
1,583 조회수