pfroud / jvisa Goto Github PK
View Code? Open in Web Editor NEWJava library for VISA (Virtual Instrument Software Architecture) instruments
License: Apache License 2.0
Java library for VISA (Virtual Instrument Software Architecture) instruments
License: Apache License 2.0
hi,The return value of the instrument query error command is "+0, No error", I see that the source code does not filter this situation.
hi,The return value of the instrument query error command is "+0, No error", I see that the source code does not filter this situation.
This is not a bug report, but I was wondering why the visibility of the readBytes(int bufferSize)
method on JVisaInstrument
is protected. Is there any reason for this?
Other methods for reading responses (readString()
, readString(int bufferSize)
) are public.
Therefore, I feel that we may as well make it public in the same way.
Please consider this if you would like.
Hello,
Thank you for this library, I just want to ask if it is stable using Keysight visa as I'm integrating with Keysight product, I've read that it is not the recommended way, but I'm asking if it worked with Keysight visa does this mean it is stable?
Thanks for sharing this fantastic library!!! I am trying out the SimpleExample you have here but I get run-time errors (see below). I am using this on MacOSX but I did not do any changes to the code (it seems to point to a VISA .dll). Any help is appreciated! Thank you again!
Details: MacOS Catalina version 10.15.7
The computer has LabVIEW 2021 installed and I can control instruments just fine with VISA from within LabVIEW.
Hello,
Thank you for your efforts in sharing this library. I am trying to use visa on linux. Have you ever tested whether this library works well on Linux? Does this library work on Linux?
Hi, how are you?
I need to develop an Android app capable of communicate with an oscilloscope which support SCPI commands (I have it currently working in a Windows environment with Py VISA).
I see the supported OSs in the description, but I wonder if this library would work in an Android OS. In case it doesn't, or it is uncertain, would you help me giving me a hint of what kind of solution would be a better approach? If mixing Java with C (which I understand work well with VISA) or better go with C# (having .NET working with NI-VISA) and Xamarin (for Android, because C# is not officially supported by Android, when Java and/or Kotlin yes).
(If you need context and my question is not out of place in the first place, I'm aiming to develop an app for Android which retrieves data from an Owon VDS6102 oscilloscope and show it in charts and graphs.)
Thank you in advance.
I'm looking to use this on M1 mac. I have NI-VISA installed but I get the following trace.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'visa':
Thanks
JVisa whether you can read and write 16-base data?
can you give an example?
PyVisa uses query_binary_values method to parse blocks of binary data,does JVisa support parsing binary block data?
Hello,
I tried to use JVisa to connect to a device, when I use
jVisaInstrument.sendAndReceiveString("*IDN?\\n");
something is wrong, the trace is:
/project_code/jj/jvisa/target/classes:/root/.m2/repository/net/java/dev/jna/jna/5.11.0/jna-5.11.0.jar:/data/app/idea-IU-211.6693.111/lib/idea_rt.jar xyz.froud.jvisa_example.lowlevel.FindResourcesExample
Connected to the target VM, address: '127.0.0.1:38753', transport: 'socket'
Exception in thread "main" xyz.froud.jvisa.JVisaException: in viRead(): Timeout expired before operation completed. (0xBFFF0015)
at xyz.froud.jvisa.JVisaResourceManager.checkError(JVisaResourceManager.java:291)
at xyz.froud.jvisa.JVisaInstrument.readBytes(JVisaInstrument.java:152)
at xyz.froud.jvisa.JVisaInstrument.readString(JVisaInstrument.java:168)
at xyz.froud.jvisa.JVisaInstrument.sendAndReceiveString(JVisaInstrument.java:74)
at xyz.froud.jvisa_example.lowlevel.FindResourcesExample.main(FindResourcesExample.java:37)
Disconnected from the target VM, address: '127.0.0.1:38753', transport: 'socket'
At present, I use resourceManager.openInstrument("TCPIP0::192.168.1.11::1799::SOCKET");
to implement. In fact, I want to get resources from another IP first.
I am using Centos7.X and NI-VISA.
Can you add a constructor like resourceManager.findResources("xxx.xxx.xxx.xxx");
to implement it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.