Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

JavaScript GPIB Communication using a COM ActiveXObject

$
0
0

Is there a way to preform GPIB communication using JavaScript?  Perhaps by creating an "NiVisaCom" object?

 

There are about 20 different progid's for the NI VISA VXIPNP dll registered on my computer after installing the GPIB drivers, however all of these seem to return an empty object when created using "new ActiveXObject()" 

 

Looking at the documentation I would think this would work:

 

gpib = new ActiveXObject("NiVisaCom.NIGpibIntfc");

 

gpib.viOpenDefaultRM(session);

 

The first line "works" but returns an empty object.  The second line throws an error.

 

Another route would be to create an html page with an <object> tag with the CLSID assigned to match the progid, but this has not worked for me either.

 

Has anyone had luck with GPIB in JavaScript?


Viewing all articles
Browse latest Browse all 5565

Trending Articles