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

rs-232 data logging from old thermocouple scanner

$
0
0

I have an old thermocouple scanner that I would like to log data from at regular intervals using LabVIEW. After some searching I was able to find a data logging program that came with the scanner and it displays the data and allows the user to manually save a file of the logged data (I've attached an example output file from that program). With the program I also got a file that gives a description of the serial communication methodology (attached) that says the data is full duplex,1 start bit, 7 data bits, one odd parity bit, one stop bit at 19,200 bits per second, and <XON> or <XOFF> handshaking. So I tried to use that information with a vi that I edited from another forum post (see attachment) but I get the "Error -1073807339 occurred at VISA Read in While loop test.vi, VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed" message. I'm a LabVIEW newbie and any help on why this isn't working would be greatly appreciated.


Efficient optimized way to read from serial port and GPS data display using map

$
0
0

Hi,

I have a custom h/w which reads the data from GPS Rx and after parsing send it to PC over RS232.

Each second it sends 201 bytes to PC. I have developed a VI to read the GPS data and display it. Project file is attached.

Fulctionality of different loops are as following:

1. LOOP 1: 1.1 Reads the serial data from com port.

               1.2 Synclonize the frame using start bytes "a" and "z".

               1.3 Reads next 4 bytes containg receiving error information.

               1.4 Reads next 195 bytes. in which initial 80 byes are GPS data. rest are others.

2. LOOP 2: 2.1 Extarcts the GPS information and put them in an array.

                  2.2 Extarcts the receive error infor and counts the total error by incrimenting the variable using shift reg.

3. LOOP 3:3: 3.1 Displays the GPS data in chart and log the data in a file.

4. FLOW : Uses the GMAP .NET based API to creat a MAP and display.

 

Problem statement:

 

1. Functionality acheived.

2. However in between data set is being missed by the programm. 

 

Quesitions:

1. Is the developed VI is efficient in terms of using queue loacl variables etc.

2. What are the improvments I can do to solve the problem.

 

Any other suggestions|

 

Thank you

jayant

 

                    

 

Ocean Optics HR4000

$
0
0

Dear All,

 

I am using the LabView driver for the HR 4000 spectrometer. I need to make an external triggering of it. Can you explain me how to do it in LabView. I put external triggering in the project "Spectrometer setup" and make it run. Then I open the project "Acquire Continuous Waveform.vi" and run it as well. But there is no response from the device on external trigger. I will appreciate any help.

VISA Seesion ID lost during write function

$
0
0

I am having an issue with the session ID getting lost at random times.  Sometimes it disappears right when entering the subvi, other times after a property node, this time shown in my attachment is during the 'Write' function.  I am trying to talk RS485 to an ICP CON module (I-7063) via the Ethernet port and an Ethernet to RS485 converter module (ICP CON 7188E8D).  This happens on my desktop PC using a USB 3.0 to Ethernet adapter and with an embedded PXIe controller connected directly to the ethernet port.  Most times it runs as it is supposed to but if you wait long enough (about a minute of retires), it will fail at a random location.  When it happens during the Write function, the Read function doesn't have a session to get data from so the code following will error.  Any thoughts as to why this may be happening? 

LV 2012 SP1

Windows7

flowmeter with labveiw

$
0
0

Hi 

 

 

am a relatively inexperienced LabVIEW developer, so while I will do my best to provide all the necessary information, if something is missing or unclear, i am so sorry.

 

Could I ask for some help, I'm getting bogged down in a simple DAQ VI. I am using a flowmeter Rs 256-225 outputting a series of NPN pulses through the counter line on my USB-6008. I have set the DAQ Assistant within a For Loop that counts the pulses within each iteration but naturally after each iteration the count resets to zero so my indicator (gauge in this case) appears erratic despite a steady flow through the meter. How would I go about creating a VI that can output a steady reading on the indicator but still be senstive to changes in flow? Thank you very much for any help

 

 

VISA Write Continously

$
0
0

Hello. I am needing some help on VISA Write function. I saw a few post close to my needs but I am quite confuse. I am working on a project to control 2 servo motor (yaw and pitch).

I am using VISA write to send data to serial port. But, I can only send once (e.g: 8813 8813- hex). If I want to send the second one, (e.g: 7C15 7C15), I have to clear the data manually on my front panel. Only this makes my servo to move for any data that I send. 

Somehow, when I send my second data (e.g: 7C15 7C15), it indicates "return count-8" and "status write- operation completed sucessfully" but my servo does not move.

I am unsure how to troubleshoot this issue. Your kind assistance will really help me alot. Thank you.  

 

updating the version of already existing hardware drivers for Windows 7

$
0
0

I am needing to update our driver versions of NI-DAQmx, 488.2, and VISA on our test tower in order to accomodate our use of Windows 7 (64 bit with 32 bit WOWs).  I know which versions I need to accomplish this, but I have never installed NI hardware drivers outside of the basic LabView installation disc.  Do I simply download the driver .exe and run it or do I need other downloader programs as well?

Agilent oscilloscope

$
0
0

Hi, i have agilent oscilloscope DSO7012B ,i have started DEVELLOPING the interface of ,this device in labview but  my probleme is when i run my oscilooscope with my PC ,the button of run flashes also the stop is always light (i can't create a controle to red the waveform only when i change a parametre ),and the program is blocked when i make XY mode,

thank you :)  


data logging over a serial port

$
0
0

Hi,

I've been reading about labVIEW instrument control and I'm a bit confused. I am wondering if it possible to accquire data (voltage) from an instrument to display/store in a computer through labVIEW without the use of a DAQ device. I mean just by communicating through a serial port either by direct connection or by using a bluetooth serial adapter?

 

Thank you

PCI-GPIB 183617K board not detected

$
0
0

I've tried to install an old (but supposed to be working) 183617K PCI-GPIB board on a PC with Windows XP 32bit.

I installed the new NI-488.2 version (3.1.2), then powered off the computer, inserted the board and restarted. 

I don't see the new hardwared at all, not  in device manager (even after pressing "scan for hardware changes") and not in the NI Measurement & Automation Explorer under "Devices and Interfaces".

I'd appreciate if you can help me. 

Thanks, 

Adi

Which version of NI-488.2 driver should I use

$
0
0

I am needing to update my NI-488.2 driver to work with a Windows 7 (64 bit) operating system.  I know from the charts that it says version 2.7.3 will work with both the 32 bit and 64 bit Win 7, but the latest hardware driver version states that it works with "Windows 7".  Will the latest version work with both 32 and 64 bit or is it naturally 64 bit only?

Keithley 2400 RSYNchronize

$
0
0

Has anyone used the RSYNchronize command on a Keithley 2400? I can’t get it to work.

It is not ticked as SCPI in the manual so what is the point of it?

Read status byte in VISA 5.4

$
0
0

I am controlling a Rohde Schwarz FSP and have things working well, using a GPIBSession.  I am trying to set it so that I enable the Operation Complete bit and then use a timer to periodically check the Status Byte.  To set up the Operation Complete bit, I am sending the following:

"*CLS"           

"*ESE 1"           

"*SRE 32"

I can read back the ESE and SRE using the *ESE? and *SRE? queries and get the correct response to indicate that the enables are set correctly.  I then put the spectrum analyser into a Single Sweep mode and trigger the sweeps... when I query the ESR or STB ("*ESR?" and "*STB?") using a timer in a loop the reply is always 0.  If is use the ReadStatusByte, it also returns 0...

 

If I used the *OPC? / *OPC? construct, it will wait and then complete once the required sweeps are complete.  I don't like this as it locks out control and I need to rely on a calculated timeout to prevent a hang-up.

 

I am trying to avoid using Events as I prefer to know where my code is.  There don't seem to be any up-to-date examples for using NI-VISA 5.4 in Visual Studio 2012 (Visual Basic).

 

Thanks for any clues...

 

 

Unresolved external symbols when linking C++ with ni.4882.obj

$
0
0

Moving from 32-bit XP to Windows 7 using Microsoft Visual Studio 2008 C++.  When linking with NI-488.2 version 3.0.2 I (ni4882.obj) get the following warning and errors:

 

1>Linking...

1>ni4882.obj : warning LNK4217: locally defined symbol _time64 imported in function time

1>ni4882.obj : error LNK2019: unresolved external symbol __imp_rand referenced in function LoadFunction

1>ni4882.obj : error LNK2019: unresolved external symbol __imp_srand referenced in function LoadFunction

1>ATP.exe : fatal error LNK1120: 2 unresolved externals

1>Creating browse information file...

1>Microsoft Browse Information Maintenance Utility Version 9.00.21022

1>Copyright (C) Microsoft Corporation. All rights reserved.

 

Any ideas.

ASIO drivers Urgent

$
0
0

Hello All,

I'm trying to interface a steinberg UR44 with Labview. As many mentionned before in the forum i can only see 2 input channels (instead of the 6 possible on the card). The card works fine on cubase as i can see the 6 input channels there.

I've been trying various solutions with no joy. I've tried 2 or 3 solutions provided in the forum but still can't get the 6 channels going. I was wondering if anyone has a working solution to share.

Thank you in advance

Frederic.


Labview does not read the amplitude of waveform correctly for TDS 2014 scope

$
0
0

Hi, 

I downloaded drivers for tektronics TDS 2014 oscilloscope from NI website (http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=047216EC20B66FABE0440003BA7CCD71#seeBelow ).  I am trying to collect waveform from the oscilloscope. I am able to talk to the oscilloscope and see the waveform on my computer. However, the waveform displayed has 10 times higher amplitude than the actual waveform. I have set the Probe attenuation to unity and I am not sure what makes this change in the waveform. 

The vi I have been using is attached here.

Thanks for your help!

Nutan

 

 

invest of PID controller

$
0
0

hi sir i did  my own  project  on wheel chair  using lab view  here i have  a problem  that previously i  invest on/off control, now my  question  is Shall i control motor with pid control?

Waiting for data on serial port

$
0
0

Hello everyone.

 

I'm trying to figure how I can solve a problem on LabView. I've programmed an Arduino board to read and send an array of data from an accelerometer to the serial port. I want LabView to receive the data and graph it. My problem is that Arduino is sending data continuosly and sometimes LabView can't keep up with the flow and read some values as "0".

 

Is there a way to wait for the data and solve this problem?

 

I've attached my current vi.

 

Thank you very much in advance.

termination character

$
0
0

Hello,

 

I'm communicating with an 20 years old optical spectrum analyzer with GPIB connection using VISA.

 

I having trouble reading the entire data. I've try to use the termination character options to solve this but my instrument use both line feed and EOI termination codes.

 

I've found this help text: http://www.ni.com/white-paper/4256/en/

 

but could understand it to the end.

 

what is the symbol accepting the arrow symbol at and zero constant at the end? where should I put this property node in case I want to read many bytes ending with the above characters? before VISA - WRITE? after VISA read? and how can I combine two termination character? how do I represent two EOI?

 

thanks, Avishay

serial communication from simulink to labview

$
0
0

hello everybody,

i have problems with establishing serial communication from simulink(where the data is generated) to labview (version 2010).

i tried everything but it won t work.can you please help me on this one pleaaase.

thanks ^^

Viewing all 5692 articles
Browse latest View live


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