Servo Speed icon Servo Speed Adjust servo/PWM speed (0-20) between two positions to quickly experiment and tune motion; select board/port; settings aren't saved. Try it →
New Zealand
LinkedIn Thingiverse Twitter Google+ YouTube
Asked — Edited
Resolved Resolved by DJ Sures!

Filereadline Command

Hi

I have been storing my variables in a csv file and saving them at program exit and re-loading them again at program start.

Somewhere along the line of updates the following line of code seems to have stopped working for me ...

$txt = FileReadLine($filename)

I keep getting "Invalid expression construction: "location, tablet".

Now the "location, tablet" comes from my CSV but the Invalid expression must have something to do with my syntax... It had worked until my latest update...

Here's my code... it reads a text file listed below...


$filename = "C:\EZB_Config.csv"
FileReadReset($Filename)
IF (FileExists($filename) = false)
  Say("System Configuration file NOT found. Unable to establish location.")
  Say("Manual location configuration required.")
  cc( "Script Manager", ScriptStartwait, "Identify_Location" )
ENDIF 
FileReadReset($filename)
$txt = FileReadLine($filename)
$Current_Location = Split($txt, ",", 1)
Print ("Establishing location as $Current_Location")
FileReadClose($Filename)
$Config_Filename = $Config_Pathway"\Config - Project.csv"

My CSV file simply has the following


Location, Tablet
Config Pathway, C:\Users\Wayne\Dropbox\My Robotics\Lawrence

Have I missed a syntax change.... or is it something else. Any suggestions?


ARC Pro

Upgrade to ARC Pro

Unleash your robot's full potential with the cutting-edge features and intuitive programming offered by Synthiam ARC Pro.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#1  

It's a bug in the EZ-Script compiler that will be fixed in the next release. I'm in testing now, and it should be up within the next 48 hours:D

I've been so busy with a bunch of things - that I haven't been able to repair this ARC bug. Even with the new hires, we are still under staffed:P

Author Avatar
New Zealand
LinkedIn Thingiverse Twitter Google+ YouTube
#2  

Thought as much.... was really just making sure I was not imagining the problem.

Thanks DJ for your tireless efforts to keep us all happy ....

@Tameion