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

LabVIEW program for TLB-6300-LN Velocity Tunable Laser Controller

$
0
0

Hello,

I have a photodetector (avalanche photodiode--APD) connected to my computer via a NI-USB 6251 and I also have a velocity tunable diode laser controller (TLB-6300-LN) with GPIB which I controll with a LabView vi. I'd like to aquire a program that can obtain the readout from the voltage NI-USB 6251 for APD and at the same time record the spectrum when APD receives a signal.

Could you give me any suggetions for the program? Any help will be really appreciated.

Lin


Record gpib commands

$
0
0

I have an old instrument (magnetometer) with an old computer used for control and DAQ. The instrument is in very good shape, but the computer is very old (early 90s) and uses a proprietary software to communicate with the instrument via GPIB. I would like to replace the computer with a new one and write my own DAQ program in LabVIEW, but I do not have the manual of the instrument and do not know the GPIB commands.

 

Is there any way I can connect another computer to the GPIB interface and 'record' the commands used by the DAQ software from the old computer while the program is running?

 

I read a little bit about NI I/O Trace (formerly NI Spy), but I am not sure if that can work. When I connect two PCs to the instrument, there seems to be some conflict between the two GPIB cards connected to it, I can only 'see' it from one computer.

 

Thanks!

USB communication with Measurement Computing USB 4301 daq device

$
0
0

Hİ guys, I am not sure about writing under the correct forum section but this section seems to me the most relevant one. Anyway, my problem is to communicate an USB daq device of Measurement Computing, model USB 4301, to labview 2014 SP1. I installed all required drivers and programs, however, I can see the device neither on NI MAX nor Labview 2014 SP1. The device is recognize only by the program called "Instacall" which is shipped with the device drivers setup. All labview drivers are seen under the user libraries, there is no problem on that. It is said that the Instacall write an configuration file, CB.cfg, however, I cannot locate it even that I search on whole C partition of the HDD. How can I solve this issue?

 

This are quoted from the help file of ULx NI Labview drivers:

 

  "To configure your hardware, complete the following steps:

  1. Close NI LabVIEW if it is running.
  2. Connect the MCC hardware that you want to use in NI LabVIEW.
  3. Open InstaCal and configure the hardware. InstaCal assigns a board number to each device it detects on the system. The board number assigned to the device in InstaCal is the number used to recognize the device in NI LabVIEW.
  4. Close InstaCal.

Note: NI LabVIEW reads the CB.CFG configuration file created by InstaCal. If you need to change any device settings make sure that NI LabVIEW is closed before you open InstaCal.

"

The program & driver that I installed from here (MCC DAQ CD, ULx for NI Labview)

 

By the way the software I am using is Win 10 Pro 64-bit.

Measurement & Automation Explorer (MAX) can't find any serial ports

$
0
0

Hello,

I have searched half of the internet, but I can't find any solution for my Problem. Maybe someone of you have a clue :-)

 

My System Information:

OS: Windows 7 (64bit)

LabView: LabView Professional Development System 2015 (32bit)

MAX: Version 15.0.0f0

NI-VISA: 15.0

NI-Serial 14.0

 

I have attached a screenshot of MAX at the end of my post.

All windows drivers for the serial ports are correctly installed (see other screenshot). But in MAX, I can't find these ports. There is only the error code "0xBFFF0011 (VI_ERROR_RSRC_NFOUND)". If I want to add the COM Port via "Devices and Interfaces" --> "New" --> "Port (Serial or Parallel)", I can only choose between COM1-COM4 or LPT1-LPT4. But I need COM9!

 

Does anyone have any idea what I do wrong?

Thank you

 

deZeus

How not to truncate the NI I/O Trace buffer value after export to txt or csv

$
0
0

Hello,

 

I am trying to export a .nitrace file into txt & csv format, and I see that the buffer value is truncated after it gets exported, for example:

 

viWrite (GPIB0::20::INSTR (0x053AF520), "CONFigure:WLAN:MEAS:R...", 50, 50)

 

instead of

 

1850. viWrite (GPIB0::20::INSTR (0x053AF520), "CONFigure:WLAN:MEAS:RFSettings:UMARgin 20.00", 50, 50)

How can I make sure that I export the complete string and not just 24 characters?

 

Thanks

I am looking for a IFR COM-120B driver

$
0
0

I have an Aeroflex COM-120B service monitor that I need GPIB drivers for, can anyone help?

Weighing scale + Serial Port

$
0
0

Hello,

 

I'm trying to read and work with weight values from an Ohaus scout pro scale connected thru the serial port, so far I'm only able to concatenate the string sent by the scale and display it on the front panel.

 

The purposes of my application is to weight 10 items and calculate the average weight which will then serve as a reference in order to detect further items outside 2 standard deviations from the average but I'm stuck trying to get the scale data inside an array. I've read several posts where the build array, spreadhseet string to array, while loop, for loop and shift registers are mentioned but I haven't been able to figure out how to put everything together to make it work. I'm posting an image from what I have so far, as you can see I'm only able to fill the first cell of the array which then is replaced with the subsequent scale reading.

 

Thanks in advance for your help.

 

Alberto. 

Cypress EZ-USB FX2 (68613)-EEPROM missing

$
0
0

Hi every body,

 

I have GPIB-USB-HS cale it was working well until i got message (Cypress EZ-USB FX2 (68613)-EEPROM missing) i couldn't see GPIB address, Could anyone help me to identify this error is it software or hardware error

!01.PNG

 

Thanks in advance

 

 

 

 


Template - Function Generator Frequency Sweep

$
0
0

Good day everyone,

 

I have tried to use Template - Function Generator Frequency Sweep, that we have in instr.lib by default, but when running it, I am getting an error ( please see 1 attached file) appearing just from the first vi. When I change this vi with VISA Open and run again, I get the same error (please see 2 attached), but already for the next VIs. Could anyone know what is the problem and how to fix it?

 

Thank you very much in advance!

Query more channels by a Rigol Oscilloscope at the same time

$
0
0

Hi folks, I need help to understand what can i do with my oscilloscope.

Initially I wrote the DEMO program, provides with the Oscilloscope. With this I were able to acquire data by a channel.

Now I need to acquire more channels data at the sme time, beacause I have to:

- Trigger the signal;

- compare two different signal from two different circuits that are generated at the same time.

Can I do this? I report my demo.

 

Thanks for you help 

open session failure

$
0
0

Hi I am issuing some commands to my device via NI-VISA through TCP/IP.

 

Here is what i do:

 

1.open session

2.some application specific commands

3.close session

 

These three steps are done multiple times and it seems most of the time the communication is fine. Once in blue moon i get an error from ni visa : 

Failed to open session - Check TcpipSocket connection at address x.y.z.a(Failed command: OpenSession)

I check the device and it is running on the ip  x.y.z.a, i close ni visa and reconnect to the same ip and issue *idn? i get a valid response back. I dont understand what is causing the open session to fail intermittently

 

thanks

 

gpib with visualfox

$
0
0

is posible to use visualfox to adquire measure using gpib 

i do it with rs232 on a agilent 34401 and it's so easy to control and adquire a measure but i have problems with GPIB

ADC communiction with UART to Labview

$
0
0

Hello i am tryin to send a AC voltage of about .2 volts from the ADC on my MCP3903 board with dspic33f microchip. I am able to communicate with labview through UART but not able to get the sine wave i am hoping for. Im not sure how the data is being plotting like if just garabage or what. I have attached my code and image of the what being plotted on the graph. IF somone can help me that would be great.

ReadString() and "Time limit exceeded to complete operation."

$
0
0

Hello!

I'm having somewhat annoying problem with GPIB communications. I've already read the following threads...

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Random-GPIB-timeout-error-in-NET-application/m-p/1833893/highlight/true#M51164
http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/ReadString-get-time-limit-exceed-to-complete-operation-error/m-p/3034667/highlight/true#M66183

... and I've tried the suggested solutions with no luck.

The setting:

 

- Windows 7
- Visual Studio 2008
- Latest GPIB-drivers (15.0)

- USB-GPIB-HS


We're running a test software in our production system that has been programmed by using VB.net and C# (Visual Studio 2008).

When I try writing (_device.write("Q0;HV;RES?")) and reading (.device.readString()) as fast as possible on my work desk (laptop + USB-GPIB-HS + Finero Quanti safety tester) everything works just fine even without any delays in the code. I get approximately 17 replies in a second. I tried this 100 times in a row (for-loop). No problems, exceptions or anything.

The second I march out the door to the factory floor and try the same code in one of the testers I get "Time limit exceeded to complete operation." -error. And it's totally random and at the same time not so random. There are ~4-6 testers using the same code right now (with the exception of 50 ms delay between every write and read) and the next tester fails the first .readString()-command 90% of the time. All the testers are identical. The tester finished safety testing -sequence only ONCE out of six.

The only difference is that I'm using laptop and the test-PC's in the testers are new Advantech industrial PC's (also running Windows 7).



GPIBproblem.png

 

 

First I tried 50 ms delay between the write and read command. Then 250 ms. A second. Two seconds. NOT WORKING. Frustrating. I've been working on these new Quanti codes for a month now and I can't release them into the production if it's not 100% reliable.

Should I tweak GPIB settings? Delay is too short/long? EABO (6) means "I/O operation aborted." (what do you mean "aborted"? Why? It doesn't even try to read.)

Any ideas?


Ps. At some point I got the same error on my laptop but only once. The problem vanished on its own without no apparent reason.

 

Janne Yli-Arvo, Testing Engineer

Tel +358(0)40 8371 973

Vacon Plc, Runsorintie 7, 65380 Vaasa, Finland

Driven by Drives, www.vacon.com



Modification Amplitude signal RS 422

$
0
0

Bonjour, 

 

>> J'aimerai savoir si sur les cartes compatibles RS 422 (comme la PXI-8433/2) ou via le Visa série il est possible de modifier (informatiquement) l'amplitude de sortie du signal RS 422 ?

- Par exemple de base le signal est +12Vpp et j'aimerai le faire varier entre +4Vpp et +12Vpp.

 

 

 

>> De plus est il possible de modifier la structure d'un message ? 

- Un message standard : 1 bit de start, 8 bit de données, 1 bit de polarirté, 1 bit de Stop (soit un total de 11bit)

- Version custom : 1 bit de start, 8 bit de données, 1 bit de Stop (soit un total de 10bit)

 

>> Dernière question : peut'on informatiquement modifier la fréquence de transmission des messages ?

 

D'avance merci pour vos retours

Maxime


How to let my PXIe device to connect on NI pxie chassis

$
0
0

Hi All,

 

Sorry, my English is not very well, if some parts let you misunderstand, please kindly let me know.

Thank you very much.

 

I would like to use NI Driver wizard to create an inf file to let my PC to connect my device.

Although I can use see my device in device manager of PC.

But when I open NI-MAX, I see my device can not under chassis.

The slot information are unkown.

How shoud I let my PXIe device to recongize slot infomation.?

my device type is PCIe endpoint.

 

 

issue.png

GPIB communication error with Keysight e5061b 'Query unterminated'

$
0
0

Hi All,

 

I am a beginner in Labview. I am trying to run a sweep and then save the .s1p and .s2p files from the e5061b via Labview. I am constantly getting an error on the instrument i.e ' Query unterminated'. The .vi file is attached here with. Please tell me what is wrong with it.

Thanks in advance.

 

Regards

Billy

RS232 to RS422 via GPIB-232CV-A

$
0
0

Hello all,

 

I have a motor controller that needs an RS422 signal.  If it sees a differential voltage above 2.5 V DC, the motor is activated.  If it sees a differential voltage below 2.5 V DC, the motor is deactivated.  I bought an RS232-to-RS422 converter.  With the power on to my GPIB-232CV-A, I get a permanently supplied +5.2 V signal out of my converter.  My suspicion is that if I can get a contsant signal out the the Tx pin on the GPIB-232CV-A (pin 3), then that will supply the negative voltage that I need, and bring the differential voltage down below the threshold.  My question is, using LabVIEW, does anyone know of a way to get the GPIB-232CV-A to supply a constant Tx signal?  Any help would be greatly appreciated.  Thanks.

Pacific Power 320-ASX Single Phase Mode

$
0
0

Hello.

 

I have been using NI's Instrument Drivers (latest for Labview2014) for a year now and used their example directly to create a sub VI that controls my Pacific Power 320-ASX 3 phase power supply (it is connected to an 8135 via GPIB).  It has worked without issues for a year now.  What I didn't realize is that NI's example sets up the power supply for 3 phase and I've just determined that I need single phase.  In their example, there is a subVI to configure the instrument with a pull down that contains phase options of: Three (default), Split, or Single.  I've selected "Single" and when I run the VI the power supply enables the output and then immediately enters a shutdown mode and disables the output.  I have tried numerous combinations of configuring the power supply using NI's Instrument Driver but I cannot get it to run in Single Phase mode.  Anyone have an insight or ideas on why it works fine in 3 phase but will not for single phase.  I can manually put the power supply into single phase mode using the front panel (and also with their UPC Manager Software) so I'm certain the issue is with the NI Instrument Driver.  Any help is appreciated.

 

Dan

Data Monitoring RS-422 Lines

$
0
0

Hello,

 

I need some recommendation on how to implement my system. I will have a DB-25 Female connector that I need to monitor four signals on. It will be a one-way communication of each of the four signals. I need to find a way to bring all four signals to a laptop and monitor the data in the signals in labview with minimal amount of connectors as possbile. The pinouts on the DB-25 female connector are as follows:

 

Pin 1 - Unused

Pin 2 - Unused

Pin 3 - COMMON

Pin 4 - Unused

Pin 5 - Unused

Pin 6 - Shields

Pin 7 - Unused

Pin 8 - Unused

Pin 9 - COMMON

Pin 10 - Unused

Pin 11 - Unused

Pin 12 - Line 1 (+)

Pin 13 - Line 1 (-)

Pin 14 - COMMON

Pin 15 - Line 2 (+)

Pin 16 - Line 2 (-)

Pin 17 - Line 3 (+)

Pin 18 - Line 3 (-)

Pin 19 - COMMON

Pin 20 - Line 4 (+)

Pin 21 - Line 4 (-)

Pin 22 - Unused

Pin 23 - Unused

Pin 24 - Unused

Pin 25 - Unused

 

Thank you for the help.

Viewing all 5680 articles
Browse latest View live


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