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

MODBUS IO server serial: No Known Values of Shared Variables, but upadaing ON

$
0
0

Two IO servers should communicate over TCP/ethernet network by using RS485 and  Modbus Serial protocol. Servers are accessing the same COM port (10) but with different addresses (1 and 2). Communication is at first successfully tested without LabView, with standalone applications (Modbus Poll) as shown below. There is some warning about illegal data value, but there is correct value on screen.

 

DSC_0095.JPG

 

When  LabView and VSPE software is used, there is no value. It is worth mentioning how the connection is established but shared variables show "No Known Value" in DSM.

DSC_0101.JPG

 

In LabView application (attached as .lvlib and .vi files) there are zeros and no errors at all.

DSC_0097.JPG


Driver Wizard Possible Problems After Forced Windows 10 Creators Update

$
0
0

I have a custom PCI board that I had been using the VISA driver wizard and LabVIEW with.   It has been working fine until recently. I am able to write to and read from the board with no problems but the interrupts no longer work.   The one thing that changed recently is MS forced an upgrade on this PC so I could have the latest X-Box and Candy Crush games.  I am curious if anyone is aware if the Creators Update added some new layer of protection that breaks the interrupts.  

Timeout error Visa read with Yudian controller 508P

$
0
0

Hello, I have designed a program for controlling and monitoring 3 of these controllers embedded into the furnace (see picture 1). Program interface looks like this (see picture 2). The operation behind it is that I have flat sequence structure, where first frame has event structure and enables to activate different buttons, then 3 frames with monitoring.vi inserted into case structures. So I can active them when I run specific zone. The problem is that after I launch for example 2 zones, after some period of proper monitoring I receive a timeout error from one of the monitoring.vi. However, the data package arrives later, so after that when another monitoring.vi asks for another package I have 20 bytes instead of 10 at port, and this monitoring.vi reads data from previous one and so on, it looks like zones have changed between each other. After this one error it works fine. I have tested it for 3 hours and received this error only ones, usually when I start furnace. 

Do you have any suggestions? May be my programming is not good. You can check screen of vi. See picture 3. Monitoring.vi - picture 4.

FormattedIO.ReadBinaryBlockOfByte

$
0
0

I am trying to read binary trace data from RS spectrum analyser.  I have had this working before with VisaNS.dll 13.0.45.167, but NI seem to have introduced changes that mean that my code no longer works.

 

I can use NI MAX to execute the commands manually and get the correct data from the spectrum analyser I am trying to use.

"FORM REAL,32"

"TRACSmiley Very HappyATA? TRACE1"

Read two bytes: #4

Read four bytes: 2004

Read 2005 bytes: ... correct data...

 

Using VB2013 the following command  returns exception "The binary block header was not found in the input stream":

 

Dim byteData(2004) As Byte

Session.FormattedIO.ReadBufferSize = lngBytes + 1               - omitting this command makes no difference.

byteData = Session.FormattedIO.ReadBinaryBlockOfByte()

 

I know that the Session is good as it returns the #4 and 2004 that I get with NI MAX.

 

I have the following references:

- NationalInstruments.Visa.dll - 13.0.45.167

- Ivi.Visa.dll - 5.8.908.0

Any ideas would be gratefully received.

 

Long measurements using Keithley 2450 SMU, USB Communication

$
0
0

I cannot perform IV curves and properly download the data with Sourcemeter Keitley 2450. I tried with the example program "Keitley 2450 Sweep and Acquire Measurements.vi" from keithley.com but I got the following error:

 

Error -1073807346 occurred at VISA Write in Keithley 2450.lvlib:Error Query.vi->Keithley 2450.lvlib:Enable Measurement Auto Range.vi->Keithley 2450.lvlib:Configure Measurement Range.vi->Keithley 2450 Sweep and Acquire Measurements.vi

 

VISA:  (Hex 0xBFFF000E) The given session or object reference is invalid.

 

Any suggestiong/help please?

 

Thank you

 

Dave

Capturing .csv files from a R&S Spectrum Analyzer

$
0
0

Hi,

 

I am working on a project in WPF C# to save the trace of a spectrum analyzer to a .csv file on a PC for post processing.  When I call the SaveTrace() method nothing seems to happen.

 

using NationalInstruments.Visa;

namespace dcre {
    public partial class MainWindow : Window {
        private MessageBasedSession mbSession;
        ResourceManager rm = new ResourceManager();
        string resString = "TCPIP::169.254.173.194::INSTR";
        mBsession = (MessageBasedSession)rm.Open(resString);

        private void SaveTrace(){
            mBsession.RawIO.Write(@"MMEM:STOR:TRAC 1,'Trace.csv'");
            mBsession.RawIO.Write(@"MMEM:DATA? 'Trace.csv'");
        }
    }
}

How can I unistall IVI specified driver(IVI-C driver)?

$
0
0

I still can't connect Agilent oscilloscope with Matlab after I installed the IVI specified driver for Agilent DSO7012A, so I delete something about IVI compliance package. Since then I can't acquire 'ag6000' driver name after inputed the code"iviInfo = instrhwinfo('ivi');iviInfo.Modules" in Matlab.

When I try to reinstall the IVI specified derive ag6000, Installation Summary always says: no software will be installed or removed.

How can I reinstall my IVI specified driver?

PCIe-1430 with NI-VISA API compatible on linux?

$
0
0

We want to use the NI-VISA API to control the PCIe-1430 framegrabber and hence the camera. After reading about the NI-VISA API it looks as if every serial communication hardware is supported on a couple of linux distributions. However the following page got us confused:  http://www.ni.com/product-documentation/52786/en/

On that page it states:
"Limited functionality for PCI and PXI RS-232 hardware. PCIe and PXIe are not yet supported" In the NI driver and software enumeration.

 

Hence, we are wondering is the PCIe-1430 framegrabber in combination with the NI-VISA API compatible on linux ?

 


Driver Type for device commincated via GPIB-USB-HS

$
0
0

Hi all,

I have a device with GPIB interface and a NI GPIB-USB-HS cable. I found a driver for the device with the type of IVI. I wonder if this type of driver could work with GPIB-USB connection.

 

Thank you so much

 

National instruments and stanford research lock in amplifier

$
0
0

Friends,

 

Can my 6353 X-series DAQ be used for data readout from a stanford research 844 lock in amplifier. The lock in offers   RS 232 and GBIP connectivities?

Ethernet communication with Laurel meter

$
0
0

I am trying to communicate with a Laurel meter (Counter for an encoder) over Ethernet and I can't really get anything to work...

 

This is what I know:
I can communicate and control the device with their own windows program

There are no other devices connected to ethernet.

I'm pretty sure the address of the device is 192.168.0.1, and the PC is 192.168.0.2

I'm pretty sure the port is 502.

Their windows program lists: TCP Port as 502, UDP Port 2 as 0 in Advanced settings. But also lists the device as having 'Port 2' as 63179

The device has two modes. Continuous mode, and Command mode. It was defaulted to Continuous mode, but I changed it to Command mode. I couldn't get either to work through anything other than their own program.

 

I've tried using the TCP modules, but I can't do anything except open a connection (With 192.168.0.1 and port 502). I've tried to reset the device, which from my understanding should be accomplished by writing *1C0 . But I can't even get that to work.

I tried using MAX, it could not find the device. I was able to open a VISA session by going to 'Manual entry of Raw Socket' and using the IP 192.168.0.1 and port 502. But I still can't reset the device.

 

Their ethernet manual: https://www.laurels.com/downloadfiles/ethernet_manual.pdf

Their serial protocol manual: https://www.laurels.com/downloadfiles/serialcom2.pdf

 

Any help is greatly appreciated!

 

Problems finding VisaComLib documentation

$
0
0

Hello,

 

I have an old Excel VBA macro that uses the VisaComLib to read data from an oscilloscope and stores it in a spreadsheet. Since now I have a new oscilloscope I need to adapt the old macro code to work with the new oscilloscope.

 

I have looked into the help files provided by NI-VISA, but I couldn't find any reference to VisaComLib, the Internet has not helped either. I would like to know where I can find any reference documents about the VISA COM library.

 

Thanks.

Autodetect GPIB when plugging in

$
0
0

Hello, I am trying to automatically detect when a GPIB 488.2 is plugged into my device so that I can disable the buttons on it, i.e. enter remote mode. Is there a pin of the GPIB I can route to my micro controller that will be pulled high or low when connecting? I don't know a whole lot about GPIB. Our old version of this device was capable of auto detecting a 488.2 so I know it is possible but it was designed 25+ years ago so there is no way of figuring out how its done.

VISA: (Hex 0xBFFF0011) with cRIO-9030

$
0
0

Hi,

In my project I use cRIO-9030 connect with a third party board using USB-RS232. I got the error VISA:  (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

From other forum questions, I tried to change the alias name to a string like VISA3 and it works.

The problem is after every time deploying new image, the alias name is always removed.

I wonder if there is way to keep this alias name in file and be set to the VISA port or not.

 

Thank you very much for your time reading and answer my question.

Issue with controlling a heating element using PID vi

$
0
0

Hi everyone,

 

I'm facing a hard time to maintain a tide control of a heating element using labview pid vi. My project requires maintaining precise control over a range of temperatures (180 - 360 degC). I have tried tuning using ZN and Tyreus-Luyben methods in addition to using the PID autotuning wizard vi yet none of them gave me good results. For the set up I'm using a SSR  with the following vi.

I would appreciate your help as my  knowledge with labview is quite lacking 

 

Cheers 

 

Moha

Heating element front.PNGHeating element vi.PNG


How can MCU communicate to GPIB-USB-HS ?

$
0
0

HI NI,

I am working with TM4C1294xl evaluation board http://www.ti.com/tool/EK-TM4C1294XL, trying to communicate the test equipments with GPIB interface. I can't use any OS for this project due to the timing constrain. The simple way to talk to the device is through NI GPIB-USB-HS cable.

 

TM4C1294xl is programed with tivaware (bare-metal SDK package from manufacturer). Right now I have configured the usb port as Host CDC, and able to send / receive data from usb serial device through usb Bulk in/out pipes respectively.

 

I am wondering whether this solution is feasible and how TM4C1294xl can communicate to GPIB-USB-HS via its USB port as generic bulk or any other type of device?

 

Please advise, thanks in advance

Mike

Velleman K8090 strange response

$
0
0

In order to get the firmware on the Velleman k8090, I send 

 

\04\71\FF\00\00\8C\0F

 

However, as soon as I write the above command in a string constant (codes display), it becomes \04q\FF\00\00\8C\0F

 

The 71 has changed to q.  Any ideas why this is happening?  The command still works.

 

AVL Digas 4000 - Problem getting data

$
0
0

Hello everyone, i am a university student at my final year and as a project i am trying to build a block diagram for getting some datas from an engine. But i am having problems communicating with AVL Digas 4000. Now i try their software IsoTec.exe and there is no problem getting datas with it. But when i try to get some data with labview these errors occur.

In the first picture when i try to connect Return count to Byte count there is no problem with getting data however the data i get is not enough to derive something from it. You can see the situation on the second picture. And after a while working like this i gives an error you can see it in the 3rd pic. After pressing run again it starts running again and begins giving random bits of the data you can see it in the 4th pic. But it is working, so i break the connection between Visa W and Visa R and connect 144 constant to Visa R byte count it gives much more info so i can derive something from it you can see it in the 5th pic. But after 4th or 5th time it gives an error again (6th pic) and this time it wont run again until i break the connection between the constant and reconnect the Visa W and Visa R. And then i run the vi like this a few times, break the connection again, connect the constant again to get some more useful data and then the same thing happens. I am not able to get a constant data flow without an error. 

 

Can you please help me with this issue? Thank you very much in advance Smiley Happy

Increase acquiring rate of Agilent 34401A multimeter

$
0
0

Hello, 

I'm using Agilent 34401A to measure DC voltage from a Hall Sensor through GPIB connection. It reads 3 points per second, approximately. I need to increase this number.

Can anyone help me? I've already tried but no sucess.

 

GPIB Error when connected to 2 slaves

$
0
0

Gurus,

 

I'm working with a customer in setting up handler equipment with an ATE using GPIB interface.

The ATE is also connected to an external voltmeter used by test programs for calibration.

VM address is 22 while handler equipment is address 16.

During test program loading, the tester will validate the test program & resets the external VM. This results to the attached error. The workaround is to physically remove the GPIB connection of the handler equipment until the test program is validated, only then the GPIB connection of the handler can be put back.

Appreciate any inputs from you on what could be wrong or what can I further investigate/debug.

 

Viewing all 5662 articles
Browse latest View live


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