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

whats is the encoding technique used on .nitrace file format?

$
0
0

I am working on a data acquisition project where i need to read the .nitrace file created by NI I/O trace directly(not the exported  .txt file format ) using matlab. when i open the .nitrace file with matlab, I find some  encoded language (attached with the picture) which is not very useful without knowing the encryption technique used in .nitrace file format.

Any leads on this topic is appreciated.

 

Thanks,

Ranjith veeran


Help with RS 232 communication

$
0
0

Hello,

 

I am trying to write a program that will get resistance, impedance, and phase angle from a Fluke meter. This is part of updating a system which does this already. I am having trouble communicating over serial with the device though. To verify what the old system was doing I attached a new computer with a serial adapter to the old computer and read the commands sent using termite. I can see the commands coming through just fine although there are two commands "[1B]2" that I do not understand. Below is a screenshot of the captured data coming from the computer. 

 

When I try to send these commands to the Fluke I get no response. Any help would be appreciated.

 

Fluke Capture1.jpg

Need to use multiple drivers (VISA and win-USB) for a single piece of hardware

$
0
0

I am communicating with a piece of equipment via Labview (using an unsigned VISA USB driver) and via commercial software that came with the equipment (using a signed windows USB driver) using the same computer.  The two drivers are not compatible, and switching between them is painful due to the unsigned nature of the VISA driver (also, this task needs to be undertaken by a lightly trained production operator). 

 

Does anyone know of a way to temporarily disable the VISA driver (in a way that is easy to undo)?

 

Thanks,

Dave

Modbus Communication between PC & RT app over RS 232 port on cRIO 9064/66

$
0
0

Problem Summary:

The RT application is running in cRIO already but we need to publish all the measurements in application over MODBUS protocol. I created MODBUS mapping by using Labview DSC module.

In cRIO side, I did everything regarding tutorials and instructions but I cannot read the register 0001 at MODBUS Master at laptop side. I only suspicious about the adapters I used while converting RS 232 port - RS 458 – USB. You can find the schematic of convertings. If you have a feasible converter or adapter suggestion for my application or do you have any another solution please let me know, I will be so appreciated.

 

Hardware:

  • Crio 9066
  • Null Modem, ( not straight) serial cable
  • USB to RS485/422 Converter
  • Regular RS 232-USB converter (My laptop doesnt have RS 232 ports)
  • Laptop

 

Software

  • Labview 17 Professional
  • Labview 17 DSC Module
  • Labview 17 RT Module

Picture1.jpg 

Writing table values to serial port using NI Visa Serial

$
0
0

Hello,

 

I want to write table values (50 Rows X 2 Columns) data entered by user to serial port.

 

How can I write values row wise ? When I connect multi column listbox or table to typecast for string conversion, I am getting nothing at output of typecast. I have attached VI. 

 

Please helps, thanks in advance.

Bridging tools with different interfaces

$
0
0

I have a characterization lab that has about 10-15 different tools, which is a number that is likely to grow with time to about 35-40 tools, all of which will be added to the existing rackmounts. The tools are flexibly connected with a probe station, and other defined setups used for the purpose. Some of these tools are new, and have LXI interfaces, which can in principle be used through a wired router (we are using two of these) to get a unified class C address space (192.169.30.x, x=1-255). These define an internal lab network. However, some are legacy tools like lock-in amplifiers, electrometers, etc. which do not have LXI interfaces. A single non-externally networked Windows machine hosts LabVIEW, which we plan to connect to all the tools.

 

I have a GPIB-USB HS interface that we are using with these legacy tools for simple measurements. Now, I could connect two different buses to our measurement computer - one for GPIB, and another to cascaded routers for the rest, and juggle VISA resources in LabVIEW at run time. However, I would like to avoid that if possible because this involves maintaining two lookup tables, and then I have to worry about the speed of the intervening interface, which can complicate coding.

 

For purposes of orderliness, and ability to do interesting things programmatically, I want to be able to put all my tools on the internal net in a single unified space. Can the GPIB-ENET/1000 interface do what I am thinking? Or is the user-facing interface over there GPIB centric (limiting number of tools to 31, etc.)? I have never used this interface, but want to be sure that this interface would internally map GPIB addresses to fixed IP addresses on the router, making GPIB transparent to the user (can do router configuration to statically tie addresses to each tool, just the way I am already doing), before I invest in it.

Can Keithley 590 CV analyser be used as LCR meter?

$
0
0

Hello,

 

Can someone tell me if the Keithley 590 CV analyser be used as a LCR meter in the sense that a frequency scan can be done?

 

I need to do a frequency scan using the 590 CV analyser but only two static frequencies are available on the meter, which are 100 kHz and 1 MHz.

 

Thank you.

cRIO VISA port forwarding to Windows

$
0
0

Hello everybody,

 

I am using a cRIO 9063 within the default software (no special customization). The NI VISA server is running on the cRIO.

 

When running Labview or NI MAX at the host computer, I have serial VISA access to the cRio-Built in RS232 at visa://xx.xx.xx.xx/ASRL1::INSTR 

RS232 Loop Back Test with NI MAX or Labview workes fine.

 

Now I need this VISA source (visa://xx.xx.xx.xx/ASRL1::INSTR) as comport at my Windows Device Manager, because I have a Windows 3rd party software that is only supporting the Windows RS232 Comport.

 

This there any solution, that a forwarded cRIO VISA source can be made availibe at the Windows Device Manager and so accessable for any other software?

 

Best Regards

Christian


Using Thunderbolt on PXIe-8301 for control by multiple computers

$
0
0

I'm looking for a solution for using a desktop to connected to a PXIe-8301 Thunderbolt controller in a chassis. But then have the ability to to connect a laptop, also using Thunderbolt, and control the chassis via the laptop.

 

Is this possible using the PXIe-8301?

 

Thanks,

Ed

PCI-GPIB IEEE 488.2

$
0
0

I have an XP PC (service pack 2) that has blue screened that was using driver version 2.4 I have replaced this with another XP PC (service pack 3), but I can not locate the driver version 2.4 and the support pages state to contact tech support for the driver? I have tried to use the GPIB-32.dll located in windows\system32 folder from the old computer but it fails so without the install package I can not determine if it is a bad card or driver? I am the User support tech for the site and do not have an account so I am unable to use phone or email support. 

 

Please help,

Kevin

VISA Serial Bytes at Port update rate

$
0
0

Using VISA serial bytes at port on a cFP-2220 device I noticed that the reported number of bytes did not update sufficiently often during a continuous transfer. It updates, but only when a rather large chunk of data has been received (which is more noticeable to us now because of a low baud rate):

Here is an example:
Bytes at Port Update Rate.PNGBytes at port is only updated when a certain chunk size has been received

In this case there is a continuous stream of bytes (well, I am really just assuming that as it is sent as one write operation...) coming in on the port at 1200 baud (so about 2 characters per 20 ms), and as soon as the reported number of bytes exceeds 0, the value is rechecked once every 20 ms and plotted.

I have been expecting the number of bytes to increase quite gradually in such cases (approx. 2 bytes/sample), but it stays stable until a sizable chunk of new data has been transferred. This erroneous assumption has not created any problems earlier simply because we have been using much higher baud ratesSmiley Surprised

Does anyone know if this is always the case (does the chunk size vary depending on the hardware for example, are there any settings that affect it etc.), and if this behavior and the logic behind it is documented anywhere?


SOLUTION: Keysight 82357B with TestStand Automation

$
0
0

I figure something I learned from using the Keysight (Agilent) 82357B GPIB-USB Adapter with NI is worth posting just in case someone can be helped by it. I know the first question will be "why not use NI..." when the answer is we are trying to use the hardware we have and cannot always justify dropping money on new equipment.

The first problem I encountered was fixed with the Use Keysight (HP Agilent) GPIB Devices with NI Software article and well understood. But I still had problems talking to my Keysight 34970A. Frequently the device would error out with a 550 error stating it cannot accept a remote command in local mode. The device would drop out of Remote mode and my VI's would timeout, thus freezing TestStand until they responded. I could write it up to work around that but in the end I still would pile up with errors on the equipment and increased test time, so I tried looking into what might be the core problem.

Turns out, there isn't much online regarding this situation. Long story short, the USB-GPIB adapter isn't maintaining the Remote Mode of the device which may or may not be directly related to using a 3rd party (NI-VISA, NI-MAX) driver. A quick and dirty solution to this was to short the REN line of the GPIB cable to GND so that upon first remote command the mode would be toggled but couldn't go back to local without a key press on the front panel. GPIB Pinout can be found here. 

I know that this still isn't a professional solution but thus far our repeatability of the test is better than a software work-around and avoids overhead of auto-retrying VI's/commands on a test that can take up to 45min already.

 

 

Note: I did try this on both Win XP and Win 7 and also tried IO Libraries 16, 17, 18 as well as NI-MAX latest versions. I couldn't see this problem being specifically 1 configuration as it occurred across multiple revisions of those applications and drivers.

Any thoughts feel free to add.

Thanks!

Reading serial values and convert it to address and data

$
0
0

Hello,

 

I am receiving strings of bytes from a hardware using serial read function. Now I want to rearrange these values i.e. each 4 bytes should be arranged in 10-bit address and 20-bit data. Please find attached screen shot.

Thanks in advance.

cannot communicate with tektronix AFG 2021

$
0
0

Hi All,

I hope this is the correct forum to post this.

 

I have an AFG 2021 that cannot be seen by MAX v18, on Windows 7.  I have 2 other BK precision instruments that I can communicate with.

 

When I do reboot the PC, I do see a Tektronix USB address pop up on the lower right corner of the desktop.

 

I am trying to communicate with the AFG 2021 via USB. No other options (Ethernet, or GPIB) are available on this particular model.

help me to access visa port for my rs-232 module 9870

$
0
0

Hi

i have crio 9045 with ni 9870(serial module).i am using this 9870  module in real time scan mode to access visa port(for programming).i have configured this module in real time scan mode as u can see in screen short.but i am not able to see visa port for these module in max window.then i tried in visa setting there also its not available.so tell me the solution to solve this issue.

i am not using power supply for NI 9870.


VISA ERROR : 0xBFFF00A7 using the instrument device R&S FSH 20

How to confirm that the instrument has been triggered?

$
0
0

I am using the E5052B now, I now need to use the "Average Trigger" to trigger, but it takes too long. I don't know how long I have to wait before I do the next step, so I want to determine if the instrument has been triggered.
I didn't find a way to determine if it was triggered in the manual.
So how do I know that the instrument has been triggered? Via GPIB or VISA.

UART Communication using GUI

$
0
0

Hello,

 

I want to design a GUI for a digital electronics application. I want to generate some signals as per user selection and send values on UART. Please attached screenshot, I want to design GUI as per attachment.

 

Please guide on the same.

Install real time software on sbrio9606

$
0
0

Hi,

I have the new sbrio9606 which has nothing installed on it. On powering the sbrio, i can see the yellow LED blinking twice, which indicates me to install the real time software and others. 

But the sbrio is not seen in my NI-MAX and tried to trouble shoot it and it do not discover the device. If i try to check the device's IP in cmd, it do not show anything. But i can see the LED blink on the RJ45 connector. I have LV15 and all other software installed on my machine and able to program the sbrio which has the RT installed on it. So, i think my HOST machine is all good.

 

I have tried troubleshoot option in MI-Max, and it ends up not discovering it.

 

Can anyone help me in how to bring up the new sbrio9606.

 

Thanks,

Yogesh

NI CompactDAQ synchronization with LORD Microstrain sensors

$
0
0

Hello, I hope I'm posting in the right location, let me know if I am not.

I'm looking to collect data from both a NI CompactDAQ and a LORD Microstrain wireless sensor system. I'm currently in the process of buying hardware, but I'm looking at the NI cDAQ-9189 chassis (with various input modules) and the LORD Microstrain WSDA-2000 gateway (with various wireless sensors). I know that I can connect both systems to a laptop and take data using labview (using microstrain's MSCL library). My issue is with synchronization of the data. I will have a GPS connected to the WSDA-2000, so all data coming from that should be synchronized with a GNSS time stamp. I'm wondering what my options are for synchronizing the NI cDAQ data with the data from the WSDA-2000 and what level of synchronization I can expect.

 

My first thought is perhaps there is some way to get a GPS time signal to the cDAQ, but it looks like that is only possible with a cRIO system, is that true? And if I do get a cRIO system, is it possible to just connect the WSDA-2000 directly to it instead of the computer, and what benefit is there to that?

My second thought is that maybe there is a way to send a trigger from one to the other, but I can't seem to find any documentation on how to do that.

 

Any suggestions are very welcome.

Viewing all 5688 articles
Browse latest View live