C1070 error when assigning a value to a variable


CamEra
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

  • 2 weeks later...

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.  

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share