LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LabVIEW load .ejs file?

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!


"I think therefore I am"
0 Kudos
Message 1 of 8
(3,536 Views)

@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

0 Kudos
Message 2 of 8
(3,525 Views)

Check the .ejs file in 7z format, to see if you can open with LabVIEW.


"I think therefore I am"
0 Kudos
Message 3 of 8
(3,523 Views)

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

0 Kudos
Message 4 of 8
(3,471 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 8
(3,467 Views)

Hi GerdW,

 

 

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

 


"I think therefore I am"
0 Kudos
Message 6 of 8
(3,456 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 8
(3,451 Views)

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


"I think therefore I am"
0 Kudos
Message 8 of 8
(3,427 Views)