Quantcast
Channel: LabVIEW topics
Viewing all 66678 articles
Browse latest View live

DCPower Soft Panel Manual

$
0
0

Dear all, sorry for the trivial question. 

I have just installed the DCPower Soft Control Panel to control my new 4-channel SMU-4145.

There is also a short video: https://www.youtube.com/watch?v=fZyRPSWxsIM

 

Because it is not fully clear to me how to program the channels by this software, I would like to find more resources, that I cannot find,in particular to make output, transfer curves under transistor configuration and voltage pulsing. 

 

Thank you for your help- G

 

 


PCIe 6537b - synchronized digital input/output

$
0
0

Hello community,

 

I have one question regarding the digital input/output using PCIe 6537b card and hope someone can help me.

 

We are currently using the PCI6534 and are searching for a follow-up, because we will receive new desktop PC's which won't have PCI slots (PCIe only). So we decided to test the PCIe 6537B.

 

When simply using our old DAQmx.vi, which configures the digital data processing for the DAQ card, with the 6537b I get an error (code -89136)

I don't know exactly what's the problem, it has something to do with step 3, deriving the trigger from the master and exporting it via RTSI0 line to the slave as trigger input to get input/output synchronized. The first DAQmx - start task.vi is OK and at the 2nd start task.vi i get the error message.

 

I tried to edit the used .vi and am not receiving an error anymore up to now.

Unfortunately I don't have a chance to test the DAQcard for e.g. an SPI communcation at the moment, as we don't have a fitting cable for the PCIe 6537B at the moment (just the old ones for 6534)...

 

Now my question is:

Are the input and output still synchronized, even without the master triggering the slave? I think yes as they both are using the onboard clock?

If not, are there any possibilities to get it synchronized?

I researched the NI website and according this tutorial "http://www.ni.com/tutorial/3615/en/", topic 4 "multifunction synchronization --> shared sample clock" it should be OK?

 

Any help and comments are very appreciated.

Thank you very much for your help.VI used for PCI-6534VI used for PCI-6534used for PCIe-6537Bused for PCIe-6537B

Trying to set up multiple data inputs from analog and serial devices, each have different data rates

$
0
0

What is the best practice for setting up a data read across multiple input devices? I have the following devices i am trying to read from and their update times

 

1. Analog input - 50 samples/second

2. Analog input - 1 sample/second

3. Analog Input - 1 sample/second

4. Serial input -  1 sample/2 seconds

5. Serial input - can read at any rate but need to write a command first to get response (planning on once a second though)

 

I have an NI usb daq and two serial to usb cables. I need to sync all of this into a single VI since I need to perform some data processing and then plot a lot of this data before saving. I also need to display the serial inputs in real time as well. What the best way to do this? and how do I set up the VI timing wise so everything is synced in the data file? My assumption is that the 50samples/second is the driver and everything else just updates the same number during that time.

[minor bug] Flat Sequence Structure context help shows stacked sequence

$
0
0

I just noticed this... if you bring up context help and mouse over a label in a FSS, it shows context help for SSS.  Its very minor, but I thought it interesting.

sss.png

Labview and teknic clearpath SC

$
0
0

Hello, I am new to labVIEW and for my first program I would like to try and control a servo motor made by a company called teknic (clearpath SC). Currently we have been running our motors with PWM and have to define torque conditions with a separate program on setup. I want to have the ability to have labview change parameters and monitor motors outputs and was wondering if someone can help me with this.

 

The motor I purchased has a SDK kit that comes with it. It is written in C++. I was originally thinking that I could import the .DLL file to access all off the software functions. whenever I try and import I am unsure of the header file to use and also get a ton of errors. Would anyone be able to point me in the write direction if this sounds feasible. Thanks. I have attached the SDK I would like to access in labview.

I2C communication

$
0
0

Hi 

 

I am working in LabView to communicate with a ZSC 31014 chip and am struggling with how to use the VISA read and write functions in LabView.  When using the VISA write function the input is an ASCII string, but what does the function send? If i need to write something in hexadecimal form do I need to convert it then put it in the write buffer?  I have attached a picture of my VI as well as the command syntax sheet for the device.  The first task is to send the command v to the command board and then read a repsonse. 

 

thanks.

Multiple Instances of an Application

$
0
0

Is there a way to run multiple instances (or copies) of the same application without having to install the application multiple times (using different names)?

Maybe something I need to do when generating the executable or the installer..??

Web Services: Implementing Server-Side Events (SSE)

$
0
0

Hi all,

 

I have been trying to implement SSE in LabView. I don't know if this is even possible, but it would be really awesome if it was.

 

So far, this is what I've done in my Web Service project:

server.png

 

And this is my implementation in the client side:

var urlSSE = 'http://127.0.0.1:8001/RIP/SSE';

    // Register to the SSE:

    var source = new EventSource(urlSSE);

    // Manage SSE Events

    source.onopen = function(e) {

      // Connection was opened.

      console.log('Open');

    };

    source.onmessage = function(e) {

      console.log('data:'+e.data);

                if (e.id == "CLOSE") {

                    console.log('Closing');

                    source.close();

               }

    };

When I look at the network traffic in my browser's console I can see that the SSE connection is recognized and established:Browser.png

 

 

However, as you can see from above, the SSE only receives the data one time, then the connection ends and, after the timeout (set to 1000 miliseconds in the Vi), the client makes a new connection. This is happening, I guess, because the web service Vi is only executed once per each client request.

 

What I would like to obtain is a constant flow of data from the LabView server to the client, without having to ask for data from the client. It looks like I'm really close, actually. I would just need to keep the Vi running, particularly the Write Response.vi and the Flush Output.vi. I tried to put those inside a while loop but this didn't work.

 

Does anyone know how could I do this?

 

Thanks!

 


LabVIEW Web Service Namespaces

$
0
0

This is just a question of curiosity - does anyone know why a nested web resource in a NI web service is not namespaced?  I did not realize this was an issue until I added several nested resources that had similar functionality and had a conflict with the names (even though the VIs were in separate folders).  I figured these resources would act as libraries, but I guess I was wrong...

Timed Loop Over Head Issues (Massive CPU Usage)

$
0
0

Using 10 Timed loops on RT with 1Mhz clock, and a dt of 1000 (1000 microseconds, or 1 ms) and all of them Accessing an FGV (an array of doubles) by index causes a massive CPU increase . If I only launch 1 Timed loop, the result is a very small change in CPU. Can you please explain to me why there is a non-linear relationship between the CPU and how many Timed Loops I launch, as well as what I can do to eliminate this.

 

NOTE:
The same thing happens on the PC so it's not just an RT issue.

How to record data after time delay / transfer data between while loops

$
0
0

I'm having trouble sharing data between while loops. The goal of my VI is to find the RPM on a fan using an optical encoder. Since my data acquisition device can only count pulses, I need to count the pulses from the encoder, wait a specified amount of time and then count again. by subtracting the two measurements I can get the number of pulses given a time frame. I then can get the RPM. I can get data inside the first while loop. But when I try to take that data and place it in a different while loop with the time delay, it wont transfer. Any help would be appreciated.

Convert from 2017 to 2016

$
0
0

Please convert from 2017 to 2016 . Thank you!

Convert from 2017 to 2016

$
0
0
Moved to Version Conversion board

LabVIEW FPGA 2015 - 7976 - Configure IP Page does nothing

$
0
0

On some computers this works, on others it does not.  I have the following installed on both.  There may be something else I need and am missing.

 

I am trying to configure a FIR Compiler 7.2 on a 7976.  Any suggestions?

 

LabVIEW 2015 SP1f1 http://www.ni.com/download/labview-development-system-2015-sp1/5778/en/

LabVIEW FPGA 2015 SP1 (15.0.1) http://www.ni.com/download/labview-fpga-module-2015-sp1/5884/en/

LabVIEW 2015 FPGA Module Xilinx Tools Vivado 2014.4 http://www.ni.com/download/labview-fpga-module-2015/5492/en/

LabVIEW 2015 SP1 FPGA Module Xilinx Compilation Tool for Vivado 2014.4 f2 Patch http://www.ni.com/download/labview-fpga-module-2015-sp1/6407/en/

NI-FlexRIO 15.5 http://www.ni.com/download/ni-flexrio-15.5/5876/en/

 

Change color of indicator

$
0
0

Capture.PNG

I am struggling to change the indicator color based on user button selection. Can someone help me? I need to save the color as well but don't know how to connect all. 


Tektronix MSO72304DX labview driver

$
0
0

Hi,

Could anyone suggest how I can download LabView driver for Tek MSO72304DX.

(I use MSO7000 driver with MSO70404C but interestingly it does not support MSO72304DX.)

Thx in advance

Extract RPM with data acquisition

$
0
0

Hello,

 

I need to extract RPM from NI-PXIe-4492 card. I tried to use extract signal tone function but I'm afraid it went wrong. What can I do ? I added a photo of my program,

thanks! 

 

 

Only allow selection of items in listbox with SHIFT, disable CTRL

$
0
0

Next Multicolumn Listbox question Smiley Happy

 

I want the user to be able to select a block of items with shift, but want to disable selection of random items with ctrl.

 

This should be possible:

grafik.png

 

This should not be possible:

grafik.png

 

Any ideas?

Thx in advance

how to connect UDL(microsoft data link)to the access files?

$
0
0

help me ,how connect the UDL files to the access files?

Disabling TCP delay (Nagle algorithm, tcp_no_delay) globaly on RT Linux

$
0
0

I am sending small messages ( a few strings) frequently ( <100ms) to RESTfull API. I found and tested that http://digital.ni.com/public.nsf/allkb/7EFCA5D83B59DFDC86256D60007F5839 and see much difference using the provided example. The problem I have got is that I am using RESTfull API which is build on top of HTTP and I don't have access to raw TCP port.

 

Does anybody knows how to turn off Nagle algorithm on  RT Linux (cRIO 9035) globaly?

 

I have also tried tcp_no_latency  flag: http://www.linuxvox.com/2009/11/what-is-the-linux-kernel-parameter-tcp_low_latency/ but it is being overwritten on the system startup. Has anybody had similar problem?

Viewing all 66678 articles
Browse latest View live