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

Capturing Torque Data With Mark-10 Force/Torque Sensor

$
0
0

Hello community.I need to build  VI that will collect torque data using a Mark-10 torque sensor. It connects to a PC via usb and collects data with a canned sw solution that is buggy. I would like to know how to do this better with Labview. What equipment would I need to interface/connect this sensor to a PC. See the address below for detailed desciptions of sensor and indicator. I'm not very experienced with Labview and any help would be appreciated. I have at my disposal NI 9236 and 9237 modules to work with. Is there any other recommended HW?

 

http://www.mark-10.com/instruments/indicators/3i.html

http://www.mark-10.com/instruments/sensor/series-R03.html

 


USB RAW device freezes my LabView and Matlab program

$
0
0

Hello everyone,

 

I am trying to figure out if I am the only one facing this problem. I created NI VISA driver for my HID device. It was working fine but now as soon as this device is connected to the computer and I try to work with it on LabView, the program closes. same thing with MAX, it crashes. So I wanted to see if I would get any luck in Matlab. As soon as I enetered the Resource Name, Matlab closed as well. I am not sure what is the problem. I never encountered this problem before. Someone please help. 

ENET-232/4 installation

$
0
0

Hi All,

I bought an ENET-232/4 and connected it to tried to my Windows XP PC with an Ethernet cable. I downloaded NI-Serial 15.0 and installed it onto my PC with NI-MAX 15 also. I went to NI-MAX/Tools/NI-Serial and couldn't find the ENET-232/4.  Then, I inserted the NI-Serial 4.0 driver disk that came with the ENET-232/4, and tried to install it over NI-Serial 15. It wouldn't not install an older 4.0 to a newer 15.0, but I can't run NI-MAX anymore after restart my PC.

 

Is there a way to remove NI-Serial 15 and install NI Serial 4.0?

What is your experience in getting ENET-232/4 to work?

 

Thanks in advance.

 

Fang

(Hex 0xBFFF0011) Insufficient location information

$
0
0

Good day everybody,

 

I have Tabor WW1072 AWG connected to a hub to which my notebook is connected. I can ping the device, I see it from NI MAX, I see it from VISA test panel. But when I try to contact it from a VI, I got from the company, there is this  "(Hex 0xBFFF0011) Insufficient location information" error ( you can see in the file attached).. The weirdest thing is that it was working several weeks ago. The only thing that changed is that now I use ethernet-usb adaptor, as ethernet port on my notebook is broken now. I was trying to repair National Instrument software it didn't help. Disabling firewall didn't help. Could anyone possibly know what's the problem?

 

Thank you all in advance!

Problème driver USB-7845R/SCB-68A

$
0
0

Bonjour tout le monde

 

J'ai un boitier USB-7845R avec une carte SCB-68A. Je n'arrive pas à obtenir le bon driver pour que mon matériel soit reconnu dans Max.

J'ai téléchargé pas mal de choses mais rien n'y fait...

 

J'ai fait un fichier de diagnostic si cela peut vous aider. 

 

Merci d'avance pour votre aide

Remove NI MAX 15.0 and install older version

$
0
0

I installed NI MAX 15.0 through a NI Serial installation.  It didn't have what a manual said about an ENET.  So I reinstalled NI Serial from the DVD that came with the ENET-232/4.  Now NI-MAX doesn't work anymore.  I would like to remove it cleanly and reinstall it.  However, the installation bypassed it everytime and said that I already had the latest NI-MAX.  How do I remove NI MAX through other means?

 

Thanks in advance.

 

Fang

Parameter out of range

$
0
0

HI

 

I get "Parameter out of range" in SR830 driver.

I tried the possible solution i could. figure.

 

Pls guide.

Problem with Serial Communication

$
0
0

            I am trying to write "\x59c\x3aimagesnap" to a scanner using the VISA serial read and write vi and I'm having problems reading the image from the scanner. When i type the same command in a terminal. I get the Image Data, the command read back to me in ASCII as well as any barcode scanned. When I use the VISA serial write and read vi., I receive just the information scanned from a barcode.

            I'm using one of the Example serial vi's as a test. the "Continous serial read and write.vi" under help  / find examples and type serial. Could I get help in how to create  a terminal-like output  within LabVIEW through a serial connected scanner?

Please and Thanks


EtherCAT Slaves

$
0
0

Hello. I am not sure if I navigated to the correct location or not. What I am trying to find out is, what is the ingress protection of the NI slave modules that interface with with an EthernetCAT Master? I don't have an exact part number. I have been told that there isn't anything NI available that will be any better than IP10 but I haven't found anything to support that claim. If someone might know, I would sure appreciate it. Thank you.

LD 400 Aim-TTi INSTRUMENTS Labview Drivers

communication problems with measurement devices (GPIB)

$
0
0

Hello,

 

I'm using five measurement devices for my test rig and sometimes I have communication problems with two measurement devices. It is weird, because this problem is only sometimes and not always. I am controlling the devices with a VI that I have created on LabView 2014. The Keithley 2400 and the ILX Lightwave LDT 5910 b do not work fine. All measurement devices are connected with GPIB. To scan the measurement devices I am using NI MAX. Sometimes the devices are shown as Instrument 0/1/2/3/4 instead of their model name. In this case the communication is not working. Currently I am solving these communication problems by turning off and on the measurement devices or changing the device with an other.

Due to the fact that this can not be a solution, I want to know whether you can recommend an other way to solve this communication problem.

 

I hope, you can help me.

 

Best regards

Samim

AM-9898 HART communications CompactRIO Module not recognized by NI 9148

$
0
0

I am running a small scale lab test since several years using LabVIEW 2012 and the Compact RIO NI-9148.

Recently I have bought the extra module AM-9898 to expand the system. I have mounted it in the first available cRIO slot (slot 4).

However, when I try to add the module in my LABVIEW project (by right-clicking the Chassis NI 9148, selecting New.....C Series Modules....), I can't add it: slot 4 shows

"Unknown (Slot 4)

This module is not supported by the current versions of LabVIEW and NI-RIO.  Contact the Module manufacturer for more information about how to use this module with LabVIEW."

(See attachment)

 

I have an up-to-date system according to NI Update Service (LabVIEW 2012 SP1 - Version 12.0.1f5 (32-bit)

 

I have downloaded and succesfully installed the AM-9898 driver (version 1.0.19) using the VI Package Manager.

 

What can I do to enable this module on my system?

Thanks for your help, as I am currently stuck....

Execute different DAQmx tasks based on DAQmx output buffer index

$
0
0

Hello everyone,

 

I am a beginner labview=>DAQmx user and i run into the following problem/challenge;

 

I am sending a array of data (signal) to a USB DAQmx device, and i want to switch two powersupply outputs based on a certain output index of the signal. I would like to be able to realtime control the index numbers at which the power supply is switch on/off. I currently can controll the power supply manual from the front panel but want to build in the option to set this to automatic. It is a single power supply that is controlled, but it can be set over 2 channels (-25V and +25V) to power 2 active divices.

 

I current can think of the following methods to solve this but i am not sure how to do this;

-Request (from within a while loop with a short loop time) the current buffer output index from DAQmx and send command to producer loop when a certain output buffer index is reached.

-Chop the signal that i am using into sections and write every section simultanious with other command, i think this is not a neat solution.

 

The timing of the power supply does not have to be on the ms correct but within 100ms would be nice.

 

Thank you for reading;

I am looking forward to your reply

Arduino, VISA, Serial Communication

$
0
0

Hello to all the users,

I'm new here. What I'm trying to achieve is to graph in real time data from two accelerometers connected to an arduino uno. The problem is that I am not receiving anything if I connect the sensors, but it works if I leave the analog inputs of my Uno floating. This is the code:


float Sensore1, Sensore2;     // Variabili che contengono i campioni da inviare a LabVIEW

void setup() {
 Serial.begin(115200);    // Imposto il baudrate a 115200
  while( !Serial.available() ) ;   // Inizia il loop quando LabVIEW invia una lettera per avviare la lettura dei sensori 
 }

void loop() {
  

//Dati da inviare a LabVIEW
    
    Sensore1 = (analogRead(A0) ) * 5.0 / 1024;     // Dati rilevati dal primo sensore
    Sensore2 =   (analogRead(A1) ) * 5.0 / 1024;   // Dati rilevati dal secondo sensore  
    Serial.print("a");                          // Stringa appesa al valore del primo sensore per effettuare il riconoscimento da LabVIEW
    Serial.println(Sensore1);                   // Scrivi sul monitor seriale i campioni relativi al primo sensore
    delay(3);
    Serial.print("b");                          // Stringa appesa al valore del secondo sensore per effettuare il riconoscimento da LabVIEW
    Serial.println(Sensore2);                   // Scrivi sul monitor seriale i campioni relativi al secondo sensore
    delay(3);

    
}

Missed bytes in VISA communication

$
0
0

Hi,

 

I created two programs with labview which communicate together using virtual COM ports that are connected properly.

The first program sends a paquet containing an integer n to the second program which would return n paquets containing 9 bytes, between every two consecutive paquets there is a pause.

When I set the baudrate to 500 or 700 for both programs and for n=360 , they work properly and no byte is missed. 

The problem is when I change the baudrate to 1000 and higher , for both programs, and n is still equal to 360 , there are some seperated bytes missed ( between 0 and 3 bytes in general).

So what do you think the source of problem is ?

It can't be the buffer size because it's set to 64399599 ( no kidding , it is the maximum size allowed). Besides , I used the both programs for another purpose where the first one received from the second 1000 * 9 bytes for n times ( there are a period of pause between two consecutive times of sending of 9000 bytes).

 

On the other hand , I checked what the second program sends by looking at the return count output of the VISA write, and by trying to send these paquets to hyperTerminal. And there are no lost paquet ( even for a baudrate of 9600).

 

So I suppose the problem is in the read part.

 

If somebody would help me I would be very grateful.


LabVIEW interface using Firmata protocol to control Arduino microcontroller

$
0
0

I would like to use a LabVIEW interface to control an Arduino microcontroller using a Firmata protocol.

The desired goal would be uploading an Arduino sketch with the Firmata functionality so that the Arduino could be completely controlled by the host computer using the LabVIEW interface to enter Firmata-commands (to activate relays, run a bipolar stepper motor, read values from an encoder, etc…).

Does anyone have experience with the Firmata protocol and how to implement it using VISA?

The old Firmata home-page offered one example of a LabVIEW program using the Firmata protocol; however, it is only scanning the Firmata report for the analog pin voltage values. It does show how to convert the corresponding hexadecimal values to the LSB and MSB bits but I am unsure how to use this.

I have only progressed by using the “vvvv” software and seeing how pin values and pin modes are encoded to the Firmata protocol. Using the “Standard Firmata” uploaded on the Arduino, I can successfully activate LEDs using digital or analog (PWM) commands through the “vvvv” interface. When I try to use these same commands but using my LabVIEW interface, I cannot activate the LEDs relying on analog commands for power. If I change my pin modes and commands to be all digital, I can successfully activate all LEDs using my LabVIEW interface and “standard Firmata” sketch.

I am currently trying to communicate to the microcontroller through a USB serial connection using LabVIEW’s VISA to write commands. These commands are strings but changed to hex display. As mentioned previously, I can successfully command digital pin values but cannot command pin values by PWM.

As I understand it, the Firmata protocol loosely follows MIDI where command bytes are 8 bits and data bits are 7 bits. I do not know how the LSB and MSB bits are used. Supposedly, there are some commands that can accommodate more bits but I have not successfully applied them.

Individual examples (“0x” is the hexadecimal radix)

0xF4 0x08 0x01 = PinMode for pin 08 is set as a digital output

0xF4 0x03 0x03 = PinMode for pin03 is set as a PWM output

0x90 0x00 0x00 = port 0 of Arduino has LOW Outputs on all its pins

0x90 0x08 0x00 = port 0 of Arduino has one HIGH output on pin 03

0x90 0x08 0x00 0x91 0x11 0x00 = port 0 has one HIGH output on pin 03; port 1 has HIGH outputs on pin 08 and pin 12 (which does work)

0x90 0x00 0x00 0x91 0x11 0x00 0x92 0x00 0x00 0xE3 0x01 0x7C 0xEB 0x00 0x 00 =

Port 0,1, and 2 have LOW outputs on all digital pins, pin 03 has some PWM output (somehow corresponding to “255”); pin 11 has no output

The last example does not activate LED’s using the analog write command.

I have attached some supplementary material if anyone is interested including my programs that activate digital pins only and tries to activate digital and analog pins.

 

Attached

My labview program

My Firmata set-up commands

Standard Firmata sketch for Arduino

 

References

Firmata protocol

https://github.com/firmata/protocol/blob/master/protocol.md

Firmata home page (old)

http://firmata.org/wiki/Main_Page

Firmata labview example

https://code.google.com/p/labviewduino/

Firmata download

https://github.com/firmata/arduino

Vvvv download

http://vvvv.org/downloads

 

Hardware

Dell XPS 8300

Intel Core i5-2320CPU @ 3.00GHz

8.0GB RAM

Arduino Uno R3 SMD edition

Arduino Motor Shield R3

 

Software

LabVIEW Developmental System 8.6

NI-VISA version 5.0

Operating System: Windows 7 Home Premium, 64-bit

Arduino IDE version 1.6.5

Standard Firmata, copyright 2015 Jeff Hoels

vvvv version 45beta34.1, x64

vvvv addonpack version 34.1.0

Firmata version 2.6.1

 

Using a Labview VI, I send a query command to my device and the proper data is displayed but when I send a different query command the old data is returned

$
0
0

I am new to LabView and GPIB so I apologize if this is something trivial but I could not find anything related...I am not sure if this is realted to my device, my VI, GPIB or a combination of such.

 

I am using a Labview 2009, I am using the Basic GPIB Read/Write VI to command and query my device which is connected via a GPIB-USB interface. I am confident that the VI works, I can command my device to set certain parameters and I can query those parameters to ensure they accepted by the device. So, let's say I send a command to route my RF power to be measured on the top port, I then send a query to see how much power is at the top port. My device reports 21.5dbm (Current), 22.6 (Max) and 21.3 (Minimum).

 

My problem starts when I send the next query, let's say I query the frequency. I am expecting my device to report 1030.1MHz (Current), 1030.7 (Max) and 1030.0 (Minimum) but my VI is reporting the data from the original query, 21.5dbm (Current), 22.6 (Max) and 21.3 (Minimum). After I run the VI several times the correct data is received. I would really only like to run the VI one time and have the correct data appear.

 

I am not sure if this is coincidental or part of my problem...First, I ran my VI 15 times before the "Frequency Query" reported correctly. I then sent another query and I had to run the VI 33-35 times before the correct data displayed; I then had a hunch and sent another query, this time it took approximately 64-65 times to run the VI before the correct data was captured.

 

Any help would be appreciated.

 

(I needed to edit this post because it was written as if I wrote the VI...I did not; I downloaded it.)

 

Thanks,

jb

 

Can't Talk with Omega CN7200 Temperature Controller

$
0
0

I have an Omega CN7200 PID temperature controller that I’m trying to talk with using VBA code and NI-VISA. The CN7200 has a RS-485 bus, but I bought a 485-to-USB converter from Omega. As a test, I loaded Omega’s SW and the 485-to-USB driver, and I can read and write the CN7200 registers just fine.

 

There is no NI-VISA driver specifically for the CN7200. There is one for the CN7500, so I downloaded the NI-VISA driver for this. Since the CN7200 and CN7500 use the same Omega user’s manual, I’m hoping this driver will work. However, while the NI-Max sees the 485-to-USB converter on COM6, when I do a IDN query I get this message: “Read Operation Error.  VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.” Another window says “Return Count: 6 bytes”. So it seems like data is being read but not recognized.

 

Any ideas on how to troubleshoot this? (I’ve tried changing the NI-Max baud/data bits/stop bits/term character, but nothing seems to help. I also extended the time out to 2000ms.)

How to create ampere control signal (4-20 mA) from voltage control signal (-10-10 V)

$
0
0

I have to control 4 proportional valves (Bürkert 2873 x 3 & 2875 x 1) installed on a gas line. These valves control signal type is 4-20 mA. I have a NI USB-X 6343 daq with 4 AOs of -10 - 10 V. How can I control these valves with this daq device? I am not familiar to electrics/electronics, that's why I am asking. Thanks in advance.

 

Controlling AC Voltage Output via LabVIEW

$
0
0

Hi,

 

I'm trying to control an AC voltage output from 0~250V using LabVIEW, but I couldn't find any device that does this kind of operation and can communicate with LabVIEW. All the NI DAQs available only operate at low voltages (-10/10V) for signal generation. Does anyone know any power supply or method that could do this function?

 

Thank you!

 

Kenny

Viewing all 5688 articles
Browse latest View live


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