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

please help me with my electrical engineering homework : temperature control and watering system for greenhouse using labview and arduino

$
0
0

temperature control and watering system for greenhouse using labview and arduino


spesification :

1. max temp : 28 celcius (when temperature is more than 28 celcius, fan ON)

2. min temp : 20 celcius (when temperature is under 20 celcius, heater ON)

3. watering system : aquaponic (grow plant and fish in separate tank but connect each other). Plant roots help filter water for fish. Fish poop for plants fertilizer. So I need a pump to distribute water.

 

Please help me create VI file simulation.. I'm sorry I'm not fluent in English. May God bless you all


"Serial read-write with timeout(VISA).vi" not founded vi

$
0
0

Hi,

 

my question is: How can i find or download the VI "Set_Speed_command.vi", "Serial Read-Write with timeout(VISA).vi" and "Read_Real_Speed_Command.vi"

 

i have one labview program who use this blocks, and i could not found this "sub" vi's

 

thankyou everybody

with regards

Long time of saving screen of ESA

$
0
0

Hi,

 

I am preparing a screen capture program for ESA 4402B. It takes about 20 sec to save the file .gif on the hard drive. It doesn't matter wheather it was inicialized in ESA or remotely using SCPI command ":MMEM:STOR:SCR 'C:TMPIMAGE.GIF"

 

Does anyone know how to make it faster?

 

Piotr

Problem with crio 9075 doesn't see 9870 serial port

$
0
0

Good morning.

I ask you a (big) help with my crio 9075 and c-series module 9870.

I've installed NI-visa 5.4.0 and NI-serial rt 4.0 with 9870/9871 real time support. I can see them near the built in serial port under Devices and interfaces in Max.

If I use a 9870's port in a windows VI or deployng a VI on the c-rio and running it with labview everything works fine, but if I build an app to auto startup on the 9075, the crio can only see the built in port. For example if in my VI there is the "Visa find Resource" block, it returns an array with 1 element with the built-in port address (ASRL1::INSTR) intestead of ASRL1::INSTR/ASRL2::INSTR/ASRL3::INSTR/ASRL4::INSTR/ASRL5::INSTR that i find if i run the same VI by deploing the VI e run it. If I try to open a port with "Visa serial Open" i get an error (-1073807343). What can be the problem? I formatted and reinstalled everything a couple of time, and everything works when launching the app via labview. It can be some elettrical issue? An issue related to the build specification?

Sorry for my bad english. I would appreciate any help!

 

VISA MEMACC not transparant

$
0
0

For a driver development I am doing there is also a DMA needed. I used the white-paper how to develop a driver with VISA for PCIe/PXIe. (http://www.ni.com/white-paper/3251/en/)

 

An important note is missing in the white paper and also in the description of the VI "VISA Memory Allocation". The memory allocation is aligning at the 4096 boundary, but first it uses 8 bytes for metadata, so the offset you receive is not aligned at 4KB.

 

In the hardware description of my DMA controller is stated:

Note that the bus logical address must be 32-bit double word aligned, and all DMA transfer must not cross the naturally aligned 4096 byte boundary as specified by the PCI Express based specification 1.1 (i.e. start address plus transfer length cannot cross whole multiples of 4096).

 

Because the transfer size of my card is always 4096 bytes and I used the offset given by the memalloc vi, it didn't work and it did cost many hours of searching around because the memory allocation seems to be transparent.

 

So I think this undocumented nasty feature should be documented and maybe a Boolean can be added to choose if the offset should be aligned to the pagesize. The problem can be avoided with allocating 4096 bytes more than you need, and search the right boundary yourself. Like this LabVIEW can implement it also, the first page is used for metadata.

But it should be at least documented.

Measureing Intruments

GPIB agilent 5752A

$
0
0

I have connected 2 ,5752A power supply to the GPIB. which i whcih ON either of one and control the supply the system works fine.

if I switch on both the power supply , the Max is not able to access.

 

Is this becasue both the power supply of same make (N5752A).

 

How to set the GPIB address for N5752A(I know i should contact to Agilent for this )

 

Can you please help me in recognising both the power supply at the same time.

 

Regards,

Prithviraj

Periodic read errors for Agilent 8453

$
0
0

Hi all,

   I am using the Agilent 8453 UV spec for pH measurements every 15 minutes (for up to 3 weeks). I am using the drivers downloaded from the NI website (most recent version), and calling the "Agilent Read.vi", and telling it either to take a blank, or a sample (and setting wavelength range). I am using the GPIB interface. However, about once a day, errors of either: NI-488: No listeners on the GPIB, or ERror 1073994876: instruemnt timed out during read process. Once I physically restart the Agilent, the problem disappears. 

   The Agilent Read.vi has subvis that initializes, configures, and closes the communication ports to the Agilent. Does anybody know what could be causing this error? It would be nice to not have to come into the lab at random hours throughout the day (and ot. n holidays) to just restart the Agilent.

 

thanks,

Yui


enet/100

$
0
0

I have setup up the GPIB-ENET/100.

But  I can't "scan for instrument" (power supply)

why??

 

Do you send e-mail to me?

 

THANK YOU

Reverse Engineering Portmon log to obtain Labview serial configuration settings

$
0
0

Hi there,

I am attempting to interface Labview with a custom-designed power supply device through a USB-RS232 adapter. The power supply came with a "debugging interface" programmed in java with which one can send and recieve commands to the board (detect, set voltage, get voltage, stop, reset, etc.) through the USB-RS232 adapter which works fine.


I however am not experienced with java in the least and want to streamline command sequences with Labview, as I am interfacing the rest of my lab equipment with Labview. I dont have experience connecting serial devices, I do have USBTMC & GPIB VISA interfaces with the other equipment.

Nonethless I've tried the advanced serial communication example provided by NI, (http://www.ni.com/example/27665/en/) - I have appropriately set to COM3 as my device manager (and MAX) find the correct port for the device, baud rate, data bits, stop bits, parity, flow control, XON/XOFF characters, Input Buffer Size, End read/write with termination character, which termination character, and how long till time out.

Yet from my Portmon log, I'm seeing that the java interface sets a few other parameters that I (at the moment) do not have access to through the labview VI (or from MAX). How do I set Output Buffer Size? What are  EOF? EVT? Replace? XON/OFF limits? WC? How do I set them?

Both Portmon log files are attached.

Unsupported version of visa

$
0
0

I've been trying to install the NI-488-2 HS USB software on my Windows 7 64 bit Enterprise laptop and I keep getting this message:

 

Unsupported version of NI-VISA detected

A version of NI-VISA that is not supported on this operating system has been detected. You must cancel this installation and uninstall the older version before continuing. Visit ni.com/info and enter the Info Code CleanVista for more information.

 

However, there is no National software shown when I try to do an uninstall (I have not installed any National software on this computer and the computer was never upgraded from an older version of Windows).  I did find a National Instruments folder and deleted that.  I created a system restore point, backed up the registry, ran the registry editor and deleted everything I could find under a search of "visa."  All to no avail.  What am I missing here?

Upgrade to NI488.2 3.1.2 encounters an error

$
0
0

Hello,

 

yesterday I ran NI Update Service which suggested to update my old GPIB installation to version 3.1.2.

 

During installation the following error message was displayed:

 

gpib.png

 

After clicking OK the installation continued...

(Win XP SP3)

The installation folder (N:\NI_20131203_1752) was on a network drive.

 

Is this the usual experience or should I be worried? 

Unable to acquire serial COM1 lock on Fluke 45 in LabVIEW

$
0
0

When the Fluke DMM ECHO setting is on, the following happens using the VISA test panel in NI MAX:

 

  1. From the VISA panel, a write command is sent to write *IDN?\r to the multimeter.  No error, the DMM accepts the command.
  2. From the VISA panel, a read command is sent, and the DMM echos the previous write (*IDN?\r) command back to the VISA panel
  3. From the VISA panel, a read command is sent, and the DMM reports the result of the write command (FLUKE, 45, [sn redacted], 1.7 D1.0\r\n)
  4. From the VISA Panel, a read command is sent, and the DMM reports that the write command was received and executed successfully using the DMM's default nomenclature (=>\r\n)

 

Note that this is entirely the same when the ECHO setting is off, except that step 2 does not occur.

 

Now, this is entirely the same as the following output when issuing the *IDN? command in Tera Term:

*IDN?

FLUKE, 45, [sn redacted], 1.7 D1.0

=>

 

(Tera Term, does not display the carriage return (\r) or line feed (\n) like the VISA panel does.)

 

So, it would appear that the VISA panel is communicating with the DMM in the same way as terminal, it is just not actively reading like Tera Term and requires the user to request a line read.

 

What I do not understand, is the difference between behavior of the DMM when using Tera Term or the VISA test panel and when using LabVIEW.

 

When communicating with the DMM in Tera Term or the VISA Panel, the DMM responds by going from display state 1 to display state 2 (see images below).  When attempting to use even the most basic example serial communication VIs or the Fluke plug and play driver VIs, the DMM stays at display state 1.  Note that the change from state 1 to state 2 happens only after initiating a connection in Tera Term or the VISA panel; so, I believe that I am experiencing an issue where LabVIEW is unable to acquire a communication lock with the serial instrument.

 

If anyone has insight, please let me know if you have any way to troubleshoot this particular issue.

 

 

Display State 1:

ds1

 

Display State 2:

ds2 

 

Doble F6150 power system simulator driver?

problem with changing computer (GPIB)

$
0
0

Hello everyone!

I have one very strange problem.

I wrote program to communicate with electormeter Keithley 6517B at one computer. I have tested it and everything worked fine.

For measurments I need to use notebook and transfered this program into notebook.

So 2 strange things happened:

  1. Measured resistivity is ALWAYS equals to 1 (should be 1.5 MOhms) 
  2. Testing a previous version of program (without automatic measurments and so on) gives a right value of resistivity = 1.5 MOhms.

Any ideas?

Regards,

Dmytro Lotnyk


Keyence LK-G10 Drivers

$
0
0

Hi,

 

I'm trying to use the Keyence LK-G10 laser displacement sensor with Labview V13.0

 

I have the attached dll files sent to me by Keyence. I'm trying to use the import shared library function to convert these into VIs.

 

I'm facing the following problems and would appreciate it if anyone can help:

-When I import the LKIF.dll file it only recognises 6 of the VIs. The others are rejected as they are "not in the header file but exported from the library" or "The 'IN, OUT' symbols are not defined".

-The KeyUSBDrv.dll doesn't appear to have a header file?

 

I don't have much experience in this area, so is it possible to alter the header file to define the IN/OUT symbols?

 

I saw there are a couple of other questions about Keyence lasers, but these don't seem to have to same problems as me.

 

Any help is much appeciated,

Marc

MAXstoppedserviceerror

$
0
0

Hello,

 

I often get an error message MAXStoppedServiceError after starting MAX. I have tried to restart the service NI Configuration Manager, but after restarting this service it stops. The only solution that works is to restart the computer, but mostly I have to restart the computer several times before NI Configuration Manager runs. I have installed all the critical updates, but it did not help.

The same problem I described in http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Unexpected-Error-in-NI-MAX/m-p/2495118 , but now I don´t get any error message about GPIB.

I use Windows 7 and LabView 2013.

Do you have any ideas?

Labview AD5933

$
0
0

Hi all, I´m trying to get a communication between Labview and my evaluation board from Analog Devices AD5933 for impedance measurement through USB port. I installed the VISA driver and did all procedure suggested in manual to make my board recognized. I think I had success on it because VISA Interactive Control is able to find and open the resource.

However, unfortunetely I can´t make any write or reading from board but the  it´s possible with the driver from windows7.

 

When I open  Measurement & Automation Explorer I can see my my resource installed and inside VISA test panel the usb setting are:

 

Control Pipe:

Default (0)

 

Bulk In Pipe:

No pipe

 

Bulk Out Pipe:

No pipe

 

In View Attributes I have the following:

 

Bulk Out Pipe  Status ... Invalid Property Value

Bulk In Pipe Status ... Invalid Property Value

Interrupt In Pipe Status  ... Invalid Property Value

 

When I try to wrtie somethig I get:

 

Unable to start operation because setup is invalid ....

 

Did anyone face such kind of problem? Is it an USB access problem or impossibility to make connection to the board with this driver from NI?

 

Thank you!

IVI Connection Issue

$
0
0

I'm trying to connect to an Agilent MSO-X 4154A scope with the IVI driver.  This is my first time dealing with IVI drivers although I have experience with standard VISA drivers.  I have the IVI Compliance Package 4.6 installed and is displayed in the software tab of MAX.  I installed the IVI driver for the scope from idnet.  The scope is connected over ethernet.  I can see the scope in MAX under the "devices and interfaces" tab and tested communication to it by sending the *IDN message.  That was successful.  In the IVI tab I created a new driver session for the scope and logical name.  I believe I have that setup right.  

 

In Labview 2013 I loaded the example "IviScope - Acq Dual Wfm Edge Triggered.vi."  The first problem I encountered was that when the VI is loading it can't find "IVIscope.dll."  If I browse for it I can find it in the "C:\Program Files (x86)\IVI Foundation\IVI\Bin" folder.  The VI seems to load ok if I tell it to choose the dll in that folder, but I still question why it doesn't find it in the first place. 

 

The second problem is that I don't see the logical name I created in the dropdown menu of the example VI.  It doesn't show any logical names even though the logical name I created is clearly shown in MAX.  I'm not sure what the problem is.  My first though was that the IVI compliance package was bad but I tried a reinstall of that and it didn't help.

 

My system is:

Windows 7 64bit

IVI Compliance Package 4.6

Labview 2013

VISA 5.4

 

Any help would be appreciated 

Cannot access a disposed object- Visual Studio Express 2010 .net GPIB Commands

$
0
0

I am using the 488.2 examples for VS2010. This example is the SimpleAsynchronousReadWrite template.

 

I can run the template fine and and I can write to my instrument without any issues. I'm trying to move the commands over to a sequence to emulate what I would normally do using the front panel of the VNA.

 

My Goal:

1. OPEN

2. Write *din?\n

3. String Read

4. CLOSE

 

Keep in mind, I simply pasted all the commands into a sequence with 500ms pauses.

 

4. Returns the error "Cannot access disposed object'

 

 

Private Sub sequenceButton_Click(sender As System.Object, e As System.EventArgs) Handles sequenceButton.Click

        Threading.Thread.Sleep(500)

        '******************************************
        'OPEN SESSION
        Try
            Windows.Forms.Cursor.Current = Cursors.WaitCursor
            Dim currentSecondaryAddress As Integer

            If secondaryAddressComboBox.SelectedIndex <> 0 Then
                currentSecondaryAddress = secondaryAddressComboBox.SelectedItem
            Else
                currentSecondaryAddress = 0
            End If

            GpibDevice = New Device(CInt(boardIdNumericUpDown.Value), CByte(primaryAddressNumericUpDown.Value), CByte(currentSecondaryAddress))

#If NETFX2_0 Then
            'For .NET Framework 2.0, use SynchronizeCallbacks to specify that the object 
            'marshals callbacks across threads appropriately.
            GpibDevice.SynchronizeCallbacks = True
#Else
                'For .NET Framework 1.1, set SynchronizingObject to the Windows Form to specify 
                'that the object marshals callbacks across threads appropriately.
                GpibDevice.SynchronizingObject = Me
#End If


            SetupControlState(True)
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        Finally
            Windows.Forms.Cursor.Current = Cursors.Default
        End Try
        '***********************************************
        'OPEN SESSION IS DONE

        GpibDevice.Write("*idn?")

        Threading.Thread.Sleep(500)

        'READ AND PRINT TO MESSAGE BOX
        Try
            GpibDevice.BeginRead(New AsyncCallback(AddressOf OnReadComplete), Nothing)
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
        'READ AND PRINT TO MESSAGE BOX - END

        Threading.Thread.Sleep(500)
        GpibDevice.Dispose()


        'CLOSE THE SESSION
        Try
            GpibDevice.Dispose()
            SetupControlState(False)
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
        'CLOSE THE SESSION -END


    End Sub

 I'm pretty sure this is a syntax problem.

 

Thanks for any help.

 

Viewing all 5662 articles
Browse latest View live


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