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

Store commands as a table of strings

$
0
0

Hi :-) new user trying to grab hold of the NI-beast.  ...and already hit up the wrong board once  oops

 

I am trying to write a tool to capture readings from a FWB6010 Gaussmeter.  The meter has a bunch of commands.  I put together a few switches to send various commands to manipulate the settings on the meter eg :UNIT:FLUX:GAUSS or :smileyfrustrated:ENSE:HOLD:smileyfrustrated:TATE 1 for instance.  

 

I would normally create an array containing these commands and then grab the appropriate command as needed, either by a numeric index or perhaps even by searching for the command name.

 

The examples and videos I've seen do not make me confident about this approach.  Really don't want the commands scattered all over the code, though.

 

Any advice, examples, slaps in the right direction would be highly appreciated.  Oh, and if you've already written something to suck the readings off a device like this, I'd love to hear more about it.

 

Thanks,

Thys


I can't find the NI Device Loader in the Service menu

$
0
0

I am trying to detect intruments in NI-MAX, one connected by USB-DAQ and one connected by USB-Serial. Despite the USB-DAQ appearing in the Device Manager, it is not in NI-MAX. And while I can see the USB-Serial COM port, I can't communicate with the instrument. The help resource suggested that I make sure that the NI mDNS Responder Service and NI Device Loader were running. I found NImDNSRS running in the Services menu, but the NI Device Loader was no were to be found. I have found advice on how to turn it on, but I don't know what I need to install so that it is available.

how to build a master-slave sytem using labview and powerline communication modem

$
0
0

hi i have to build a smart lighting system using powerline communication. This means that i will have a PLC(powerline) modem connected to my laptop and then i need to control my devices from there. i am quite new to labview and i want to know how i can interface the modem with my pc and control the devices attached to it. i don't know if VISA can be used here but i think that i will need to digital read and write to my modem . i will essentially act as a server controlling the hosts(lighting devices) in this project. please any suggestion would be a great help

VISA Wait On Event (GPIB Listen) succeeds when not addressed as listener

$
0
0

I am using LV to construct a GPIB instrument.  It will listen and respond when addressed but never be the CIC.

 

The code so far is based on the vi at http://www.ni.com/example/28508/en/ (.png file attached, I think that will work).  My codes is on a stand-alone computer and I don't want to re-write it, so I will use the example code and describe mine.

 

Note the VISA Wait On Event configured for a GPIB listen event.  The first time I run the vi, the Wait On Event times out if I don't send anything from the CIC, as expected.  If I send something, Wait On Event succeed, VISA Read reads the message I am sending from the other computer, then VISA Write sends the response.  Good so far.  

 

However, on the next loop the VISA Wait On Event should time out if not addressed - it does not time out, it plows on through as if another listen event has occurred.  VISA Read errors out.

 

I have several GPIB status reads in place for troubleshooting.  On a correct cycle, LACS and TACS are active when you would expect.  At the beginning of the next loop, LACS and TACS are cleared.  There is no Listen even present on the second loop.

 

I have the remote CIC set to Unaddress the instrument after reads and writes.  If I don't do that, LACS stays up after the Listen event.  The CIC has to actively unlisten the instrument.  That is the only way I have found around this.

 

Is this a VISA issue or a NI-488.2 issue or a hardware issue?

 

TIA

 

Ed K

set initial state of a string

$
0
0

Please see the attached VI.  It is attempting to test for a valid connection to a serial device.  It allows the user 10 attempts before it will turn off.  There is a stop button so you don't have to sit through 10 attempts.  I want an error condition to be reported and then the user can try again on a different port.

 

I would like a string "Starting..." fed to an indicator.  As the user attempts to connect, the indicator counts off the errors.  When it connects successfully, the indicator should show the response from the device.  The OR gate on the right receives a TRUE at the start, but waits for the other input before firing, which beats me since the OR condition has already been met.  Net result is not as anticipated.

 

Ideally, I would like the LED to be grey for initial state, then red or green for fail or pass.  Is there a 3-state object I am just not finding?

 

Any comments would be highly appreciated -- thanks!

Watlow EZ-Zone PM ENET RS-485

$
0
0

I am having trouble talking to Watlow EZ-Zone PM controllers with labview.

 

I cannot get the ENET to RS-485 to show up in Max. I discovered that this is due to 64 bit windows? However I can talk to the ENET to RS-485 using VISA Resource Name: ASRL::xxx.xxx.xxx.xx::1::INSTR where xxx.xxx.xxx.xx is the IP of the ENET to RS-485.

 

I also tried using the Watlow driver however if I put the above resource name in for the PC Comms Port in the example included with the driver and try to initialize the port, I get the following error:

 

Error 1 occurred at an unidentified location

Possible reason(s):

LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
NI-488:  Command requires GPIB Controller to be Controller-In-Charge.

I assume this is beacuse the  ASRL::xxx.xxx.xxx.xx::1::INSTR is not a valid input to the Watlow driver.

 

Please let me know if you have any solutions. Thanks!

 

System:

Windows 7 64bit

labview 2011 32bit

Max 5.5.0f0

ENET to RS-485

Query installed passports

$
0
0

The VISA header defines constants for each interface type. But if a use has a passport driver installed, the intfType value from viParseRsrc might return a different, unknown value. Is there a way to query these values and the interface type prefix or the library to which they belong? In other words, is there a function that can be used to obtain a table like:

"gpib" -> 1

"vxi" -> 2

...

"some new thing" -> 101

NI 9381 RS485 pinout?

$
0
0

I bought a NI 9381 device and I thought it is 2 line standard 15 pin RS485/422 serial interface wich can connect to PC. But when I get the devic I find that 3 line 15 pin interface. I just wnat to know is that still standard pin map as 2 line interface for each pin?


SR830 data storage for rs232

$
0
0

Hi,

I found a LabVIEW code here which can storage data from input signal (e.g.A/I)in SR830 and transfer it by the GPIB.

I used function generator to generate a sine wave with frequency:30Hz& Vp-p:100mVolt , conencting to SR830.

Clearly ,I got a correct result when i used the code by GPIB communication interface(left graph).

Than,I tried to change the communication interface RS232 to accept the same signal,but it has mistakes(right graph).

 

data_storge_GPIB_RS232.png

 Here is original code "data storage for GPIB"

GPIB.png

 

Here is rewrite code for RS232 by myself,but what's wrong i did?

RS232.png

 

How to get GPIB-USB-HS to work with Centos 6.5 64 bit?

$
0
0

I have a workstation running Centos 6.5  64-bit with the 2.6.32-432 kernel.

 

I have installed the NI 488.2 driver version 2.9  but NI-VISA does not detect my GPIB-USB-HS adapter.

The installation seemed to install correctly.

 

What is the trick to get this to work?

VISA USB control in

$
0
0
How to confirm the index,value,request type,request of the the USB control in fouction.And please give me some advice about the control pipe.

µQ7 ARM architecture with NI PCI-GPIB

$
0
0

Dear support,

 

we are working with the following card: http://sine.ni.com/nips/cds/view/p/lang/nl/nid/203786

 

We have designed a custom carrier board that consists of:

 

- µQ7 (Freescale iMX6 solo 1GHz)

- PCI-PCIe bridge (http://www.ti.com/product/xio2001)

- TNT5002 chip

 

We need to implement a full working GPIB interface  on this ARM platform. As I have searched, all the drivers present on the NI website are x86 related so we have to port them ourselves. To do this we need additional documentation like for example the register manual of the TNT5002 chip. We are willing to sign an NDA if necessary.

 

We have worked on this whole setup for a while and this is what we have already achieved:

 

- the iMX6 is able to detect the PCI-PCIe bridge and he NI GPIB cards through the "lspci" command.

 

What we still need to achieve:

 

- Get the GPIB communication working (port the x86 driver and address the right registers,...)

- Configure 2 addresses per GPIB chip (TNT5002 is able to do this)

 

We need all the help and documentation we can get to complete this mission.

Please direct me to the proper links and pages if possible.

 

(More info from our side can be provided under NDA)

 

Thanks in advance!

 

 

 

Reading data from external pc

$
0
0

Hi guys, I'm kinda new to the NI instruments, and I need to figure out how to read data from a PXI-1042Q, which has a PXI-8187 as an embedded controller, and an array of PXI-4472. I need to read the data from an external computer via one of the serial ports of the PXI-8187 using a home-made program in python. I've found something on how to send and retrieve data from a serial port using pyVisa, still I don't know how to communicate with the PXI-8187 and how to select the proper input from the PXI-4472. Do I need to create a custom VI on the PXI-8187 to make it listen for inputs via serial and to send the output data to the same port? Any suggestion will be appreciated.

 

Thanks in advance!

Keithley 2400: How to turn off the beep on 'enable output'

$
0
0

Hi,

 

I'm using 2 Keithley 2400 in a measurement setup. The outputs of the devices are being switched on and off a lot of times. Therefore, they are always 'beeping".

 

How do I programmatically turn of those beeps? 

 

 

Cox 4020 (4000 series) Flow Computer

$
0
0

I’m attempting to communicate with a Cox 4020 flow computer over serial.

 

It’s a fairly popular flow computer, so I’d figure I’d ask around to see if anyone knew of a driver.   My google-fu let me down in my search.

 

If not, how do you configure the serial port? The thing is expecting 10 bit characters.

 

See page 32 of http://www.badgermeter.com/Badger-Files/PDFs/Industrial-Products/40104020FlowComps.pdf

 

The VISA Configure Serial Port Vi does not give options beyond 8 bits.  

 

The only thing I could think to do is to convert each character to a Boolean array, append all the arrays representing multiple characters to each other, then convert it back to a string.

 

The only part that worries me, is what to do if the number of appended bits MOD 10 isn’t zero.. I don’t know if the meter will barf or not with extra bits..

 

Before I go to far down the rabbit hole, figured I’d ask if anyone has been down it first, or had any insight.

Thanks!

 


Agilent N99XX Series Analyzer Instrument VI - Noticed error

$
0
0

Hey everyone, this is not a question as much as it is an update. For the Agilent N99XX Series Analyzer the Initalize.VI will return an error due to the name string being different. The VISA Read of *IDN? compares the string to the model. However since Agilent changed the names (from firmware 7.76 of the fieldfox), now it gives an error because the FF sends back the word keysignt instead of Agilent! Just replace the word Keysight instead of Agilent and everything will work again

 

Useful to know in case someone runs into a problem.

How can I use labview to view data from omega cn7500

$
0
0

I've just started using labview last week for an undergraduate research position and I can't figure out how to communcate with an Omega cn7500 we have in the lab. My knowledge of labview of is somewhat limited but I've read the manual and I know the basics. Any help would be greatly appreciated

 

-Maarten

Visa Timeout Lakeshore 330 Temperature Controller

$
0
0

Hi,

 

I'm using Lakeshore 330 Temperature Controller to regulate the temperature in my LabVIEW program for measuring resistivity towards temperature. Thus far there have been no issues but as of late the device keeps showing this error:

 

VISA: (Hex 0xBFFF0015) Timeout expired before operation completed

error code -1073807339

Visa Write in Lake Shore Cryotronics 330.lvlib:

Serial Write.vi->Lake Shore Cryotronics 330.lvlib:

Initialize.vi->Lake Shore Cryotronics 330 Controller Output.vi

 

Resetting the device occasionally solves the problem, but not for long. Within a few minutes or so the program would experience a timeout again. Another program which uses LS 330 also for regulating the temperature faces the same issue. Additional info: the device is connected through GPIB.

 

My question is, is there a way to check where the source of the communication problem is? I'm assuming it's not the program since the program used to work just fine.

 

Thank you so much for any help :smileyhappy:

Watlow PM with Modbus TCP

$
0
0

Hi community,

 

I have a watlow pm temperature controller connected to my computer with an ethernet cable. I need to communicate with the device via modbus tcp. I know for sure that the unit is functioning as if I use a modbustcp test program (see the first attachement), then I can read the temperature of the K type thermocouple which is connected to the unit. (the IP is 192.168.10.3, and I read two words from address 360). The temperature on the screenshot is 23.61992C

 

I would like to do this from LabVIEW by using an IO server. My problem starts at the beginning. I right click on my computer >> new >> I/O server >> Modbus

then in the popup window I select "Modbus ethernet" in the top right corner. I have attached this popup window. What is the Address in the communication settings section. The IP need to be entered at the bottom, so I have no clue what is the Address field is referring to.

 

Then I try to create bound variables... I see a huge list of registers, but honestly I dont understand how the address 360 I use in the standalone program translates to this list. Which one should I select from the list? Whatever I select gives me either 0 or FALSE if its a boolean. According to the documentation 360 is the relative address and the absolute is 400361. Actually there are a register list from 400001-465535, but if I select 400361-400362 I still read zero.

 

Reading only zeros and FALSE values... thats suspicious. Something is wrong.

 

Please help out with your thought! 

Visa Read

$
0
0

In my project i have 2 task

 

(1).Read data of sensor (attached to arduino board) serially  and display on LabVIEW.

(2).Control output(just ON-OFF) pins of arduino using LabVIEW.

 

 

So,for that i am using TAB in labview.created 2 TAB called Oscillospe and Input.

 

If i first start Oscilloscope it work well.

But when i come to Oscilloscope tab after using Input tab.

 

It gives Time out error (VISA read)

 

If i am executing in Highlight mode it works well

 

Viewing all 5662 articles
Browse latest View live


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