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

Bluetooth Modulation Index for Vector Signal Tranceiver

$
0
0

Hi, I am testing a device to the the Bluetooth Standard. I would like to know how to set the Bluetooth Modulation Index for Vector Signal Tranceiver, there doesn't seem to be an option for it in the "niBT Generate Data Packet with Dirty Tx Impairments.vi". I am also looking for the Symbol Time Period Error setting. Are these labled other things in LabVIEW?

Many thanks, Alec


LV 2009 MAC Application with VISA

$
0
0

I have a customer complaining that an old build of some software I wrote will not execute (won't even start) on a Yosemite installation (Mac OS X 10.10). 

 

He wanted to do a demo and the software just didn't even start properly.

 

Does anyone know if this is a LV or a VISA problem?  I am using VISA USB RAW communications in the code with whatever VISA version was shipped with the LV 2009 SP1 DVDs.

 

Shane.

select multiple files and folders

$
0
0

Hi,

 

Is there any file dialog vi that allows you to select multiple files and folders? I am looking at file dialog in advanced file functions but it only allows file selection if I want to select multile items - it doesn't allow me to select folders.

Curve fit with prescribed end conditions

$
0
0

Curve fitting with prescribed end conditions

PID datapoint variable

$
0
0

Hello everyone.
this is the first time I write on the general forum. I need a big help !!! I need to build a PID but does not have a fixed setpoint but variable. That should follow a waveform. My latest attempt is this (attachment), but it does not work so well. I do not know how to do and the time is almost expired. Please help me!!!

 

thanks to all

How to generate a high freq square wave on NI-USB 62xx

$
0
0

Hi,

I am trying to generate a 50khz square wave with an AO channel on the NI-USB 6212 (rated at 250ks/s AO). I started with the Voltage - Continuous Output.vi example but when i go up toward 50khz square wave (100khz sample rate) the edges of the square wave become rounded. The slew rate for the card is 5V/us and my amplitude is just .5V so i feel like I'm doing something wrong with the task setup.

 

I also tried setting continuous samples using the onboard clock for a source and then writing an array [1,-1] but that fails at anything higher than ~8khz. 

 

What's the most efficienct/correct way to set up a task like this? Any help appreciated. Thanks.

 

Matt

Downloading VIPM packages from blocked network

$
0
0

Good afternoon,

 

I am trying to use the VIPM to download and install the OpenG and the MGI add ons for LabVIEW and I keep getting a message in VIPM that says that "this package is NOT compatible with your operating system or any LabVIEW version installed on your computer"

 

I am using LV 2014 on Windows 7, thinking it might be our firewall, is there a way to get the packages directly from an FTP? I can download the NI SE packages just fine, it looks like when it goes out to the JKI repository it is being blocked.

 

Thanks

 

Steven R. Howell

 

 

delete array elements and resize matrix

$
0
0

Hello, I'm new to Labview so I am struggling with some ideas. I have the following matrix

A=[1   2   3    4  

      5   6   7    8  

      9 10 11 12 

     13 14 15 16]

 

I want to obtain only the following resized matrix with the elements 6, 7 10 and 11, i.e.

B=[ 6    7

      10 11]

 

I appreciate your help

 

 


software trigger

$
0
0

Hi !

 

I need to find a solution for a specific problem using a software trigger.

I am using a cDAQ system with NI9234 analog input modules and NI9263 analog outup modules.

 

my application needs to sample at full speed (51.2kHz)

 

I need to do the acquisition of 10 to 16 channels of microphones and use the first channel as trigger to output a 5V impulse.

The main difficulty is that i need a pre-trigger of about 10 second on my recording and need to output an impulse as soon as my first channel has reached the trigger level.

my recording must be 20s long so that the trigger on the fisrt chanel is at the middle of my recording.

 

I did try to acquire one sample at a time and stock it in a buffer but it does not work at full speed.

 

any ideas ?

 

thanks

MAX tasks vs generated tasks - opinions

$
0
0

So, traditionally I have always just programmatically generated the tasks based on the hardware and configured channels. I found it easier for my users (they only needed to learn my software instead of mine and NI MAX), and overall more generalized. I didn't need to worry if they swapped one card in or moved its position in the chassis. I could just detect what was available and build the task based on that.

 

However, I have started using Signal Express a bit more frequently and have been actually quite impressed with the NI MAX approach for acquisition and control. The interface is easy for calibrations, configuring, etc.  

 

So, my question to some of you "old guys" that have been coding in LV for 20 years...  two questions.

 

1) Which approach do you find easier and more useful to implement in your program?

2) Why do you think that way?

 

Thanks!

10Mhz frequency acquisition

$
0
0

Hi,

 I have a cRIO 9074 and Ni 9401 module, I need to acquire 6 frequencies around 10Mhz ,two problems:

-1)in scanengine the frequencies to acauire are to high, so I need to acquire it in FPGA mode.

how to implement the code in FPGA mode?

2) I need to appreciate the variation on sigle Hz of the acquired  frequencies.

someone can help me??

regards

david

Serial Communication Labview - Arduino

$
0
0

Hi all

 

I am really new to Labview and I am trying to set up a Serial Communication between my Arduino board and Labview.

I tried to write a really simple program that just prints out random numbers and read them in Labview, but I fail.. Can someone help?

 

Here is my Arduino Code, my LabView-VI (made up of examples I found in this forum) is attached:

 

long randNumber =0;
int readNumber=50;
void setup() 
{
  Serial.begin(9600);    // opens serial port, sets data rate to 9600 bps
}

void loop() {
  randNumber = random(readNumber); //dont read.. just print..
  Serial.println(randNumber); 
  delay(100);
}

 

I was also wondering if I don't need something like a "Handshake" between LabView and Arduino to make sure the Serial Connection is set up properly before I start reading out data? I did that when using SerialCommunication with Matlab and was wondering how to do that in LabView.

 

In the long run I would like LabView to read the SerialData from my digital Sensor (on Arduino UNO) that prints out 3 Values (X,Y and Z) on one line.

 

My LV-code will run through a few loops and at each step I want to measure and save the data. Will I have to open and close the serial port each time or can I open it once, read values at each step (even though I do much other stuff in between) and close it at the very end?

Please excuse my lack of knowledge, a working basic example would help a lot to get me started because I did not find anything working on the internet..

 

Thank you very much!

Kathi

Start / Stop daqmx task

$
0
0

Hi,

 

I use the following VI to continuously acquire signal from my ni mydaq. Inside the while loop I turned the mechanical action of the stop button to "Switch when pressed" . When I stop the while loop, the acquiring task dosn't stop and I still can see the signal on the waveform graph.

How can use a single or two buttons to start and stop the signal acquiring process?

Thanks

Daqmx acquire.png

How does RTS/CTS work in VISA serial UART

$
0
0

Im communicating to LabVIEW with an MSP430G2553 microcontroller through UART.  The connection is a RS232 to USB cable.  The USB cable is going to the computer.  LabVIEW only needs to read in values.  I've tried a 9600 and then a 256000 baud rate.  I'm sending the same char value over and over from the MSP430.  The chars that LabVIEW reads in are always different.  For instance if I send a 'J' the buffer will show 'k'.  It will then say '\A9' or something else if I stop the VI and run it again. 

 

I'm trying to implement the hardware control flow RTS/CTS.  I'm not sure how to do this but I've tried.  On the MSP430 I raise the RTS high and wait for the CTS to go high.  In LabVIEW the read buffer says '\00' and then it times out. The read buffer says '\00' again if I raise CTS first and wait for RTS instead.  How do I implement RTS/CTS or get the chars in accurately.

Abundant number NI Days UK 2014

$
0
0

For those who attended the Challenge the Champions session on the UK NI Days this Noverber 2014, one of the challenges set was to find the 1000th abundant number in the most efficient way possible.

 

I've just had a quick play, and this is my solution for anyone who is interested or fancies trying to beat it...

 


Is there a LabView library for MKS type 1258A controller mass flow ?

$
0
0

I have only found library for 647C and MKSMassFloViaRS-485 . Is it possible to work for the 1258A?

 

Thanks in advance

RT - cRIO Console Output - Custom Output / System Message?

$
0
0

Hello,

 

A cRIO has a console output that sends out the system messages letting the user know what's running, or if there are any system errors. This can be viewed through a browser or by connecting a monitor the the cRIO. See attached screenshot of the output in my browser.

 

Is there any way to programmitcally send messages to this screen? cRIOs don't have a user interface other than this, so it would be nice if the application could send messages to this screen for debugging/status information.

 

Thank you,

2 digital out 2 analog in loop

$
0
0

LabVIEW 2013 SP 1

Windows 7 Pro

NI DAQ PCIe-1433

Custom PC board attached to the DAQ

Each individual signal disucssed has been tested and works.

 

Hi all,

 

I have an application that does a bunch of setup, when the user presses go, runs a main loop that does a number of things, saving images, etc., and also periodically sets digital output pins HI, and then LO.

This has to be synchronized with the image retrieval and storage.

It is working well.

 

I need to add 2 Analog Input signals, also synched with the Digital out and the video capture.

 

I simplified it all so that in the test application, I start the app, set up some preliminary stuff, and when the user presses go, run a main loop.

I've removed the video component and data file components for now.

 

The test app will trigger a single digial out (e.g. left puff) and start listening on a single Analog In (e.g., left mic).

When the left mic reaches a trigger level, it flags it, and stops listening.

When the time is up, the digital out (left puff) is set to LO.

If the trigger level hasn't been reached when the digital timer is up, it stops listening then too.

 

That works okay (the first time).

 

However, the loop keeps running, as it should.  When the next time hack comes around the the same thing is supposed to happen again (either left or right), the digital signal is not tripped, and the Analog In is not started.

And that failure is true for all future loop iterations.

I threw in a counter to show me if the LabVIEW was enterring the case statement, and it is counting up as it should.  But the signals are not generated.

 

If I go to the diagram, and turn on the 'lightbulb' tracking; everything works.

I get the digital output when I should, I get the analog in.

When I turn off tracking, it doesn't work past the first iteration.

 

I've attached the example file.

 

Any thoughts are appreciated,

Jeff

 

 

COM port assigned to a defined hardware device

$
0
0

Hello,

I am developing a test rig and I would like to know which COM Port was assigned to a certain hardware device.

Background:

Until now I have used a ".init" file to assign manually the COM Port to a desired device. This works until someone unplug the tester and plug it in a different PC. Then I need to update the ".init" file and only then the tester can be used. I want to avoid this process and improve my tester.

Hardware used:

I need a TTL-USB converter, for this purpose I am using a FTDI device, specifically the TTL-232RG. This converter works with the integrated circuit FT232R.

Software used:

I work with a Windows 7 OS. The FTDI drivers installed are the  version 2.8.30.0 .Labview version is 2013

What I have done:

Until know I can read the COM Ports and the Serial number of the devices but nothing else (See attachment).

I also have tried the DLL approach but FTDI only provides some examples for Labview7 (See attachment), and I still cannot read the COM Port from the DLL ( and I serouosly doubt that this is possible).

I would be very grateful if someone could tell me how can I relate the Serial number with the COM Ports?. I am starting to feel that I need to develop my own USB-hub to solve my problem because it seems that part of the problem is the software plattform used (in this case Microsoft Windows) and probably I need to go down at the physical layer of the communication to achieve my goal.

 

P.S. I already have read the following documents:

http://www.ftdichip.com/Support/Documents/AppNotes/AN_107_AdvancedDriverOptions_AN_000073.pdf

http://www.ftdichip.com/Support/Documents/AppNotes/AN232R-02_FT232RChipID.pdf

http://www.ftdichip.com/Support/SoftwareExamples/CodeExamples/LabVIEW.htm

 

 

 

 

log temperature and voltages acquired by DAQ

$
0
0

I have been asked to look at a VI which "locks up".

I haven't worked that much with DAQ.

 

The purpose of the program is to "continuously" log temperature and voltages.

 

The simplified VI is attached below.

It appears that the programmer is acquiring waveforms and then truncating the waveform data to one data point.

 

Is this the best approach?

Viewing all 69214 articles
Browse latest View live


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