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

Reading and writing to FTDI chip with VISA

$
0
0

Hello all,

 

I've been scouring the web and the NI forum for the past couple days trying to find a solution for my problem but nothing yet.

 

I have a PIC18 micro with its UART connected to an FTDI chip which is plugged into my PC via USB. I'm trying to use labview to do some very basic reading and writing but I can't seem to get it to work. It will write data out to the chip just fine; but it wont read anything coming back. In fact it tells me that there are 0 bytes in the buffer. I've tried all of the built in labview example and none of them seem to work. I also tried the examples on the FTDI site and they don't work either. I am using DTR flow control.

 

I have a logic analyzer reading the tx/rx lines coming out of the PIC and they are as expected.

 

I can't get it to work in MAX either.

 

Does anyone have any ideas of what's going on?

 

 

 

I also noticed that even though I use some 'wait' blocks between writes, when I use my logic analyzer the waits don't happen, all the transmitted bytes are right after each other...I even bumped up the waits between each write to 5 whole seconds to see if it had anything to do with a delay getting on the bus.

 

Thanks for your help,

 

Jason


Measurement Computing USB-DIO96H driver issue with Labview 2012 SP1 on Windows 7 x64

$
0
0

Is anyone else having issues with measuremetn Computing's USB-DIO96H driver in Labview 2012 SP1. It throws warnings in Labview when loaded that are unresolvable as you can't save to the DLL driver file. Also it regularily crashes Labview randomly. I am not impressed with their driver. Anyone have any suggestion other than replacing with NI-DAQ solution, which I am working on?

MY program runs a watlow F4 controller that runs and eviromental chamber

$
0
0

Hello!

 

So my program is suppose to run an enviromental chamber through rs485 serial to usb converter. it should ramp to 25 C then go to -40 C and hold for 30mins, next it ramps to 90 c and holds for 30 mins. It should go through these cycles 200 times and end. right now it goes all the way to 90 and holds fine, but instead of ramping back to -40c it tres to ramp to 90 and hold continuosly. Can anyone help? program below.

low voltage oscilloscope problem

$
0
0

hello everyone,

the interface of my oscilloscope(agilent dso 7012B) is blocked, when i change the input channel amplitude from high voltage to low voltag (from 1 v to 30mv ) without changing the vertical range to 0.019 v .(so i'am obliged to set the vertical range to 0.019 to run correctly the interface ).

notify that when my interface is blocked the icon of "trigd?" flashes in the screen of  the scope .

i'am tried to change the level of trigger edge to low value (0.1,0.001,0) but he problem is the same .

but when i change the input channel amplitude from low voltage to high voltage the program run correctly and he didn't block  .

thank you :)  :)

 

GPIB-USB-HS : function ibWait suddenly gives a EARG(4) Error after installation of only .Net Framework 4.5 on a windows 7 PC.

$
0
0

I have (several)  .Net application using the NationalInstruments.NI4882.dll which works fine with

-  GPIB-USB-HS

-  Driver version 3.02

-  Windows 7

-  .Net Framework 4.0

 

However, If I only install  .Net Framework 4.5 (and nothing else has changed), the compiled program which previously worked fine, suddenly does not work anymore.

In the NI IO Trace it can be seen that only function IbWait does not work properly. It gives an EARG(4) error..

It seems to do an improper call   "ibwait (GPIB0, 0x91300000)"  instead of the normal "ibwait (GPIB0, 0x00000000)".

 

I have tried the latest driver version 3.1.2 also.. but it gives the same error.

 

Can any advise be given here ?

 

Greetings

Jos

 

VISA RS232 read freeze -> LV stuck on "resetting vi" -> VISA resource inaccessib

$
0
0

I have a simple vi (attached) that reads from a serial port (actually, a USB to serial converter) in a timed loop (in case you wonder why the vi is written the way it is, the instrument I'm trying to read sends status messages every 20 ms, but I only care to read one every 2 econds or so, so I can safely discard the others).

 

The vi starts fine, but after a randmom number of reads (can be tens, hundreds or thousands) it freezes, and neither the "stop" button programmed into the vi or the "abort" button can terminate it. However, LabView is still responsive at this point, and I can close the VI, which results in a message "resetting VI: [vi name]" being displayied by LV indefinitely. The only alternative is to force close LV using TaskManager. Unfortunately, when I subsequently try to acess the VISA resource using either LV or NI MAX, I get an error message: 

 

Error opening resource:
ASRL3::INSTR

VISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.

 

The only way of accessing the resource again is to completely reboot the system (even disconnecting and reconnecting the USB adapter seems to have no effect).

 

I found a number of similar posts in the forums, but none contained a solution. I tried to implement a few suggestions found there (like disabling power management on the USB controller and inserting a delay between subsequent read operations) without success (although since I inserted the delay the problem seems to appear after a longer time).

 

I also captured a trace of the VISA communication, that I'm attaching. You can see at line 138 that the read operation did not return. This is the point where the vi freezes. The subsequent messages are a result of me closing the vi, force closing LV and then trying to access the resource again.

 

Any idea?

 

Thanks

 

Giacomo

oxford x-lab 3000

$
0
0
I am considering to buy a Lab-X 3000, 
But I still cofused and have several question, hope I can get ansdwer in here..
I understand that these require configuration based on the application.
Are the machines sell already configured? If yes, what are they configured for? Can one change configuration to suit one's needs? If no, do the seller provide a method or instructions for configuration? We are a small lab and I am not experienced with this equipment and want to ensure that I am able to use the equipment I purchase for its intended purpose. We will be testing sunscreen lotion for the presence of Zinc Oxide. Thank you Jayme

Communication crashes with blue screen

$
0
0

Hi All,

 

I am developing a user interface using USB communication. I have to read large number of bytes(40000 bytes) from the port. I divide this task by sending query multiple times. I have attached the application. In timeframe VI depending upon the timeframe I will send the query in read the reply. 

 

The communication is properly takes place untill I change the timeframe value to 10 ms. It will read the whole 40000 bytes but not in one go. I will send that querry 20 times to that port. I am using LabVIEW Professional Developement syatem Windows 7 32 bit.

 

Please help me out with this problem.

 

Reagrds,

Manisha


metrix MTX3352

$
0
0

Hi,

 

I have an metrix MTX3352 scope and I'd like to communicate with it via ethernet to do acquisition of measures. I downloaded driver from metrix web site. The zip-file contain two files : mtx3x52.llb / mtx3x52.dll

 

I copied the dll in c:\windows\system32 and the .llb in C:\Program Files\National Instruments\LabVIEW 2012\instr.lib

 

My problem is that I not see my scope instument in Instrument=>Find instrument driver... I see only Agilent34401 and ni579x

 

 

I'm trying to find informations but find nothing to help me...

 

Can someone can help me ? Thanks you very much.

windows 7 black screen and active mouse due to network and a software

$
0
0

Since I added a network drive to a windows 7 system, I get a black screen with mouse movable around whenever I login while the network cable is disconnected.

After a full disk format and windows re-installation I got back to this situation but this time I discovered this problem was caused by the National Instruments VISA (NI-VISA) engine as it appeared just after installing it. It should be noted that at the point of installing NI-VISA engine, the network drive was already setup but it was making no problem at all. Also, when I got this problem the first time, the NI-VISA engine was already installed since long.

Booting windows in failsafe mode results with the same problem unless I choose the failsafe without networking enabled mode.

RS-485 biasing

$
0
0

Fellow LabVIEWers
I have some problems related to a series of units from a specific vendor,
and they suggest I have to do something with the biasing Now, the issue itself
seems easy enough, as it involves just adding
a couple of resistors, in addition to the terminal resistor at the last unit in the line.

My question is this; can it be correct that a problem related to not having the bias resistors present,
will cause the RS-485 comunication to fail, i.e. that I get a time-out from my units ? I get a vague impresion that
problems caused by not having bias handled should give me garbage data instead of no data at all.
But as you understand, this is unknown territory to me. Any coments and knowledge about
biasing in RS-485 is appreciated.

Martin

ground loop occuring NI card

$
0
0

Our company makes a commercial instrument and Ive recently found that we have a ground loop passing through a NI card.   The device has been around for almost 10 years in its current form although this problem is probably new in nature or discovery.  We are using a very old NI card (NI 6025E) in our current production but we will be updating sometime soon.   There is also a NI6503 within the system but does not appear to be related to the ground loop.

 Let me explain the basic of the hardware.  We have probe which can move two motors to direct the position of our instrument. The probe is on the end of 10ft long probe cable.   These motors are primarily controlled by a Galil controller and Galil Card.  

 

 

The NI card directs some data to the to the probe (not related to the motors) , including sensing of the ground plane of this cable (presence of 0V means probe connected) (ideally Galil senses this same signal too).     The majority of what the NI card does is in the custom electronics unrelated to galil controller and motors.

 

So the galil card generates a pulse to indicate motor position (and Im getting support with Galil too)..  The pulse should be from 5V and changes to 0V to indicate a trigger event occurred.  Where the problem is that the pulse we are getting has a different voltage, ie, 4.5V to -0.5V when measured across the CMP signal to ground.  Ive measured an offset on some devices from  0.4V in one device but only 0.06 to 0.05 in others.   This CMP pulse comes directly from the galil card into a PC board that interfaces with the cable.

 

 

The funny part is that when I disconnect the NI cable from the 6025E, the signal goes to 0 to 5V.  Im not sure I can really consider this a NI problem but any ideas or help is appreciated.

why "wait for operation complete" error ?

$
0
0

HI,

When I use the vi "Read multiple waveforms" there are an errors that appears in the VI "wait for operation complete" and I cannot found the cause of this error ! Can you bring me your help on this suject ?

Thanks you beforehand

Here my vi in LV2013

ocean optics usb 4000 driver not installed successfully

$
0
0

 

Hi all,

 

   I am having ocean optics usb 4000 spectrometer. I want to acquire its data in LabVIEW. For this application, I downloaded the instrument driver from NI Site (http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=7833BD4A31DA1274E04400144FB7D21D). I copied the project into instr.lib directory and installed driver using Ocean Optics USB4000_vista.inf file as instructed in the installation instructions then I restart my PC and connect the spectrometer and windows was successfully able to install driver for my spectrometer and I was able to run the example VI as well. But next day when I tried to connect the same device, windows was not able to install the driver and showed the message "Driver not successfully installed". I tried to update the driver software from the device manager but it shows "Windows was not able to install your Unknown Device" then I uninstall the driver and reinstall it but still got the same error.

 

I am using LabVIEW 2012 (32 bit) on windows 7 64 bit system.

 

Please help.

Instron 5800 EABO during data readout

$
0
0

Hi,

 

I am very new to LabVIEW and having only used it in the last 3 months, I've managed to put together some codes to get the Instron 5800/8800 to work partially. There's a lot of things that I still do not understand but it has been quite exciting learning so much. So far, I've managed to set the crosshead to move based on my criteria, but I will experience an error mid-way through data logging. Currently, I set the data to read out while the crosshead is still moving, and I realised that it's when the cross-head reaches its end point that I will experience an EABO error (sent by the machine). The extraction of data from my buffer will continue for a few rounds but will eventually terminate without full readout. The machine uses GPIB and I'm using VISA in my codes. The data readout is done in a loop and has delays that match the time required for the buffer to be filled. I've looked through the NI website on EABO (http://digital.ni.com/public.nsf/allkb/2FA525A8585A92E9862566EE002A3755#EABO) error but I still can't figure out what is wrong. Any idea what is causing the problem? Any help or suggestion would be much appreciated.

 

Thank you!

 


Visa read not reading some data

$
0
0

I have a small program (attached) that seems to be reading data sometimes.  I have a lens controller attached to the program through an RS232-USB adapter.  When the lens controller boots up, it will give it's name and model number and some other information, and all of that stuff is read properly to the program.  I am also able to send information to the controller with the write buffer box and Boolean button (to send).  The lens controller responds to my commands by moving motors.  When I send a command to ask "where are you," I don't get the answer back.  I do the same thing in UCON and it works, so I know the controller is speaking.  Anybody see something I am missing?  

PCI-GPIB suddenly does not see any instruments

$
0
0

Hi,

 

I would greatly appreciate any help with this issue and I will provide any extra information I have missed.

 

Hardware setup: There is a computer (XP Professional SP 3) with a PCI-GPIB board (driver 3.1.0.49152) installed. This computer has been used for years with three GPIB instruments connected. Cable lengths are short and cables are in good condition. 

 

Problem onset: With no warning, GPIB communication via a LV program dropped out completely today. No changes were made to the computer's software, but two of the instruments had been disconnected to run a newer LV program that only talks to one instrument. The two unused instruments were disconnected in such a way as to leave only a direct link between the PC and the sole GPIB device with no dangling cables or attached and inactive devices. After the new software was run a few times successfully, the GPIB cables were connected to all three instruments. The old software was run with the three instruments once successfully, and GPIB communication failed when it was run a second time. 

 

Steps taken so far: I have restarted the computer, power cycled the instruments, and limited my troubleshooting to get one GPIB insturment connected directly to the computer. I am using NI MAX (5.5.0f0) and whereas both NI MAX and Windows Device Manager can see the PCI-GPIB board, no instruments are shown when I select "Scan For Instruments".

 

I have also run the NI-488.2 Troubleshooting Utility several times, testing Software and GPIB0, and they always pass.

 

I should note that there is something I have not been able to find an explanation for: As soon as I select "Scan for Instruments" the message "There was an error performing the instrument scan" appears in the Connected Instruments pane. The message appears instantly, which might suggest an issue with the board configuration. Given this, I turned to ibic.exe and began following this document:

 

http://www.ni.com/support/gpib/max/ibic.htm

 

It suggests some initial troubleshooting steps, which I followed. I know for a fact that the GPIB address of the sole device connected to the PCI-GPIB board is 2. This is after a fresh restart and power cycling the device. Note the ECIC error. 

 

Clipboard01.jpg

 

At this point I am at a loss, since:

 

  • This exact same setup worked earlier today,
  • No software has been added/removed/updated after the original 3-device and 1-device setups ran multiple times successfully, through computer restarts, etc.
  • The only configuration change was disconnecting some GPIB devices via the cable, but the problem persists even through restarts, power cycles and reconnecting the cables in the same configuration.

Apart from resolving my issue, I am looking for help with the following:

 

  • What does "There was an error performing the instrument scan" mean in this context?
  • From my reading and limited understanding, the error message suggests that my GPIB 0 board is not in CIC status for the above command. Is this a likely scenario, or could this error simply be a consequence of something different?
  • I would appreciate an hints on connecting and disconnecting GPIB devices. Is there a preferred order of turning devices/PC on, power cycling things while connected/disconnected, and do cabling changes require a restart?

 

Thank you in advance.

 

Paul

xbee UART

$
0
0

Hey guys everyone here has been so helpful!

One last question though.  I have an Xbee(which will be connected to the myrio through UART) and i'm wondering how I would program it to send out out data from another sensors connected to my myrio. 

The receiving Xbee be using XCTU software so i'm not worried about that.  Just the programing of the one sending out.  Does anyone know where I can find help or any advice to be offered?

 

Thanks

Caleb

 

dumb instrument control

$
0
0

Hello,

 

We have developed a measurement instrument that passes raw data to the host PC via a USB interface. The instrument has little data processing capability.

 

The host PC runs the user interface (VB6) software to carry out all the data handling and processing.

 

We have developed a VB6 DLL library that can be called by another program to carry out the low level communication with the instrument as well as the necessary data processing.

 

The USB interface on the instrument is not USBTMC.

 

Now, we have been asked to provide a VISA driver for our instrument. We are unsure how this could be done. Would this simply entail modifying our DLL to accept VISA commands? If so, in genral, how could the DLL be 'knitted' into the users' application software?

 

Thanks!

Unable to install GPIB USB hs controller on Windows 8

$
0
0

When I try to install the GPIB USB HS controller on my laptop, which has Windows 8 64 bit, the installation does not work. Every thin goes smooth until the progress windows then nothing happen even if I wait for ages. When I used the same CD on the desktop, which has W7 32 bit, I managed to install the driver. According to the datasheet the controller is compatible with W8 but not sure 32 or 64. Do you think this is the issue or there is something else going wrong?

Viewing all 5668 articles
Browse latest View live


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