Crestron SIMPL Windows Forum

This is a community forum and not official technical support. — If you need official support: Contact Us

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

Projector Controller

Hello,

I'm currently building a projector controller where you can choose rather you use TCP, PJ or serial to send your commands with.

Everything is fine by now.

The only problem I've got are the feedbacks....
If I ask for the duration the lamps worked the projector awnsers something like 00vLE024248....

First I've used Serial Gather to await the full string the projector sends back. Afterwards I used Serial Substring to get 024248 extracted. As last step I process it using Serial Substring to get the hours(0242) and the minutes(48).

My question now is: How do I check if the String has 6 digits of numbers in it? My main problem is, that in advance you won't know how long the lamp of the projector worked and if I send e.g. the command for powering the projector it trys to process it into hours and minutes.

Thanks,
Niklas

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzMxNDM1MjAzLCJjc3JmX3Rva2VuIjoiQkh2YVNCSHRBZHFhaHFYUSIsImdkcHIiOjB9