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

nat9914's address bus

$
0
0

hi,

 

     we are designing a GPIB interface board using NAT9914,the MCU is stm32F103VE,3.3V voltage power suply,and the NAT9914 is a 5V chip,so my question is should I connect external pull-up resistors to these adress bus(RS0~RS2),and also CE,WE,DBIN,or just directly connect the IO of STM32 to these pins?thank you!


EMtest ERROR: File read problem

$
0
0

Hello,

 

I am currently in process of developing driver for emtest autowave using GPIB commands.

 

Code I have so far:

 

rm = visa.ResourceManager()
string = "GPIB0::18::INSTR"
self.inst = rm.open_resource(string,open_timeout= 60)
print(self.inst.query("*IDN?"))
GPIBstring = "TRFL r/home/guest/DowFiles/SineTest.dsg"
self.inst.write(GPIBstring)
self.inst.write("DIR? DOWD")
# self.interface.vi_write("DIR? RECD")
self.inst.write("MOD GEN")
self.inst.write("SOUR SEGM SineTest.dsg")
self.inst.write("TRFL %s" %path)

 

But I'm facing error :

ERROR: File read problem

 

Questions:

 

I didn't install any software from emtest autowave. Is any software  is required?

Anything I need to do before transfer.

If I want to transfer from my PC path how to do it? Instead of this path /home/guest/DowFiles/SineTest..

 

I really appreciate code snippets to do this.

Thanks in advance.

 

Sequential control of an 1-button joystick pedal device

$
0
0

Hello everyone,

 

I am trying to build a code for controlling external devices with the click of a Pedal "Joystick". Basically, this is a simple USB Pedal, which has one button, and can be pressed sequentially, and used as a control. It's a standard device, even don't know the brand.

 

My goal: I want to configure this Pedal in such a way that, by pressing it, and holding for 1 second, it will trigger a photo capture from a camera. Same Pedal, though, also will trigger another device control, this time by holding it 3 seconds. I would like to make the code in such a way, that it will be able to distinguish between the button pressed duration. After release of the Pedal, I would want it to return to initial state, and if I press for 1 sec. again, to trigger the Camera process again.

 

I am using the Acquire Input Data VI to configure the Pedal, and am trying to figure out in my mind, how can I implement properly the Delay functions with Logical elements.

 

Does anyone have experience with such a system? Will be forever grateful for some tips and help!

 

Bests!

controlar equipo

$
0
0

Hola a todos! estoy trabajando en un proyecto y necesito realizar un programa tal que controle un equipo, es decir, que envie un valor de temperatura y el equipo lo ejecute, a traves de una conexion rs-232. He intentado usando los comandos VISA pero no logro conectarlo... Si alguien pudiera orientarme estaría muy agradecida.

Saludos

E4980AL LCR high frequency buffer measurements

$
0
0

Hi there, 

 

I want to measure at frequencies above 10 Hz, that is, below times of 100 ms capacitance measured in a E4980AL high precision LCR meter working in short time integration time. The instrument is conected to the computer with a USB. I have measured capacitances every 100 ms however when I try to reduce the time between measurements using WAIT times in a while loop between 100 ms, the time scale is not correct. Is there any posibility to carry out faster measurements using a USB. Can I carry out all the measurements and storage all the data in the buffer of the instrument and then read them?

 

Many thanks in advance

Getting VISA: (Hex 0xBFFF006C) An overrun error

$
0
0

I'm performing some serial communication at 9600 baud. I am sending a command and expecting 1 byte sent back (0x00). I do the write and the read immediately after with no delay. When I do the VISA read, I am getting the visa overrun error, but I am also getting the 1 byte I am expecting. To troubleshoot, I added a property to check the number of bytes at the port after doing the serial read and it is telling me there are 0 bytes at the port. 

 

Why am I getting the overrun error? Why am I still getting the byte back if there is an overrun error?

 

I am using NI-VISA 14.0.1 and NI-Serial 14.0 in LabVIEW 2014.

Restarting serial communication after disruption

$
0
0

Hi,

I am using a USB to serial converter to communicate to a PLC inside a while structure.

I am configuring the serial port before entering the loop.

The communication is fine...there is no issue with that.

Now whenever I unplug my USB-to-serial device the loop continues to execute unless I use the 'STOP' button to forcibly stop the loop. Only after the loop stops executing , the error dialog box is thrown.

Can anybody guide me in modifying my program to the achieve the following:

  1. The while loop exits as soon as the USB-to-serial converter is unplugged.
  2. Any means of restarting the VI after restoring the USB-to-serial converter.

Thanks in advance.

VISA Devices with same serial number and vendor ID cannot work together (0xBFFF003A)

$
0
0

Hi all,

I have to acquire data from two power meters YOKOGAWA using VISA driver (USB connection).

They work fine if used alone, but they don't work when are used toghether. In particular, when I connect and turn on both of them, NI MAX shows me the following error:

 

0xBFFF003A (VI_ERROR_INV_SETUP)

viFindRsrc returned 0xBFFF003A (Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).)

Please make sure VISA is properly installed on this system.

Possible causes for this error:
1. More than one Passport may be attempting to claim the same resource.  You can try disabling Passports to figure out which Passport is causing the error.
2. You have connected multiple unconfigured plug-and-play devices that have the same resource name. For example, the vendor ID and serial number may be the same.

 

Actually, according to MAX, the two the power meters have the same serial number and the same vendor ID; so, this seems to be the reason why they don't work together.

Can someone help me?

 

Thanks all


GPIB-USB-HS+ and Windows Embedded

$
0
0

Does anyone know if the GPIB-USB-HS+ will work with Windows Embedded 7?  Will the Measurement and Automation Explorer work with Windows Embedded 7?

 

Thanks!

ni 488.2

$
0
0

Hello,

            We have purchased CD KIT of NI-488.2 FOR LINUX VERSION 2.5 (P/N: 501209C-00, SO: 2254843, Date 2015/02/24).We are trying to install it through the installation guide but we are facing many problems as given below:

  1. We cannot install the full package of the operating system because it is too old to update.
  2. We are not able to downgrade the kernel to get the suitable kernel version in newer linux os.
  3. If, anyhow, we install the older version of compatible linux os, there is something missing in those like: We are not able to install gcc installer( error coming as:  bash: wget command not found.
  4. e.t.c

In short, we are not able to install NI-488.2 using the installation guide .

Please guide us to overcome the  problems  and provide us a patch file so that we can install and do the further work.

ni 488.2

$
0
0

I have two quenstions:

1. what is the difference between NI 444.2 driver installation package  and NI visa driver installation package?  In common, which is selected to install  when   remote contro of instrument  via GPIB  cable  or the two must be installed together

 

2.  can an installation package  support  Chinese and English win os? or Chinese and English win os need different package?

 

Thanks a lot

save changes to Hardware vi

$
0
0

I keep getting an error no matter what I use to the VI shown below. I'm attempting to add an Ethernet resource to MAX programmatically then save the changes in MAX using the Save Changes (Hardware) VI. I keep getting "resource in" is invalid, yet the Ethernet resource reference number, from the filtering, is OK.

 

save_changes__hardware.gif

 

Rich J

MAX recognizing 3rd party non-NI PCI/USB devices that already have a device driver (DLLs)

$
0
0

My company manufactures PCI and USB accquisition devices and we deistribute our own Windows drivers and DLLs.  In addition, we have LabVIEW VI's that also access these devices (through the DLL).

 

Customers are interested in seeing my devices show up in MAX, so they can confirm that the hardware is present in the system (in addition to NI hardware).

 

Problem is that when I use the NI driver Wizard, it creates a new driver for that hardware and uninstalls the existing driver.

Is there a way to have MAX recognize my hardware, but allow me to continue to use my own windows device driver (and DLL)?

Looking for Camac_library.dll

$
0
0

Hi everyone,

 

we have to revive an old experimental setup with a CAMAC crate, connected via a Jorway 73A controller module to a computer running Labview 8.5. (Please excuse me if some of that doesn't make sense, I've never worked with any of these before.) The only thing that seems to still be missing is Camac_library.dll, which was among the files lost in a hard drive crash. Does someone know where to find this?

 

All the best,

Chris

USB-RS232 Modbus

$
0
0

Hi everybody,

I'm a beginner in LabVIEW and I'm trying to acquire data from a microcontroller with Modbus serial protocol. I'm using a Prolific Technology USB-RS232 converter and Windows 7 as OS.

I can't communicate with the board which contains the micro. I get a 1073807246 Error ("The resource is valid, but VISA cannot currently access it").

I can't even configure it on VISA Test Panel.

Does anybody ever dealt with this problem and knows how to solve it? May it be due to USB-RS232 converter? 

 

Thanks any advice for any advice.

 

Andrea.


I'm using the serial port (COM1) to get 4 signals by using micro controller 16F88.

$
0
0

As I mentioned I'm using a data aquisition board which converts 4 analogic signal into digital. I'm using PIC16F88 programmed to send 1byte by channel. Of course, a mx 232 converts TTL. Data is sent to laptop in a frame of 4 bytes, after PIC receives a staring byte from LabView. I want watch signals in a 4 channel chart (one measurement each channel). First of all, I tried watching only one signal by connecting only one sensor to my board, the problem is that part of the measurement is showed in the first channel, part on the second and so on. I will appreciate if somebody could help me with this issue. Thanks

Linux NI-488.2 Application ibdev EDVR error

$
0
0

Hello All,

 

I'm attempting to compile the example linux 488.2 applications located in the /usr/local/natinst/examples directory (devquery.c and findinstr.c). I've downloaded the latest ni488.2 device drivers (NI4882-15.1.0f0.iso) and installed them on a laptop running the 2.6.32 x86_64 kernel. Both files compile successfully using the provided makefile. I keep getting the runtime errors below. I should mention I'm using the GPIB-ENET/100 interface. I'd prefer to use the GPIB-USB-HS interface but that doesn't work either.

 

ibdev Error

ibsta &H8000 <ERR>

iberr = 0 EDVR <Driver Error>

ibcnt = 3759407141

 

I double checked the primary address, board index, etc. and everything is correct. I can communicate with the test instrument (an Agilent Universal Counter) using the gpibintctrl utility. I don't understand why the gpibintctrl utility works but not the NI example code. I tried compiling both files separately using the "gcc <fname.c> -lni4882" command which also generates the above run time error.

 

Anyone have an idea what the problem is? 

 

Many Thanks,

 

Dave

How to read input register over 65535 ?

$
0
0

hi,

i have problem about read input register. i made program labview to monitoring Counter ( made by Autonics ),

my problem is when the counter is counting over 65534, suddenly on my program read 65535 = 1

for example

65535 = 1

65536 = 2

65537 = 3

65538 = 4

etc

 

is that the maximum read input register ? or its a bug from modbus library ? i`ve changed the representation v16 to v64

ask.png

 

any solution ? please help me  to read input register over 65535

thanks

How to read input register over 65535 ?

$
0
0

hi,

i have problem about read input register. i made program labview to monitoring Counter ( made by Autonics ),

my problem is when the counter is counting over 65534, suddenly on my program read 65535 = 1

for example

Autonics display | Labview display

65535                   | 1

65536                   | 2

65537                   | 3

65538                   | 4

etc

 

is that the maximum read input register ? or its a bug from modbus library ? i`ve changed the representation v16 to v64

ask.png

 

any solution ? please help me  to read input register over 65535

thanks

Solaris 2 GPIB driver availability?

$
0
0

 

I am using it currently on SunOS 4.1.3 but would like the option to use a newer version of Solaris.

 

According to NI website:

The GPIB-ENET, SB-GPIB and the SCSI-GPIB drivers for Solaris 2.x are 
not available for free download. They must be purchased seperately.

 

However when I contact NI about purchasing these driver they said they were not available.

 

Does anyone know wherer I can get the Solaris 2+ driver for the GPIB-SCSI-A and/or SB-GPIB adapter?

 

Viewing all 5663 articles
Browse latest View live


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