11-23-2016 08:18 PM
RT, I want to use LabVIEW to call .ejs file, and perform script embeded in the file. it is possible?
well appreciated your suggestion here!
11-23-2016 08:36 PM
@ELI2011 wrote:RT, I want to use LabVIEW to call .ejs file, and perform script embeded in the file. it is possible?
Since an Embedded JavaScript file appears to be a text file, you can certainly read it with LabVIEW. What you want to do with the JavaScript, I don't know ...
Bob Schor
11-23-2016 08:54 PM
Check the .ejs file in 7z format, to see if you can open with LabVIEW.
11-24-2016 01:45 PM
I'm clearly wrong about the .ejs format (which I'd not actually seen until I examined your sample, thanks for attaching it). I did look up the format on the Web, and thought I read that it was a text file, but clearly that was a mistake, and I apologize.
Bob Schor
11-24-2016 02:01 PM
Hi ELI,
how would you handle "ejs" files without LabVIEW?
You can use the SystemExec function to call any interpreter for ejs files you have…
11-25-2016 12:42 AM
Hi GerdW,
Thanks for your reply!
Currently I have to use the third-party tool to load this .ejs file, but actually I want to execute the script with LabVIEW directly.
Regards,
Eli
11-25-2016 01:41 AM
Hi Eli,
but actually I want to execute the script with LabVIEW directly.
Then you need to know the file format of those EJS files. And you need to know the byte code used for those EJS scripts. And you need to implement your own byte code interpreter!
LabVIEW is a programming language, but it's not a (Express)JavaScript interpreter…
What should that EJS do? Can't you implement the same with LabVIEW?
11-28-2016 06:48 PM
Hi GerdW,
EJS is a commands cluster, it will transfer application commands to binary frame so that machine can recognize.
I am now trying to understand the protocol of this script and will using LabVIEW to implement the same.
Thanks,
Eli