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

power meter ni 568x

$
0
0

Hi everybody, 

I am using RF-measurement system. and I need to do power sweep and get the reading by the power meter  ni 568x. 

I am asking if that possible to get this type of reading rather than get the last value of the swept powers. 

 

 

thank you

best regards

Thoalfukar


Siglent sdg1020

$
0
0

Hi.

I've been trying to use USB to control an Siglent SDG1020 function generator but haven't been able to see the instrument neither in NI MAX nor in LabVIEW.

I checked the drivers in device manager and it is not the NI driver (brus.sys). When installing the device driver system finds the manufacturer .inf –file and then asks for the appropriate .sys – file and the only accepted .sys file in that case is a manufacturer driver brus.sys (I also tried to change the device driver to ausbtmc.sys but with no success (windows refused with the message “No device specific information found”)). After the driver installation the device shows up in the device manager tree under the branch “USB Device Controllers” as a “USB Test and Measurement Device Controller”.

 

I also tried to do the same with the Rigol oscilloscope. With no success. The only difference was the driver system installed by itself (ausbtmc.sys located in windows/susten32/drivers) and the device shows up in the device manager as USB Test and Measurement Device (IVI). NI MAX and NI LabView was not able to recognize the device. (I use NI LabView 2015 and NI VISA 14.0.1)

Everything went well (literally as it is shown in this video: http://www.ni.com/webcast/1434/en/) only with the Tektronics oscilloscope.

As an operating system I’m using Windows XP Home Edition SP3 x86.

I will be gratefull for any replay. 

NI GPIB-USB-HS+ vs NI GPIB-USB-HS

$
0
0

I have a visual basic 6 program that measures IR using an agilent 4339B high resistance meter.

The existing working PC is running Windows XP and uses the NI GPIB-USB-HS and works great.

The original code is using the 32 bit Visual Basic Language Interface  Version 1.7 by National Instruments with the NI-488 DLL .

 

When I try to use the NI GPIB-USB-HS+ controller it does not work. I installed the new driver for the NI GPIB-USB-HS+.

I unistalled the driver and went back to the NI GPIB-USB-HS controller and re-installed the correct driver for it and the program works.

 

I was trying to set the same program up on a different PC and could never get the program to communicate with the tester using the 

NI GPIB-USB-HS+ controller.  That is when I decided to verify the controller worked on the original PC and discovered it does not.

 

I also had the same issue with communications with cap bridges and had to re-write the programs using NI-VISA which the

NI GPIB-USB-HS+ works fine when with.

 

I would have thought the NI GPIB-USB-HS and the NI GPIB-USB-HS+ would both work on the same application without any 

code changes required and just updating the driver.

 

Thank you in advance for any help you can provide on this topic.

 

 

 

 

timout error on connections that are open for several hours

$
0
0

Hello everybody!

 

We are using NI Soft- and Hardware to control our measurement devices.

Everything works out fine exept one phenomenon.

 

We are connecting and initializing all our GPIB/TCPIP connections once we start our programm.

We are performing measurements, the communication is stable.

When we are leaving the system without stopping our software the connections remain opened, there is just no communication happening.

Coming back after, let's say two hours, starting a new measurement which will NOT reinitialize everything, it will just start communicating (*IDN? e.g.) an error occures.

A timeout is reported.

It seems to me that there is some sort of general timeout that will force the VISA-component to close the connection after a certain time of no communication.

I also think that it is not a _ATTR_TIMEOUT comment, because this will just work on QUERY issues (Send - Read).

 

Has anyone of you an idea if there is such a general timeout, or has anyone had the same problems?

 

Thanks in advance!

 

Best regards

Christian

NI VISA receiveng data periodically

$
0
0

Hi,

I'm trying to make a VI that receives data from an RS232 source every 100ms (10Hz) at a 9600bauds rate. The serial port configuration includes 8data bits, stop bits 1.0, parity odd, flow control none. The CTS and signals are always asserted. Problem is I need a way to sinchronize data transmission to acquire data in order (from first to last byte). Frames are composed of 28bytes (every 100ms) and do no contain ending or starting characters. If I read data with a timed loop I'm able to acquire all data, but not in order, I need some sort of trigger for this. It would be very helpful to know for example, when exactly I am receiving a byte, and somehow count time between bytes in order to synchronize (or any other way to trigger reads). I need to do this in Windows, not a real time OS. Any help or advise will be very appreciated

Multiple sensors connect to PIC Microcontroller

$
0
0

Hi,i am new in labview ,i am trying developed a data acquisition system where 5 sensors connected to the AD channel of PIC microcontroller and  its sending data serially to PC .I  am getting data in labview but i can't differentiate data ,how can i represent separately each sensor value in Labview.

Racal 3151

$
0
0

I have a Racal 3151, Wavetek 1361 & 1320.  When I use National Instruments Measurement & Automation I can see my Agilent E1406A interface but none of the XVI cards installed in my mainframe (list previously).  Am I missing something? Souldn't I at least see the VXI card address pop up when I  scan for instruments?

NI 9866 virtual simulation

$
0
0

Trying to simulate the LIN module NI 9866 in a compaqDAQ NI 9188...

 

In MAX, I'm able to add a virtual cDAQ chassis, but for modules to add no NI 9866

 

I'm  pretty up to date, MAX 15.0.0f, DAQmx 15.1.1 w/Labview 2015 64bit, XNET 15.0

Hopefully this is something simple, like I needed to have a physical one first???


crio bricked 9066

$
0
0
Im over in Germany
and a cRIO-9066 controller we have is unresponsive.



I arrived at it and it was running labview 14 with some previously installed
software. I needed to update the software so as my laptop has version 15 it
asked me to update the firmware. So I clicked update and it sent me to a

location on my C: drive called:



C:\Program Files (x86)\National
Instruments\Shared\Firmware\cRIO\7743\cRIO-9066_3.0.0f0.cfg



I put this on now the machine flashes the yellow statuss light continuously and
wont respond



Please could someone send me the usb flash drive files to recover it? I tried a
usb cable but to

Agilent 86142B OSA

$
0
0

Hi

 

I have Agilent 86142B OSA equipment and I am trying to download the trance. The Laview program (attached) runs without errors but it did not show and trace and also it returns zero points. Any one can help please?

 

 

labview interface description node won't work when compiled

$
0
0

Hi,

 

I have a vi which finds VISA resources and looks at their interface name in order to select which one to connect to.

 

I have a strange problem where, if I run the vi in labview it works fine. When the vi is compiled into an exe, it doesn't work.

 

I've traced the problem to the 'Intf Inst Name' property node which gives the interface description. When run in Labview, this property node returns the interface description, as expected.

 

When I compile the vi, this property node is returning blank strings.

 

The closest post I could find to this kind of problem was this

 

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/why-VISA-Property-Interface-Information-Interface-Description-is/td-p/2260212

 

However, the exe is running as an administrator, so I don't think it's an issue with permissions.

 

Any help would be greatly appreciated.

 

 

visa error connecting smiq by matlab

$
0
0

I am getting errors when communicating via the instrument control toolbox from Maltab (2013b) to a Rohde & Schwarz Signal Generator (SMIQ) at gpib adress 28. I used just the basic commands for generating and connecting to a visa object in Matlab.

 

And when performing fopen(visa-object) I see several errors (attached picture) in the NI IO Trace tool, which I dont understand.

What does error 0xBFFF0026 mean?

What is the feature VXI_SIGP ?

 

Could it be that i am using the wrong settings (timings?) for the GPIB / Ethernet adapter (GPIB-ENET/1000) in NI MAX? A screenshot of the settings is attached.

 

These errors happens several times (but communication with the smiq works), then Matlab crashes. Do you have any idea, why this happens?

 

I am in contact with the Matlab support, but this could also be an NI driver problem, I think.

I am using the latest VISA and GPIB driver suite version 15.1.

 

Thank you in advance!

sr830 Fast transfer mode hangs up

$
0
0

Dear colleagues. I am preparing a software for noise measurement in Labview. I encounter this problem:

When I switch the instrument into FAST transfer mode for windows (the Instrument becomes a talker and host computer is a listerner), the instrument starts sending data over GPIB.

The short description of FAST mode is here SR830 FAST mode, and the data transfer is described in SR830 manual between pages 97-103.

 

However, at high data rates (>=128Hz) it hangs up even after few hundreds of samples taken, the number of samples vary.

I get the timeout error from VISA read. The VISA read function is set to synchronous reading. Without this setting, I cannot achieve higher data rate than 128Hz.

 

The cable between PC and Instrument is roughly 2 meters long, so I think this does not cause problem.

Norma 4000 Data Acquisition

$
0
0

Hi everybody,

 

I'm trying to acquire current and voltage data from a Fluke Norma 4000. I'm using  RS232 with factory configurations , 115200 8/N/1 Hardware. I'm using the LNAOPA01 library which is provided by the manufacturer.
I get this error and I can' t find anything about it:

Error -1073807345 occurred at Property Node (arg 2) in VISA Configure Serial Port (Instr).vi
Possible reason(s):
VISA: (Hex 0xBFFF000F) Specified type of lock cannot be obtained, or specified operation cannot be performed, because the resource is locked.

Does anybody ever dealt with this problem?
I add my VI below.

Thanks in advance for any advice,
Andrea.

Labview 2015 cannot find instruments

$
0
0

Hi Everybody,

 

I am having real trouble getting Labview 2015 NI MAX to 'see' any connected instruments and would really appreciate any help/tips please.

 

I am running Labview 2015 on Windows 10. I have tried connecting to a Picoscope 2207 - and whilst the Picoscope standalone software can see and interact with the hardware, Labview cannot. I have the same trouble with the Tektronix TDS1001B oscilloscope. Both devices are connected via USB. I have the Tektronix driver downloaded in Labview, but still cannot 'see' the instrument.

 

When I open MAX and click on 'device and interfaces' nothing shows up, even after pressing refresh. The thing I don't understand is this was working a few months ago and now doesn't! I have tried uninstalling and reinstalling Labview, I have tried a different PC (running Windows 7). I am concerned that an autoupdate from Windows 10 and/or Labview 2015 might have caused an issue, or am I doing something wrong?

 

I would be extremely grateful for any thoughts and help.

Thank you very much in advance


VB.net MessageBasedSession questions

$
0
0

I am trying to convert the SimpleReadWrite(located C:\Users\Public\Documents\National Instruments\NI-VISA\Examples\.NET\SimpleReadWrite)  C code example for talking to a USB device and I am having some issues, the example work fine it just may be my conversion may be wrong any help would be apreciated.

 

This is the code I have,

 

 

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
        Try
            Dim rscName As String = "USB0::0x0B21::0x0025::4332514C323730353856::INSTR" 'Actaul name of resource

            Dim rm As ResourceManager = New ResourceManager()

            mbSession = DirectCast(rm.Open(rscName), MessageBasedSession)


            Dim textToWrite As String = "*IDN?\n" 'Standard ID query

            mbSession.RawIO.Write(textToWrite)

            Me.ListBox1.Items.Add(mbSession.RawIO.ReadString())


        Catch ex As Exception
            GenPrcs.ErrorHndl(ex)
        End Try
    End Sub

 

everything works fine until the mbsession.rawio.readstring and then i get this error

 

Capture4.JPG

 

again any help would be much aprriciated. Thanks and have a great day

9871 ports no longer showing up in rt-linux /dev

$
0
0

In our application, I wish to use the RS485 ports on an 9871 C-series module plugged into a cRio-9066 chassis.

 

I had this working; the ports showed up with names like /dev/ttyNIRIOslot6port2.  (I have another set of questions about how one could set the wiremode from within a program - we keep having to do a manual step everytime the box is booted.  Also, how to close the port, since everytime the program is stopped, I have to boot the cRio to use that port again.)

 

But the more immediate problem is that we re-loaded the SW on the cRio, and can no longer get the ports to show up (neither in the /dev directory, nor in any of the VISA interfaces).  I've tried all sorts of combos but can't get them to reappear.  I'll admit confusion as to whether it could be the case that adding some module would move them from local to the RT Linux system, to being available, instead, as a networked interface (but have never seen them anywhere else).

 

I'm attaching a screenshot of the current S/W selection.  I do have the 9870 and 9871 Scan Engine Support in.

 

Thanks,

   Andy S.

 

gpib won't communicate

$
0
0

hi all.

I have 2 identical usb-GPIB adapter, and two different PC with the same acquisition software written in LabView, in the first machine, i can use both usb-GPIB interface with no problems.

on the second PC, the first interface works perfectly, the second one, instead, is recognized perfectly in windows device manager, but when i try to communicate with my instruments, the software says "oscilloscope was not found, check the cable or the instrument", what can i try??

 

thanks for the support. David

How to check if the CIC is sending data when being the listener in that transaction?

$
0
0

We are switching from our custom-build interface board, build around the NAT7210 chip, to the standard NI interfaces.

I am currently working on porting the code to the NI 488.2 libraries.

 

In our custom implementation we were able to check the DI (Data In) bit in the Interrupt Status Register 1 of the NAT7210 chip to see if the CIC already did write a byte.

Using this, we were able to poll the interface, without actually having to call ibrd.

We could even combine this with an interrupt on that bit, so we did not even have to poll, but just could wait for the interrupt, before we started reading.

 

I am unable to find, in the documentation of the NI 488.2 libraries, if I can achieve something similar with those libraries.

 

Is something like this possible with the NI 488.2 libraries?

Or do I have to revert back to a polling mechanism, where I do a ibrd of one byte, with a small timeout, so I can do an ibwrt without having to wait for a long timeout?

how to export data from DPM-3 load cell to LabVIEW

$
0
0

Hi

I want to export the force data from a DPM-3 load cell (Transducer Techniques) to LabVIEW. however, LabVIEW does not recognize the USB port, so it cannot communicate with it. Has anybody tried to define this load cell to LabVIEW?

 

Thanks a lot

Viewing all 5661 articles
Browse latest View live


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