Machsupport Forum

Mach Discussion => Mach Screens => Flash Screens => Topic started by: kevlar129bp on April 13, 2011, 01:44:35 PM

Title: Question regarding GetParam( String ) and SetParam( String )
Post by: kevlar129bp on April 13, 2011, 01:44:35 PM
Could one of you fine folks help me retrieve a parameter from Mach, and store it in a text box on the Flash screen?
Hope that makes sense?

Thanks guys,
Chris
Title: Re: Question regarding GetParam( String ) and SetParam( String )
Post by: zealous on April 25, 2011, 10:36:52 PM
Sorry for the delay, I did not see the post.

you can call a VB command to either set a Userlabel,LED,DRO OR write to a text file which Flash then could load.

I.E.

Code: [Select]
loadSettings =
'value = GetParam("Boundry")'+"\r"+
'if  value = 1 then'+"\r"+
'SetUserLED(1816,1)'+"\r"+
'else'+"\r"+
'SetUserLED(1816,0)'+"\r"+
'end if'
fscommand("VBMacro", loadSettings);

Let me know if you want to read a file in Flash will give an example.
Title: Re: Question regarding GetParam( String ) and SetParam( String )
Post by: kevlar129bp on April 26, 2011, 01:46:55 AM
Hey cool zealous, I think that's what I was after. May take me a bit to try it out...way too many projects right now  ;). I'll keep you posted.
Thanks again,
Chris