Forum Replies Created
I just read what I wrote an realized I needed to elaborate a little more. By the For….Next loop not working , I mean that the code inside the loop works, but I only get the first clip name instead of all 84 clips. So to me it seems that the code is not looping but just running once.
Thanks for clearing that up for me. This has been a great exercise in Basic. I an now using a different playback server that only has 84 clips on it. The CountFields operation is now consistently giving me the correct count. The only issue I am having is that the For…Next loop does not seem to be working. Below is my code. I added the ShowMessage in order to monitor the output of CountFields. Please let me know if you see anything that I am missing in order for this to work. Thanks again for your help.
dim tmp, rcv, count as string
dim i as integer
rcv = GetDeviceVar(“Received”)
For i = 1 to CountFields(rcv,”</ClipID>&h0D&h0A</clipid>&h0D&h0A</reply>”) -1
tmp = NthField(rcv,”</ClipID>”,1)
tmp = replaceAllB(tmp,”<ClipID>”,”:”)
tmp = NthField(tmp,”:”,2) + “;”
count = Str(i)
ShowMessage(” ” + count)
Thank you Dierk. I will increase the Maximum Channel Buffer Size. And, forgive my lack of VB knowledge, but could you explain to me how to set a TermChar?
So I’ve had a chance to try your suggestions and am having some issues. My main issue right now is that the count I’m getting from CountFields is unreliable. The playback server has 519 clips in it and I get a different clip count every time I run it. For now, I am just testing CountFields as a command and not an ack command so that I can see what is going on. The other curious thing is that using ioresult in CountFields does not work for me. I have to declare a variable using the Received device variable. Any thoughts?
Thank you Jonas and Dierk. I will try this as soon as possible.
I checked out the ALL 4076 driver as you suggested. The ALL 4076 receives an HTTP request using the GET method. My color corrector receives requests using the POST method. Specifically, I need to send a POST request to address http://”ipaddress”/html/utility/event_ctrl.cgi. In the body of the POST request, I need to pass a key/value pair of load=2&mode=0. I was able to successfully send the request using Postman. I’ve attached the output of the request from Postman in case this helps.
Thank you Dierk. I will try the Event suggestion. Allow me to also say how impressed I am with the amount of robust features included in V-Control and your quick responses in this forum. Thanks again!