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

rigol ds1102e crashes after data read

$
0
0

Hello everyone,

 

I have a Rigol DS1102e scope 2CH scope. I am able to configure it using labview without any issues. I can even grab the captured data and import it to labview.

 

The problem is, after I do a capture, if I do anything ELSE that changes the scope configuration (like say update vertical V range), the scope goes crazy and stops working responding (the screen shows just random colors all over it).

 

The only way to get it back to working condition is to turn the scope off AND exit labview altogether. If I just restart the scope labview will throw a VISA error when attempting to recommunicate.

 

Here is my current code. Hope anyone has any input.

 


Release Queue

$
0
0

Hello!

Make a program that acquires temperature data from an interface BLACK STACK FLUKE via RS-232 connection.
The program basically seeks temperature stability and then if you meet certain conditions applicable to the acquisition of data that will be processed mathematically and the saved result in a specific location excel. Finalizing this, the program results in a pop-up message requesting a user action that causes the entire program pause, to run the above process numevamente for another temperature range, the problem is that while the program is on hold, with the pop-up message waiting to be activated OK, the data from the interface remain in the buffer, to accumulate, and when after a time is given OK to pop to continue running the program all these data are read by the program and fail in the stability calculations for the first part. If someone could help me with this or any idea how to prevent data buffer is read, Thank You
regards

Data loss using DAQ USB-6361

$
0
0

Hello, I would like to measure an analogue input signal with a sample rate of 150 kHz (sample to read = 15k) with a DAQ USB-6361. Therefore, I use the attached LabView programm which basically only contains the DAQ-assistent- and the Write-to-measurement-file-block.

Now, my problem is that my output file shows a big data loss, i.e., data packages of about 100 ms length are followed by data pauses of about 50 ms duration. I only get a continuous digital output signal if I reduce the sample rate to a few hundred Hz (which is way too small for my application).

So my question is: How can I get a continuous data output with a sample rate of 150 kHz? Is it possible to change buffer settings with the help of the LabView DAQ-assistant tool? Or is there maybe something wrong with my LabView program?

Temptronic TP04300 heat only mode

$
0
0

Hi all,

 

I was wondering if anyone knows, if it is possible to select heat only mode via GPIB? I have test that will run for 3 weeks. At some point I will need cold temperature, say during 2 week for a day. I don't need compressor working for all 3 weeks, only for that one specific day - but I don't know when exactly and what time during the day/night. I thought it would be great for me (my ears) to be able control the heat mode via GPIB, so when I need it, my code would tell the temptronic turn on the compressor, wait that minute and carry on with test.

 

Any suggestions? Changing heat only mode manualy is off the table in my case.

 

Regards,

Patryk

Bug in viPrintf

$
0
0

I think I may have found a bug in viPrintf (NI-VISA 15.5.0, Windows 7) which exhibits when using the "%s" format specifier and a very large string argument.

 

I wrote a program to reproduce the bug which sends "*CLS;*ESE 1;*SRE 32\n" to an instrument to configure it to generate a service request when operations complete, followed in a separate transaction by the "*OPC" command.  Since no overlapped commands are in progress, the instrument should immediately generate a service request (and it does).

 

Then I started prepending space characters before the "*OPC" command to see what happens.  With NI IO Trace running, I see very strange behavior when the length of the command crosses the 510/511-byte boundary.  If I viPrintf a 510 byte command, the VISA library does a formatted viWrite with a 510 byte payload, as expected.  If I viPrintf a 511 byte command, the VISA library does a formatted viWrite with a 1021 byte payload, and I have no idea where those other 510 bytes came from.  I have verified that the string argument passed to viPrintf is properly nul-terminated.

 

I am attaching the source code I used to reproduce the bug.  It compiles into a Windows console application, which takes one (optional) command line argument: an integer specifying the length of the whitespace-padded "*OPC" command.  I am also attaching to NI IO Trace captures, the first from running the program with the argument 510, the second with 511.  In the former, the formatted viWrite correctly writes 510 bytes to the instrument, in the latter it writes 1021.

 

I am using a USBTMC instrument for which I am developing the firmware, and have verified that the device dependent bulk-out transfers match the sizes reported by NI IO Trace.

 

Thanks.

 

Configuration not entering While Loop

$
0
0

Greetings,

 

I am having and issue with my VISA Serial port not passing its information to my transmit loop but it will pass it to my receieve loop.  I have written an VI that is suppose to communicate with 5 radios(4 serial and 1 TCP)  So when this program is running I will be communicating on 5 different channels.  I know that these transmit and receive loops work because I use the same ones to communicate with each individual radio.  The first thing that I want these modules to do is indicate if they have made connection with each radio.  When I run the VI in the highlight execution mode I can see that my VISA configuartion never propgrates inside my transmit while loop.  They do however transmit into my receive loop.  Does anyone know why I can't seem to initialize my send loop?  

 

status.png

RS232 to USB won't connect to instrument

$
0
0

I need to communicate with a BK instrument Model 1823A which has a RS232 port. I’m using a RS232-to-USB converter based on the latest Prolific chip set. When using the software that comes with the 1823A it works fine for reading and writing data. But when I use VBA code to do this via NI Visa, I cannot read or write data. I have tried two different NI Visa drivers for the 1823A but no luck.

 

When using NI Max to debug, it sees the RS232-to-USB converter but not the instrument. NI Max acts like things are fine, except that reads commands fail. Write commands appear to work in NI Max but the 1823A does not respond so I believe that the 1823A never really receives write commands.

 

I use the same model RS232-to-USB converter for another instrument and it works fine with NI Visa when using VBA code. The only difference I can see is that 1823A doesn’t support IDN to identify itself. My questions are:

 

  • If the 1823A cannot identify itself when queried, how will NI Visa know what instrument it is dealing with so that NI Visa can make communication work?
  • Is there any way in NI Visa to force an association between the 1823A NI Visa driver and the port assignment so that NI Visa will know what instrument it is dealing with?

NI USB-232/4 returning different serial numbers for the serial ports

$
0
0

Hi!

 

We have an NI USB-232/4 hub that returns different serial numbers for the rs232 ports, see below.

 

NI USB-232/4 SN:41433A44
NI USB-232/4 SN:41433A44
NI USB-232/4 SN:14D5788
NI USB-232/4 SN:14D5788

 

Normally they have the same serial number so i wonder if it could be some hardware or internal software failure causing this?

 

We are using NI-Serial 4.1 and Measurement Studio 3013 on Windows 7 Ultimate.

 

Best Regards

/Thomas


driver conversion from older version

$
0
0

Hey, I need to use an instrument driver (created in LV version 5) and I'm using LV version 2014.  Can someone convert this to something I can use?

How do I control and tune a Omega Platinum temperature controller with labview?

$
0
0

I'm a novice to labview, 1st time using it, please bear with me.

 

Bascially, I run into problems of tuing a temperature controller to provide expected control on the temperature, which should be around plus/minus 1 C, maximum of around plus/minus 2C, and right now is around plus/minus 20 C.

 

Current situation and problems:

1. Omega Platinum temperature controller with a SPDT mechanical relay connected to a heating mantle to provide the output, and omega J type thermal couple to probe the temperature. The temp controller is currently running under PID control.

 

2. There is around plus/minus 20C oscillation around the setting point, even after auto-tuning and manually tuning the PID parameters. Please see attached image. And the ebb of oscillation around the setting point may be related to the Fuzzy Logic adaptive tuing of the temp controller, not sure about it. CN8DPt_305.png

 

3. And this temp controller comes with a mini-usb port, I was able to connect and control the temp controller with laptop through a mini-usb and usb line, through the configurator software provided by Omega.

 

Preliminary ideas and possible solutions that need your professional inputs:

 

1. I doubt that the auto-tuing algorithm in the firmware of Omega platinum temp controller is capable of finding the sweet spot of PID values, since multiple trial-and-error on tuning PID generated more confusions and frustrations. So I'm thinking about using the PID Autotuning (Temperature) of labview to optimize the PID parameters. Please correct me if I'm wrong over here.

 

2. Currently, I'm trying to use "Platinum_MB_Example Serial Master.vi" provided by Omega to connect labview to this temp controller (Attached). Even though the configurator software provided by omega could communicate with the temp controller through USB, I had no luck to connect the labview to the temp controller. Should I install specific driver or put the port number to make the communication open? I knew the port number of USB, but I'm not sure how to connect or if that's possible to connect the labview to this temp conroller through USB.

 

3. In case I was able to control this temp controller with labview, how could I add the PID Autotuning (Temperature) function to the original VI provided by omega? 

 

Link to this temp controller is as following:

http://www.omega.com/pptst/CNPT_SERIES.html

 

Your time and help on this are gratefully appreciated.

 

 

N6700B ethernet not working

$
0
0

So I have a N6700B chassis.  Originally I had NIVISA 5.4 and ICP 4.6 installed.  I could communicate with this device with either the ethernet or USB interface no problem.  I upgraded to NIVISA 15 and ICP 15.  Now the USB works fine, but I get an error when I try to use the ethernet.  My preference is ethernet as I have a huge ethernet switch and limited USB ports.  Oddly the failure seems consistant on two seperate systems and it always fails initialization of the fourth device in the chassis.

 

To prove it was the upgrade, I rolled the NIVISA and ICP back and it works again.  I am using the latest driver for the N6700B chassis from keysight.

How is a new device added in GPIB explorer for Linux?

Is there anything more complicated than this for using a USB-RS232 cable to communicate with a piece of equipment?

$
0
0

Hi, we have a piece of equipment that is controlled by RS232. Unfortunately, my PC only has USB ports. If I use a USB-RS232 convertor like this one, will it essentially just be plug-and-play? Or, do I need something more 'active' (meaning, has some sort of chip in the convertor) ?

 

thank you!

NI VISA Interactive Tool Disappering of the VISA based Instruments

$
0
0

Hi ,

 

We are using the PXIe 8880 Controller with Pherlaps Real time OS Installed.

2 GPIB based Instruments are connected in series and been connected to the PXI controller.

 

PXI controller is been conneted the Host PC VIA the onboard ethernetport

 

In the Host PC we are able to perform the communication with the instruments from VISA Interactive tool.

 

But when connect USB dongle or USB to ethernet port converter to connect the Host PC to Internet.

 

The GPIB instruments and other VISA based devices connected in the PXI controller is disappearing .

 

Please help us to resolve this.

Cannot configure all 4 PSUs of the N6700B mainframe

$
0
0

Hi,

 

I have a problem to initialize all four PSUs in the N6700B mainframe.

The problem is always with initializing the 4th supply. Doesn’t matter which one, if initializing any of the 4 in any order it’s always the 4th initialization which fails.  

N6700B mainframe:

Channel1: N6736B

Channel2: N6734B

Channel3: N6734B

Channel4: N6733B
 

System:

- Win7 SP1 32bit

- IVI Compliance Package 15.0

- agn6700_setup 3.2.1

 

Does anybody has any solution?

 

Thanks!

 

 

 


Exception messages are useless (.NET)

$
0
0

This exception message is useless.

 

Ivi.Driver.OutOfRangeException: ModularInstruments.NIDmm: The specified argument was out of the range of valid values.

All of the information is provided with "Ivi.Driver.OutOfRangeException" exception type.  The message adds nothing else of value.  I can clearly see the specified argument was out of the range of valid values.  I would really like to know which argument was out of range, the value of argument, and the valid values for that argument.

 

These useless messages are not limited to the .NET IVI API.  It's across all .NET libraries, and they are infuriating.  I don't think I can express just how much the rage monster wants out of his cage right now.

 

Either leave the message off entirely, or (even better) provide USEFUL information in the message.  This

Ivi.Driver.OutOfRangeException: ModularInstruments.NIDmm: Parameter "Resolution" of 1234 is out of range.
"Resolution" is expected to be between 1 and 1000.

tells me

   1) What went wrong (Parameter Resolution was out of range)

   2) Why it went wrong (Resolution needs to be in between 1 and 1000)

   3) What to do to fix the problem (Make sure Resolution is between 1 and 1000)

 

 

how to give complete access to LabVIEW of port of laptop

$
0
0

I am doing a project in which I am receiving data bby Xbee at remote end.I have set the baud rate of sending and receiving side,115200. I need to send 3000 bytes every time. With the baud rate mentioned, the data must be received in less than a second. I have used LabVIEW for displaying the data waveforms.Now the problem is I am receiving data in 2 seconds in Xctu.but in LabVIEW if I receive the same data and plot it,the waveforms get disturbed.But if I increase the sending time,say 7 seconds,the waveforms are good.Now the problem is with LabVIEW speed to update the previously received data with new data so that I could plot the waveforms correctly.That's why I e want to give complete access of com port to LabVIEW. Please help me.

GPIB not detecting when connected to internet

$
0
0

Hi,

 

I have keysight power supply connected to PXI-8880 through GPIB, It is not detecting when connected to internet & Its detecting when its not connected. Can any body help me to resolve this issue.

NIDmm .net Version number update?

$
0
0

After updating NI-Dmm to version 15.1, I was expecting the NationalInstruments.ModularInstruments.NIDmm.dll version numbers to get update to 15.1.x as well, but the only dlls found in Program Files (x86) are 1.0.40.152, and the description says ".NET API for NI-DMM 1.0".

 

Is version 1.0.40.152 is the latest .NET NI-Dmm dll?  If not , where does it get installed to?  It's clearly not under Program Files (x86).

GPIB instrument freezes

$
0
0

Hi, 

 

I'm communicating with a older model of motor controller using USB-GPIB cable. For the most part when I communicate through NI MAX, it's okay, occasionally freezing up. However when I communicate with the same code with LabVIEW, it tends to freeze up more often than it doesn't. Is there a rate/speed issue, or communication issue if the unit I'm controlling is older? The USB-GPIB cable is operating correctly, I had it communicating correctly with another unit. 

 

Thanks, 

Andrea 

Viewing all 5674 articles
Browse latest View live


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