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

BK Precision 1786B not showing up in VISA resource name or NI MAX

$
0
0

I have an existing setup that controls an Agilent 34970A and wanted to add a power supply(BK Precision 1786B).

 

The power supply has a NI certified driver, so I thought the example VIs would work when I installed the driver, but they don't and I could use some help figuring out what's wrong.

 

Some details/things i've investigated:

  • Labview 2014, NI-VISA 16.0, MAX 16.0.1 (other installed software also listed in the attached image)
  • "BK Precision 178XB Series" appears under "Installed Instrument Drivers" in the NI Instrument Driver Finder window, but does not show up under "Connected Instruments" and does not respond when I run the example VIs in the driver folder
  • The power supply is connected to the computer through a usb-serial and shows up under windows device manager as "Prolific Serial-to-USB Comm Port(COM3)" 
  • I am able to add it to NI MAX as a new port(parallel or serial), but even with the correct port settings the program cannot communicate with it. Status displays "Not Present."
  • I am able to communicate/control the power supply with the manufacturer's program, so I know that both the cable and power supply are functional
  • In the example VI, the device does not show under "VISA resource name" 

I'd appreciate any input on what could be wrong/steps I could take to get the power supply working with Labview.


USB-シリアル変換の安定性

$
0
0

LabView2013と、NI社製ではないUSB-シリアル変換を用いて通信試験を行っていますが、

高い頻度でプログラムがフリーズして、PCがブルースクリーンになります。

今はノートPCですが、デスクトップではこのような症状はあまり見られませんでした。

昔Labview8.2を使用している時にNI社製ではないUSB-シリアル変換には相性があり上記の症状が

起こる可能性が高いと聞いたことがありますが、LabView2013以降でも同様に起こりうる

と考えた方がよいでしょうか?

またPCによっても相性はあるのでしょうか?

ご経験の方お聞かせいただけると幸いです。

 

GPIB Driver with Agilent 82357B USB/GPIB

$
0
0

 Hello,

 

I have a NEFF 470 with an HPIB interface. I'm trying to retrofit with a USB/GPIB adapter. I have an Agilent 82357B and have gone through the steps to enable a side-by-side VISA installation, i.e. enabling the tulip dll in MAX and 488.2 in The Keysight Connection Expert software. The device shows up in MAX.

I have also located a driver listed as plug and play here: http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E9449659CE034080020E74861

All of the commands used in the library, however, are GPIB, and none seem to work -- even simple clear commands. I have read somewhere that these GPIB commands are incompatible with the Agilent GPIB/USB VISA and that I will need to use an NI adapter. This I can deal with, as long as I know this is the issue, i.e. before spending $600 on another adapter. 

I have also tried using raw serial VISA read/write commands, which seem to work. I am not sure I can translate the entire library (or what I need of it) from GPIB commands to VISA, but if this would work I am also open to that. 

Thanks,

Colin

how to connect Focusrite scarlett solo usb

$
0
0

Hi all experts 

recently I need to connects with one Focusrite scarlett solo usb this

I want to know if any body have experience about it and how I should do it with labview 

Arduino timeout using LINX

$
0
0

I created a VI which controls an Arduino MEGA 2560 using LINX. The program goes through a series of steps using a state machine architecture (see attached VI).   

My problem is that the program executes one cycle without any problems, but I get an error (5501: timeout occurred at the actuator forward/backward stage) when the cycle restarts. I figured out that replacing the “Analog Read N Chan” command with a constant eliminates this problem, but I can’t figure out why having it in the code is causing the above-mentioned issue. Any advice would be greatly appreciated.

USB-232 Device not found

$
0
0

Hello all,

Not sure what is going on, but for some reason, my computer is not registering the connection of a USB-232 device (485 for that matter).  When I plug or unplug the devices, the device manager refreshes and I get a sound, but the device never shows up in the Device Manager.  I am currently running 

  • Windows 10 version 1607
  • NI-Serial Runtime 15.0.0f0
  • NI-Serial Configuration 15.0.0f0
  • NI-VISA 15.5

Any thoughts?  I have tried restarting and whatnot to no avail.

Cheers, cirrus

Driver for 900 Series Eurotherm Temperature Controller

$
0
0

There are older threads about VI's for 900 series Eurotherm temperature
controller, but the links on them are outdated.

I'm wondering if anyone has a recent driver for the 900 series eurotherm that I
could use.

Can I move an old PCI-GPIB card to a new computer?

$
0
0

Hi,

 

I have a UDT position sensor which is hooked to a very old HP computer through a PCI-GPIB IEEE 488.2 interface using an NI 763061-02 REV.C Type -X2 cable (the same GPIB connector on both ends of the cable). I need to connect the position sensor to a new computer which does not have such port/card.  I tried to move the card from the old computer to the new one but the PCI card does not fit into the new computer (the old tower is much bigger than the new one). Are there different types of the PCI-GPIB cards for different system models? Is there any way that I can use the same old card on the new system or should I order a new smaller card for my new computer? How about buying an NI GPIB-USB-HS instead of the whole card thing?

 

Thanks,

 

Goli


How to transfer data using TCP/IP and UDP with IPv6 protocol in labVIEW

$
0
0

Hi

I am working on a project where I have a need to communicate custom hardware using TCP/IP & UDP IPv6 protocol.

If any one have any idea about how to communicate custom hardware using TCP/IP & UDP IPv6 protocol. I have done with IPv4 but my customer require using IPv6. 

If any one have work on it please help me to get the solution.

 

Thanks in advance.

CP210x UART Bridge and VISA

$
0
0

Сonnectthe adapter USB - RS232to the USB port computer.

Bus 004 Device 008: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light

Tuned port /dev/ttyUSB0

stty -F /dev/ttyUSB0 raw speed 9600 -ixon cs8 -parenb -cstopb

Data transmissionworks fine in terminal or PuTYY but VISA Interactive Control gives an error message:

Error opening resource:
ASRL5::INSTR
VISA:  (Hex 0xBFFF0000) Unknown system error (miscellaneous error).

Findlinks: http://forums.ni.com/t5/NI-Linux-Real-Time-Discussions/FTDI-USB-Serial-Adapter/td-p/3375153

and

http://forums.ni.com/t5/NI-myRIO/Using-USB-RS485-or-other-USB-to-COM-devices-on-myRIO/ta-p/3491726

[root@localhost dev]# chmod 666 ttyUSB0
crw-rw-rw-.  1 root dialout 188,   0 Nov 19 03:39 ttyUSB0
[root@localhost dev]# ln -s /dev/ttyUSB0 /dev/ttyS4
lrwxrwxrwx.  1 root root          12 Nov 19 02:15 ttyS4 -> /dev/ttyUSB0

In visaconf.ini 

Name10="ASRL11::INSTR"
Enabled10=1
Static10=1
SystemName10="/dev/ttyS4"
BaudRate10=9600
DataBits10=8
Parity10=0
StopBits10=10
FlowCtrl10=0
Name4="ASRL5::INSTR"
Enabled4=1
Static4=1
SystemName4="/dev/ttyUSB0"
BaudRate4=9600
DataBits4=8
Parity4=0
StopBits4=10
FlowCtrl4=0

The problem (Unknown system error (miscellaneous error)) persists.

What to do next?

 

Keithley 2400 read ENTIRE buffer

$
0
0

Hi dear Gurus,

 

I wonder if you could help me. I've been working on this programme for weeks now.

 

I need the instrument to do 2500 (maximum buffer of instruument) 4-point resistance measurements once every second and then give me the results in a file. Simple, right?

 

But I cannot get all the results out even though I do believe those 2500 measurements were performed. A :FETC? command gives the first 112 readings in full, and a truncated version of the 113th reading. I have played with and maximized the possible byte count for the VISA read command but cannot increase the number of readings further.

 

I suspect either that the VISA read command times out before the contents of the buffer can be read in full, or that the size of the buffer in LabView has limitations. I have tried using a separate programme to read the buffer after measurements are completed but also get a truncated result.

 

I hope someone could help or at least offer some suggestions as I am at my wits' end. Attached are the block diagram and the VI I have written. 150 measurements is enough to bring out the error. Thank you, everyone.

Setting XonLim and XoffLim using VISA API

$
0
0

Hi. Due to NI dropping support for Serial devices on 64-bit Windows, I'm forced to update some of my code packages from Win32 COM calls to those found in the VISA API. I'm trying to match up my INSTR attributes using a DCB from one of the packages for reference, and can't figure out how to set the XonLim and XoffLim values. I've scanned through the VISA programmer's manual a few times and can't find anything. 

Also I've read this : http://forums.ni.com/t5/LabVIEW/Can-I-set-XonLimit-and-XoffLimit-for-serial-port-communication/m-p/1133716

 

From that article, it seems those properties can be set under LabVIEW. Is it not possible to set them otherwise ? Thanks for any suggestions !

HP 5890 II - Keyspan Serial USB

$
0
0

Dear NI-Community,

 

since 4 weeks I have been trying to connect and control my HP 5890 Seris II with my Win7 machine via LabView ... unfortunately without any success.

 

I could already realize a Serial-USB connection with the software "Unichrom". So I assume that my cable should be fine. 

 

I tried to install the third party driver of the cornell server (http://ceeserver.cee.cornell.edu/mw24/Software/) and requested the full source code.

 

1) So I have the llb-file and also two dll-files. My first problem seems to be that I'm not sure how to install this cornell-driver in a correct way. I couldn't find any header-file as I was supposed to. Is there any specific procedure for that?

 

2) When I run the VISA-Test Panel for my COM3-Port (Serial-USB) I see the following problem:

Attribute --> Is Port Connected

VISA Attribute Name --> U_ATTR_ASRL_CONNECTED

Current Value --> Invalid Property Value

 

Please help me with that. I'm a new labview user and also study the labview studient version text book. But I feel that in this case I would need some additional help. I highly appreciate any helpful comment. I also attached some snapshots of errors and described problems.

 

Kind regards,

Mario

 

PS: I really carefully checked all previous topics about the HP 5890 connection and triple-checked baud rates etc. ....

Problem w/ NI9871 RS485 module - need to manually assert DTR?

$
0
0

I am having a strange problem with a 9871 RS485 module in a cRIO-9066
chassis (running kernel version 4.1.15-rt17-ni-4.0.0f1 #1 SMP PREEMPT RT).
I want to deal with the ports from a C program running in the
Linux.  I have this working fine, in the two wire auto wiremode to some
devices I've used before under x86 Linux ... except I have two startup
problems:

(a) It works (sort of) after a boot.  If I stop the program (I close the
file descriptors for the ports), when I try to restart it, it hangs at
the open ( "fd = open( "/dev/ttyNIRIOslot8port0", O_RDWR | O_NOCTTY);").
For a while, I was getting around this by restarting the cRIO. More
recently, I've discovered that I can get it to go past the open, by
opening the VISA control panel, choosing the port, and picking the
"Flow Control" tab.  The "flow control" radio buttons show as "None".
The DTR signal is shown as "unasserted".  I change that to "asserted",
and push "Apply Changes".  At this point, it will still be hung at the
open, until I click the "go away" box of the VISA window.  Then the
open proceeds.

 

(b) My first attempt at writing and reading from the port, is
unsuccessful; nothing comes back to the read (I think because the
write is not happening - I think that is what I saw when I looked with
a scope.)  This can be fixed be performing the same procedure as above
(asserting DTR) a second time.  From then on, the program works great.

I have tried doing the asserts of DTR in the program, by using the TIOCMSET
ioctl.  Interestingly, if I do the TIOCMGET right after having dome the
manual DTR assertion, the flags returned do not seem to have changed.

(1) Any ideas of what else to try?

(2) Right now I've only wired to 5 of the 9 pins in the RJ50 connector
(TXD-, RXD-, TXD+, RXD+, and ground).  Does the flow control handshaking
need me to have done anything with the RTS / CTS pairs? (After the open,
I have set -CRTSDTS in the termios, which stty confirms; I have most
everything else turned off in the stty, except for CREAD).

Thanks,
   Andy S.

List of hardware devices that allow use of Watchdog

$
0
0

Hello all.  Is there a list of cDAQ/cRIO/PXIe chassis/controllers that allow use of Watchdog?  I know that the cDAQ NI-9188XT allows it, although the NI-9188 does not.

 

Watchdog is very helpful for our situation, so we wanted to know what chassis and other hardware devices allow for Watchdog usage.

 

Thanks.


Sniffing on GPIB communication using C#

$
0
0

We are using some third party software and there are some bugs in it. I would like to make a program in C# that would listen to the GPIB communication taking place between the computer and all instruments connected. When I match a particular command sent to a specific GPIB address, I want to send my own commands, to override the original command. I suspect this could cause a crash in case I happen to send the commands at the same time with the main software (however I am able to do it manually by sending the commands with a delay, when I know there is no other communication on GPIB). I use NI Spy (NI Trace) for manual debugging, but I am not sure if I can use it from within my own program (or maybe there is a better alternative).

 

Thanks,

Nick

.

Tektronix TDS5104B returning measurement command and value from a read commnad

$
0
0

I am talking to two TDS5104B scopes using the same bus and recording RMS readings from channels 1 and 2 on each scope.  The instrument will respond correctly to setup commands, but responds incorrectly a read command.  My problem is one scope will return the read measuremeasurement command and the value to the computer, which results with a 0.00 value being recorded.  I am fairly confident it is only one scope that will return the commands, since I have ran the VI alternating the scopes in the VISAs and see the error follow the same scope.  Does anyone have an idea why the scope will return the command with the value, instead of the just the value alone? 

GPIB USB-HS matlab srq

$
0
0

Hi,

I've been trying to control a Novocontrol Alpha A Analyzer by using a GPIB USB-HS and a matlab code. I had no problem connecting the device and using simple commands like *IDN? or the ones to change the parameters and to start the measurement. Unfortunately I can't use the TestSRQ and read status commands without getting an unknown command error.  I did try to find a working command by using an automatic measurement program provided by novocontrol, the Visa Test Panel and the NI-I/O-Trace. I could not reproduce the command though.

 

Any help would be appreciated.

 

 

GPIB USB-HS

Ni 488.2 version 14.0

Matlab R2016a

 

Result of the I/O Trace when i used the VISA Test Panel read status byte function.

viReadSTB (GPIB0::10::INSTR (0x02971E58), 0)
Prozess-ID: 0x00001078         Thread-ID: 0x0000145C
Startzeitpunkt: 13:22:04.147       Aufrufdauer 00:00:00.002
Status: 0 (VI_SUCCESS)

Activex control of spectrometer Horiba Jobin Yvon T64000

$
0
0

Hello, guys!

 

I am trying to move a stepper motor and get spectrum acquisition for each position of the stepper motor. I was wondering how can I do that with Labview. I know that there is activex container for the labspec5 ( which controls the spectrometer). I was wondering if any of you has tried that with this spectrometer? I was told that it wasn't possible to control the spectrometer with labview but anyway I am trying. Do you guys have examples of VIs that gets spectrum aquisition? I was wondering if I could use the autosave function in labspec and just get the acquisition and it would save it automaticallly.

Viewing all 5661 articles
Browse latest View live


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