Activity for jsth17

  • jsth17 jsth17 posted a comment on discussion Engineering 🇬🇧

    I have been trying to read an array of numbers in a "txt" file from a SD-card with the Sysfile library. The program seems to recognize the file and read some data. The problem is that the number of datapoints is off, and the values make no sense compared with the input file (2.52E-9 instead of the input 100.1). The code i use is seen below. PROGRAM Trajectory_read VAR i:UINT; done:BOOL; ref_xp_buffer: ARRAY [0..20000] OF REAL; filename_trajectory:STRING:='trajectory2.txt'; file_handle : sysFile.RTS_IEC_HANDLE;...

1