Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emulator: Connect LabView drivers to emulator #1899

Closed
DominicOram opened this issue Dec 11, 2016 · 8 comments
Closed

Emulator: Connect LabView drivers to emulator #1899

DominicOram opened this issue Dec 11, 2016 · 8 comments

Comments

@DominicOram
Copy link
Contributor

DominicOram commented Dec 11, 2016

It will be useful to be able to talk to emulated hardware with pre-existing labview drivers. This will give us a good way of testing that the emulator functions as expected

@DominicOram
Copy link
Contributor Author

I spent some time looking for a virtual COM port solution to this, to no avail. After discussion with @KathrynBaker it seems the best solution will be to rewrite the Labview so that TCP/serial can be easily swapped out.

@ChrisM-S
Copy link

I'm not sure if it would work, but LabVIEW COM ports are all shimmed through VISA which in turn then talks to the real async COM port. It might be that there is a loop back from VISA which could be picked up (Ni Spy can be used on all VISA traffic so it must be getting it's look into VISA from somewhere). Have you seen anything @FreddieAkeroyd in your driver investigations?

@KathrynBaker
Copy link
Member

KathrynBaker commented Mar 15, 2017 via email

@FreddieAkeroyd
Copy link
Member

I guess you looked at com0com / com2tcp or the eltima driver? I think there was an issue with driver signing and com0com on 64bit meaning you had to run in "kernel debug" mode or something? It was just a thought that we could either run com0com on a separate 64bit VM (or a 32bit one) and serve the serial ports on this by NI VISA remote? If lewis was not to run on this VM then it would need to either talk visa itself or the com2tcp program protocol, which may just be RFC 2217 anyway and so have some python support? Just noticed comm2ip as another product

@KathrynBaker
Copy link
Member

KathrynBaker commented Mar 16, 2017 via email

@DominicOram
Copy link
Contributor Author

I did try com0com /com2tcp and various others but I had no luck. I think this requires someone else that knows a bit more about serial / TCP to have a go, though I'm happy to pair up on it!

@DominicOram
Copy link
Contributor Author

I've had a discussion with @OwenArnold about this and he is aware of what we're doing. Lewis would be interested in writing some COM adapters, which we can help with down the line. In the mean time we should do the solution suggested by @KathrynBaker above.

@DominicOram
Copy link
Contributor Author

Added a ticket into Lewis at: ISISComputingGroup/lewis#231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants