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

LabVIEW and OceanOptics USB2000

$
0
0

Hi everyone,

I am a new LabVIEW user and I am trying to drive the USB2000 spectrometer with LabVIEW.

 
and I was able to use the USB4000 (which is the older spectrometer model) with the VIs provided with the drivers. I also modified the "acquire continuously" VI adding the possibility to adjust the integration time.
Everything worked fine until I switched to the USB2000 (for its better optical resolution) and I found out that it seems "impossible" to both set the integration time and acquire the sampled spectrum. If I use the basic "acquire continuously" VI it works fine: on the other hand, when I try to add the integration time regulation, it returns me only the first sample. Then, for the following cycles, it remains stuck waiting for the "read optical spectrum" VI results.

I wonder if there is a different procedure to follow in order to set the integration time while acquiring the spectrum (which is a basic function for a spectrometer!) or if I am missing something.
I attach the zipped VI that I modified (the one that works correctly with the USB4000).
Thank you all in advance!

NI-VISA native 64 bit binary support in Linux

$
0
0

Hi,

 

Currently though NI-VISA is supported on some Linux platforms the binary installed is only 32 bit binaries. Does NI plan to add native 64bit binary support for Linux platforms?

 

Thanks

Shreenath.R

Old visa open, error code 1073807343, using VISA with a GPIB device, and VISA resource names

$
0
0

Hi everyone,

 

I'm trying to get a SRS model SR720 LCR meter (manual on this page) working with LabView, connecting it to my PC with an Agilent 82357A GPIB/USB interface (manual on this page). I'm running MAX version 14.0, and NI-VISA version 14.0. I'm running LabView version 13.0f2, 32 bit.

 

I followed the directions on this page, and I'm pretty confident I can communicate with my LCR meter, because I can go to NI MAX->GPIB0::17::INSTR under "devices and interfaces", then go to the VISA test panel, go to the I/O tab, and I can enter a few commands from the SR720 manual, like changing the frequency, and I see the light on the LCR meter change to what I just told it to do. Here is a picture, just to illustrate it:

 

NIMAX1.PNG

 

Also, if I do the *IDN? command, it returns "

9: Write Operation (*IDN?)

Return Count: 5 bytes

10: Read Operation
Return Count: 41 bytes
StanfordResearchSystems,SR720,08087,1.03\n

 So, that's good too. I also made the alias of this device "MyLCRmeter", but that shouldn't matter for now.

 

Now I'm trying to get it to work in a more usable way. The SR7xx drivers that LabView found for me came with a couple sample programs, one called "Getting Started.vi". I tried to just simply see if it worked, changing the "instrument descriptor" field to "GPIB0::17::INSTR", since that's the one that seemed to be the right device in MAX. Here is a picture of the front panel of "Getting Started.vi":

 

GettingStartedFP1.PNG

 

Trying to run it like this gave me this error (code -1073807343):

Old VISA Open in SR715/720  Initialize.vi->SR715/720 Getting Started.vi

Doing a bit of searching on these forums, I found these few threads (1 2 3), which seem to tell me that, since this program was written, the way you open VISA has changed. In the 2nd of those links, one guy said:

 

You just have to replace the Old VISA Open function with the VISA Open that is on the Instrument I/O>VISA>VISA Advanced palette. When you do that, the wire to the string that was used for the resource name will be broken. Delete the string and make the actual VISA Resource Name visible on the front panel. Wire the VISA Resource Name control to the connector pane where the string control was (upper left connection). 

 

So, I went into the sub-VI Initialize.vi, and did that. Here is a picture of what the front panel and block diagram of the sub-VI Initialize2.vi (I changed the name in case I screwed things up, but I'm pretty sure the new one is the one being called by Getting Started.vi) looked like before I changed anything (you can see the Old VISA Open):

 

Initialize1.PNG


and here it is after replacing that with the regular VISA Open, deleting the instrument descriptor string and replacing it with a VISA resource, and connecting that to the VISA Open:

 

Initialize2.png

 

However, as you can see in the image above, and it seems like someone else had this problem in the 2nd thread linked above, I don't see my device listed in the drop-down menu (even if I refresh), only "LPT1" (I don't even know what that is):

No, I wasnt able to select the visa resource from the pull down menu. somehow it seems disabled or something. 

 If I just enter the VISA resource name from MAX manually, GPIB0::17::INSTR, and save and try running that, I get the error(code -1073807346):

VISA Open in SR715/720  Initialize2.vi->SR715/720 Getting Started.vi

 

So I'm not sure where to go from there, or why it's not in the drop down menu to begin with. I'm sorry if I've missed something but I've searched about as far as I can go. If I had to guess, maybe one thing could be that in MAX, under Tools->NI-VISA->VISA Options->My System->Conflict manager, I have both Agilent VISA and NI VISA enabled; I know sometimes problems arise from conflicts between different software fighting over the same hardware. Is this okay, or do I need to change it?

 

Thank you and please let me know if there is any other code/screenshots I could provide that could help!

NI Visa Server can't find remote expansion chassis

$
0
0

Hi,

 

I have a 9149 expansion chassis with a 9871 RS485/RS232 serial module connected to it.  I have installed VISA and VISA server on the expansion chassis and configured it to accept all remote requests in MAX. 

 

However on the VISA settings for my system the chassis doesn't appear in the available systems, and when I try to create a new system and specify it by IP address I get an error pop-up stating the system is already a remote system and to configure it in VISA>>Remote. Which I can;'t do as it is not there!

 

Therefore, I can not access the ports in Labview when I try to open a VISA session.

 

Is it possible to have remote VISA access to an expansion chassis?  Am I missing a step in the conifguration?

 

Thanks,

 

Neil

aquisition de RS232

$
0
0
Hi, I'm working on a project to aquérir of data of a photovoltaic cell (voltage, temperature ....) ( liason serial RS232 )  the problem is that the transmitter sends us a frame which is not know the Nature ( Unicode / Ascii / Ascii2 ... ) I want also to know if labview contains a command to convert them ... and thanks in advance

Independent instruments through same USB port

$
0
0

Hello there,

 

I want to control two different instruments through Labview: one applies pressure to it's outputs, the other, independent from the first, measures the flow rate of the outputs. I want to implement the control for both in the same VI and I'll probably be using some form or other of producer/consumer architecture for this. But, through a USB hub, they're both connected to the same USB port on the computer. My idea was to use 2 separate producer/consumer structures to have independent control over both, but is this advisable in this configuration or should I rather use a single consumer for both?

 

(Also, I wasn't sure if this is the right section for this, excuse me if I'm wrong.)

 

Have a nice day.

 

Edit: I probably won't need a producer/consumer architecture for the measurement instrument, but I'd still like to know your opinion on this.

CanI programmatically set PXI 8431 ports to half duplex (two wire)?

$
0
0

Hi,

I'm using a PXI-8431/8 RS485 card for half duplex comms. I am using the usual VISA serial port setup for baud rate, etc, but I also want to set the port mode to two wire, no handshake.

At present I can do this from Windows, using the device manager, but it depends on somebody knowing and remembering to do it. I want to automate it so that it is always set in my initialisation, regardless of who has used it do do what. 

 

Can anyone suggest how I can achieve this?

 

Thanks

 

Malcolm

Re: yOKOGAWA-LABVIEW

$
0
0

Hi,

 

You posted at the wrong board. This board is only for LabVIEW version conversion.

I will ask the moderator to move your post and I will answer you. I just need the check something.

 

Kees


Import data from a PCV in LabVIEW

Using ivi driver for keithley 2410 on visual c#

$
0
0

Hello, im pretty new to controlling instruments. I've been struggling with using the ivi driver found here for the keithley 2410 on visual c#, i already installed a driver for the agilent 34401 and used itsuccesfully, but i cannot add a reference for the keithley 2410 on c#, i'm sure i followed the steps for the installation, but no COM is shown when i try to add a reference.

 

What am i doing wrong? do i have to do something else? or i just cannot use the driver with c#.

 

What other alternatives can i use to control my instrument,? thanks.

 

 

34461A Min-Max Not available like the 34401A

$
0
0

Hello,

 

The 34401A is not longer available in Canada. We need to change and use the 34461A as a replacement and we are having trouble with the peak-to-peak measurements (We are using LabVIEW).

 

We use the peak-to-peak option while reading a communication line in order to get the min and max values. The code:

Visa Write

34410A
CONF:VOLT:AC
VOLT:AC:smileytongue:EAK:smileyfrustrated:TAT ON
INIT
FETC?

Visa Read

Visa Write

FETC:VOLT:AC:smileytongue:TP?

Visa Read

 

This code no longer works with the 34461A. Reading the AC will only give the RMS values. We dont really care how to get the min-max of the communication channel, as long as it is in a respectable time (10s at most...). Reading the signal with DC pretty much stays around the 0V. The communication signal is ±100mv. We verify the min-max range to be around 200mV.

 

Thanks

Need manual for Ruska Series 7000 Digital Pressure Controller

$
0
0

Hello

 

Does anyone has a manual for Ruska Series 7000 Digital Pressure Controller (7010-705N) ? I am trying to control it through GPIB in Labview.

 

Many thanks

 

ffl3883

N8754A- Power supply does not output the configured value at the first measurement

$
0
0

Hi There,

 
I am new dealing with instruments. I am using Power Supply N8754a. I downloaded the instrument driver from the below webpage.
 
 
It has two examples. I just modified both the examples by removing the while loop and making it to run once. (I made this change since I don't want any human intervention to stop the while loop.) They work fine when I set reset as false. But on reset (default in those examples), say, if I want to set to 5V, the power supply output is set as 0.01V (most of the times), or some value between 0 to 4 (sometimes), and rarely 5V. But when I read the power supply output for the second time, it is set as 5V. (By second time, i mean placing the measure API twice). I tried giving delay also. But it is not the case. It seems like the value is gradually increasing to reach 5V. But how much ever i increase the value, i am getting the required value at the second measurement. Not sure whether this is the default behaviour or I am missing out something.
1. Initialize>>Configure>> Enable Output>> Measure  ->Works
2. Initialize>>Reset>>Configure>> Enable Output>> Measure -> Doesnot work
3. Initialize>>Reset>>Configure>> Enable Output>> Measure>> Measure ->Works
 
Any help is appreciated!
 
Thanks,
Madhumithra

Having issues with simple serial communication.

$
0
0

 I followed a tutorial online to start learning basic serial communication. The tutorial involved shorting pins 1 and 3 on the Comm 1 port, and writing a simple program (attached). I edited the program a little, to show the varied results that I get when trying to write and read a simple phrase via serial port. 

 

Could someone explain what causes the kind of result shown in "Serial Comm Example.png"? I believe it has to do with timing. Why would only parts of the phrase be transmitted?

 

Thanks,

 

Sarah

Controlling Mainframe Module with PyVisa

$
0
0

Hi,

 

I have a Stanford Research System SIM900 Mainframe and I can communicate with it using Pyvisa. Now, I would like to communicate with the PID module SIM960 connnected to it.

 

I can send commands such as : mainframe.ask("*IDN?"), etc...

 

My problem is that I cannot send command to the module.

For example to assign the module to the 4th mainframe port outside of python I would have to type : CONN 4,"PID"

and I could then type: PID*IDN?

to get the model of the module with the variable name PID.

 

In python I can only give one argument to mainframe and I cannot write something like : mainframe.write("CONN 4, "PID"") and mainframe.write("PID*IDN?")

 

To summarize, I want to send command from python to the PID module through the mainframe (COM5 for example)  but I don't know what's the syntax for it.

 

Does anyone ever experienced this situation?

 

Thanks

 

Vincent


NI USB 6212 -Generate signal

$
0
0

Hi ,

 

I want to generate a previously recorded signal using the analog output of NI- USB 6212 daq. The signal is hard to model mathematically. Is it possible to somehow regenerate the signal on the analog output using previously recorded file.

 

Thanks in advance,

Configuring serial port advanced setting

$
0
0

Hey Guys,

 

I am working on one of the project where I need to access the PORT advanced setting programatically in LabVIEW.

 

But the serial APIs (VISA) in LabVIEW is application layer APIs.

 

Please help me with this.

 

 

Need some help controlling Ruska 7000 through Labview

$
0
0

Hello,

 

I wanted to control a Ruska Series 7000 Digital Pressure Controller (7010-705N) by sending a recipe of different set point and durations through labview. The ruska has a GPIB port. I have a GPIB  USB HS cable. My questions are : 

 

(1) Could anyone direct me to the right driver page ? The only drivers that I found on NI are for 7250, 7252, and 7615. I am not sure if it would support this older model

(2) Could anyone share some suggestions on how to design the LV part ? I wanted to send a recipe, for example 5 PSI for 5 min, 30 PSI for 10 min etc. If anyone can share a generic VI template for me to start off That would be awesome. 

 

Many many thanks

 

LabView Newbie

Watlow F4 with GPIB connection

Can I use GPIB instruments via GPIB-USB-HS and NI-VISA on MacOS with Matlab somehow?

Viewing all 5661 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>