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

viVPrintf can't use "&"

$
0
0

hi:

I want to save image from VISA

I use 

 

status = viVPrintf(vi, "Smiley Very HappyISKSmiley FrustratedAVE:IMAGE " "FALE1"",JPEG,SCR,ON,INVERT" + vbCrLf, 0) 

 

it can save image.

but i use 

 

 Dim filename As String = VI_filename.Text

status = viVPrintf(vi, "Smiley Very HappyISKSmiley FrustratedAVE:IMAGE " & filename & ",JPEG,SCR,ON,INVERT" + vbCrLf, 0) 

 

it can't work!

why?


how to read data beyond 4096 bytes by VISA

$
0
0

  hi:

  I can only read 4096 bytes through VISA.I think maybe because the buffer is up to 4096 bytes.

 so how to read data beyond 4096 bytes by VISA?

 thank you!

 

Reading from multiple Sensors

$
0
0

Hi,

I am doing a reading from 5 sensors (dissolved oxygen, electrical conductivity, pH, Light Intensity and temperature). I am receiving the readings on my serial read program in labview. I have 2 problems. 

1) When i split the readings coming as text into floating point, it just indicates once and does not overwrite the new reading being sent every 250ms.

2) The display order of the measurements from the sensor gets changed every time i run the program, e.g; the dissolved oxygen reading gets displayed as output 1 and the next time as output 4 etc. 

My program is attached. Please help me in this issue.

Thanks 

TCP IP communication with ZIMMER LMG670

$
0
0

Hey,

 

I would like control my wattmeter. So in NI MAX I create a new TCP/IP resource I write manually the TCP/IP address (192.168.0.102). Ni max creat the VISA. And game over NI MAX show nothing on this address. I tried a ping test and the wattmeter is ok and i communicate with but NI MAX don't. I work on LABVIEW 2014. If someone can help me.

.NET API Member ibfind() Reading gpib.ini file

$
0
0

We are converting some legacy control programs and rely on the gpib.ini file for the configuration of instrumentation configured on each controller. I am looking for a .NET compatible command for ibfind().  The NET mapping help file indicates that the Board .NET member is equivalent to the ibfind C API member but I don't see any syntax where it's used.  Any help would be appreciated. 

my laptop cannot detecte 34401a multimeter via GPIB-USB-HS

$
0
0

First, I'm sorry I can not speak English well.

 

My final purpose is leading dc Voltage via python (pyvisa)

 

there are not other option.

 

I installed NI-VISA and 488.2 driver, keysight connection expert

 

and NI MAX talk to me "This GPIB device is not a genuine National Instruments product and is not supported by the installed NI-488.2 software", keysight connection expert cannot detecte any instrument.

Capture.PNGCapture.PNG

my environment:

windows 10, python3.7, NI-VISA 18.0, keysight connextion expert 18.1, 488.1 driver 17.6 and almost drivers are lastest version.

 

how can I detecte my 34401a??

Where to download IVI Compliance Package

$
0
0

Hello

 

I am new to this community, looking for the IVI Compliance package. While I could find its download page, I can't see where to actually download the package. All I see is the readme and the release notes. Do I need a service contract?

I need the compliance package because the Keithley KE2700 IVI Instrument Driver needs it.

 

Thanks and best regards,

Dan

NI USB-6008 read analog in with python

$
0
0

Hello,

how do I write the DA output at the of the USB-6008 with python?

I installed the latest version of NI-DAQmx runtime and installed the nidaqmx python package with pip.

Could you please give me an example how to write to the analog outputs?

 

Thank you very much in advance!

- Olli


NI USB-6008 write analog out with Python

$
0
0

Hello,

how do I write to the DA output of the USB-6008 with python?

I installed the latest version of NI-DAQmx runtime (18.10) and installed the nidaqmx python package with pip.

Could you please give me an example how to simply write a value to one analog output?

When I use (as mentioned in the documentation):

import nidaqmx
from nidaqmx.types import CtrTime

with nidaqmx.Task() as task:
	task.ao_channels.add_ao_voltage_chan("Dev1/ao0")
	task.write([1.1, 2.2, 3.3, 4.4, 5.5], auto_start=True)

I got the error message:

nidaqmx.errors.DaqError: Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property.
Property: DAQmx_AO_Max
Requested Value: 10.0
Maximum Value: 5.0
Minimum Value: 0.0
Channel Name: Dev1/ao0

Task Name: _unnamedTask<0>

Status Code: -200077

Isn't there a simpler method to write to the DA?

What does the failure message mean?

 

Thank you very much in advance!

- Olli

NI USB-6008 write analog out with Python

$
0
0

Hello,

how do I write to the DA output of the USB-6008 with python?

I installed the latest version of NI-DAQmx runtime (18.10) and installed the nidaqmx python package with pip.

Could you please give me an example how to simply write a value to one analog output?

 

When I use:

import nidaqmx
from nidaqmx.types import CtrTime

with nidaqmx.Task() as task:
	task.ao_channels.add_ao_voltage_chan("Dev1/ao0")
	task.write([1.1, 2.2, 3.3, 4.4, 5.5], auto_start=True)

I got the error message:

nidaqmx.errors.DaqError: Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property.
Property: DAQmx_AO_Max
Requested Value: 10.0
Maximum Value: 5.0
Minimum Value: 0.0
Channel Name: Dev1/ao0

Task Name: _unnamedTask<0>

Status Code: -200077

Isn't there a simpler method to write to the DA?

What does the failure message mean?

 

Thank you very much in advance!

- Olli

USB to RS232/4 Communication over Ethernet

$
0
0

Hello,

 

I am attempting to use a USB to RS232/4 device.  My application involves using this device remotely (>100m) and, ideally, with an Ethernet connection.  I have attempted to use a USB to Ethernet adapter to communicate with this device to no avail (communication using USB is fine).  

 

Has anyone been successful in communicating with a USB to RS232/4 device over Ethernet and could you share how you were able to do it?  I realize this may not be possible.  

 

Thank you for your help,

 

Dan

Bloatware

$
0
0

Hi,

 

I use a few of NI's GPIB products on many PC systems

 

I really dislike the fact that the downloads are huge and they install lots of needless services for all kinds of hardware that I don't have / never want (NI Motion Device Manager, Citadel,  NI Domain Server,  NI TestStand Service etc etc etc)

 

It's a huge hassle for me to disable these when installing on various hetrogenous systems.

 

Please repect your customers and stop the bloatware.

 

 

 

 

How to receive only numeric( decimal content) data from string input.

$
0
0

In brief,  I need to give </= 12 digits data as input string like "989789856999".

 If I give "1abc23d7bad7657" as input string then need to pop up a message as invalid data,( i.e, if any char,special symboles (expect numaric data) it should be pop up msg like invalid data)

If i give "999999999999" , "912345678912", "123456789123","1233456","99999123"
then it is "valid data" .

 

nidaqmx example error message

$
0
0

Hi,

I'm trying to run the nidaqmx example shown bellow, using the NI USB-6008:

I've installed the python nidaqmx package and the NIDAQmx Runtime eviroment 18.10 under windows 10.

The examples are:

https://github.com/ni/nidaqmx-python/blob/master/nidaqmx_examples/ao_voltage_hw_timed.py

and

https://github.com/ni/nidaqmx-python/blob/master/nidaqmx_examples/ao_voltage_sw_timed.py

 

But I get the error message:

 

 

Traceback (most recent call last):
  File "ao_voltage_hw_timed.py", line 7, in <module>
    task.timing.cfg_samp_clk_timing(1000)
  File "C:\Users\LocalAdmin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nidaqmx\_task_modules\timing.py", line 3007, in cfg_samp_clk_timing
    check_for_error(error_code)
  File "C:\Users\LocalAdmin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nidaqmx\errors.py", line 127, in check_for_error
    raise DaqError(error_buffer.value.decode("utf-8"), error_code)
nidaqmx.errors.DaqError: Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property.
Property: DAQmx_SampTimingType
Requested Value: DAQmx_Val_SampClk
Possible Values: DAQmx_Val_OnDemand

Task Name: _unnamedTask<0>

Status Code: -200077

Any ideas why I get this message?

 

-Olli

 

nidaqmx python example error message

$
0
0

Hi,

I'm trying to run the nidaqmx example shown bellow, using the NI USB-6008:

I've installed the python nidaqmx package and the NIDAQmx Runtime eviroment 18.10 under windows 10.

The examples are:

https://github.com/ni/nidaqmx-python/blob/master/nidaqmx_examples/ao_voltage_hw_timed.py

and

https://github.com/ni/nidaqmx-python/blob/master/nidaqmx_examples/ao_voltage_sw_timed.py

 

But I get the error message:

 

 

Traceback (most recent call last):
  File "ao_voltage_hw_timed.py", line 7, in <module>
    task.timing.cfg_samp_clk_timing(1000)
  File "C:\Users\LocalAdmin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nidaqmx\_task_modules\timing.py", line 3007, in cfg_samp_clk_timing
    check_for_error(error_code)
  File "C:\Users\LocalAdmin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nidaqmx\errors.py", line 127, in check_for_error
    raise DaqError(error_buffer.value.decode("utf-8"), error_code)
nidaqmx.errors.DaqError: Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property.
Property: DAQmx_SampTimingType
Requested Value: DAQmx_Val_SampClk
Possible Values: DAQmx_Val_OnDemand

Task Name: _unnamedTask<0>

Status Code: -200077

Any ideas why I get this message?

 

-Olli

 


How to set Yokogawa WT210 Display

$
0
0

I am newer to LV and have just perchased the labview version 2015 and would like to lock  display Yokogawa  WT210 

I need :

Chanel A : Voltage (V)

Chanel B : Power Factor(PF)

Chanel C : Current (A)

But when I command measure, WT 200 display set to 

Chanel A : Voltage (V)

Chanel B : Current (A)

Chanel C : Power (W)

Thanks

Ai

How to disable units in agilent 415x?

$
0
0

I am using labview to control hp4155b, and i downloaded its driver so i thought things would get easier. But I dont know how to disable some units, I dont know which function I should use and there are no explanations to those functions or what kind of a sequence I should put together. Does anyone know the solution to this?

Running NI-MAX GUI in background somehow improves my CAN BUS simulation timing

$
0
0
Hi,  
 
I have a simulation where the UUT sends a CAN message (2-bytes) to my simulation. My simulation process it and returns a 7-byte response message. This has to be done within 10msec, otherwise the UUT reports timeout. When the NI-MAX GUI is running in the background the response time is less than 3msec. If I close the NI-MAX GUI the response time exceeds 10msec. Is there something I`m missing in configuring the CAN card that the NI-MAX GUI is performing?  
 
CAN Card: NI-PCI 8512 Driver: NI-CAN 17.0 and NI_XNET 17.5.1  
 
Thank you, Umesh

Visa read error from Keithley 6221 using TCPIP

$
0
0

Hello all,

 

There is an error which bothers me for long. It will be very kind of you if anyone can advise about it.

 

I used Labview 2017 SP version.I tried to run a delta-pulse measurement using Keithley 6221 with Keithley 2182A through TCP/IP. I find very often errors are generated by the VISA_Read in the error query vi. Sometimes I get green Error 1073676293 (The specified termination character was read) and sometimes it shows red Error 85 (occurred at Scan From String (arg 1)). See picture error1.

 

To examine the effect of VISA_Read, I made a simple test program consisted of reset and read function. And I get another error -1073807339 (Timeout expired before operation completed). See picture error4.

 

I was very confused with the read vi. So I decide to use test panel of Ni_Max. I write the query command ?IDN?\n in the test panel. I find enabling "Suppress End on Read" option will cause read operation timeout error (see picture test3.1). This problem can be solved after I disable it or enable the "Termination character" with line feed \n (see picture test1.1).

 

I am not sure either if it is a problem of Keithley device or my code or the communication set-up. I have checked the device can receive the signal for DC mode which does not involve reading of buffer. The device cannot be detected automatically by Ni_Max so I added manually using TCPIP socket with 1394 port. The GPIB cable will block the RS232 port which is needed for 6221 to communicate with 2182A, so I did not use it.  

 

I spend many hours try to resolve it. It will be really helpful if someone can provide tips or hints to solve it.

 

Many thanks,

Thomas

 

 

 

 

 

Eurotherm 2604 and 3204 RS485 via COM ports of NI PCIe-8433/2 card

$
0
0

Greetings,

I use 2 Eurotherm regulators at work (model 2604 and 3204) with connections via RS-485 interface to a PC.

Now, on the first PC (with Win XP installed and cables connected directly to the COM ports of the MOXA CP-132 PCI card) I ran iTools and, after a scan, the Eurotherm devices were detected without a problem, all parameters listed.

On the other hand, the second PC has Windows 10 and a National Instruments PCIe-8433/2 card with NI Serial 17.5 drivers up-to-date. Here, after physical connection and running iTools, the scan doesn't come up with anything although the addresses are known.

Ultimately, the goal is to write and run LabVIEW executables on the second PC. Modbus will be the used communication protocol. After running NI-VISA Interactive Control -> Input/Output -> Read, one of the COM ports shows timeout error and the other one: a framing error during transfer.

 

I'm relatively new with this, so could anyone drop some suggestions on how to proceed or provide some diagnostics tools?

Regards,
Marcin

Viewing all 5668 articles
Browse latest View live


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