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

Tenney C-EVO Environmental Test Chamber with PLC Smart 1.0 Controller

$
0
0

Hello,

 

I am planning to control a Tenney C-EVO Environmental Test Chamber (Thermal Product Solutions) by sending recipes from LabView to the PLC Smart 1.0 Controller. The communication ports included are ethernet, USB, and GPIB. Has anyone used this controller with Labview before ? I can not find much labview support for it.

 

This is the link to the controller 

 

https://www.thermalproductsolutions.com/innovation-centers/why-the-smart-1-0-controller

 

Regards

 

ffl3883 


convertir un Cstring en ViBuf

$
0
0
Bonjour tout le monde,
J'essaie de créer une IHM sous visual studio 2010 afin de piloter un atténuateur.
Je suis notamment amené a utiliser la fonction viWrite() (librairie VISA) qui permet d 'envoyer une commande à l'appareil de mesure, et qui prend en paramètre une variable de type ViBuf.
Pour mettre l'attenuation a 50 dB il faut envoyer la commande: "A050,"
Voulant permettre à l'utilisateur de mon IHM de modifier l'atténuation de l'appareil selon ses désirs( Cstring valeur) , je crée par conséquent :
CString attenutation=( Cstring ) "A0" + valeur + (Cstring) "," ;
il me faut maintenant convertir ceci en ViBuf pour l' envoyer a l'appareil grace a la fonction ViWrite...
Si quelqu'un peux me débloquer, je lui en serait très reconaissant!

how to convert a Cstring to a ViBuf

$
0
0

hello,

 

I'm trying to control an attenuator with visual studio 2010 in C++ whith VISA library and i want to permit the utilisator to choose  the level of attenuation.

to realize this  i need to send to the attenuator a specific command which is " A050," if i want the attenuation is 50 dB.

 

So i create this CString:


 
CString attenutation=( Cstring ) "A0" + value + (Cstring) "," ;

where value is a Cstring wich depend on utilisator's attenuation choice.
 
to send this command i must use viWrite() wich requires a ViBuf in entry,  so i need to convert the Cstring attenuation in ViBuf .
 
help me please and excuse my English !
 
*Pardon my french

Basic Connection to TPS2024B

$
0
0

I have a very basic task: to track 2 separate DC voltage signals over time, recording a measurement every 5 sec over a few hours.

 

I have an ASUSPRO with Intel i7 running Windows 7 64bit

I have access to a Tektronix TPS024B Serial #C010563.

I installed LabVIEW Signal Express Tektronix Edition 2.5.1

I installed NI VISA, which installed NI MAX 14.0.1f1.

I am connecting through a USB-to-RS-232 cable. The cable driver has installed successfully on COM5.

 

When I use NI MAX to communicate with the scope with the built in *IDN?\n code, I do get a reply from the scope. However, SignalExpress does not recognize the scope.

 

Any basic advice or links to such? Thanks.

 

 

data acquisions in two timed loops sometimes dont reads the input signal

$
0
0

Hello..

  I am using a timed loop inside the master while loop, in which i do data acquisition for 6 sensors. Kindly see the attachment to get a overview. Also i have a infinite while loop (or atleast it should run at 100ms) controlling the pressure in the system. while running NI DAQ reads zero value in an arbitrary iteration (eg shown below) and then starts give the actual value thereafter. This applies to all the 6 sensors, however not all goes to zero at the same time, only one goes. Also i didnt find a periodicity of this zero signal. This does not happen frequently, maybe one or two in 5 minutes..

 

for eg., acquired value from sensor 

2.32

2.33

2.32

2.22

0.00<------

2.22

2.24

2.34 etc..

Thanks Muthu

pH-Measurement

$
0
0

Hello,

 

i'm a german student, using LabVIEW now, but at one point got stuck.

So, i'm using a PCI 6024e Card and a BNC 2120. LabVIEW Version, not sure, quite old, around 6.0 or 6.1 I guess.

Furthermore i got a pH-Sensor with an BNC connector-plug.

 

When i measure the voltage over that sensor, I get a relative high voltage and the voltage is permanent falling after some minutes.

 

Got someone an idea why the voltage isn't constant? Any idea what to check/improve?

I would also appreciate any advices of what hardware I could buy to get this project started.

 

Thanks

 

Regardful

G-rooon

Labview + PLC Omron rs232

$
0
0

Greetings everyone

 

First of all, thanks to everyone that reads this post and has patience to ignore my grammar mistakes (English is not my main language).

Im in need of controlling a plc from Omron SYSMAC CJ1W with labview, without using OPC servers, i mean, i want to read only the information from the plc, via RS-232.

I already know i have to use VISA to accoumplish this, as well as configuration my port COM, baudrate, stop bits, etc.

I just dont know what should i read from the frame sent by the PLC to my labview

the data will arrive in a datastring from the VISA reader. 

My question is this:

 

The PLC is doing a pick-n-place style of system with a robot that works in a straight line, above 12 tanks, each tank has a position. The robot moves within the line with a help of a eletrical motor, and the only thing i wanna read on the labview is the position he is currently on. I want to monotorize this location.

in my PLC program, each position goes like address value: 215.00.

for example, position one: 215.00

position two: 215.01

position three: 215.02 and so on

 

can anyone enlight me what kind of information will arrive at the VISA reader? and how can extract this position address?

Kind regards 

IviDmm lack of channels

$
0
0

Hello everybody!

 

I am going to write IVI driver for signal condition LXI instrument which have 16 thermocouple channels. Perfect IVI class driver for this device would be IviDmm - Digital multimeter. Its had thermocouple definitions and set of function/attributes that would match this device. The problem is that this class don't provide channels. All function and attributes doesn't operate on channels. Does anybody know how to work around this problem. Maybe I should choose different class driver? 

 

Regards

Tom


VISA lib parallel poll for old 488 instrument

$
0
0

I've looked around to see if there is an answer for this, but I can't seem to find any. I want to use the VISA library to communicate with a Scientific Atlanta 1780 Phase Amplitude Receiver, and I need to be able to read its status byte over parallel poll (a special status byte is made available only through parallel poll, not serial poll). I haven't been able to find a function in the VISA library that can do this. Is there a function I am missing, or is there some other way to do it?

 

Thank you,

Victor

Spectrum Analyzer GPIB Record and Save to AVI, MPEG, or MP4 file

$
0
0

My objective is to record a waveform using labview and save it as an AVI, MPEG, or MP4 file to be able to replay it back at a later time.

 

I would like to know if it is possible to capture a waveform for 30 to 60 second and save it as an movie format file.

 

I have Labview 2013 version, Spectrum Analyzer N9010A and GPIB-USB-HS.

 

 

How to change target field without close EditPSSetting.vi?

$
0
0

Hi,

I apologize for the title of this message, but i did not have better idea. I am newbie in LV and honestly I dont know if i am writing to right forum lacotaion. To my question - I attached VIs which are used for controling  power supply for magnet. This power supply IPS120-10 is made by Oxford Instrument. VI what I open for controling magnet is called IPSfrontpanel.vi. There is a button Setting, which opens EditPSSeting.vi. In EditPSSetting.vi is possible to change "Target Field". What I need is change Target Field without close EditPSsetting.vi. I tried to do some modification of EditPSSetting, but nothing works - it looks it isnt possible to change Target field when EditPSSetting is open. 

 

Power supply is connected via RS232.

 

Actually what I need is increase Targer Field of some value every 5 minutes, so maybe there are other way...

 

Thanks

Hyper terminal in labview problem

$
0
0

Hello

I am working in a project where i wanted to replace the Hyperterminal user interface with the rich labview user interface.I have to communicate to a customised card where i will send some command to the card it will reply with data.Problem is if i send it through the hyper terminal for some specific command it will reply with three column data but if i send the same command in labview Hyperterminal it is giving in a single line with lot of junk value in between data.Any one have any idea why this is happening?I need it in same format in labview hyperterminal because we have to enter the some command the some specific column only. ANY Help?

How is ENET-232/4 Supported Now that NI-Serial 14.0 has Removed Support for ENET?

$
0
0

Dear smarter people than me, I have been pulling my hair out trying to get my brand new ENET-232/4 units running under the lastest and greatest LabVIEW envirenment (2014). 

 

After finding that none of the instruction matched what I was seeing in MAX etc, I discovered the following line in the NI-Serial 14.0 driver release notes;

 

Release Notes

Removed ENET support

NI-Serial 14.0 removes support for all NI Serial ENET Interfaces (ENET-232/2, ENET-232/4, ENET-485/2, and ENET-485/4).

 

So my question is if NI-Serial no longer supports or configures the ENET-232/4, then what does?  At the moment I just have 5 rather exspensive boxes sitting on the shelf unable to be configured.   

 

Smart brains please help :smileyhappy:

 

Dave

Issues with adjusting GPIB Bus Timing

$
0
0

Hi Everyone

 

I want to change my GPIB bus timing and HS-488 cable length  but I have issues doing so in NI-MAX using windows 7 64bit.

I think this is due to administrator access rights, but all the setting for the GPIB controller are grayed out and I can not adjust them.

I currently have the newest max, visa 14.0, gpib 140.0 and labview 2014  installed.

 

Does anyone know what priviallges I need to adjust these setting?

Is there any INI file or register setting I can modify to adjust these settings?

 

Thanks

 

 

GPIB-CPU Timing Issue (Generic I/O error)

$
0
0

Greetings!

 

I'm currently working on the development of a Flash Photolysis instrument using Labview 2009 and have recently upgraded our computer but have run into some issues. At random points there is a generic I/O error within the messagesend.vi, but the errors do not occur when using the lamp tool. After doing some research I have found that upgrading our computer has caused some timing issues where the instrument and the computer are not communicating properly.

 

I was curious if anyone has had experience in changing the PCI-GPIB card settings so that the instrument will ping properly with the computer and fix this timing issue.

 

Thanks!


Trouble with Agilent 4156C and older driver

$
0
0

Hey,

 

I am having issues with our Agilent 4156C. As I am quite new to LabVIEW I asked around in my institute and there is in deed another group working with a 4155C, doing similar measurements as I wish to do with our 4156C.

 

As far as I know the 4155C and 4156C are equivalent a part from the precision and use the same drivers. So I asked the other group for their VIs and drivers. But I noticed that they use the HP415XA driver, which does officially not support either of our devices and as far as I have tested it does really not work.

 

How is it possible that they run their 4155C machine with this 415XA driver? Is there a way to do the same with my 4156C? The people that once got it running unfortunately left the group..

 

I know I could use the new drivers but then I would need to change the VI as well, which I want to use.

 

And is there an easy to understand step-by-step guide how to use an Agilent/Keysight device in LabVIEW starting from zero?

 

Thanks in advance!

Philipp

Creating a User Interface to control a HAMEG HMF2525 Arbitrary Generator using LabView

$
0
0

Hi everyone!

 

This is my first post here as I'm just starting to learn about LabView at my university and would like some help with a project I'm working on.

 

My general assignment is basically outlined in the post title but I need some help getting a bunch of things set up, and was hoping I could find that here!

To start off:

 

Hardware: 

  • Rhode & Schwarz HAMEG Arbitrary Generator HMF2525
  • HO720 USB Cable

Software:

  • LabView 2013
  • NI MAX
  • NI VISA Driver Wizard
  • Windows 7

With my end product, I would like to be able to create and show waveforms along with harmonics and distortions, and to set up the parameters of these waveforms with a LabView Interface. The generator should then output such waveforms and have it shown on this Interface in various ways.

 

The qualities I'd like to show are:

  • Basic Oscillations (eg: sine curve)
  • Harmonic Oscillations of these basic curves
  • Amplitude
  • Frequency
  • Phase Shift

The ways I'd like to show them are:

  • Waveform (Voltage) over time
  • Polar/Vector Display of the oscillation parameters 
  • A table in which the parameters should be entered in by a user

So that's the plan for the project. I'd like some help getting started. I've already installed a driver for the USB Connection using NI-VISA Driver Wizard and can now see the HAMEG HO720 in NI MAX. 

Is this the right way to go about communicating and getting data from my Generator? I'd like to know if there are any basics I'm missing and how I first go about controlling the generator from my PC by getting it to, for example, produce a sine curve.

I've also found a LabView third party driver for the HAMEG here: LabView HAMEG Driver R&S

Is this all I will need in terms of drivers for this device and my software? I'd also like to know how to install said driver and what I should expect to see in LabView in terms of function blocks and the like.

 

As I'm new to all this, I'd like to ask a few more questions:

 

Is there any other software I'll be needing which I didn't list above?

Are there any important tutorials I should look at to help me through? I've already fone through the getting started modules 1-10 at learnni.com, and am not 100% sure where to go from there.

 

Thank you so much in advance for any help!

 

Josip 

 

Read power meter in LabVIEW via RS-232/RS-485

$
0
0

Hello!

 

I have a power meter , WM14-DIN advanced power analyzer. I want to display different values , Kwh,VA,Kvar etc, from the meter in graphs in labview. I have just a basic understanding of Modbus RTU and the connection with RS-232. But I don't know how to make it work with labview. To my meter I have connected a converter  Moxa TCC-100 ( see attachments) from RS-485 to RS-232, since my power meter only works with RS-485.

 

From the converter I have a RS-232 usb adapter( see attachment)  to COM3 on my PC .  

 

Maybe the easiest way would have been connecting this directly http://sine.ni.com/nips/cds/view/p/lang/sv/nid/12845 . But i havent bought it yet!

 

So now you know the connection setup, drivers for the usb adapter is installed and VISA drivers also. I haven't found any good examples explaining how you can do this with programming and sending adn reciving data.

 

I have googled around and found out that you should use VISA read/write blocks, and that there is a Modbus library you could use. I have installed the library but I don't know how to use them to communicate with my power meter.

 

I have a communication protocol to my power meter but I don't know how to use it.

 

I'm pretty  much stuck and really dont know where to begin. But from my understanding of modbus, these kind of things should be easy to do, so I'm guessing it isn't too hard to learn.

 

Is there anyone that could explain how these thing work or if there is something that I could read or see?

 

Best regards Maurlind

 

Using local variables to "clean up" diagram

$
0
0

I have attached a photo with red circles indicating my use of local variables to "clean up" a block diagram. Would I run into any issues doing this? Can I leave this task and error unwired?

 

-Sarah

String Subset from Serial error

$
0
0

Hi Everyone

I have  a simple program. I have used arduino to tranfer some string to labview.

And In Labview I want to Subset string. But, It is working only first string and the later strings not be subset.

Can you help me find my error?

Thank for reading

Here is my code and my error

serial.png

 

Here is my Video: https://www.youtube.com/watch?v=Gm5nOrZ3iyo

Here is my arduino code:

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
int i=0;
LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x20 for a 16 chars and 2 line display

void setup()
{
  lcd.init();    // initialize the lcd
  Serial.begin(9600);
 // attachInterrupt(0,irt1,CHANGE);
  attachInterrupt(1,irt2,FALLING);
  // Print a message to the LCD.
  lcd.backlight();
  lcd.print("Hello, world!");
  Serial.print("Hello, world\n");
  delay(1000);
  lcd.clear();
}

void loop()
{

  while(Serial.available())
  {
  char r = (char) Serial.read();
  if(r=='t')
  {
    lcd.setCursor(0,0);
  lcd.print("you are robot");  
 // Serial.print("you are robot\n");
  }
  else if (r='a')
  {
    lcd.setCursor(0,0);
    lcd.print("you are human");  
   // Serial.print("you are human\n");
  }
  }
}

void irt2()
{
  delay(1500);
  i++;
  if(i%2)
 { Serial.print("ngaysinh010071992\n");}
  else
  {Serial.print("ngaysinh123455\n");}
}

Viewing all 5661 articles
Browse latest View live


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