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

C++ program to read from NI cDAQ-9191

$
0
0

I am trying to write a simple program in C++ that will be able to read temperatures in temperatures from the DAQ, (We are using NI 9213 24-bit Thermocouple Input modules). I have the NIDAQmx.h header file but it will take me a while to read through it just to understand how to simply get the temperature readings to the computer. If there's anyone who has already done this or knows an easy way to go about doing this, any help would be appreciated.

 

Thank you,

 

Tim


MAX does not allow me to rename tektronix oscilloscope

$
0
0

Hi,  I'm trying to set up my  TDS 2014C Tektronix oscilloscope but I have some questions:

 

1)  I cannot rename the device in MAX (I have TekVisa installed).  Here's what I get (see attached jpg file).  So what is happening here?

 

2)  My scope is connected via USB, and MAX sees it,  but all of the examples are for serial communication, and I see no VI's for USB, yet when downloading the instrument driver it said compatible with USB.  What should I do to get examples up and running for USB?   

 

 Thanks in advance ....

 

 

 

code for a digital scales

$
0
0

hello

please can you help me with the scales.

i did a program to acquire data from the scales but the data was coded therefore i need a source code

thanks

Modbus Communication w/ Multigen M820

$
0
0

My setup:

cRIO 9082 running the attached VI in RT Engine

NI 9148 Ethernet RIO Expansion Chassis

NI 9871 RS485 module in the expension chassis

Multitek Multigen M820 meter with an RS485 output

I am trying to read in the voltage and current values output by the Multitek. I have wired the +/- RS485 output on the back of the Multitek to both the green pair and orange pair on an ethernet cable and plugged the ethernet cable in to the NI9871 module. I wired both green and orange because I don't need to transmit, so I wired both together just to be extra sure I got the right pair on there.

 

Application:

I have attached the VI I made to test this communication. I initialize the VISA ports as a 2Wire configuration and initilize the modbus protocol with matching settings to how I've set up the Multitek.

I have also attached the Operating Manual for the Multitek. RS485 setup starts on page 23 and the registers I want to read are on page 80. I have matched all RS485 settings and outputs the the VI I made.

When I run the application, I get no errors during initialization. The only error I get is a timeout error on the Modbus Read VI and nothing out of the registers.

 

Is there anyone on here who has more experience than I do with modbus who can point something out that I'm doing wrong?

Thank you,

 

 

 

Data remiain in read buffer with VISA event

$
0
0

Hi,

 

I'm trying to use the VISA event in order to read data from a serial port. I created a simple VI to test this (see attachment).

1. I initialize the port and event

2. in a while loop: every time I press a button the command "help" is sent to my board that answers with a few help instructions, which should be trigger a series of events and the lines be read.

 

The event is set on term characters. The weird thing is that every time I press help, I get "5 event", or 5 lines printed, not all the 8 lines that are actually sent from the board. If I then press "help" again, the remaining 3 lines (plus 2 new from the latest help request) are read on the VI. I don't understand what is going on??

 

I've tried changing the max queue length (which has no effect, whether it is set to 1 or 100).

I've tried changing the timeout from 50ms, but also this has no effect.

I'm sure the board is outputting the right commands I can read this in a terminal.

 

If I skip the event functionality (just read bytes at port) I can output all lines as expected, however I've had other issues with that approach and would really like to solve this with an event approach. Also, I would like to understand what's going on... I'd be grateful for any advise!

 

Best,

Maria

NI VISA "Resource not found"1073807343 error-USB plug out/plug in required

$
0
0

Hi 

 

Once my VISA read session is abruptly shut, (that is without closing it properly using the "VISA Close" function), the "VISA Find Resource" does not find the USB resource even though it was plugged in the whole time. A plug out/plug in is necessary before it can be found again, which i would like to avoid.

 

Did someone find a workaround to this problem ? Any suggestions would be Welcome :smileyhappy: 

 

Regards

shaark

Unable to initialize the VISA library

$
0
0

/usr/local/vxipnp/linux/NIvisa/NIvisaic     -->          Unable to initialize the VISA library. The VISA Interactive Control utility will exit.

Running RHEL 5.11 (32-bit)

[root@x74943 ~]# rpm -qa|grep nivisa

nivisa-4.5.1-f0

[root@x74943 ~]# rpm -qa|grep ni488

ni4882i-2.5.1-f0

 

gpibexplorer and driverwizard start up fine. I've never used nispy, but it is bombing too.

x74943(paul.autore)8> ./nispy

LabVIEW caught fatal signal

8.2.1 - Received SIGSEGV

Reason: address not mapped to object

Attempt to reference address: 0x10

Segmentation fault

 

Uninstall and re-install of NI-VISA didn't help. NIvisaic was running fine days ago. This system was not patched since it was working OK, but the root partition was reduced and a new physical volume was created for LVM so that /var, /tmp,... could be copied over and remounted as separate file systems.

I have not tried yet to mess with reinstalling NI-488.2

ldd /usr/local/vxipnp/linux/NIvisa/NIvisaic     shows same output as an identical working system

 

 

 

Error-1073807343 Basic Serial Write and Read

$
0
0

Estoy usando LabView 8.2 en el sistema Open Suse 10.4 (linux)

 

Mi objetivo es realizar una comunicación con un micropocesador por medio de un puerto USB 

Esta comunicación la puedo hacer con otros programas como el Cutecom, pero es necesario que la realize desde LabView. 

 

He abierto el programa ejemplo "Basic Serial Write and Read" pero cuando ejecuto el programa, me marca un error al parecer una configuración en VISA de los puertos seriales. 

 

Como puedo solucionar esto.

De antemano, muchas gracias 

 

Saludos Cordiales 

 

 


Help DAQmx and USB 6009

$
0
0
Hello everyone

Ido not haveexperience inprogramming inlabview. The program that in annex, I did with the help of NI forum for a few months.
 
I need to collect for 7 days continuously without interruption, charging a capacitor.

However the program only works well until 7 hours, after that it gets slow. I need two samples per secunds e per channel (I use four channels in differential mode) for 7 days, it is possible? what is wrong?

I have:
  4 channels; 4 capacitoress independently attached;

I need:
obtaining two or more samples per second for seven days.

Note 1: I'm using Arduino to drive the capacitors and the DAQ 6009 to collect the voltage.
Note 2: I'm saving to .txt, because then I will open the file in another software to analyze the data. .txt is the best way?
Note 3: I divided the .txt files porquw thought would fix the problem of slowness, but is still slow after seven hours. 

Could someone help me? why program not meet what I need?

GPIB-USB-HS works selectively

$
0
0

 

Situation

 

-an old HP3962A works nicely using a PCI-GPIB card on a PC. Labiew code.

- a K2000 dvm works nicely using a GPIB-USB-HS hub, on a laptop. Laview code.

 

Problem:

 

NIMAX does not recognize the HP3962 when using the GPIB-USB-HS hub, on the laptop, although it recognizes seveal other instrument, like the K2000 dvm.

 

Thank you for suggestions, Philippe

 

 

please help me is any toolkit is required for running visa blocks?

$
0
0

please help me is any toolkit is required for running visa blocks? because whenever i run any serial project in labview it gives Error 1 occurred at Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->serial communication.vi error... please help me waiting for your guidance.

send serial from LabVIEW to 8051 mc

$
0
0
Actually wat i need is. My project is online temperature control. I'm receiving my dac value tat means temperature from rtd is getting in LabVIEW using 8051 board. But now I need feedback error voltage to send mc from LabVIEW. Tat means if my condition is true I have to send port on tat means 5v if my condition false I have to send 0v tat means port off

Oscilloscope multiple channel measurement

$
0
0

Hi all,

 

I am working on measurement and logging of peak value for two pulsed signals. The signals are connected to agilent scope DSOX 3034A for display and local measurement. The scope is then interfaced with PC using LAN interface for peak measurement of the signals. I have sucessfully carried out the programming to display them on Labview on PCusing drivers provided by Agilent. But I am only able to get peak of one signal but not the other even after trying quite a few logic combinations.

The vi is attached herewith. 

Can anyone suggest how to display and log both signals on a single chart and file respectively? It would be of great help.

 

Thanks

Agilent 4263B

$
0
0

Good day. I am a newbee in the truest sense of the word. I read the quick guide to this site however, I am not sure I am in the correct location for this very basic question. I am trying establish communications with an Agilent 4263B LCR Meter and have LabVIEW 2014. I am using a PROLOGIX GPIB-USB controller and supposedly someone already had this computer and this LCR Meter talking, a while ago. I have the LabVIEW Core 1 training manuals from someone that went through the class. Unfortunately, they are not available to help me. If someone could point me in the right direction that would be awesome. Thank you

GPIB-USB > NI 120A ?

$
0
0

1.

Can still use 28 ( 2 x 14 )  devices if I'll use my NI 120-A GPIB extender/isolator with a NI GPIB USB converter ? ( Instead of max 14 devices of the NI GPIB USB converter itself  ?

  

2.

What is the difference between GPIB-USB B and HS ? ( different speeds .. ?  if so what speeds ? )

 

Thanks,

Peter PE1E.


How to perform a two Port TOSM calibration with rohde & Schwarz ZVA in LabVIEW ?

$
0
0

Hello, is here somebody who is working with VNA ZVA by Rohde & Schwarz and who can explain to me, how to perform an calibration which is controlled by Labview. I use the R&S  Vi´s and perform all the settings but my VI ends with the "RSZVB Start Calibration " VI which shows no error but does also no work. Does somebody got an example of the calibration process?

 

Kind regards

 

newb15

 

GPIB 120A replacement, some day

$
0
0

I use a bunch of GPIB-120A isolators.  They are great for breaking ground loops and reducing CPU noise from a computer when making sensitive low temperature measurements.  AFAIK the GPIB-120A has been discontinued by NI.  We attempted to use the new GPIB-120B but it is a complete piece of crud and was discusses as a complete fail on these boards awhile ago.  I got my hands on the last 5 GPIB-120A models that NI had.  One of my units has a problem and we shipped it back to NI for repair.  They offered a refurb or ***new***(???) unit of the same model.

 

Is there a replacement for the GPIB 120A that does not inject an unbeliveable amount of noise into a measurement system?  Has NI recognized this failure and/or started up the production of the 120A again?  Any alternative hardware to achieve ground isolation and noise reduction without adding high frequency noise to the system.

 

See http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/GPIB-120B-causes-noises/td-p/878437 if there are any questions about how useless the GPiB-120B.  I can also give a short rundown on the poor design choices with the GPIB-120B.

problème communication GPIB avec microprocesseur

$
0
0

Bonjour,

 

Je dois créer un programme permettant de gérer un appareil de mesure, afin d'automatiser un test.

Pour ce faire, il faut utiliser un port GPIB (protocole de communication ieee488.2 )

Je n'ai pas trouvé de "header file" simplifiant la tâche sur internet pour ce système de communication, et le peu d'informations que j'ai trouvé pour que je puisse créer un code en fonction du protocole de communication sont contradictoires.

C'est à dire : sur certains sites, on dit que les niveaux logiques sont inversés, sur d'autres non. (un exemple parmis tant d'autre)

 

Est-ce que quelqu'un pourrait m'expliquer clairement comment fonctionne ce protocole de communication et s'il y a un "header file" existant que je n'ai pas trouvé?

 

Merci d'avance pour vos réponses, si vous avez d'autres questions afin de mieux connaître mon soucis, n'hésitez pas à les poser :smileywink:

 

(pour programmer le uP, j'utilise le logiciel MPLab IDE avec un CCS C compiler)

Audio Precision bus (APIB) with LabVIEW?

$
0
0

Hi,

 

I'm trying to control an Audio Precision SYS-2722 with LabVIEW, but it doesn't have any GPIB port, only APIB and an APIB-USB adapter.

Do you know if there are a way to do this?

NI-VISA see the device as an "USB Raw" device and not an USB instrument.

 

Thanks!

Kernel sources not found on Scientific Linux 6

$
0
0

Hello!

I am having trouble installing NI-VISA on Scientific Linux 6. The installer can not find kernel source despite the fact the kernel-headers and kernel-devel packages are installed. How to point the NI-VISA installer to the kernel source location?

Viewing all 5682 articles
Browse latest View live


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