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

how to trace vi session and RM session and see what is currently opened

$
0
0

Hi,

 

I am troubleshooting a problem between LabView and an instrument driver.  From the NI Spy, we see several RM session opened and several VI session opened to communicate to the instrument driver.  Anyhow, what troubles us is that, intermittently, NI Spy would capture a call to viOpenDefaultRM() function and there is no corresponding viClose().  Also, assuming if everything opened and closed properly, I won't expect the value of the RM session handle and the value of the VI session handle would change, but, intermittently, the handle value would change and is going up. 

 

So, to further troubleshoot, I am wondering is there a tool that I can monitor, in real time, shows me a list of RM session opened and list of VI session opened.

 

Thanks.

 

Peggy

 


What advantage is there in using the NI USB-232/4 over an off-the-shelf USB to Serial hub?

$
0
0

What advantage is there in using the NI USB-232/4 over an offset USE to Serial hub?

NI USB-232/4

 

I have an application that requires LabVIEW control of 19 instruments that communicate over RS-232.

 

I've read the data sheet for the NI USB-232/4, and I don't see any advantage of spending $528 for this device (times five) over an off-the-shelf USB to Serial hub for half the price.

 

Can someone tell me if there's an advantage to the NI USB-232/4 or if they've had experince with one?

 

Thanks in advance.

Connect M3-L Motor form new scale tech?

$
0
0

Hello my question is..

Have someone done a conection using this mothor, I would like to conect this motor by USB using VISA but the problem is that I do not know how because the VISA resource name do not recognice my device, I can ony use it with the software provided by new scale tech. I tryed to installa the drives using the NI driver wizard but the problem is thet I do not have the admin password so I can not. 

HiSlip instrument Not Present

$
0
0

We have a Agilent N9020A MXA Signal Analyzer on our local area network separate from the corporate LAN.

 

It shows up in NI-MAX as three entries, but for HiSlip entry, the status is Not Present.

 

Can someone explain why that is?

Is there something I need to do to change the status?

 

Attached is a screenshot of NI-MAX.

 

Capture.PNG

how do start with button myrio

$
0
0

Hi everyone, who can help me to know how can i starting and ending my VI with the button of myrio 1900 and thank you.

Serial communication blocks my while loop

$
0
0

Hi everyone. I need your help with my program. I am using LabView2014 and an Agilent B2902A.
I want to measure current value with my instrument continuously, store values every second and display messages received through the serial port when I get some. 
Everything works perfectly separately but when I put everything together I have this problem: my instrument is waiting for a message from the serial port to take (and display) a measure. 
Do you have any idea to save my problem? 
Thank you ! 

 

Pauline

(Please find attached a screenshot of my program)

Transfer PXI WIN XP NI 8.5 to Win 7

$
0
0

Hello,

 

I'm currently using PXI System with Win XP, NI 8.5, and TestStand 4.0 for my Test System.

I would like to transfer this system to run with Win 7.

 

I'm very new,  what are the advises for me to watch out?

 

Thank You!

Cannot change Modbus Master IP Address

$
0
0

Hi,

 

I'm new to the forum. I'm using LabVIEW 2013 with DSC and I'm creating a module that makes possible to the user to change the modbus IP address but without success. I'm using Create and configure IO Server as shows in the vi below.

If someone knows how to figure this out, I'll be really grateful


calibrating Agilent N5183 Signal generator for specific output level

$
0
0

Hi,

 

Newbie to labview enviornment!  I am trying to write a VI to calibrate Agilent N5183 to a specific output.  For e.g. if I want to have -4.5 dBm output from my setup (as displayed on my power meter) I will have to set the sig gen to say 7dBm taking into account my losses etc.

 

Any pointers how do I start tacking this?  I think I will have to create a while loop to check power levels, however I do not know how to increment and decrement the sig gen amplitude and stop at the desired level!

 

Thanks in advance for any help.

 

PS: Using Labview 2013, on win XP machine!

crazy, my serial device confounds everything

$
0
0

I have an unconventional question, and I'm really grasping at straws here.


I have a test adapter that has been been reliable in service for several years.  It uses five (Kvaser) CAN channels to communicate with 30 devices using six different addresses on each CAN channel.  The devices are on a fixture in a thermal chamber controlled by a Watlow F4.  The adapter consists of a USB-6501 that controls a home-built 32-channel relay card.  There are three two-channel CAN transceivers, and all four devices are plugged into a powered USB hub.  The computer's serial port is connected directly to the Watlow F4 controlling my thermal chamber.  (The same behavior occurs when I replace the computer with my laptop and a USB-serial converter.)


Last week, the system began to fail to identify most of the devices on the test fixture.


I spent two days banging my head on the station before discovering that the adapter works if I unplug the serial cable.  I thought that the Watlow controller had gone bad and had Maintenance replace it.  The problem persists.

UUT power is controlled by an SSR triggered by the 6501.  Yesterday, I saw the adapter turn on UUT power when I unplugged/plugged the serial cable.  It happened twice, in the presence of a witness, but I couldn't cause it to happen a third time.  The failure of the adapter to identify all UUTs when I connect the serial cable is repeatable, as is the converse.

 

I've tried replacing the 6501, our relay cards, Kvaser transceivers... Do you have any ideas?

VISA, Continuously read data when available.

$
0
0

I have pressure measuring device which reads the pressure periodically and sends information every 250ms. I would like to read the data for about one and half hour or even for some more time. I wrote 2 programs for this operation

 

1. VISA Read and write every 250ms: Here I configure the settings then write and read data every 250ms. (This fails after some time).

2. VISA using events.

 

I have attached the  both programs. Would you suggest which one is appropriate for this operation or any further suggestions, improvements???

Thank you.

Something wrong with GPIB-USB-HS connection with computer

$
0
0

Hi. 

I just bought a GPIB-USB-HS from eBay. It is brand new. 

After I installed the NI488.2. The system(both the device manager and MAX) can recognize the GPIB-USB-HS. And the ready light was lit. 

However, something weird just happened. The ready light keeps going on and off. And the system(both the device manager and MAX) sometimes can recognized it, sometimes can't. I can't work with GPIB-USB-HS this way. Can someone help me to identify what the problem might be? Thank you.

 

I also made a video. Hope it would help you to identify the problem:

https://www.youtube.com/watch?v=iSlzG7zN_M4

 

Thank you very much. I really appreicate that. 

 

Best Regards,

Bruce

"share" USB scope

$
0
0

I have a Tektronix scope that is USBTMC.

 

Sometimes we will run a test program on PC#1 and sometimes on PC#2, but *not* at the same time.

 

Can I buy a hub and let the scope be "shared" between the two PCs?

 

 

what's GPIB command can transfer state file to E5062A from external comtrol(PC)

$
0
0

Deal All

 

so far, I can use MMEM:TRAN? "D:A.STA" to read the state file on my PC. and now I have two questions.

1. how to save this state file in my PC?

2. what's GPIB command can transfer this state file to E5062A from PC?

 

about question 2 : I was read E5061-90042.pdf, and read sample program of page 140, and try MMEM:TRAN this command. but still fail.

 

please advance

Best Regards

Patch

USB device no rename menu option NIMAX

$
0
0

I've recently had to reinstall NI Max and all supporting drivers to a new machine. When I open NIMAX, I'm showing two USB-6221 DAQs, one of which (named dev1) shows as disconnected and the other (dev2) is active.

 

I need to delete the inactive one and rename the active one to dev1, and heretofore had no problem doing that-- just right-click and select "remove" on one and "rename" on the other. Now, though, when I right-click all I get is "self calibrate."

 

I've updated to the latest version of everything. Is there a setting that I'm missing somewhere? I have a production system down until I can get this resolved.


Send Universal Hart Command #54 using Labview Hart Example

$
0
0

Hello, 

 

I was able to communicate with a Hart Device using Labview Hart Example and Viator MacTek RS232 Hart Interface. I was able to read identifier, primary variables etc. There is a specific command - #54 Read Transmitter variable information (Serial, Range etc) that I want to query. I am not sure how to modify the VI to achieve this. The Hart example is attached. Any suggestions are appreciated. 

 

Thanks

 

Fliu

serial port

$
0
0

dear all,

         can anyone tell that what is the problem in this vi as read function is not responding in VISA. i am trying to send some command to power sensor through VISA 

thnaks

How to use/call IVI-C drivers in Visual Studio 2012

$
0
0

Hello,

i downloaded some IVI-drivers and saw that they all contain IVI-COM and IVI-C drivers.

I am trying now to call the IVI-C drivers in my Visual Studio 2012 but i cannot find any examples how to do this.

 

Can someone provide a simply example project to demonstrate how this would be done?

At the end this should become also a DLL.

 

Thanks a lot for help

BR

Agilent B2902A precision source unit doesn't work anymore since firmware update

$
0
0

Hi everyone,

I developped a program with Labview 2014 to control a precision source/measure unit, the Agilent B2902A. Basicaly, it just gets intensity values from the source itself and messages from serial port from another instrument and save them in excel files. Everything worked great but I since I updated the B2902A firmware, my program doesn't work anymore. 

It keeps being blocked trying to initialize the connexion between the pc and the instrument. The instrument is still recognize by the pc. I tried many other "example programs" but none works.

Has someone already got this problem? Do you have any idea about where could this problem come from? 

Thank you for your help !

 

 

AT-GPIB NI-488.1 Jumper settings

$
0
0

I have an old ISA AT-GPIB board (180210-V1 Rev A3) with NI-488.1 DOS-driver that works fine with an old DOS computer. Now I want to move the board to a new computer with ISA-bus but it is not possible to change the application software that is using the card. The old I/O-address of the board conflicts with something else on the new motherboard, so I have to try another I/O-address, but I haven't been able to find documentation of the jumper and dip-switch settings.

 

Where can I get the infrmation how to set the jumpers and DIP-swithes to use different settings?

 

 

 

Viewing all 5665 articles
Browse latest View live