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

VISA Open Error when connecting to Tektronix AFG2021

$
0
0

When using VISA Open to connect to a Tektronix AFG2021 function generator, occasional errors are generated. It works fine 90% of the time but the remaining 10% reports errors such as:

 

-1073807297 A format specifier in the format string is invalid.

-1073807343 Insufficient location information or the device or resource is not present in the system.

-1073807360 Unknown system error (miscellaneous error).

-1073807229 Invalid length specified

-1073807302  Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state)

 

Occasionally the code will hang inside VISA Open and requires Task Manager to close LabVIEW.

 

I am using the 64 bit version of LabVIEW but I have tried the 32bit with similar results. I have also tried installing on another PC and upgrading the firmware on the instrument with no improvement. In the past I have had success communicating with a Tektronix AFG1022 function generator with no issues.

 

I suspect that there could be some sort of driver issue but I really don't know where to start. When the instrument is plugged into the USB for the first time Windows reports that the device is not recognized but if I search for a driver online, a suitable one is found and device appears as a "USB Test and Measurement Device" in device manager. MAX finds the instrument however it reports the AFG2021 as unknown model and manufacturer. Is there a way I can verify that the correct driver is being used?

 

System Info:

    LabVIEW Full 2017 f2

    Windows 7 Professional

    AFG3000 series driver available from NI website

    NI VISA 17.5

 

Thanks,

David


PID control using RS485 interfacing with USB 6008 for temperature monitor

$
0
0

Hi Everybody,

              Here i need some answers for RS485 communication with USB 6008 for temperature PID controller,First my question is , is it possible to connect RS485 communication protocol with usb 6008? and my second question is ,with the max 485 transreceiver module(USB type), is it possible to connect the usb 6008, sorry if i ask any unusual questions because i have a three temperature control device which it has an option to communicate through the RS485 port, i want to know, whether i can go with the USB 6008 or any other microcontroller like arduino, teensy?, i knew arduino or teensy has a serial communication port which it can be connected to the max 485 transreceiver module for RS485 communication, but i want some suggestions from my seniors.

 

Thank you,

Regards,

Paul

Powering sensor using NI 9237

$
0
0

All, 

 

I am attempting to power a draw-wire sensor using the excitation channels from the NI 9237. I am reading the voltage differential between the wiper and the ground using the NI 9202. The connection seem sot be working except for at random times the noise in the voltage differential signal amplifies in one direction. I have tried to identify the cause of this but have been unsuccessful. Has anyone else experienced similar results??

 

 

Emergency!! Convert Visa Serial Read into analog waveform!

$
0
0

Guys, can anyone suggest a solution to convert this serial read into a time-info waveform data? Since my project is have to take the value from EMG sensor and convert it in frequency domain via FFT.

This is my final project. I will appreciate for your help!image.pngimage.png

How do I set a DAQ (keithley 2700) to shut down at a particular time of the day?

$
0
0

Temperature measurements using Keithley 2700 DAQ is to be taken from 9am till 3pm. how to make sure DAQ shuts down automatically without having to switch it off manually. Is it possible to give some command via computer connected to DAQ to shut it down?

BK Precision XLN3640 buffer error

$
0
0

Hello, using the certified drivers to control a DC power supply.  Code throws the error code: 1073807252 in VISA Read.  Overrun error during transfer.  Character not readbefore next character arrived.  If I accept the error and restart the vi, runs smoothly (mostly)  Error is generally thrown in the initialize vi, but always when a buffer read is performed.  Have tried increasing bugger size, but no solution.  A library is attached.

Thanks for any suggestions.

Chris

VISA + Serial Communication -help Help Needed !!!!

$
0
0
i have sensor temperature i can read the temperature with my ni mydaq no problem with that but in need to send this temperature to anther user with uartft232 any idea how i can do it
 

 

how to send labview data to one of the usb ports of the system

$
0
0
ican read the temperature of sensor like28.5 C but i wanna to send this temperature via ft232 out of my laptop how i can do it

Unable to find NI-VISA Runtime 17.0 for Linux

Reading series of data from Keithley 590 CV analyzer

$
0
0

I have managed to connect the Keithley 590 CV analyzer to a PC via the IEEE 488 port and GPIB-USB. I am able to read a single reading from the meter but now, How do I read off a series of data from the Keithley 590 CV analyzer to do a plot? How would the coding look like? Could someone please help me to do that? Thanks.

Reading series of data from Keithley 590 CV analyzer. HELP!!

$
0
0

I have managed to connect the Keithley 590 CV analyzer to a PC via the IEEE 488 port and GPIB-USB. I am able to read a single reading from the meter but now, How do I read off a series of data from the Keithley 590 CV analyzer to do a plot? How would the coding look like? Could someone please help me to do that? Thanks.

Visual Studio C++ 2017 communicatiin with Agilent 34410A via USB

$
0
0

Hello there,

I'm currently developing a windows console application on VS C++ 2017 to communicate with a digital multi-meter but when I try to run the code, I get the errors attached to this post.

 

The code used is following:

#include "stdafx.h"

#include "visa.h"

#include "stdio.h"

#include "stdlib.h"

int _tmain(int argc, _TCHAR* argv[])

{

ViSession         vi;             // Session identifier of devices

ViSession         videfaultRM;     // Resource manager session returned by viOpenDefaultRM(videfaultRM)

ViStatus            errorStatus;    // VISA function status return code

char buf[256] = { 0 };

//ViSession defaultRM, vi;

/* Open session to instrument */

errorStatus = viOpenDefaultRM(&videfaultRM);

errorStatus = viOpen(videfaultRM, " USB0::0x0957::0x0607::MY49002367::0::INSTR", VI_NULL, VI_NULL, &vi);


// If an error occurs, give a message

if (errorStatus < VI_SUCCESS)

{

printf("Unable to Open port; check address! %s\n", buf);

printf("Press Any Key to Continue\n");

getchar();

exit(0);

// Close the session

viClose(vi);

viClose(videfaultRM);

}

/* Send an *IDN? string to the device */

errorStatus = viPrintf(vi, "*IDN?\n");



/* Read results */

errorStatus = viScanf(vi, "%t", &buf);



// If an error occurs, give a message

if (errorStatus < VI_SUCCESS)

{

printf("Connected to instrument but unable to getID string... %s\n", buf);

printf("Press Any Key to Continue\n");

getchar();

// Close the session

viClose(vi);

viClose(videfaultRM);

}

else

{

/* Print results */

printf("Instrument identification string: %s\n", buf);

printf("Press Any Key to Continue\n");

getchar();

}


/* Close session */

viClose(vi);

viClose(videfaultRM);

}

 

Any idea how I can address these errors? Any feedback would be greatly appreciated!

 

Thank you in advance much for the attention

NI- USB 6351 DAQ communication over Visa Driver

$
0
0

Hello,

 

Is there any documentation to communicate with the USB-6351 over Visa. Because i find no command description.

 

Thank you in advance

 

 

Compatibility of PCI-GPIB IEEE 488.2

$
0
0

Hi,

 

We currently have an instrument connected to a computer running windows XP via a GPIB connection to a PCI (GPIB-PCI IEEE 488.2). As it is one of the older models, I am wondering if it is compatible with newer windows OS's? I had a look at the driver section for this GPIB PCI, but couldn't find a newer one than the one for Win2000/XP.  Does anyone have an idea? We'd like to switch our ancient computer to a newer one which would run Win8/10.

 

Kind regards,

Steven

Commands on the BLE server

$
0
0

Hi to all,

 

I would like to know if there is some place where it can be found a complete set of commands to send to de BLE server. There are several posts that show the typical

http://localhost:5000/gatt/nodes/

or

http://localhost:5000/gatt/nodes/XXXXx/services/

http://localhost:5000/gatt/nodes/XXXXx/characteristics/Y/value (where value is the handle).

 

These kind of actions are quite clear, and are exactly what BLE instrument drivers function blocs do, by means of GET or PUT typical http instructions. But,  I can’t find anywhere a detailed description of a complete set of actions that can be performed with the server. For example to enable or disable notifications or other properties (if the charateristic allows this, of course).

 

I’m interested on this matter because I have problems reading a custom characteristic value.  I have an Arduino based system transmitting data by means of a HM-10 BLE module connected on its serial port. The transmitted information is read by a PC, with Windows 10, using its built in Bluetooth hardware, and running a Labview application (Labview 2017) using the BLE instrument drivers blocs. Everything is OK except when I’m trying to read the characteristic value. It returns always the MAC address. On the other hand, doing something similar with a Genuino (it has its BLE module embedded, no need of an external HM-10 module) and the CurieBLE library it works perfectly. So, I think it has something to do with the properties of the characteristic used, diferent when usign HM-10 or Genuino as transmitters.

 

Reading the characteristic value with and Android phone and an app (for example the nrFconnect from Nordic), works correctly. Also, when using the PC with an application lilke Bluetooth LE Explorer I’m able to read the characteristic value sent by HM-10 module. The curious thing is that the value is updated continuously, even if I has configured the module for NO notifications (it seems it goes back to allow notifications itself?). In addition, the big clue is that while receiving this data if I press the button read data in the Bluetooth LE explorer, shortly appears the mac address of the HM-10,and then it carries on providing the correct value and continues updating correctly. Everytime I press the button “read data” it happens the same. So it seems that it has something to do with the properties, and if I understood correctly, NI BLE server only allows for read, when using the bloc “Read BLE channel”. So it seems to me that what is hapenning with the BLE server, is similar to what happens when I press the button "read" in the Bluetooth LE explorer.

 

I hope I’ve made myself clear enough. Any help would be appreciated. Thanks in advance.


Serial read, Unpack and plot

$
0
0

First of all I am totally new in LABVIEW and sorry if this is repetitive question but honestly I could not figure it out. I am reading data from 3, 12bit ADCs and streaming the data constantly to computer by USB (UART) . Each package of data stream is like the photo below.

It has 6 bytes of data  from 3 ADCS which the 8 bits LSB of each ADC is in one byte and the rest 4 bits MSB is in another byte. Also there are 2 bytes with "z" and "y" character at the end of the package of data to realize the start and end of each package. l do not know how to unpack the data with LABVIEW. I really appreciate any Help.

 lab.png

Bluetooth Low Energy notifications

$
0
0

Has someone succeeded in using the notifications in BLE?I am using the set of Stream blocks provided by the "BLE instruments drivers" (al least, looking inside the blocs it seems they allow it), but I can not read the data of a BLE custom characteristic, although it is possible using a cellular phone or other PC applications.  Furthermore,  I can not find any implemented Labview examples that work. Some past posts commented on this subject, but I have not seen any solution. I'm using a PC with Windows 10 and Labview 2017. Any help would be appreciated.

Error 1074004013

$
0
0

I am trying to read data from a Tektronix MSO 201b Oscilloscope, and then display it to a graph.  The

error I am getting is 1074004013.  Please explain this error. thank you.

 

NI MAX VISA Error

$
0
0

When I open NI MAX I get an error saying:

 

"MAX has detected that NI-VISA is installed on you system, but visa32.dll could not be found in your windows system directoy." and it says it is looking for the library to be in C:\\

Windows\sytem32\visa32.dll

I have checked that directory location and the visa32.dll library is there. I have also uninstalled and reinstalled NI-VISA a couple times and I keep seeing the same error. Why am I getting this error? I am using NI-VISA 17.5 with LabVIEW 17, 64-bit.

Can a PCI-GPIB able to make a PC as a listener?

$
0
0

Hello All,

 

I just wanted to know if the NI PCI-GPIB card is able to make the PC which is it connected as a listener?

Thank you!

 

 

Viewing all 5695 articles
Browse latest View live


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