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

Controlling PXI-Profibus card using VISA

$
0
0

Hi,

 

I'm looking to control the PXI-Profibus card using NI-VISA.  I'm building a simulation environment using the PXI chassis to simulate the end system devices that our control system interfaces with.  There many PB slaves.  Also, there are different versions of the end system where will need to reconfigure the PXI hardware.  As an example, one of my goals would be to have the ability to programmatically set  the slave address for each profibus card based on data from a database.

 

So far from a previous post and reading the VISA manuals, I have the understanding that I will need to control the profibus card by using PXI::INSTR and that a sample resource name will be PXI::2::INSTR.  Basically I'm trying to implement what the ComSoft product does since I learned that is uses VISA.

 

From the VISA user manual, do I need to use Message-Based comms or Register-Based comms?  If it will be Register-Based, what is the memory map of the registers, I/O buffers, etc and a description to go along?

 

Reading up on the Profibus protocol, I see that only OSI layers 1,2 and 7 are used.  Does VISA or the PXI-Profibus card take care of Layer 2?  How much of the Profibus packet has to be built at Layer 7 before writing to an output buffer?

 

Any help would be much appreciated.

 

Omar


GPIB-USB-HS self test or instrument scan crashes

$
0
0

I'm putting a GPIB system together for the first time. Installed GPIB-USB-HS on a WIN10 system. Latest driver (16...?)

Running NI MAX shows the hardware is present, and I get an AMBER LED on the unit.

Self test and instrument scan result in a PC crash. I have updated all hardware drivers and tried different USB ports.

This seems rather basic - appreciate any help moving to square one.

 

Not able to separate the serial data

$
0
0

I am trying to make a simple serial read vi but facing a problem that all the data serially coming are not getting separated and getting the plot on the same graph. I m using comma delimiter still not able to separate the data.

 

The format of coming data :-

Serial.println("95336");
delay(1000); 
Serial.println("36.2");
delay(1000);
Serial.println("526.23");
delay(1000);

so on .

I have added the screenshot of my VI 
please help me out 

Timetravel with r3131 and GPIB-enet 100

$
0
0

Uh, new to this forum, all the topics seem way to specific for my question.

I am a TV technician, and today my boss told me to go future proof the spectrum computers.  Turns out this is a windows 2000 machine running custom software to talk to 2 Advantest r3131 analyzers via a GPIB-enet 100.

 

The custom software seems to be using data from an .ini to send parameters to the analyzer, and then outputting a trace (4 actually, but now we only need 2) on the computer.  However, if i just run the .exe on another machine it complains about "initialize.vi->NameOfProgram.vi" and talking about missing components.  The way i am guessing at this is it is missing some sort of library?  probably this library would be installed with the program (15 years ago and then we threw away the disk...). i have tried installing any drivers i could find, including for the gpib device, but these are for win7 on a win 7 machine. is that why it can't find what it is looking for?

 

Fine. Great. Someone was very clever 15 years ago.  If, Today, i want to show the trace on my screen, and i have a r3131 and a GPIB-enet 100, can i do this simply? Or do i need to re-write our custom software (i cannot do this, i am Waaay to dumb).

 

What would you guys do if you wanted to use my equipment to see a trace on a windows computer?  The program used to make it show 3 traces from one machine, but i dont even need that, really just need to show the current trace and i can set all my parameters on the analyzer with my fingers. 

 

Please, let me know if this is easy or crazy hard, and maybe direct me to the correct sub-forum.  thanks, have a great day.

 

 

 

BASICS! what is ".vi"?

$
0
0

i have mega old equpiment and devices, specifically windows 2000, scopes, and a gbpi-enet-100.

 

i have an .EXE.  when it is running it claims to be using myprogram.vi.  ".vi" seems to be a file type associated with national instruments labview (which i do not have, do not know what it is, and will not buy because i am trying to tape something together for anther year, we do not want to develop custom software again)

 

this .exe wont run in many ways, but it seems closest to running when on another old machine (NT).  it gives the same sorts of errors my working computer gives when i unplug the netowrk cable. (it seems to say i can't find my target device).

 

my guess is that all i have to do is tell the .exe where the devices are.  but it seems like there is no way to do this, and it seems like this device finding is handled by  "other native instruments software".  i have ni 488.2 (from 2000) installed, most of it seems to do nothing, but "ip assignment" finds a device that does have "NI" in its name (but i have 2 devices).

 

to be clear, i do have a (still) working system.  the gbip devices have IP assigned already. i do not want to reassign thier IP. will i break things if i reassign from anther computer?

 

Is this normal for national instruments devices from around 2000?  it really feels like i am missing a piece, but as far as i can understand from reading the forums and stuff, even things like critical drivers are licenced on a per install basis? do really need to buy a driver from 15 years ago?  it seems also like maybe this .exe cannot function unless it was "installed" by labview in some way? would i need labview from 15 years ago? would i ned to buy that too?

 

my end goal is for operators to see if a spectrum is present or absent at this time, nothing fancy at all.  you might ask "why not just put the spectrum analyzer on the desk?"  which is the right question, that is what i should do, but i am at work, so i cannot do the logical thing.  they really want me to make things "work like they always have".  is there no simple utilites available for national instruments equpiment? i get that it is very nice, fine grained equipment, but i am looking for red-light/green-light kind of stuff.  if my scope is old enough to only use gbip, is custom software the only way to use it remotely?

Serial read only works in highlight execution mode

$
0
0

Hi,

i am trying to read data from a Extech Rh520 temperature data logger. i can only get it working in highlight execution mode, i get that this is most likely a timing issue but i just cant figure it out.  i have created the most simplest version of the VI (attached) could someone please take a look and point me in the right direction.  i have tried putting delays everywhere and just cant get it to work.

just a bit of background info, this is a data logger and you can only download the data in one go.  To initiate this download you have to take DTR low then just read the data until it stops. it's at the point where DTR is taken low that doesn't work in full speed it doesn't read any data.

 

Thanks in advance for any help i receive.

Tektronix Oscilloscope - tkdop7k

$
0
0

Hello, does anybody know where I can get the Labview library tkdop7k.llb for the Tektronix Oscilloscope.  I am specifically looking for the following vis:

 

Default Instrument Setup.vi
Configure Data Width.vi
Classify Error.vi

 

Thanks.

VISA versions and VISA COM

$
0
0

Hello, 

 

I am new to this forum, but I have done some instrument automation in the past over GPIB. 

 

I am a big fan of using Excel VBA "Alt+F11" 

 

I currently have a working set-up, but I am confused about latest VISA versions. Last time I did this it was VISA 1.0 or VISA 3.0, I think latest now is VISA 5.5. 

 

I also can't find documentation to the latest version of VISA, I found a document describing NI-VISA, which dates back to 2001 and it describes viFunctions(). 

 

While latest examples seem to use VisaComLib that I am unfamiliar with, although just using ReadString and WriteString I can effectively automate 90% of my needs. 

 

Could someone point me to the latest documentation for VisualBasic/VBA that describes VISA COM 5.5 programming interface? 

 

Set ioMgr = New VisaComLib.ResourceManager
Set instrument = New VisaComLib.FormattedIO488
' use instrument specific address for Open() parameter – i.e. GPIB0::22
Set instrument.IO = ioMgr.Open("GPIB0::24")

 

 


How to save data into .csv file while having a serial communcation

$
0
0

I am working on a project since very long in which I want to serial transmit the data and plot it to graphs and later on save the whole data to .csv file but right now I am able to serial transmit and plot the data but not able to save it into .csv file only the last data is saved into it.

I want that as the data is plotted into a graph it also get saved into .csv file
please help me out  

serail coming is in format of 

123,456,789,5.235

delay(1000);

I want each data to be plot on different columns and than start following it from the second row with the same column (i.e same filed of data to be plotted in same column 

Problem for VISA async read/write for serial port

$
0
0

Hi, I am trying to use the SimpleAsynchronousReadWrite examle for reading data asynchronously from a serial resource using "SerialSession" instead of "MessageBasedSession". I am able to read some data but after a while I get the following exception.

Managed Debugging Assistant 'CallbackOnCollectedDelegate' has detected a problem in 'C:\Users\Public\Documents\National Instruments\NI-VISA\Examples\.NET\SimpleAsynchronousReadWrite\bin\Debug\SimpleAsynchronousReadWrite.vshost.exe'.

Additional information: A callback was made on a garbage collected delegate of type 'NationalInstruments.Visa!NationalInstruments.Visa.Internal.VisaDllEventHandler::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.

I have attached the file "MainForm.cs" from the example code. I only modified mbsession to sSession for serial port. This error comes on line 329 i.e. 

asyncHandle = sSession.RawIO.BeginRead(
1024,
new VisaAsyncCallback(OnReadComplete),
null);

It seems to me some internal error from the library. May be I am doing something wrong
Can you please help me. I am using NI VISA verion 15.5 and visual studio 2015.

GPIB-USB-HS+ driver not working under Windows 10

$
0
0

Hi everyone,

 

After installing Windows 10 Enterprise, the GPIB-USB-HS+ driver NI488.2 v16.0 is not recognized by Windows. The system works (still) perfectly with hard drive and Win 7 installed, but when I switch to ssd and Win 10 it's unable to find the driver.

I tried device manager > update driver software > search automatically and even pointed manually to where the driver software is located.  Also clicking on .msi file didn't solve the problem.

Could it be that the signature of the GPIB-USB-HS+ is not signed by National Instruments and Win 10 doesn't want to install unsigned drivers ? Any help or recommendation is highly appreciated. Thank you for your support!

 

Best wishes,

Johan

Keithley 2000 multiple channel read

$
0
0

I am trying to read multiple channels from the Keithley 2000 and I am having trouble resolving the error with the service request in the data read mutlple.vi. I am getting this error "A timeout occurred while waiting for a service request from the instrument". If I use the data read single.vi the program works just fine. I am not sure why the data read multiple does not work.

 

I have a GPIB to USB connection

 

 

SImulate Fluke 5700A

$
0
0

Is there a LabView simulator for an HP (Fluke) 5700A?  I need to develop a control application for this instrument, but I don't have one available immediately (May be months to acquire one).

 

Thanks,

 

XL600

VISA session duplicates every time I run the VI.

$
0
0

Hi,

The visa session duplicates everytime I try to run the VI. I checked every possiblity to diagnose the error but I could'nt.

Please refer the attached image for clarity.

Has anybody faced the same problem.

What could be problem and the way to solve it.

TIA

 

Regards,

Aswin

Anyone know how to communicate with Manta MTS-5000 test set ?

$
0
0

Hello.

Does Anyone know how to communicate with Manta MTS-5000 test set ?

I try to establish a TCP/IP connection with LabVIEW software and a MTS-5000 test set.

I have to send ASCII command in an Transmit and receive form. And would like to store infos in an Array.

Waiting for your help !

Thx. Phil


Re: MAX and Async Read/Write

$
0
0

Hi, I am trying to use the SimpleAsynchronousReadWrite examle for reading data asynchronously from a serial resource using "SerialSession" instead of "MessageBasedSession". I am able to read some data but after a while I get the following exception.

Managed Debugging Assistant 'CallbackOnCollectedDelegate' has detected a problem in 'C:\Users\Public\Documents\National Instruments\NI-VISA\Examples\.NET\SimpleAsynchronousReadWrite\bin\Debug\SimpleAsynchronousReadWrite.vshost.exe'.

Additional information: A callback was made on a garbage collected delegate of type 'NationalInstruments.Visa!NationalInstruments.Visa.Internal.VisaDllEventHandler::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.

Can you please help me. I am using NI VISA verion 15.5. 

 

Disable GPIB-USB-HS+ hankshake

$
0
0

Hi everyone,

 

I use c# to write a GPIB program as a listener-only. 

Can someone tell me how to disable the handshaking for the board (i.e. the equivalent of the GPIB Analyzer's "Participate in Acceptor Handshake" function)?

 

Best wishes,

Dennis

VISA Functions not defined, yet they are?

$
0
0

Hi all,
I have some code that was written for ChIDE on a 32-bit system. The laptop that has the code working is quite old and slow, so I am trying to upgrade it to a newer 64-bit system. However, when I try to run the code it is saying that all of the VISA functions are not defined, as follows.

 

Capture.PNG
I have triple checked that I have the correct paths (including the IVI Foundation VISA files) in the config file, as seen here. This is how the config file for the 32-bit system (with changes to the Win64 folder within the IVI Foundation folder) looks so I am unsure about where I am going wrong.
Capture1.PNGIf anyone is able to help me to get this up and running I would be forever grateful.

Thank you in advance.

Willing to pay someone to help me write a LabVIEW program.

$
0
0

If you have seen my previous post, I am unable to get that code up and running. 

I have next to no experience with LabVIEW and I am wanting to "convert" the existing code I have into a LabVIEW program. 

This is to control a FFT analyzer, which I have the NI driver for (yes, I have gone through the example program given with the driver, I am still somewhat confused)

I have nowhere else to turn to and time is limited. What I am looking for is someone who I can work with on a semi-personal level to help me get the LabVIEW code up and running, to which I am willing to pay them for their assistance. I apologise if this type of thing is not allowed here but I am running out of options.
If you are interested, please send my a PM and I can send you the existing code that I am wanting to convert (which can be opened with notepad++, since the environment is a whole other can of worms).

Send data from myRIO to roboRIO

$
0
0

So, I'm the main programmer of a team of FRC (First Robotics Competition) 

and I want to use a myRIO as a coprocessor to run the vision assistant algorithm that I prepared (this is meant for not saturating the roboRIO's processor) the thing here is that to accomplish this, I'm planning on using VISA  to open one usb port from myRIO, to send data of all the numbers that the vision assistant script returned, and transport this data using an USB cable connected from the USB port in myRIO to an USB port in the RoboRIO.

My questions are:  Is this possible? How can I make VISA detect myRIO's USB port, instead of my PC usb ports?

Within the VISA Write function (which is the function I'm planning to use to send data between both RIO's), how can I transform the data that the vision algorithm returned into the write buffer parameter found in the VISA Write function? 

Viewing all 5662 articles
Browse latest View live


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