tssing Posted June 19, 2008 Share Posted June 19, 2008 Do you have string variable like"SetToValue"?? I hope have "StrSetToValue" in DAQFactory... Link to comment Share on other sites More sharing options...
AzeoTech Posted June 19, 2008 Share Posted June 19, 2008 No, if you need to output a string, just use a function in your protocol instead. If you want to trigger it from a channel, use a channel with device type "Test", I/O type "String" and then call your protocol function with the most recent value of that channel from the Event of the channel: So, assuming you have a function called device.mydevice.SetOut(strSetTo) 1) create a new channel, lets say its called "output" 2) Device type = "Test" 3) I/O type = "String" 4) In the Event for the channel, put: device.mydevice.SetOut(output[0]) This will cause your function to be called whenever the "output" channel is set to a string. Link to comment Share on other sites More sharing options...
tssing Posted June 20, 2008 Author Share Posted June 20, 2008 Can you add "strsettovalue" in next version? Link to comment Share on other sites More sharing options...
AzeoTech Posted June 20, 2008 Share Posted June 20, 2008 I have added it to the list. No promises, but I would say its fairly likely that we can do it. Most likely it will be settovalue but a string instead of a number. Link to comment Share on other sites More sharing options...
AzeoTech Posted July 13, 2008 Share Posted July 13, 2008 We have added strSetToValue and strOriginalValue to user protocols. Basically its the same as SetToValue but for strings. It will be available in 5.78. Thanks for the suggestion. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.