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

Unknown system error (VISA error code 1073807360) From .NET Library

$
0
0

Hello,

 

I am running into a  very difficult issue using the VisaNS library in C# .NET. I have created a class called FactoryInterface with the following constructor:

 

 

public class FactoryInterface : ICommonControl
    {
        protected MessageBasedSession _mbSession;

        public FactoryInterface(string com_port)
        {
            SerialSession ss;

            _mbSession = new SerialSession("COM14");
            ss = (SerialSession)_mbSession;

            ss.BaudRate = 57600;
            ss.DataBits = 8;
            ss.StopBits = StopBitType.One;
            ss.Parity = Parity.None;
            ss.Timeout = 1000;
            ss.TerminationCharacter = 0x0d;
        }
}

I then create an object of Factory interface and call the following function, SendCommand with the parameters "get netconfig\r" and false:

 

 

public void SendCommand(string cmd, bool getError)
{ _mbSession.Write(cmd + "\r"); }

Which returns the following exception:

Unknown system error (miscellaneous error).  VISA error code -1073807360 (0xBFFF0000), ErrorSystemError

In order to test the device I open VISA Test Panel. I configure the device with the same parameters as above and send the same string. The write completes without error.

 

When I capture both communications using NI I/O Trace, I see the following descriptions for the successful and unsuccessful communications, respectively:

2.  viWrite (ASRL14::INSTR (0x00C7DA10), "get netconfig.", 14 (0xE), 14 (0xE))
Process ID: 0x00005530         Thread ID: 0x000052C0
Start Time: 10:11:58.1070      Call Duration 00:00:00.0002
Status: 0 (VI_SUCCESS)
> 27.  viWrite (ASRL14::INSTR (0x00000001), "get netconfig.", 14 (0xE), 0 (0x0))> Process ID: 0x00005404         Thread ID: 0x0000569C> Start Time: 10:12:32.8867      Call Duration 00:00:00.0000> Status: 0xBFFF0000 (VI_ERROR_SYSTEM_ERROR)

 

Any insight or lines of investigation would be greatly appreciated.

Thank you for your time.

 

 


RS-232 Inconsistent Reading

$
0
0

Hi,

 

I have a scale connected to RS-232 to record the weight change respect to time. Unfortunately, I am getting inconsistent string output which does not conform with the format string I assigned. I set the format string based on typical reading as below:

 

Typical String:

"ST,GROSS       100 g "

 

Output String when Error Occurs:

"GROSS      100 g "

"SS     100 g "

"g "

 

For typical string, output byte size is always 22. I am thinking something is wrong with my VISA property. If you have any suggestions, please let me know.

 

FYI, if you are counting to see typical string has 22 byte size, it might not. I put arbitrary number of spaces just for this post. I am also running this with 2 different scales at the same time in the same VI. Both having 2 separate VISA open/read/write/close. (Think of it as a duplicate except for sharing a same while loop.) 

 

Please leave a comment or question. I would appreciate your feedback.

SDI-12 to cRIO-9040

$
0
0

Hi there,

 

I'm looking to log data from a weatherstation with a cRIO-9040. An NI tutorial recommends using a RS-232 to SDI-12 converter (http://www.ni.com/tutorial/7706/en/). However they seem difficult to get hold of in the UK. 

 

A USB to SDI-12 converter is easier to source, is this still supported by the LabVIEW SDI-12 API? If not can anyone recommend viable alternatives? 

 

Kind regards.

 

Oliver

Ivi*_init() returns -1074135023 (BFFA0011)

$
0
0

Dear all,

 

I am new to instrument control and new to this forum. Please apologize if my question sounds stupid, but I have already spent several hours searching for a solution of my problem.

 

I have some old instruments with GPIB and two new ones USB/LAN interfaces that I woule like to control by a C program using the IVI-C class drivers. I have installed the drivers and set up the instruments in NI MAX. As far as I can tell up to now, for the GPIB connected devices everything works well.

However, when I call the IviFgen_init() and IviSpecAn_init() functions for my Siglent SDG2082X and SSA3021X that are connected either to the LAN or a USB port of my PC, they I get the return code -1074135023 (BFFA0011). According to the documentation this means "function or method not supported". Now I wonder to which function this refers. As far as I know, these init functions are always supported.

 

I suppose that the error is in front of the keyboard :-) Does anybody have an idea what goes wrong and where I have to look?

 

Thank you very much for your help!

 

Kind regards,

 

Ralf

Connection to Sciencetech Arc Lamp XLH Lamp Housing

$
0
0

I am working with code that someone else built (and I unfortunately cannot share) that interfaces with a Xenon Lamp. The interfacing works fine until the command for the lamp to turn on is issued, at which point the lamp will no longer respond to any VISA commands, even if the connection is ended and reestablished or the buffer is read out.  I was just wondering if there is a precedent for this kind of issue in VISA/if this is a just a common issue or beginner mistake. I know it is hard to help without the code which is why all I'm asking about is whether this is something you've seen before and in what situation it was seen.

 

Thanks!

RS232 to ethernet TCPIP adapter

$
0
0

I have a lab with a number of Thor Labs shutter controllers. These controllers have remote control capability with RS232. I plan to write a simple Labview VI to operate the shutter controller from a remote PC. Do do this, I need/want an RS232 to TCPIP adapter. I have tried looking at the current NI products and don't see exactly what I want. Ideally, I don't really want a plugin module for a chassis like PXI. I would prefer a standalone module that would adapt the controller RS232 port to our network. I see a lot of such product if i do a Google search. I could use some recommendations for a high quality product. Open to an NI product if they have one. I saw some posts about a product known as ENET-232-2 but it does not seem to be a current product.

NI VISA USBTMC Control Out Data Corruption

$
0
0

I am having trouble performing USBTMC control out transfers using the NI VISA driver.

 

In terms of background, I'm presently working on USBTMC device firmware, and was hoping to use custom USB control out transactions to help with debugging. I use Windows 10, 64-bit, with NI VISA 19.0. This issue isn't critical for me to solve, but it is a bit perplexing.

 

I have tried sending data both with IVI VISA .Net, pyvisa, and the NI VISA Test Panel. In .Net, I use 

inst.ControlOut(0x21,0xCC,0x00,0x00,new byte[] {0x12,15,18,12,23,85});

 

I traced the USB activity via WireShare with USBPcap, and it shows the data was 00 00 09 00 AC 00.

image.png

Similar corruption is seen when using the NI Test Panel and pyvisa. The data received on the device is the data shown in WireShark. It's as if the wrong buffer is being used in the VISA USB library.

 

On the other hand, control IN transactions are working as expected. I wonder if control out transactions have not been tested since they are not used in the USBTMC spec.

 

Thanks!

The session name or logical name could not be resolved to a session or driver session.

$
0
0

Trying to connect my Tektronix TDS2014C scope to my windows 10 pro 64 bit pc and I get this error. I selected and installed the driver for the tds2014c and it says tktds1k2k, but should I have downloaded a different driver? Also I am coming in through a usb port, but it gives two options USB0::0X0699 or tktds1k2k? It gives me this error when I hit run

 

ivi_IviScope Configure Channel.vi<ERR>
Primary Error: (Hex 0xBFFA0010) Invalid value for parameter or property.
Secondary Error: (Hex 0xBFFC0003) Parameter 3 out of range, or error occurred while setting Parameter 3.
Elaboration: Range


<b>Complete call chain:</b>
ivi_IviScope Configure Channel.vi
ivi_subScopeSetExecParams.vi
ivi_InstrSCOPEBlockState.vi:5360001

 

What do I have to do?


Sincronize 3 Visa reads

$
0
0

Hi,

 

I am working on a project that has 3 places of measurement of pressure and flow.

2 of those device are connected by bluetooth and it serial code is COM 4 and COM 6.

The other one is a USB device thats change it serial code by the usb port that I plug it.

 

For the read, I used a Visa Read for each one but when I put the devices on serie, I can see that there is a big delay between them.

Another problem that I am having is a timeout error in Visa Read that crash the program. It read everything but, in a random time, it crashes and a error appears.

 

Info of the code

- The bluetooth devices has a Terminal Char \r\n and the usb device has a Terminal Char \r\00. I can't change this Terminal Char, but Labview read the exact buffer. I confirm this using Tera Term.

 

- It's a new project, so I am trying to deal with this bug first and then I will see how can I put time stamp on Waveform Chart, put all the waves below each other and export the data on a sheet or another file to work with on Matlab.

 

Thanks for the help.

 

PS: I attach a video of the problem to help to see the delay between them. On top are the flow signals and below the pressure signal. The first device of the video is COM 6, second USB (COM 3) and last one is COM 4. By the video, you can see that the flow signal has to appear first on COM 6, than COM 3 and the last on COM 4 but this is not whats happening.

Keithley 2400 is not identified on device manager/NI MAX

$
0
0

Hi.

 

I have connected the Keithley 2400 to my PC using a RS232-USB adapter, and my PC cannot identify the device.

On the device manager, it is not listed under COM, but instead it is listed as "USB-Serial Controller" as on the screenshot file below. NI MAX does not identify the device either. 

 

Can anybody help me on this issue?

Query Interrupted error on 4287

$
0
0

I am trying to *TRG a table of frequencies on a 4287 analyzer and no matter what I do if I am stepping through the code, or running it.  Any command I send to the analyzer after the *TRG results in a "query interrupted" error on the display, including an *OPC? or a ReadStatusByte.  When stepping through the code I wait until the analyzer if very obviously done with the command and I still get the error.

Device myDAQ not available for NI VISA (Interactive Control) but it shows up in NI MAX

$
0
0

Hi There. I try to use a myDAQ device on a WIndows 10 64 Bit device with Ni VISA 19.0 and Ni DAQmx 19.5 installed. (also tested with various other (older) versions). The device is connected via USB and it shows up as "myDAQ1" in Ni MAX. However, without the typical specification of a "VISA Resource Name". (see attached screenshot1.png).

Starting NI-VISA Interactive control, no device shows up and a error shows up: "VISA: (Hex 0xBFFF0011" insufficient location information or the device or resource is not present in the system". (see screenshot2.png). What could be the main problem here? Normally this should work plug&play right away. Like I pointed out: the test panels and "self-test", available in NI MAX, work out fine.

My aim would be to communicate with the device via pyvisa in the end. But in lack of the device showing up in VISA interactive Control, I end up getting a empty tuple returned by calling on the resource manager "list_resources()".

Error 1073807339

$
0
0

I'm working on connecting and controlling B2981A keysight
picoammeter through LABVIEW.
I have downloaded the LABVIEW from the NI site and it is an evaluation version
for 7 days. Thereafter, I installed the related instrument drivers for the
mentioned instrument. 
Now after I'm running the instrument driver by entering the VISA resource name
in the left upper corner of the control pallet window of LABVIEW, it is showing
an error message. 
I'm attaching the screenshot of instrument driver running (LABVIEW) windows
along with error message which is appearing there and also the NIMAX window
which is identifying the VISA resource name.

Enviar Array constante al Serial puerto

$
0
0

Hola muy buenas a todos,

Necesitaria la ayuda de alguien en un problemilla que tengo. Les cuento:

Tengo un array constante (A) de, en este ejemplo, de 6 elementos que quiero enviar al puerto VISA serial. Esto funciona: el problema es que no se porque no recibe el array de salida (C) y Model geräte (C) completamente los datos....a veces recibe la respuesta de dos elementos, a veces de tres...etc... envia los 6 comandos pero no se muestran todos en el array de salida. La array constante (A), esta compuesta de comandos (Hex) que se envia al aparato y el recibe con al expresion !xxxx.

Puede alguien solamente guiarme en que estoy haciendo mal?Necesitaria la respuesta hoy si alguien es tan amable.

Muchas gracias por anticipadoArray constant to VISA serial.pngFront panel_array constant to Serial.png

Array constant to VISA serial.png

 

Controlling Eurotherm 2404 and keysight B2981A simultaneously through LABVIEW on single VI

$
0
0

I want to control Eurotherm 2404 and keysight B2981A  simultaneously through LABVIEW via single VI.

Instrument drivers of both instruments have been installed. Both instrument would be operated simultaneously and the data acquired from them are related to each other. Therefore, I have to control these instruments via single VI and the measured data would be on single control pallet window of LABVIEW.       


GPIB analyzer Interface not found error

$
0
0

Hi, 

I want to use Labview with SR830 with GPIB(National istrument). Software installed but when i started the GPIB Analyzer it gave the error of Interface was not found. Please note: GPIB-USB-HS is in active state.   

Regards:
Wajahat

Serial communication (RS232) blocked after 25 hours fonctionning

$
0
0

Hi everyone, 

 

i just finished my first testbench to burn 5 custom products simultany. i have to communicate with UUT every 2 min that my bench exchange 5 data frames ( Write 5 data & read 5 Data). 

after 25h11min of functioning, the testbench doesn't send any frame aymore. i remarked that the duration depends to number of UUT ( for example if test 4 UUT i have 41h52min and if i test 3 UUT i have 42h06min) i concluded that the maximum number of commands that the PC can send is 19226 commands. And now i don't know why is limited to this number of commands ? 

i notice that there is no execution error received, it just blocked! 

I use à LabView VI to communication with UUTs ! 

 

3 UUT ==> 42h06 // 1281 Lines/ UUT

4 UUT ==> 31h52 // 961 lines / UUT

5 UUT ==> 25.11 // 769 lines / UUT 

  •  3845 lines are the total capacity of the PC that it can send 
  • the total number of command is 
  • 3845 * 5 + 1 = 19226

Any help or track that can oriente my investigations 

 

AT-GPIB Driver

$
0
0

Hello Everyone,

I have a legacy AT-GPIB (ISA) card that is working under DOS (see pic). I need to install this to run under windows (Me/9x, NT, 2000 or XP).

I Don't have the drivers for this card (i.e. 488.2 version 2, etc..)

Where/how can I obtain the drivers?

 

Thank You for your support.

ISA Card.jpg

Write and Read takes long time BLE bluetooth bled112

$
0
0

Hi,

 

I have downloaded the BLE driver made by community member.

https://forums.ni.com/t5/Community-Documents/LabVIEW-BLE-Bluetooth-Low-Energy-toolkit/ta-p/3538612

 

 

I have written a program to Init,connect,write,read, disconnect in an FGV. I am ok with connect and disconnect taking time.whereas I want read and write to be faster

 

But writing an array of 10 bytes and Read operation takes a minimum of 150ms to 200 ms individually(too much for my app). I have replaced the FGV with the write and read directly as shown but still the same. Is there a way to reduce it?

 

 

image.pngimage.png

Control R&S FSC 6 with visa and Python script

$
0
0

Hi All,

I have an R&S FSC 6 connected via USB but I cannot view the instrument resource with VisaConfigure nor connect using RsVisaTester. I can do this no problem with FPC1500 and FPC1000.

Is FSC 6 capable> I'm sure it is.

Cheers for any assistance!

Viewing all 5664 articles
Browse latest View live


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