Subscribe: Instrument Control (GPIB, Serial, VISA, IVI)
http://forums.ni.com/rss/board?board.id=140
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
communicate  communication  connection  data  device  error  gpib  install  instrument assistant  instrument  labview  run  serial  visa 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (2)

Feed Details and Statistics Feed Statistics
Preview: Instrument Control (GPIB, Serial, VISA, IVI)

Instrument Control (GPIB, Serial, VISA, IVI) topics



Instrument Control (GPIB, Serial, VISA, IVI) topics



Published: Tue, 21 Nov 2017 02:54:42 GMT2017-11-21T02:54:42Z

 



Secuencia de leds guardada por usuario

Mon, 20 Nov 2017 23:37:25 GMT2017-11-20T23:37:25Z

Cordial saludo para todos.

Me piden un instrumento virtual en el cual el usuario pueda diseñar una secuencia de luces la cual se debe visualizar en un conjunto de 10 leds en linea, las condiciones son las siguientes:

1. El usuario determina la cantidad de secuencias que guardara.

2. El tiempo que dura encendido cada estado, donde el tiempo ingresado sera igual para todas las secuencias.

3. El sentido en el que se visualizaran las secuencia diseñada, de primera a ultima o viceversa.

 

Adjunto lo que tengo hasta el momento, esperando su colaboración.(image) (image)




VISA error -1073807360

Mon, 20 Nov 2017 21:25:17 GMT2017-11-20T21:25:17Z

I have searched the board and not found an exact example of what I am experiencing. The application I am using has run successfully for years and has had no problems. All of the sudden, this error pops up. The com port drivers are all up to date, and as far as I know there have been no updates or changes to the machine that it is running on. I have attached the VI for good measure, any suggestions as to where I should look next?




visa delay

Sun, 19 Nov 2017 13:45:17 GMT2017-11-19T13:45:17Z

hi 

I am using visa to receive some data from a microcontroller (AVR) , but between send a string by AVR and receive it by Labview have a very big delay. (sending of data by AVR === no delay  &   receiving by Labview ==== very big delay) . what is the problem???

thanks

   




Serial communication with data acquisition device issue

Wed, 15 Nov 2017 13:35:05 GMT2017-11-15T13:35:05Z

Hello everyone,

 

I am using a DATAQ DI-145 data acquisition device to obtain values that will correspond to voltage amplitude. I have a working code for such using ActiveX controls, however it is a bit slow and dependent on externally provided software, so I am experimenting with serial communication. I read the (attached) device's protocol, and I installed visa drivers for the instrument to communicate in LV. Reading around, I created this code (attached sniplet), however neither the read nor write options seem to properly work. There is a series of basic commands in the protocol, out of which I also get no response (and occasionally the VISA timeout error). The same happens when I try the VISA test interface in MAX (for some reason i also get more ports than the instruments i have in). 

 

Specifically, I quote from the protocol: '' Responses to this set of commands include echoing the command, followed by a space (0x20),
followed by the response, and ending with a carriage return (0x0d). For example, the command "info 1" generates the following response ''info 1 1450(0x0D)'' . Does this mean I need a carriage return termination character to be enabled on read/write? I fiddled with both timeout (2s,10s) and termination character enable/disable in test panel and not much seems to change when trying to send info\s0 sommands etc.

I'm very new to serial communication so I might be missing something obvious (for example, why are transmit and receive buffers on 0? what does it mean?) or doing something wrong. Would appreciate some guidance.

 

Finally, since I am trying to avoid using the visa property bytes at port, does me setting a bytes to be read control make me miss any of the continuous stream? And is the empty string and feedback node sufficient to distinguish between different measurements?

 

Nafsika




How to save or recall a state in Keysight PXA 9030

Wed, 15 Nov 2017 06:20:24 GMT2017-11-15T06:20:24Z

I am using LAN interface to control my PXA 9030A analyzer and i am unable to find the option to recall a state of the analyzer.Could anybody help me in this context?

Thanks,

Wazib




GPIB Analyzer Software Install Error

Tue, 14 Nov 2017 20:09:27 GMT2017-11-14T20:09:27Z

I am trying to install the GPIB Analyzer (http://digital.ni.com/public.nsf/allkb/848F027883BD6429862571B8001DFEDC) so that I can debug a 488.2 interface. However, after selecting the file path to install to and hitting continue, I get the error:

 

"Could not open the file named 'C:\Users....\CVIRT31A.EX"

 

The file is located in the same folder as the rest of the install. What's the deal?




GPIB Analyzer Software Install Error

Tue, 14 Nov 2017 20:08:50 GMT2017-11-14T20:08:50Z

I am trying to install the GPIB Analyzer so that I can debug a 488.2 interface. However, after selecting the file path to install to and hitting continue, I get the error:

 

"Could not open the file named 'C:\Users....\CVIRT31A.EX"

 

The file is located in the same folder as the rest of the install. What's the deal?




Instrument I/O Assistant causes VISA error 0xBFFF0072, VISA resource available but cannot access it

Tue, 14 Nov 2017 18:43:55 GMT2017-11-14T18:43:55Z

I'm running LabVIEW 2017 on a desktop PC.  The PC is connected via a USB-to-serial adapter to an RS-232 serial port on a Tektronix DMM4040 multimeter.

 

I place an instance of "Instrument I/O Assistant" onto a VI's block diagram. Using the Instrument I/O Assistant "wizard" dialog, I can communicate with the DMM4040 as I create the sequence of steps to be executed--e.g., Select Instrument, Write, Query and Parse, etc. If I click on the wizard's "Run>" button, the script runs fine; everything works.

 

Now I click on the wizard's OK button to close the dialog and render the code in the Instrument I/O assistant node on the block diagram. When this process completes, I click on the VI's "Run" arrow (CTRL+R) to execute the VI.

 

At this point the error dialog shown in Figure 1 appears:

 

(image)

Figure 1

 

If I close all LabVEIW programs, restart LabVIEW, open the VI, and then run the VI, the program runs normally; no error dialog appears.

 

If I now open the Instrument I/O Assistant wizard, and then immediately click OK to close the wizard, I get the error message again when I run the VI.

 

So it appears the Instrument I/O Assistant code has a bug(?) that is perhaps failing to release system resources associated with the virtual COM port the DMM4040 is using, and this is causing the error.

 




How does switch matrix card PXI 2535 work without GND?

Tue, 14 Nov 2017 03:21:49 GMT2017-11-14T03:21:49Z

Hi guys,

 

I am using switch matrix PXI 2535 for continuity testing. When i see the datasheet i found that there is no GND reference, i mean there is no GND from connector. can anyone tell me how does the card work and what would be the GND reference for the instrument is it Tester GND or anything else?

 

Regards,

Alekhya




How to find USB device ID after set up in NI VISA

Mon, 13 Nov 2017 18:58:28 GMT2017-11-13T18:58:28Z

After NI VISA creates and installs the driver to a USB device, it is required to find the VISA instrument description to the USB device. 

 

You can easily find that long string in MAX if the driver is properly installed. But my question is what if you don't have MAX installed in the PC. How do you find the descriptor string without MAX?

(image)




Communication to Vötsch oven

Mon, 13 Nov 2017 12:13:55 GMT2017-11-13T12:13:55Z

Hello, how to communicate to a Vötsch oven?

(in the past the name of the company was: "Haraeus Vötsch"     now: www.weiss-technik.com)




Modbus CRC16 generation question

Mon, 13 Nov 2017 07:18:37 GMT2017-11-13T07:18:37Z

Dear guys

        I have a problem in the edit the CRC16 code,i can't get the CRC16 checksum is same as the correct command list showing.pls help to have a look about my Vi,if have a bug or no attention point,thanks a lot.attached my vi,fyi.




Basic CAN Bus Example

Sun, 12 Nov 2017 10:50:25 GMT2017-11-12T10:50:25Z

Hi everyone,

I have questions about CAN Bus. It is the only communication bus that I did not use in LabVIEW. So I do not know fundamentals of CAN in LabVIEW.

 

To understand similarity, I will attach a VI that I wrote in LabVIEW to communicate with a device without any NI Hardwares with RS232 cable. This VI works. There is no problem.

 

But as I said, I have no experience with CAN Bus. I created a CAN VI which is similar to the RS232 VI. But in RS232 VI, the data packet came in hex (string) format since I used VISA functions.

 

In CAN VI, I have specification of device. I know numeric representations of variables. But I guess I can not use VISA functions. So the hex packet will come in string or not??

 

Please just make a basic CAN example that is similar to the RS232 VI I attached. In this way, I will be able to imagine what happen.

 

Thanks




GPIB communication issues between PC and device

Fri, 10 Nov 2017 09:57:45 GMT2017-11-10T09:57:45Z

Hi ,

 

I have a device, which has an older GPIB version(it is DOS95 base I think). And I want to hook it up to a WINDOWSXP PC which has an updated version of GPIB, but whenever I do it, the WINDOWS XP can't detect the device.

 

The device, can run on an old DOS based computer. I tried connecting to the device in parallel (using the windows XP PC), so I could check what GPIB commands trhe device is throwing(using NI SPY). But whenever I do that the device wont communicate. However, when I remove the parallel connection to the Windows XP, the device can communicate again.

 

Can you help me on this?

 

Thanks!
Appreciate your help

 




Encoder Mike 18011 Controller and NI Max

Wed, 08 Nov 2017 20:35:11 GMT2017-11-08T20:35:11Z

I am currently working with an Oriel Encoder Mike 18011, with no access to the original software floppies. I am trying to communicate with it over serial, but I am having issues. I connected the controller via rs232 and opened NI Max to communicate with it over serial.

 

When the Data was read on the press of the rem/loc button when it was local, this was the result:

1: Read Operation
Return Count: 10 bytes
\FC\DF\1F;\7F\DF\FF\FE\DC\FC

 

Can someone interpret this data/help me with communicating with the Encoder Mike?

 

I am using a non standard serial connection (shown in manual) connecting the pin 7 of a DB 25 and a DB 9 to each other as ground. A DB9 is connected to a DB25 with only pins 2,3, and 7 used on each connector, neglecting the tying together of pins mentioned in the manual I am also using a CommFront USB to Dual RS-323 Converter Model Number USB-232-A-1

 

 

The manual is here:

http://uhv.cheme.cmu.edu/manuals/18011m.pdf




suggestion for serial communication thermometer with ASCII commands (for teaching purposes)

Wed, 08 Nov 2017 15:38:06 GMT2017-11-08T15:38:06Z

Hi everyone,

 

maybe off topic but I can't find good answers on google.

 

I am teaching basics about LabVIEW programming to students and I would like to make an exercise where they have to create a small simple interface to program an instrument (select chan num XXX, start reading with interval...) and continuously read answers from the instrument, extract data, plot it on a graph and save in log file all inside some parallel while loop... Nothing fancy, just the basics.

 

I therefore looking for a "cheap" (around 200 euros) digital thermometer with 1 or 2 channels (RTD or thermocouples) which has a digital screen display, a serial port rs232 for communication with the computer based on ASCII commands and a good documentation which describes communication protocols parameters and lists of ASCII commands, because I want the student to spend a bit of time looking for the information in the documentation but it has to be done within reasonable amount of time.

 

A great thermometer for that is the ASL F200

https://www.isotechna.com/F200-Precision-Thermometer-p/f200.htm

 

but it s a bit pricy for my use here and I don t need such accurate instrument.

 

Maybe someone has good suggestions for me

 

thanks a lot

 

regards

 

Hicham




viRead() in VC++

Wed, 08 Nov 2017 02:39:01 GMT2017-11-08T02:39:01Z

用Vc++开发的一段代码,用于从示波器中读取内存的波形数据,连接通过LAN.单步调试时,viRead能够读出仪器缓存的数据,1413字节,但是当运行这段程序时,viRead就只能传回12字节的数据,也就是仪器缓存中数据快的头:#9000000000,viRead的返回值还是VI_SUCCESS.




GPIB Error when connected to 2 slaves

Tue, 07 Nov 2017 22:46:04 GMT2017-11-07T22:46:04Z

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.

 




Increase acquiring rate of Agilent 34401A multimeter

Tue, 07 Nov 2017 18:09:00 GMT2017-11-07T18:09:00Z

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.

 




AVL Digas 4000 - Problem getting data

Tue, 07 Nov 2017 15:29:05 GMT2017-11-07T15:29:05Z

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 (image)

 

Edit: I put the vi too (image)