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

Trying to use a Dmm class in CVI

$
0
0

Hello all,

I'm trying to use an IVI DMM class in LabWindows and I fail at this.

I have a real HP 34410A multimeter connected via USB and I can get it to work with VISA using viOpen(), viWrite(), viRead(), etc...

I can also get it to work with the specific IVI driver, using hp34401a_InitWithOptions(), hp34401a_Read(), etc...

 

Now, I'm trying to use it through a generic IVI Dmm driver. I'm trying to follow the tutorial here: http://www.ni.com/tutorial/3377/en/ but I already glaze over at step 2: In MAX I have [IVI Drivers][Logical Names][MyDmm] where I have a Driver Session named [MyDriverSession], a [Go To] on that I chose [Don't simulate] and in the hardware tab I have [HpMult] as a resource descriptor, which is the name given above to [Devices and interfaces][34410A Digital Multimeter "HpMult"]

OK, that was a mouthful.

 

Now when I write a little program and call IviDmm_init with the logical name "MyDmm", it always fail with resource not found.

What am I missing ?

Thanks


Problems with the DC Power supply QL 355TP: I can't set the voltage level

$
0
0

I see the IVI drivers, but I cant find the Palette Set

Any ideas?

 

 

KM

Sorensen/Ametek XG series VISA drivers download ?

$
0
0

Can someone point me to the location of the VISA Palette download ?

 

 

KM

Hardware suggestions for a gas mass flow controller

$
0
0

Hello all,

Working on a small project, and the hardware guy ducked out on us, so I'm picking up some of that slack to keep rolling. Wouldn't mind some suggestions from those with experience in this area.

 

-2 mass flow controllers for nitrogen and butane gases, from 16 psi regulated sources at normal room temperatures, no special ratings really necessary

-Low volume flow into canisters which are open to atmosphere (approximately tens of grams/hour, varies a bit by canister size)

-RS232 or analog input control preferred, but not tied to it, and we haven't bought any control hardware yet

-Device display isn't necessary, wouldn't turn it down though

-Call it a small industrial project. Have some budget, can't throw money at it like crazy though.

-Internal PID control is nice, precalibrated for our gases looks like a nice bonus too.

 

Our first lead was the various Sierra SmarTrak series, looks like both MKS and Alicat have roughly similar offerings. Any raging success stories with any of those? Deep undying hatred? Other manufacturers I should consider as I drop down the rabbit hole of spec sheets?

 

Thanks,
Mark

 

 

 

Resource Descriptor for device located in a remote system

$
0
0

Hi,

 

I posted this question as a follow up on my previous question.  I think my problem is

 

What is the "Resource Descriptor" for IVI->logical Name->Driver Session->Hardware Assets, if a the device is located in a remote system?


I read an  article that the resource descriptor "is a string, such as a VISA resource descriptor, that specifies the interface and the address of a hardware asset." The article also has a table showing examples of the descriptors. However, there is another article saying there is a problem for VISA resource descriptor.

 

So it is a bug in MAX? Any workaround exits? For device in the remote system, I can only see the VISA resource descriptor. There is not NI-DAQmx resource descriptor. Any idea?

 

Thanks!

Change language of VISA error messages ?

$
0
0

Hello all,

I have an XP system that is not set in English, and unlike CVI which uses english, VISA gives me error messages in the system language. It's useless for searching on the Web. Is it possible to get the messages in english ?

Thanks

What might cause adding a line space (or a line with "%") before the output value in read buffer from VISA

$
0
0

I have been changing the pattern of a machine program, which originally built with flat sequence structures, to a state machine form. However, I have faced a problem like shown below. As you see in the picture, the old version and the new version have the same set, but the results are different. I assume that the space(it is empty space in the picture but sometimes it comes with "%" character) before the value gives me "0" but I have no idea where that space from or how to get rid of the space. Please help me!

 

Old VersionOld Version

New VersionNew VersionSub VI 2Sub VI 2

Old versionOld versionOld Version resultOld Version resultNew versionNew versionNew version valueNew version value

Random space line in read buffer with VISA

$
0
0

I have been changing the pattern of a machine program, which originally built with flat sequence structures, to a state machine form. However, I have faced a problem like shown below. As you see in the picture, the old version and the new version have the same set, but the results are different. I assume that the space(it is empty space in the picture but sometimes it comes with "%" character) before the value gives me "0" but I have no idea where that space from or how to get rid of the space. Please help me!

 

Old VersionOld Version

New VersionNew VersionSub VI 2Sub VI 2

Old versionOld versionOld Version resultOld Version resultNew versionNew versionNew version valueNew version value


NI-VISA .NET ReadStatusByte freezes program

$
0
0

Hi All,

We decided to rewrite our huge calibration program to NI-VISA .NET platform. Before start I created simple Project which has only one Counter (Keysight 53230A). We want to use ServiceRequest event of MessageBasedSession object.

We use below code for creating counter object.

 

counter = (MessageBasedSession)ResourceManager.GetLocalManager().Open("GPIB0::17::INSTR");
counter.Timeout = GpibInterface.InfiniteTimeout;
counter.ServiceRequest += Counter_ServiceRequest;
counter.EnableEvent(MessageBasedSessionEventType.ServiceRequest, EventMechanism.Handler);
//this starts new measurement and trigger SRQ when finish counter.Write("*CLS; *ESE 1; *SRE 32; INIT:IMM; *OPC");

 

 

When I run the program it reaches Service Request sub program and freezes at ReadStatusByte() line. If I omit this line, program reads data from counter and starts new measurements but ServiceRequest sub program does not call again.

 

private void Counter_ServiceRequest(object sender, MessageBasedSessionEventArgs e)
        {
            MessageBasedSession mb = sender as MessageBasedSession;
            if (mb != null)
            {
                //Program freezes this point
                //If omit this line, service request function does not run again 
                StatusByteFlags sb = mb.ReadStatusByte();   
                listBox1.Items.Add(mb.Query("FETCH?"));
                mb.Write("*CLS; INIT:IMM; *OPC"); //Restart measurement...

            }
        }

I tried AutoSerialPoll On or Off and results are same. I updated NI-VISA to 17.5 which is latest version.

 

 

Any idea?

 

Best regards,

 

Adem

Software link: Route VISA instrument to virtual GPIB

$
0
0

Hi,

I'm an intermediate user with NI but I can't seem to figure out this problem:
I have some test software (closed source) that will only accept GPIB[0:7] but my instrument only has LAN and USB (works with VISA).

Is there any way to create a software link, fx. in NI MAX, where i can bridge the LAN or USB communication to a virtual GBIP-port? Or is there any other way to create a software link between the two interfaces?

I would prefer not to buy a hardware adapter for this. Also: I'm NOT a software-guy so I'm not skilled enough to code my way out of this issue.

Kind regards,

Johan W (Denmark)

 

 

RS232 control of SR830 Lock in

$
0
0

Hello

For a project i am trying to control SR830 lock in but im having problems with the visa drivers. im getting an error on the read visa.

when i try sending commands using NIMAX it works sometimes and im able to send commands and read data however whenever i run any of the examples provided with the drivers i get a read visa error.

A similar probelm happened when i was doing the same for keithely source meter. for the keithey the problem was the null rs232 connection i had and i replaced it with a straight one and it worked.

for the lock in i suspect its a similar cable problem. i am using a DB9 to DB25 convertor and i have a usb 2.0 pr rs232 as the cable im using. 

Do converters like the one mentioned above have types like null and straight ?

would using a GPIB cable be easier than dwelling over this ?

i appreciate any help i can get.

sorry if there is anther post about this topic, i didnt have the time to look thought them.

thanks in advance for the help.

 

 

spectrum analyzer Agilent 4395A GPIB tu USB

$
0
0

Hello everyone,

 

I am using a GPIB to USB cable to connect my computer (windows 10 pro, 64bits) to a spectrum analyser, But "measurment and Automation" does not recognize the cable  (see picture GPIB-USBattached) and it gives me the error:

"This GPIB device is not a genuine National Instruments product and is not supported by the installed NI-488.2 software (Error code: -37056)"

 

According to some source online and it may be a clone product that look like genuine National instrument but is not.

I have already re-installed Labview and the drive several times but it is still not working.

A orange light is lit on on the GPIB connector (see picture "28810561" attached)

Have you ever had a similar problem ?  or do you have any suggestions.

 

Thanks in advance.

Best regards

Oliver HUBERT

XNET error -1074384880 (0xBFF63010)

$
0
0

Hello,

I have an issue using NI-XNEt CAN communication (using NI-PXI8513 CAN card). We have written a CVI wrapper for XNET driver to call from TestStand. My CVI query function do following (flush write session, flush read session, write Frame, wait for TX, read Frame).

Rarely it happens that function "nxFlush(readSession)" returns this error: -1074384880 (0xBFF63010).

I was not able to find error codes descriptions like a VISA error codes description.

Thanks for any response.

Best Regards,

Petr

Pickering module: IVI to NI Switch Exec

$
0
0

Hello,

I have a Pickering module model:40-670A-022-198/1.  I have the Logical Names and Driver Sessions configured.  However, when I try to create a switch for it on NI Switch Executive Virtual Devices I get: Primary Error: (Hex 0xBFFA1190) The session handle is not valid.

 

 

Can I access GPIB-HS cable in Virtual Box?

$
0
0

Hi all my friends,

 

I got one problem in VIRTUAL BOX control with GPIB-HS cable (virtual OS), my host OS is windows 7 x64, and VIRTUAL BOX OS also is windows 7 x64.

I have installed NI MAX and GPIB driver into host OS and working well and also install the same SW as host OS into VIRTUAL BOX OS

but in device manager of VIRTUAL BOXOS display GPIB device error?

The VIRTUAL BOX USB configuration is USB 1.1 and also add GPIB-HS cable into USB connection list.

Has any one met this problem before? 

 

Thanks

Gary

 

 


Error-1073807339 when connect RS232 port to NI MAX

$
0
0

Hi all,

 

My device is a RS232 port connection. I can send and read command successfully by serial port utility. But when I used NI MAX VISA test panel and continues write and read.vi from the labview example, errors occurred.  The error is 1073807339-VISASmiley SadHex 0xBFFF0015) Timeout expired before operation completed). When the command is successful, it will return a string ':A  Number'. The settings in serial port utility and NI MAX are attached.

 

Thanks,

Mei

Data Acquisition using Arduino in Labview

$
0
0

Hi Everyone,

 

I am new to Labview and trying to collect the output of a Photomultiplier Tube in Labview. I dont have NI DAQ system. All I have access to currently is an Arduino Uno board with Atmega328P controller. Can i use it somehow to collect the data in labview. Any suggestion would be appreciated.

 

The PMT is a BURLE 931A. Below is the link to the data sheet.

https://www.nonstopsystems.com/radio/pdf-hell/hell-zetfax-931A.pdf

 

Thank you.

Minimum set Windows services needed to run GPIB-USB-HS

$
0
0

In a very memory constrained Win7 32bit system.

What are the minimum set of Windows NI services needed to run GPIB-USB-HS and TCP/IP LAN communications (e.g. Citadel 4, niSvcLoc etc)?

 

I have read http://www.ni.com/product-documentation/14487/en/

which describes the services but doesn't give sufficiently clear information for a casual user to determine their necessity. I would like a matrix that shows which of those is necessary for our case or at least some guidelines...

 

 

Modbus RTU electronic fan speed controller with RJ45

$
0
0

Hello

 

I am trying to control a motor via Modbus RTU.

My computer will be master and the motor driver will be slave.

The connection diagram in the instruction manual is as follows:

Aansluiting elektronische regelaar.png

Since there are only 2 wires to connect for Modbus.

Is it possible to modify a simple network cable (rj45 connector) and tell LabView to send the Modbus data over those 2 wires?

Instruction manual of the motor controller can be found at the bottom.

 

Maybe i understand modbus completely wrong but please enlighten me Smiley Happy

Thanks in advance. 

Advice about buying power supply and ADC-DAC card.

$
0
0

Hi everyone!

 

I have LabVIEW 2014 and i need to buy a power supply which i could program with it(with LabVIEW library). Power supply must have 3 channels, limit power up to 600 Watt (for example 60V 25A: 60V-10A;24V-25A), usb interface and if it possible RS-232. Purpose of this power supply to measure structures in wide diapason of voltage and current. I have experience with programing power supply PPS3205T-3S and its took time to program it through connection protocol couse i coudn't find labview library for it. May be you use some good equipment and can give me advise about it or where i can buy it.

Also i need ADC-DAC card with ADC resolution 12 bit and usb interface(with LabVIEW library), with which i would able to collect data from power supply and apply voltage 10V.

 

Thank you.

Viewing all 5665 articles
Browse latest View live


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