Code Monkey home page Code Monkey logo

jvisa's People

Contributors

penguinlab avatar pfroud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jvisa's Issues

Timeout expired before operation completed

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'

Does this library work on MacOSX?

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.

How to find resources connected to another computer (not localhost)?

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?

JVisa for Android

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.

M1 Mac errors, please advise.

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

Does this library work on Linux?

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?

system error? return value problem

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.

system error? return value problem

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.

Visibility of `JVisaInstrument.readBytes(int bufferSize)` method

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.

is using keysight visa stable?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.