Quantcast
Viewing all 5688 articles
Browse latest View live

How to use instrument's status byte register to control the instrument using a PC?

Hi all, I'm new to programming a VI to control my instrument through a PC. I would like to ask how the instrument's status byte register could be interpreted, and hence make use of it in my VI. The following attachment is the status byte diagram provided by the instrument's manufacturer. I'm not quite sure how I can make use of this diagram to detect errors read by DSE? (such as the invalid settings read by INV? and the fail judgement read by FAIL?)

 

Would really appreciate if anyone can give me a detailed explanation on this topic, or if possible, provide me with an example on how this diagram can be used in a VI. 


Keysight B2901B instrument drivers error

Just in case anyone has this problem:

 

There is a bug in the latest Keysight B2900 drivers. Specifically (but not necessarily limited to as I haven't been through all the code) the 'Configure Source.vi'

 

The ':RANG' command following after the ';AUTO:LLIM' command is out of sequence and results in an error 113 "Undefined header" being thrown due to bad syntax.

 

This ':RANG' command should actually follow the output level trigger command (as it was in the previous versions of the driver). 

USBTMC bandwidth for data acquisition

Hello,

 

I'm building an industrial controller. One of the task of this controller will be data acquisition.

Specification are:

 - data exchange channel "must" be USB

 - must be able to exchange at least 10Mbps (In 50% +Out 50%), may became 50Mbps if controller is expanded

 - data acquisition is bi-directional, I mean the controller RECEIVE a stream of data, and SEND another stream of data, the two are NOT strictly related

 - Delay on the data exchange line is not that much appreciated, better not to have latency

 - Must implement a control line

 - Data rate is 10kHz, may became 50kHz

 

I'm wondering if the USBTMC would be a good option, it has Bulk/IN-OUT, but as far as I know Isosync mode would be the best for my requirement, this is the reason why I'm currently working on the Audio Class USB.

Also I'ven't found the max real/benchmarked, not theorical, bandwidth of a USBTMC line. 

 

Any help appreciated! Thank you!

*RST Command on a E5071C

Hi,

 

Does anyone know if the *RST command affects the calibration of a E5071C?  I cannot find the answer anywhere.

 

Thanks in advance.

Bus error occurred during transfer. @sample code "SimpleReadWrite"

Dear All,

 

I using "NI GPIB-USB-HS" and "VisualStudio2019 C#" control instrument(IDRC).

 

Last week,

I used "NI-VISA IC" and sample code"SimpleReadWrite" (provided by NI)

to test all equipment, everything works very well.

 

 

But today,

I made some small changes on sample code.

I only added new "WindowsForm(Name: Output)"

And I wrote open method in "clear_Click button"(only added Green Cube)

(I didn't change other "MainForm"&"SelectResources" code)

Image may be NSFW.
Clik here to view.
ChuChuNice_1-1637248838474.png

Image may be NSFW.
Clik here to view.
未命名.png

 

 

 

 

 

 

 

After I press the "write button" at MainForm,

program will show error message "Bus error occurred during transfer"

 

Please tell me what happened and how to solve.

Sorry for my bad English and bad programing ability.

 

**NI-VISA VI still work well now.

 

The following is my code:

 

using NationalInstruments.Visa;
using System;
using System.IO;
using System.Windows.Forms;

namespace NationalInstruments.Examples.SimpleReadWrite
{
public partial class Output : Form
{
private MessageBasedSession mbSession;
private string lastResourceString = null;
private bool SamplingBool = false;

private void SamplingProgess()
{
WriteAndRead1();
}


public Output()
{
InitializeComponent();
}

private void Output_Load(object sender, EventArgs e)
{

}
private string WriteAndRead()
{

try
{
string WRtmp = ReplaceCommonEscapeSequences(Command1.Text);
mbSession.RawIO.Write(WRtmp);
return InsertCommonEscapeSequences(mbSession.RawIO.ReadString());
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
finally
{
Cursor.Current = Cursors.Default;
}
return "XXX";
}
private void WriteAndRead1()
{
try
{
string WRtmp = ReplaceCommonEscapeSequences(Command1.Text);
mbSession.RawIO.Write(WRtmp);
ReturnValue1.Text = InsertCommonEscapeSequences(mbSession.RawIO.ReadString());
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
finally
{
Cursor.Current = Cursors.Default;
}
}


private string InsertCommonEscapeSequences(string s)
{
return s.Replace("\n", "\\n").Replace("\r", "\\r");
}

private string ReplaceCommonEscapeSequences(string s)
{
return s.Replace("\\n", "\n").Replace("\\r", "\r");
}

private void WRbutton_Click(object sender, EventArgs e)
{
ReturnValue1.Text = String.Empty;
WriteAndRead1();
}

private void Link_Click(object sender, EventArgs e)
{


using (SelectResource sr = new SelectResource())
{
if (lastResourceString != null)
{
sr.ResourceName = lastResourceString;
}
DialogResult result = sr.ShowDialog(this);
if (result == DialogResult.OK)
{
lastResourceString = sr.ResourceName;
Cursor.Current = Cursors.WaitCursor;
using (var rmSession = new ResourceManager())
{
try
{
mbSession = (MessageBasedSession)rmSession.Open(sr.ResourceName);
}
catch (InvalidCastException)
{
MessageBox.Show("Resource selected must be a message-based session");
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
finally
{
Cursor.Current = Cursors.Default;
}
}
}
}

 

}

private void ReturnValue1_TextChanged(object sender, EventArgs e)
{

}

private void SamplingButton_Click(object sender, EventArgs e)
{
SamplingBool = true;
while (SamplingBool == true)
{
String file_name = @"C:\Users\USER\Downloads\" + filename.Text;
StreamWriter str_writ = new StreamWriter(file_name, true);

str_writ.WriteLine(WriteAndRead());
str_writ.Close();

Application.DoEvents();
}
}

private void SamplingStop_Click(object sender, EventArgs e)
{
SamplingBool = false;
}
}
}

NI-MAX shows wrong model for one instrument

We normally clone some machine with all our software installed to get a new one, change its name, etc. For some reason MAX seems to remember some of its old configuration and refuses to acknowledge that an instrument at a certain GPIB address is no longer the instrument there.

 

It shows the old Vendor, Model, Serial Number and Firmware Version.  Opening the Communicate with Instrument or VISA Test Panel, and sending *IDN? to the instrument there, returns the new values. If I start IO Trace, select the GPIB bus in MAX and do a scan for instruments, I can see the correct value being returned, but MAX doesn't update the corresponding entry.

 

This is Windows 10, MAX 20.5.  I've Reset the Configuration Data several times, sometimes from a MAX running as me, sometimes running as Administrator, with the corresponding reboots.  I've manually stopped all NI services and wiped out the DATA directory under c:\ProgramData\National Instruments\MAX, followed by reboot.   The old data always returns.

 

We can talk to the instrument at that address just fine, it is just MAX that keeps showing the wrong instrument!

 

 

PC minimum specs

I have a simple program that communicates to a USB device using sdk wrapper, and I will create an executable so that it can continuously run on its own. Since it is a simple program, and not memory hungry, will it be okay if my deployment machine is Intel Atom x5-Z8350 quad core, 2Gig Ram, 32Gig Storage or do I have to increase the RAM? The pc is running Windows 10 and my LabVIEW version is 2019.

Can NI9265 Current Source supply negative current?

Hi, maybe a dumb question, but I need a current supply that can generate bipolar current for generating signals. I've been using an NI9263 voltage source so far and had no trouble with this, but need greater current capacity. The datasheet for NI9265 says current output is 0 to 20 mA. I'd like to know if this is positive current only, or the +/- was just omitted and it is bipolar. Thanks!


Instrument I/O Assistant isn't in palette

Hello, I installed Instrument I/O Assistant but when I go to palette to use it doesn't in palette. I searched in all computer but I can't find it, although it appers installed in NI package manager. I'm using the last version of LabVIEW.

 

I read constantly about the device driver CD. I don't understand this, I didn't find in NI package manager, is the Instrument I/O Assistant be installed from CD or only works using CD?

 

When I read CD I think in a CD, like a DVD. 

Agilent Plug-In 's aktualisiert. Muß neue .exe erstellt werden?

 

Hallo Community,
ich habe Labview 2020 SP1 auf Win10 installiert.
Die Plug-In's von FunGen Agilent 33521A und DMM 33410A
und die der Oszi 's LeCroy wavejet 312a (100 MHz) + waverunner 44xi (400 MHz)
eingetragen und den VICP Passport für die Oszi's installiert.

Dann habe ich von den MainVIs verschiedener LV-Projekte die Exe-Dateie erstellt.

Nachdem ich festgestellt habe, daß auch noch die
FunGen Agilent 33500B und 33220A verwendet werden sollen,
stellt sich mir die Frage, ob ich nach Einfügen dieser Plug-In's in meine LV-Entwicklungsumgebung
die Exe-Dateien neu erstellen muß.

Das Plug-In von Agilent 33500B habe ich nicht gefunden.
Das Gerät steht auch nicht auf der Kompatibilitätsliste der Plug-IN 's
von 33521A, oder dem aktuellsten 3352X (von 2020).

Wenn ich das 33500B über USB, oder LAN anschließe,
wird es als 33521A erkannt. Bräuchte es dann kein
eigenes Plug-IN? Worin liegt eigentlich der Unterschied
zwischen diesen beiden Modellen.

Ich würde mich über Lösungsvorschläge freuen.

Grüße
kwz20

Need a Part No for a QuickSyn Accessory

I would like to purchase QTY 2 RS232-to-SPI cables for the QuickSyn FSW-020 Synthesizers.

The Part No in the documentation is MFSW-ACC07, but I can't find it on the website.

training in labview

Dear Team,

I want to get labview training from online.

I have to control many instruments like Keithley, dc controller, stage, spectrometer, Arduino board, etc-to control all these instruments, what course should I take from the training list given by national instruments

Moreover, what is the procedure to complete the whole training package?

 

Thanks in advance

Priya

USRP 2943 RIO hardware installation

Hello everyone,

I need some help with my two USRP 2943r, I want to use both of them with one PC host, without using additionnal device. It was easy with USRP2921 which has the MIMO EXPANSION port.

Thank you in advance.

SR830 connection with GPIB

Hello, 

 

I want to connect sr830 via GPIB using USB adpter for that. Can you advise me what I need to make this scheme work properly? Any drivers except one for sr830 connection via GPIB? Does it matter which adapter I use (as I am concerned NI has its own one)?

 

Thanks in advance! 

How to test my PCI express card in PXI Express chassis

I am trying to test my PCI Express card in a PXI hybrid chassis. The card is not getting detected. What could be the problem? I have level shifted the lvpecl 100Mhz clock to HCSL levels required for PCI express. 

 

What are other differences between PCIe and PXIe signals?

 

 


How to eliminate output limit of agilent 4156c?

 Hello,

 

I use agilent 4156c to measure inverter voltage transfer characteristic.

The input(Vin, Vdd, Vss) was measured by SMU mode and output voltage was measured by VMU mode.

However when the output voltage exceeds 23.5V it didn't show the result over 23.5V.

I'm in trouble with this output limit. How can I solve this limit? 

Any help and reply would be really appreciated.

 

Thank you.  

Unable to find module dependency 'MStudioCommon.2012.1C9B2EB5_9E34_4944_BA92_B30CCA4E9205'

I have been trying to create an executable for a C# program. When I build the setup file it gives me the following error: WARNING: Unable to find module dependency with signature 'MStudioCommon.2012.1C9B2EB5_9E34_4944_BA92_B30CCA4E9205'. I have looked for the module in the C:\Program Files (x86)\Common Files\Merge Modules, but am still unable to find it. I am unsure what to do next and was wondering if I could receive some assistance.

Using FindRsrc to find devices only on local computer.

I have a one device which is directly connected to PC (Virtual Com Port), and some devices which are connected remotely. How can I use FindRsrc to find only this device which connected directly to my PC? The problem is that I have a lot of instruments and FindRsrc works for a long period of time. 

NI MAXでGPIB,LAN接続の測定器が認識されない

Excel VBAを使用して、GPIBおよびLANで接続した測定器を制御していましたが、急にプログラムが動作しなくなりました。(測定器の "Set" 命令でExcelが強制終了されてしまう)

NI MAX上では、COMポートは見えていますが、GPIBおよびLANポートを認識していません。

NI-VISAのUPDATEもしてみましたが、解決しませんでした。

Secondaryとして入れているKeysightのコネクトツールでは、測定器は全て認識しており、通信もできる状態なので、ハードウェアの問題では無いと思います。

 

変化点としては、WindowsのUPDATEが関係しているのではないかと考えています。

OS: Windows 10 Pro 最新更新プログラム KB5007186

Excel: Microsoft 365 バージョン2109  ビルド 16.0.14430.20154

 

解決方法のご教示お願いします。

connecting euro therm 6000 series recorder in labview

 

Hi,

I want to connect  euro therm 6000 series recorder in labview ,using RJ45 i have connected the recorder to the system .Please guide further how to connect it to Labview

Viewing all 5688 articles
Browse latest View live


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