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

GPIB-USB-HS HS488 protocol and How to increase the communication rate

$
0
0

I tried to use the Visa Test Panel to change the I/O protocol of my GPIB-USB-HS device to high-speed. But every time I click "Apply", the panel gets stuck. I don't know if this device supports HS488 protocol.

I used labview to write a cyclic GPIB read and write program, but it can only read up to 100 times per second during operation. I want to increase the rate of reading and writing in the next cycle. I don't know if there is any other way to use this device.

By the way, I want to communicate with the Stanford lock-in amplifier. I don’t know if the fastest response speed of the lock-in amplifier is only 10 milliseconds.

 


Programmatically Connect to Map 300 mHROSA-A1?

$
0
0

Hello, 

Does anyone know any information on how to get IDN from MAP300 super-applications using syntax *IDN? <Slot #> passed via CMR. 

 

Example, I have a mHROSA-A1 - MAP-200 Integrated Multi-Wavelength Wavemeter and High-Resolution Optical Spectrum Analyzer in slot 2 of my MAP 300 and I am using IVI Visa driver to connect to MAP 300, using VISA TCPIP. I can pass in the command "SYSTem:LAYout:PORT?\n" to get response "CMR\sMAP-300\s8100,1\sOPM\s8201,2\sHROSA\s8302,3\sVOA\s8203,4\
sVOA\s8204,5\sEDFA\s8205,6\sEDFA\s8206,7\sBBS\s8207,8\sBBS\s8208\n" and I can use the command "*IDN? 3\n" from the CMR to get the following response "JDSU,VOA, *, *" but when I try to same the command for "*IDN? 2\n", I get the error "

Write Operation (*IDN?\s2\n)
Error

VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error.".

 

For some reason, I am unable to connect to the cassette at slot 2 unless, I start one of the super-application (HROSA) from the MAP-300. Is there a way to get this information without physically selecting the super-application from the MAP-300 GUI?

NI-488.2 2.40

$
0
0

Greetings. I have software from the Agilent/Varian company called SpectraAA coupled to a flame spectrophotometer. This software requires Windons XP or Windons 7. However to use Windons 7, I need to update NI-488.2 2.40, to version 3, or higher. How do I get this version 3?

VISA: (HEX 0XBFFF0015) Timeout expired before operation completed

$
0
0

image (1).png

I connect my electrometer with TCPIP SOCKET and use VISA test panel input/output.

 

image.png

When I tested write, clear operation, could see clear message at Return Data.

However, when reading, it was confirmed that the following error message (VISA: (HEX 0XBFFF0015) Timeout expired before operation completed) appeared.

I don't know how to get rid of this message.

Please help.

 

Thank you.

Talking to an instrument over LAN using a Mac and LabVIEW for the first time. Need advice...

$
0
0

Hi,

I am trying to communicate with an instrument over LAN for the first time and I must make some silly rookie mistake in what I am doing. So any help is needed.

 

My goal: Use the LabVIEW community edition on a Mac and send a *IDN? command to a Siglent DMM over LAN (Figs. 1-2). The Siglent DMM is connected to a local router with an ethernet cable and the Mac computer is connected to the routers network via Wifi.

 

Version info of what I have:

LabVIEW: Community 21

MacOS: 10.15.7 (Catalina)

NI VISA: 21.0

NI 488.2: 21.0.0 

 

On the DMM I get the IP address it has been assigned by the router (Figs. 3-4).

 

I then ping this address from my computer and it works just fine (Fig. 6). I get a respons within a millisecond or so. The computer is only connected to this network (Fig. 5).

 

I then add a VISA resource using the VISA resource editor using this IP and using the VSI-11 protocol and give it an alias of SiglentDMM (Fig. 7). It takes it just fine and I can see that it shows up in NI MAX just fine (Figs. 8-9)

 

I then select this resource on the control element on the front panel in LabVIEW for the VISA open call and it is there too (Fig. 1).

 

However, when I run the code I get an error as shown in Fig. 1…

 

If I use USB/VISA for communication instead with the same instrument (disconnect all cables and restart just to be sure) every thing works fine. I see the USB resource, I select it and run the program and I get the response back from the *IDN? command. What could be wrong here with my LAN approach?

 

Below are some images that show some key aspects. Thank you in advance!

Front Panel.jpegFig. 1. Front panel showing the error when I talk over LAN.

 

Diagram.jpeg

Fig. 2. The diagram of my test program that sends the *IDN? command

 

Siglent DHCP.jpeg

Fig. 3. Siglent DHCP menu

 

Siglent LAN.jpeg

Fig. 4. Siglent LAN menu

 

Wifi.jpeg

Fig. 5. Computer network settings.

 

Ping.jpeg

Fig. 6. Ping results

 

Resource Settings.jpeg

Fig. 7. VISA resource settings.

 

Reserouce Settings 2.jpeg

Fig. 8. VISA configuration.

 

NI MAX.jpeg

Fig. 9. NI MAX monitor

ENERIUM 200 Wattmeter

$
0
0

Dear all,

 

i'm trying to communicate with Wattmeter ENERIUM 200 with LabVIEW, Now i can read the registers of Voltage, Power, and Current (using MODBUS). the problem is i cannot reset counter of power from labview while i can reset it from it's software.

 

I'm trying to send command (get it from device Interfacing sheet) via VISA to reset counters but i cannout reach VISA Resource Name while i have the IP of the device. How can i get Visa Resource Name frim Device IP. can i send commad words via MODBUS.

 

Thanks

Control the LED and fan/measure the temperature with thermocouple

$
0
0

plan to buy the NI product to modulate the LED to realize the switch function(on/off) in different time periods,  and acquist temperature(0℃-400℃) from the type-K thermocouple. I also want to add a fan to the system, when the temperature reaches the settled value, the fan will start to work and close when the temperature decrease to room temperature. My budget  is 20,000$.

I find a paper that uses the National Instruments (NI) 6009 8-channel module and 9212 16-channel thermocouple modules for voltage power supply to the white LED and temperature acquisition from the type-K thermocouple, respectively.

Here is my question.

1. In order to achieve high accuracy measurement, I want to by USB temperature measurement kit with NI-9213 and cDAQ-9171. I plan to buy this type-K thermocouple (see in the picture). Does this connection type of thermocouple suitable for NI9213?

Wenhong716_0-1639470038972.png

 

 

2. Which product of USB-6XXX serious suitable for controlling the LED and fan a the same time? In my experiment, the sample is illuminated by the LED, when the temperature reaches the settled value, the fan will start and the led will close. when the temperature decreases to room temperature, the led will open again and the fan close.  Also, the intensity of led can be controlled by the USB-6XXX.

 

3. What type of LED should I buy to connect the USB-6XXX? The LED connection cab has 4-Pin M8 Connector on one Side and 4 Bare Wires on other Side(see in the picture). How should I do to connect it with the USB-6XXX? 

Wenhong716_1-1639470038983.png

 

 

4. Which product of USB-6XXX has the PWM function? I can use it to control the fan's speed. Of course, this is not necessary. The open and close of the fan are enough for me.

 

5. I see the product of USB -6XXX can output the 5V voltage(Maximum). does this mean the voltage of the LED and fan should be smaller than 5V? 

 

6. If the voltage of the LED and fan is larger than 5V, what should I do to connect the USB-6XXX? Which product of USB-6XXX can provide the larger voltage 10V or more?

 

7. I will buy the USB-6XXX and USB temperature measurement kit with NI-9213 and cDAQ-9171, Can these products connect to the computer at the same time? So I can use the NI-9213 and cDAQ-9171 to measure the temperature and use the USB-6XXX to control the fan and LED.

 

8. Can I use the USB-6XXX to connect 2 LEDs and 2 fans at the same time?

 

9. How could I buy the product of NI? I am from Saudi Arabia, Can NI assign a person to contact and to discuss and place the order.

 

10. After I buy the product from NI, will NI help me to design the code in Labview to control the LED and fan?

connecting to ilx lightwave fom-7990b

$
0
0

Hi,

I want to connect  ilx lightwave fom-7990b  in LabVIEW ,using gpib controller. i searched for the drivers. but i couldn't find it.  

Please guide further how to connect it to Labview and communicate.


Cable for PCIe-8370 to laptop USB-C

$
0
0

Is there a cable solution to connect to a PXI chassis (PXIe-1065) to a laptop USB-C via PXIe-8370 controller?

 

Previously my workstation desktop has a PCI card and MXI express cable that connects it to PXIe-8370 controller. I am searching for a cable that allows me to connect the PXI system to a laptop instead of desktop PC.

NI VISA Shared Components 64-bit version 15.5 fails when trying to install on Windows 11 ARM

$
0
0

Hello all,

 

I am trying to re-install a software which I use for my Taekwondo school called Truescore 2017.  It is an electronic system where it reads the sensors from contact of a foot protector and contact to a chest protector.  This software has worked in the past when I was running it on my MacBook Pro Intel processor running Windows 11 on a Parallels virtualization.  I have recently purchased a new MacBook Pro which uses an ARM processor and had to re-install the Parallels virtualization software and run Windows 11 ARM64.  Now whenever I try to run the Truescore 2017 software, it will process but will fail when it comes to the installation of NI VISA 15.5 Runtime Support.  I will receive the following error message:

 

VISA Shared Components 64-Bit:

 

Error 1304.  Error writing to file: Ivi.Visa.Interop.dll.  Verify that you have access to that directory.

 

I have tried installing both with my account and also running as Administrator with no success.

 

I have even checked the permissions and they are correct.

 

Would anyone know what would be causing the failure of the installation of the VISA Shared Components 64-bit?

 

Any assistance would be greatly appreciated.

 

Best Regards,

 

Sam

low-level GPIB wait on service request

$
0
0

hello one and all,

 

I'm not a low-level guru, but over the decades I've managed to mutter through.  I ask for guidance in properly and stably programming the low-level waiting for SRQ to complete.  I know, I know, I could just install the NI drivers and use wait_on_srq(timeout) under my python program for instance.  and yes, that works great as NI-Trace shows below:

 

  1. viAssertTrigger (GPIB0::20::0::INSTR (0x00000001), 0 (0x0)) | Status: 0 (VI_SUCCESS)
  2. viEnableEvent (GPIB0::20::0::INSTR (0x00000001), 0x3FFF200B (VI_EVENT_SERVICE_REQ), 1 (0x1), 0 (0x0)) | Status: 0 (VI_SUCCESS)
  3. viWaitOnEvent (GPIB0::20::0::INSTR (0x00000001), 0x3FFF200B (VI_EVENT_SERVICE_REQ), 24999 (0x61A7), 0x3FFF200B (VI_EVENT_SERVICE_REQ), 0x00013001) | Status: 0 (VI_SUCCESS)
  4. viClose ("GPIB0::20::0::INSTR Event" (0x00013001)) | Status: 0 (VI_SUCCESS)

where line #38 has the computer waiting until the exact moment the instrument is done measuring, acquiring, and amassing the 25 voltages or what have you.

 

BUT, here is the deal.  I'm trying to desperately get my raspberry Pi computer, running Raspian OS and python 3, to wait_on_srq(timeout) but I can not reproduce the wait because the NI drivers/DLLs are doing some magic for me when I execute the wait_on_srq(timeout) AND those drivers are not available for raspberry PIs OS.

 

now I know I can rapid poll and interate the stb of the instrument to guess when the instrument has completed its job.  but that is insanely inefficient.  so, may a NI guru who knows what's going on within the NI-Driver/DLLs to guide me through getting this correct on a platform where the NI-Drivers/DLLs can not be installed or run?

 

thank you in advance and merry Christmas.  Lucas

LabVIEW CPX400DP USB port detection

$
0
0

Hello, 

 

I'm trying to create a VI to auto detect the USB port were I have my PSU connected and control the PSU output.

 

There is no issue with the output control if I select the connected port manually. Nevertheless, if I use my VI to detect the port and forward it to the PSU control it does not work.

SnippetPSU.png

 

The VI detects the correct usb port but it's not forwarding the correct information to the next step of the VI. 

The issues is on the "Find the correct instrument handle Resource Name" part.

Can you guys help me find the issue? 

Thank you.

 

Best regards,

Luis P.

GPIB-ENET/1000: Can ping IP but unable to communicate with GPIB instruments

$
0
0

Hello all, 

I have a problem with GPIB communication.
I have configured the instruments correctly as I usually do but this time I can't find the GPIB instruments either by using labview drivers or by scanning the instruments via NImax (GPIB connected instruments are not detected).

What I did :
- Update NImax and NI488...
- Reset of the instruments
- Change of GPIB cable
- Change of GPIB address on the instruments
- I also unplugged all the instruments and leave only one
- Change of GPIB-ENET/1000
- Reboot the PC

- Reboot the GPIB-ENET/1000
- Ping of the ip address on which the GPIB-ENET/1000 is configured

would you have other ideas to propose me please ?

 

Controlling Gpib-usb-HS-+ handshake manually

$
0
0

Hello, 

I am working on an old device that communicates in GPIB but with only one PC. 

my project is to replace this PC with a new equipment.

 

Right to the problem: 

I need a dll / library in C# to create a manual handshake where there is no need in a response when I am a CIC listener. 

 

The story:

So far we had not much success using GPIB-USB-HS+, until recently.

 

I have found that the Device communicates with special commands (nothing like "*IDN?", all in special Hex Bytes).

 if you send the correct sequence it will not answer you UNLESS!! you start a handshake first(even though you are the controller and  the device now a talker), like manually doing handshake.

I achieved a result by using NI Analyzer Handshake Switches(*attached picture*) to create this first HS when I am as a listener and CIC. 

 

I tried using TMS9914 and NAT7210 in TMS9914 mode but it can't find the device on the bus even though the NRFD is Low when it's connected to 9914.(*attached picture*) 

Would be very happy for your help, 

 

ERROR IN THORLAB COMPACT SEPCTROMETER CCD220 LABVIEW EXAMPLE

$
0
0

Dear community,

 

I am using a Thorlabs CCD 220 compact spectrometer. I try to connect a spectrometer with LabVIEW via the given example by Thorlabs(TLCCS).For the first time run the example is working fine. for the second try its give me this error below. please find the attachment below. kindly let me know the way to rectify it.

Thanks in advance

Priya


configuration problem with Thorlabs BBD302 - 2-Channel Benchtop 3-Phase Brushless DC Servo Controller

$
0
0

Dear community,

we are using Thorlabs BBD302 - 2-Channel Benchtop 3-Phase Brushless DC Servo Controller.

we are trying to communicate with the motor via APT and LabVIEW ActiveX control. But we failed to communicate. The system shows the USB is connected. But in the APT configuration utility and LabVIEW ActiveX control, we can't find the motor.

kindly let me know the further proceder to rectify it.

Thanks in advance

Priya

 

 

 

 

 

Is there a limit to write buffer size using Serial Write?

$
0
0

Hi,

 

I'm currently trying to run a simple serial vi to communicate with an external hardware. I know the VI works with a small code wired to the write buffer (an approximately 400 bytes ascii character string) but a bigger command (approximately 1500 bytes ascii character string) gets cut off causing an error. The hardware can use the Arduino ide serial monitor so I know there is no issue running both strings. I was curious then if there is some kind of limit for the write buffer and if there is any way to fix the issue. Thanks in advance.

PXIe-1082 and PXIe-8301 not detected in NI-Max

$
0
0

I have been trying to get a specific laptop computer to recognize a PXI chassis system that other laptops already do.  The NI-Max configuration that does not work appears on Origin brand laptop (see attached image).  The NI-Max configuration that does work appears on the Dell brand laptop (see attached image).  Both laptops have the same version of PXI Platform services.  I have removed all NI software from the Origin laptop to the most basic NI requirements to see the chassis.  As you can see from the attachments, the Dell version clearly indicates the PXI chassis and the appropriate controller card.  The Origin version merely lists a generic SMBus Controller.

 

This is the third laptop of various brands we've run into that exhibits this issue, and it has remained unsolved.  For the laptops that are unable to explicitly detect the PXI chassis, FPGA projects that use backplane routing (Destinations and Sources) for the PXIe-6341 Multifunction I/O card won't run.  Thus, the Dell laptop runs the LabVIEW FPGA application just fine, the Origin laptop generates an error at start-up.

 

Has anyone else had an issue like this, and what, if anything, was your solution?  I've read through the forums, and based upon what I've found so far and have tried, I am reasonably sure the BIOS settings for the Thunderbolt port are correct and there are no issues with the orientation of the Thunderbolt cable.  Again, both laptops are being connected individually to the same PXI system, and the results are as I presented, so I know the PXI system can work as configured.  There may be a software and/or driver issue, but as I stated, we've had multiple laptops properly configured to work, and multiple laptops that had this issue and were never resolved.  Thank you.

 

usb 6002 using the 8 analog ports

$
0
0

Hi,

 

I am quite new user of DAQExpress and Ni USB 6002.

 

I managed to read data from 4 pressure transducers at the same time. The + port of each port is connected to the + port of the transducer and the - port to the - port of the transducer. A resistor of 470 ohms connects + and - port of the NI USB 6002. Each transducer is powered by its own 24 V power supply.

 

Is it possible to increase the number of pressure transducer connected to the NI to 7 or 8 equipments? (for instance plugging together all the - ports of the transducer to 1 port of the NI usb 6002, and connect 7 + ports of transducers to the 7 other ports of the NI USB.

 

Sorry if this question seems to be simple or stupid.

 

Regards

 

Fabien

VISA Licensing in application development

$
0
0

Hi,

 

we are currently reworking legacy-applications which exclusively rely on GPIB and we are considering to use VISA

in the future within a common application (C#, Java, C++ ...). Regarding the licensing, i have the following questions:

 

a) Is it still possible to use VISA in conjunction with NI-hardware (GPIB-Card etc ..) without buying an extra license ?

From this thread it seems one could use VISA for "free" as long it is used to with NI-hardware

 

b) Assume a workstation is equipmed with another vendor's GPIB-Card. Is NI-VISA able to deal with a GPIB-Card which was not produced by NI ? If so, I suppose we would a need a license for each productive environment.

 

Regards,

TestcellGuy

Viewing all 5688 articles
Browse latest View live


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