I have programmed macros for controlling our PNA before using VBS. However, in my current project I need to be able to control an external device through the USB COM port. I have been searching the internet, but have yet to come up with a decent way to write and read from the serial port using VBS. Is there something that I am missing?
My other thought would be to use a different language when writing the macro. My only problem with doing that is that I have not been able to find a definitive source of what languages can be used for PNA macros or any examples.
Can someone with more experience programming PNA macros please advise me on any possible solutions.
Thanks,
Seth
there are no prerequisites for what constitutes a macro on a PNA. A macro is any executable code that you can start from a command line on the Windows PC that the PNA application is running on. You can write it in whatever language that suits your fancy.
If your macro needs to control the PNA, then you have to decide which PNA remote interface you want to use (COM or SCPI) and that choice may limit your options, but again that limitation is not imposed by the PNA, rather than either support for ActiveX in your chosen language and development environment (if your PNA API choice is COM) or if your language and development environment supports a library that lets you send SCPI commands to the PNA over LAN.