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:
labview  max  output  pll multiply  pll set  pll  read  select pll  serial  set select  set  source  trigger  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: Fri, 22 Sep 2017 06:45:21 GMT2017-09-22T06:45:21Z

 



searching for instruments with NI MAX

Thu, 21 Sep 2017 20:15:36 GMT2017-09-21T20:15:36Z

I have 2 LAN busses on my system.  One connects to most LAN instruments on the test station while the other connects to a small local network.  I believe MAX is searching both lines and taking 5-10 minutes to complete its search.  Can I restrict MAX's search to the instrument busses of my choosing?

 

Thanks.




Labview and K2600 Series Driver

Thu, 21 Sep 2017 14:31:33 GMT2017-09-21T14:31:33Z

To whomever,

I am trying to write a labview script using the K2600 series driver for labview. The script is for producing an IV transfer curve (drain current vs gate voltage at a constant drain voltage) and IV output curve (drain current vs drain voltage at constant gate voltages) for an OFET. I have looked over the advance sweep example; however, I am having some issues and would like to get some clarification. Find attached my VI and a tsp that I am emulating into the script. My issue is how to incorporate the following Lua code using the driver triggers into the transfer_curve script:

 

 -- overwrite some value setup in the configSweep() function
    -- no current measurements on gate, but measure voltage for use in printData()
    gatesmu.trigger.measure.v(gatesmu.nvbuffer1)
  
    -- gate sources after drain sources the Vds bias
    gatesmu.trigger.source.stimulus = drainsmu.trigger.SOURCE_COMPLETE_EVENT_ID
    
    -- measure drain current after each gate voltage is sourced
    drainsmu.trigger.measure.stimulus = gatesmu.trigger.SOURCE_COMPLETE_EVENT_ID
    
    
    -- output on, run the sweep and then turn the output off.
    drainsmu.source.output = drainsmu.OUTPUT_ON
    gatesmu.source.output = gatesmu.OUTPUT_ON
    
    -- start the gate first, so that is armed and can detect drain source complete event
    gatesmu.trigger.initiate()
    drainsmu.trigger.initiate()
    
    waitcomplete()
    
    drainsmu.source.output = drainsmu.OUTPUT_OFF
    gatesmu.source.output = gatesmu.OUTPUT_OFF

and how to incorporate the following codes into the output_curves script:

 

smu.trigger.source.limiti = smu.LIMIT_AUTO
smu.trigger.source.action = smu.ENABLE
smu.trigger.endsweep.action = smu.SOURCE_IDLE
smu.trigger.endsweep.action = smu.SOURCE_HOLD
smu.trigger.source.set()

I do realize that SMU needs to refer to a specific SMU; however, in this case I am just generalizing the code.

 

I emphasize that I am not trying to upload a tsp script, but rather use all driver capabilities to do the same routine with labview. I have initiated the sweep on the gate channel; however, I do not know how to proceed afterwards. Any information would be greatly appreciated.




MAX crashes OS when a RS-422 PCI card is installed

Tue, 19 Sep 2017 13:36:15 GMT2017-09-19T13:36:15Z

I have an RS-422 PCI card installed. It is not an NI card nor is it a third-party card intended for use by any NI software or hardware. But, when I open MAX and try to select 'Devices and Interfaces' The entire OS freezes. On XP it just sits there until you do a hard system power On/Off. On Windows 7 and Windows 10, it literally crashes the OS and causes a reboot. If I disable the card in device manager,  'Devices and Interfaces' opens fine. 

    Is there a way to tell MAX to not look for that card?




Controlling MS40 series leak detector (by VIC)

Mon, 18 Sep 2017 17:23:30 GMT2017-09-18T17:23:30Z

Any one successfully setup communications with this device?  I seem to be able to send it commands, but I cannot decode the response it is returning to me.  It doesn't seem to be in the format they specify on the data sheet.  Plus I am getting framing errors when I try to read the data back.




RS-422 over NI 8431

Mon, 18 Sep 2017 06:11:02 GMT2017-09-18T06:11:02Z

Hi everybody,

 

I'm using the NI-8431 to communicate with an instrument from a PC.

The instrument uses 4 channels - 3 RS-485 half duplex at 1 Mbit/Sec and 1 RS-422 at 2 Mbit/Sec. On the RS-422's channel the PC sends 150 byte at 30 Hz and the instrument sends two messages, one of 231 bytes and the other of 150 bytes at 60 Hz (total of 120 messages/sec). I have problem to receive the incoming message whenever the outgoing message is transmitted. When I inspect it using Port Monitor application, I see that whenever an outgoing message is sent, I receive only partial (about 150 bytes) out of the 231 expected bytes. Any information/suggestion about the issue?

 

thanks in advance,

Nir Gil

 




Read bytes problem in RS232

Sat, 16 Sep 2017 14:05:29 GMT2017-09-16T14:05:29Z

Hi everybody

 

I have a device. This device has been designed to send a data stream which is 47-byte in every 100 mSec without any command.

 

When I begin to read the datas, I read 47-bytes data stream at the bytes read terminal of VISA Read function. But a few seconds or minutes later, it goes crazy. I mean it is raising up to for example 230 byte or falling to 17 byte.

 

Any idea or help please??   (By the way, I am using "Bytes at port" proporty node before read function)

 




Problem of run block labview ultrasonic for Arduino uno R3

Sat, 16 Sep 2017 13:04:02 GMT2017-09-16T13:04:02Z

I'm student in Asia.I going to make project.I can't run labview for altrasonic sensor with arduino uno r3.Why program don't run? Ask me pls!!! I'm until wisdom. tell me a code labview for run program pls.This is a my code in attached file.

 




Disconnecting Hardware between VIs in multi-VI application

Fri, 15 Sep 2017 19:54:08 GMT2017-09-15T19:54:08Z

Hello,

 

   I am currently putting together several VIs (to run as sub-VIs) to run in succession in a master VI. The first VI in this series accesses some hardware and then is supposed to disconnect once the VI has completed its run using the 'close all references' and 'close communication'. However, when the program reaches the next sub-VI in the series which requires the same hardware, the VI will not execute because it's hanging up on the hardware. I have tested that VI separately and verified that it works stand alone which leads me to the hardware conclusion.  Please advise.

 

Thanks,

 

Emma




How to count the no. of packets received

Thu, 14 Sep 2017 12:04:17 GMT2017-09-14T12:04:17Z

Hi,

I am interfacing a weighing scale to LabVIEW through VISA serial.

When weight is placed on the weighing scale ,it generates the string "[xxxxx]"  where 'xxxxx' is the weight in grams.

The simple serial read VI that I have attached can read & display the weight very easily.

But I also need to count the number of readings with date/time stamp for recording & report generation.

I tried event based programming without success. 

Any pointers please ?




CP210x UART bridge in TH1941 multimeter

Thu, 14 Sep 2017 08:57:44 GMT2017-09-14T08:57:44Z

Hello,

I'm trying to connect my digital multimeter with labview 2016, i downloaded the driver for the UART bridge in silicon labs website and all is working OK, in the MAX, VISA test panel  > Input/Output i send the IDN command and its working its sends the model and version of the multimeter.

So, i need to connect the multimeter with labview, for collect data and start working on my experiment. What i need to do for start capting data from multimeter? I need to do instrument driver? or i need to do a program in labview to read serial port?? 

The multimeter es Chinese and in labview i cant find the driver of my multimeter.

The multimeter is a TH1942 USB with cp210x USB UART bridge for pc connection.

Thank you for help!!!




F240 writing problem

Thu, 14 Sep 2017 03:34:22 GMT2017-09-14T03:34:22Z

I have a problem when I write F240.
My F240 board is a 4MHZ crystal oscillator, using DOS to writing with the default and the 10MHZ crystal oscillator setting.
Now I know that I need to modify the C240_CFG.I file. However, the minimum frequency of the file is PLL_MF_10. The contents of the file are as follows:

 

; Only ONE PLL Mult factor should be selected (set to 1). If more than one is
; selected only the last on the list will take effect. If none selected then
; default is PLL MF = 1.0


PLL_MF_10 .set 0 ; 1 : Select PLL Multiply value of 1.0
; ~
PLL_MF_15 .set 0 ; 1 : Select PLL Multiply value of 1.5
; ~
PLL_MF_20 .set 1 ; 1 : Select PLL Multiply value of 2.0
; ~
PLL_MF_25 .set 0 ; 1 : Select PLL Multiply value of 2.5
; ~
PLL_MF_30 .set 0 ; 1 : Select PLL Multiply value of 3.0
; ~
PLL_MF_40 .set 0 ; 1 : Select PLL Multiply value of 4.0
; ~
PLL_MF_45 .set 0 ; 1 : Select PLL Multiply value of 4.5
; ~
PLL_MF_50 .set 0 ; 1 : Select PLL Multiply value of 5.0
; ~
PLL_MF_90 .set 0 ; 1 : Select PLL Multiply value of 9.0
; ~


;NOTE: The Flash Programming algorithm assumes an internal cycle time of 50nS
; (i.e. 20MHz CPU clk) Value selected above should take this in account.

 

So, how do I configure it? Thank you so much!

 




Version conflicts between NationalInstruments,Visa and IVI.Visa in NI-VISA 17

Thu, 14 Sep 2017 03:18:02 GMT2017-09-14T03:18:02Z

A version conflict exists between NationalInstrument.Visa DLL revision 17.0.0.0 and the ivi,visa DLL revision 5.8.0.0.  Based on the AsmSpy output shown below, it seems that NI Visa was compiled against ivi.Visa 5.6.0.0 where ivi.Visa 5.8 is delivered with NI VISA 17.

 

Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\David>\\Fig\i\Pub\Applications\AsmSpy\AsmSpy.exe "C:\Program Files (x86)\IVI Foundation\VISA\Microsoft.NET\Framework32\v4.0.30319\NI VISA.NET 17.0"
Check assemblies in:
C:\Program Files (x86)\IVI Foundation\VISA\Microsoft.NET\Framework32\v4.0.30319\NI VISA.NET 17.0

Reference: mscorlib
4.0.0.0 by NationalInstruments.Visa
2.0.0.0 by NationalInstruments.Visa
Reference: Ivi.Visa
5.6.0.0 by NationalInstruments.Visa
Reference: NationalInstruments.Common
13.5.40.173 by NationalInstruments.Visa
Reference: System.Core
4.0.0.0 by NationalInstruments.Visa

 

Please advise.

 

 

 




pxie-5160 issue using IVIScope driver

Mon, 11 Sep 2017 19:44:54 GMT2017-09-11T19:44:54Z

I am having issues getting my PXIe-5160 4-ch scope to work with the IVIScope drivers.  I am taking a measurement over 400us with a min record length of 10,000.  When I prepare a reading on channel 0, this works fine.  But then when I go to do the same thing on channel 1, it gives me the attached error message.  I do want to be able to capture data on both channels, or even all four maybe.  I do not see anywhere to set the sample rate.  This seems to be a read only attribute that the device should be figuring out itself.  I do not see the problem as at 400us long, 10,000 samples, that's only 2.5e7 rate needed which is way slower than the max of 1.25e9 it can do.




PCI-GPIB for newport ESP300

Mon, 11 Sep 2017 17:33:33 GMT2017-09-11T17:33:33Z

I am not able to find the ESP 300, by instrument scanning. I am using PCI GPIB card for communation. 




sbRIO-9607 DIO Serial Interface and CLIP Generator

Mon, 11 Sep 2017 11:54:21 GMT2017-09-11T11:54:21Z

  tannerite wrote: This presentation covers what a CLIP is, how to navigate through the sbRIO CLIP Generator, and how to import a socketed CLIP into your LabVIEW Project. Hi,   I have a very related problem with upper slide in my project, my hardware is NI sbRIO9607. I want to use the RS232 serial interface provided by Labview Clip Generator and I have also done all the necessary assignments written. But I could not find any way to access to the created port (serial nor parallel created by Clip Generator), with VISA or MAX. All DIO pins are working correctly without using in a Clip Generator serial port. However, only the ASRLx::INSTR ports could be accessed via MAX or VISA. According to the quote from publication which I put to the beginning, I understand that ASRLx::INSTR ports are the corresponding Serial Ports. However there is no data communication sensed while I am testing the pins by this assignment (i.e. I considered Serial2 is ASRL2::INSTR , and all of the other ASRLx::INSTR ports are also tested whether one of them might be the Serial2 port or not). I put screenshots below.   How could I access this Clip Generator ports, could you please help me?   Thank you very much, Best Regards,   Onur YILDIZ RT VI Code Clip Generator Configuration   Clip Generator SummaryRMC Socket Properties ConfigurationProject ExplorerRT VI InterfaceNI MAX Interface[...]



Where can I find NationalInstruments.NI4882.dll version 8.1.20.119?

Sat, 09 Sep 2017 06:45:08 GMT2017-09-09T06:45:08Z

Hello!

I have failed to find that version of dll on ni4882 drivers page. There are lot of drivers from major version 1 to 17 but no 8 at all. I try to use old dll that compiled with connection with NationalInstruments.NI4882.dll version 8.1.20.119 and i can't recompile it. So i need exactly 8.1.20.119 version dll.




Read real time (pressure) data from CPC6000 and plot on graph using GPIB

Fri, 08 Sep 2017 13:00:50 GMT2017-09-08T13:00:50Z

Hi, 
I'm trying to read real time pressure data from a Mensor CPC6000 in LabView using GPIB. 

I've tried a basic program using LabView VIs 'GPIB Write' and 'GPIB Read' The CPC has two channels and I would like to plot the pressure readings specifically onto a chart. Manual of CPC shows a range of commands, but as I'm new to this level of labview programming, I'm not sure how they are used.

See preliminary circuit. 

 




can we configure USB raw device from executable which is built-in LabVIEW instead of using NI VISA driver wizard

Fri, 08 Sep 2017 09:18:17 GMT2017-09-08T09:18:17Z

As of my understanding, USB raw device can be configured using NI VISA driver wizard.

 

http://www.ni.com/tutorial/4478/en/

 

Above link mentions how to create using NI-VISA driver wizard.

 

But I need to configure through an executable or a stand alone created from LabVIEW. 

 

 

Thanks........

 

 




NF5600 A and NF5610B lock-in amplifiers

Fri, 08 Sep 2017 05:48:15 GMT2017-09-08T05:48:15Z

hi, I was wondering if someone can give me labview drivers for the NF5600 and NF5610 lock-in amplifiers?

The NF company was very helpful in saying that they don't have labview drivers for the said lock-in amplifiers.

 

Thank you so much




RTSI cable

Thu, 07 Sep 2017 13:45:28 GMT2017-09-07T13:45:28Z

Hello Everybody,

 

could any of you tell me what is the impact of adding RTSI configuration to the NI MAX configuration in case I already sharing trigger between the devices in the one chassis as shown in the attached picture .

I got problem in the NI-MAX configuration and one of the suggestion is to add that. my concern if there will be any conflict between the two method.   

 

 

Thank you very much

best regards