CamEra Posted November 10, 2020 Share Posted November 10, 2020 Have this code Component.status.strtext="Reading Sonde Probes" WaterToRead=0 //WaterToRead =0 for Inflow SDIPollData() //go read the sonde I have set up "WaterToRead" as a global variable (checked that in the Watch window) which I want to change as the system operates from 0 to 1 each time the script runs but I continually get this error C1070 Not enough parameters for the given operator: SDIContinuousPoll Line 33 - Uncaught error in sequence SDIContinuousPoll ---- this is the line 33 "WaterToRead=0 //WaterToRead =0 for Inflow" I cannot see what is wrong with these statements. DaqFactory is running on a Windows 10 box. Thanks for any help Regards George Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted November 10, 2020 Share Posted November 10, 2020 There is nothing wrong with that line. It'd probably be best if you emailed us the .ctl doc. My guess is you are looking in the wrong place. Or you have some weird invisible character in the line, in which case, delete the line and retype it. I get this sort of thing in other development environments but have actually never seen it happen in DAQFactory. Quote Link to comment Share on other sites More sharing options...
CamEra Posted November 23, 2020 Author Share Posted November 23, 2020 Yep, right as always there was an apostrophe in the line that was difficult to see. Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted November 23, 2020 Share Posted November 23, 2020 Hate when that happens. That is why I always tell people to put a 0 in front of decimals that are < 1. So: 0.1 NOT .1 It is too easy to lose the ., especially when handwritten. Curiously over the years I have found that engineers tend to use .1, while scientists use 0.1. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.