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

LabVIEW no robotic palette

$
0
0

I'm doing a robot project by using LabVIEW and MyRIO. I've installed the labVIEW for MyRIO with all the optional installations, which includes the robotic module. Eventhough, so I can run Dynamic A Star example in example finder, when it comes to that I want to build my own maze, there is no Robotic palette in Funiction palette. 

Could you help me to solve this problem?

 


Converting VI to C code

$
0
0

Hello all,

 

I'd like to convert the "Search and Replace Pattern VI" to an equivalent C code. Enclosed please find the requirements for the search and replace pattern vi and also its match regular expression.  I don't have the C code generator nor how to use it.

 

Below is what I've so far for the search and replace pattern. I'd appreciated any help to complete it.

 

void Search_Replace_Pattern (int replace_all, char string[], char regular_Expression[], char replace_String[],
                int offset, char result_String[], int *offset_Past_Match)
    
    INT_DEFAULT = 0xFFFF;

    int i = 0, j = 0, matched = 0, matchPosition = 0, matchLength = 0, caseSenitive = 1;

    char searchString[512] = "";

    if (replace_all = 1){            //REPLACING ALL SUBSTR IN STR THAT MATCH REGULAR EXPRESSION

        strcpy(searchString, string);

        if((offset == INT_DEFAULT) || (offset < 0)){

            offset = 0;
        }

        else{
            strcpy(searchString, string);
        }

    
    RegExpr_FindPatternInText(regular_Expression,
                              caseSensitive,
                              searchString,
                              strlen(string),
                              RegExpr_SearchForwards,
                              RegExpr_MatchLargestNumChars,
                              &matched,
                              &matchPosition,
                              &matchLength);
    if(matched == 1){

        for(i = 0, j = (matchPosition + offset); j < (matchPosition + matchLength + offset); i++, j++){
        
        result_String[i] = string[j];

        *offset_Past_Match = matchPosition + matchLength + offset;
        }        
        
    }

    else{

        strcpy(result_string, string);
        *offset_Past_Match = -1;

    }

impuls from constant true boolean

$
0
0

Hello,

 

I'm trying to make an impuls (100ms) from a constant true boolean on the rising edge.

 

Similar to the mechanical action of a push button, but now controlled from a on/off button.

 

So when a certain boolean get's "High" or true, this impuls also get's true, but only 100ms and than back false.

This should happen everytime when the input boolean has a rising edge.

 

I've already did some research, but did not find a similar solution yet.

 

 

Thx

Tom

Application Builder 2015SP1 "f1,f2" very problematic !?

$
0
0

Dear Community

 

We are using Labview since Version 7 and are always building applications using the application builder and then build installers.

 

We often have had problems with the application builder but these where all possible to solve up to know.

As you can imagine  our projects has also been grown so now it is relatively big with a lot of netwok shared variables (approx 100) and corresponding typedefs.

 

So currently the status is even not describeable as it is so wide spread.

 

On one hand it is not  possoble to build the application because every time the error 1502 is coming up.

I already did the recommendations of the knowledge base article.

http://digital.ni.com/public.nsf/allkb/8683D4C66F5CA50E86257341007CF34D

 

So this is one problem.

The other one is especially on windows 32 bit and LV2015 32bit where the build application says it could not open a control because it was made with LV2014 , so a newer LV version namely 2015SP1 is in the runtime not able to open a vi or ctl which is 100% LV2015sp1 and says it is 2014 and could not be opened.

 

This is only the case in 32bit runtime engine.

 

This is also in a support loop of NI but it seems either they know something is fundamentally wrong on the 2015SP1 "f1 and f2" or they don't want to solve the problem of their up to know NI happy customer.

 

I know this is a confusing thread. If we use the code where the runtime engine says it could not be opened and press canel everything is working fine. The  problem is in this buld application there are about 20 vi's or controls to be canceled during startup till the application is working.NOT ANY SOFTWARE USER LIKES THIS WAY TO START HIS APPLICATION.

 

Finally I attach some error messages which came up till these problems are here.

I also want to mention that these problems are not limited to a single Computer so it is not the typical (Windows is corrupt driver is wrong and so aon story)

 

Thank you for some comments

 

Best regards

 

Gernot

 

 

Reading bytes with NI X-Net

$
0
0

Hey guys,

 

I'm working on a project using the CompactDAQ platform and plan on using the cDAQ 9134.

The problem I'm facing right now is that I have to communicate with my device using CANopen, but the CompactDAQ System only supports CAN.

After studying the NI X-NET Hardware and Software Manual I am still unsure of whether or not it would be possible.

One of my ideas was to use use the 'Raw Frame Format' to write the bytes more or less manually and directly in CANopen frame format.

Another thought was to convert the frames to signals and use a driver to 'switch' between CAN and CANopen.

I'm new to LabVIEW and unsure if this is even the right way to think about it, so I'm open for any suggestions and help on how to establish the communicaton between the controller and my device.

Thanks!

Typecasting References...

$
0
0

Hello,

 

I have the following VI:

 

broken vi in rt engine.PNG

 

The reference coming from the Call by Reference VI is of type VI Reference. The Diag Data Ref is a custom type that is really just a VI Reference type underneath, same as what is coming from the Call by Reference VI. Is there a way to "typecast" the reference coming from the Call by Reference VI in to the Diag Data Ref, being that that destination ref type is really the same type underneath. Hope I worded this correctly.

calling module (Function) in database toolkit

$
0
0

Hi, I have been using the database toolkit a lot but I have never used a function from my Access database before.

I have a function called "Work_Days" that takes two dates as Inparameters and calculate how many working days that is. This funtion is stored in the Modules section in Access.

I have a working query that I can run within Access that looks like this:

SELECT tblActiveCCU.ID, tblActiveCCU.DateReceived, tblActiveCCU.DateTransferred, Work_Days([DateReceived],[DateTransferred]) AS NetDays
FROM tblActiveCCU
WHERE (((tblActiveCCU.ID)=97));

 

The output looks something like this:

ID	DateReceived	DateTransferred	NetDays
97	3/16/2016	3/30/2016	11

Now to the question, how do I implement this query in LabView?

 

In my attached code I got a "Syntax error in FROM clause"

Tektronix TDS 3000 VISA and driver disagreement

$
0
0

My lab is trying to use LABVIEW 2015 in order to digitally obtain waveform data from a Tektronix TDS 3054 Oscilloscope. We have (on two separate computers) installed the latest version of VISA (15.5) as well as the drivers for the Tektronix 3000 series. However, when we open the instrument control drivers and run any of the examples, we get the following error

"Error -1073807202 occurred at VISA Open in Tektronix TDS 3000 Series.lvlib:Initialize.vi->Tektronix TDS 3000 Series Auto Setup Waveform Acquire.vi"

 

We have re-installed the drivers on both computers with no luck, the error persists. We have also re-installed VISA but the error continues. Is there anything that we may be missing with regard to how to actually set up this instrument and sync it with labview? We are connecting the oscilloscope to our computers using a GPIB to USB cable and the systems are more or less unresponsive.

 

Any guidance on this matter would be appreciated,

 

Thanks,


Bind/Alias shared variable to scan engine variable

$
0
0

I have the attached labview project, settings on a shared variable and block diagram.  In my project I have a cRio that is using scan engine and reporting some RTD temps.  in My Computer I have a shared variable that I aliased to the scan engine variable on the cRio.  I thought this would make it so the shared variable on myComputer would report out the same as the scan engine variable on the cRio; however, that is not the case.  In the front panel you can see I get 0 for the myComputer shared variable while getting the correct value from the cRio scan engine variable.

 

Does binding a variable to a scan engine variable mean it will keep the same value?  Do I need to do anything extra?  I want to do it this way becuase I have a VI that finds all variables in the SystemParameter.lvlib file and does some stuff with them.

 

mstsc_2016-04-29_15-22-11.png

How to get a single data point from waveform data into a tdms

$
0
0

Hi,

 

I'm trying to record a single data using DAQmx but my tdms files is collecting multiple data points.  

 

The DAQmx task is reading from 2 external probes, so I am using a DAQmx read function set to Analog, 2D DBL, NChan, NSamp.  So the output of this is a 2D array of waveform data.  

 

The DAQmx task "Draw 2" has 2 channels it is reading from.

 

Then I use "index array" to select the channel I want to save into my tdms file (index 0 in this case).

 

The index array function converts the 2D array into a 1D array.,  I pass this into a "build array" so I can concentrate all my davices into one data wire to pass to my tdms.  

 

When I run the program the tdms is giving me multiple data points from the device that I indexed, and when I watch the program exectute in my Block Diagram I can see that the Build Array is outputting hundreds of data points when I want it to output only 6 point (1 from each input channel).

 

My question is: How can I make the "build array" pass only one data point from the device I chose using "index array"?

 

I'm attaching a screenshot of the MainVI with the DAQmx read, index array, and build array functions circled.  

 

I'm also attaching the Main VI (called "DS Flux 3-cell") 

Eliminating noise while analog voltage source idle

$
0
0

Hi,

 

I am measuring the analog voltage signal of an Omega FLR-1600A flow meter using a USB-6009. The flow meter has a 0-5 VDC output signal that corresponds to 0-1 LPM (liters per minute). The problem I'm having is that while the flow meter is reading zero flow, I'm getting a noisy signal that fluctuates between 0 and 0.1. Otherwise, the signal is clean and accurate. Here is my front panel and block diagram:

 

Flow Rate Front Panel.PNG

 

Flow Rate Block Diagram.PNG

 

Is there a way I can eliminate the noisy signal such that the graph reads zero while the flow is idle, even if done artificially?

 

Thanks

are there labview vi's to access pna n5222 network analyzer

$
0
0

I wish to access the pna n5222a network analyzer through Labview I want to start an S Parameter analysis on the PNA through labview vi's.

1. i need to configure the frequency , resolution etc

2. start the analysis

3. read the data in labview

4. log

so far i have not been able to find any command that indicates that data can be read from the pna directly without having to save the file first in the pna.

Also how do i set the resolution- this option is available on the front panel of the PNA but its not available as a command or labview VI in any of the similar dirver vi's. 

Pinout Diagram for LabVIEW 2011 Version

$
0
0

Hello,

 

I just start in LabView and could not find the Pindout diagram of LabView 2011.

 

Could you please show me how to find the pinout diagram?.

 

Thanks,

Jonathan Tran

NI-IMAQdx: (Hex 0xBFF69026) License not activated.

$
0
0

Hi,

 

I want to use IMAQdx functions, but I receive "NI-IMAQdx: (Hex 0xBFF69026) License not activated." error. I have Vision Acquisition Software Feb 2014 which is activated. When I researched this error in this forum, I saw that it is a problem when the "Vision development module" and "Vision development module run time" exist together at the same machine. So, I tried to remove Vision Run-Time Engine from NI software, but I couldn't because of dependent products which are NI Vision ad NI Vision assistant. So  what am I doing wrong? What am I supposed to do?

 

Thanks.

EPOS2

$
0
0

Hello. Good evening.

 

I am electronic engineering's student and I'm developing a LabVIEW VI to control one EPOS2 70/10 and a brushed DC motor and I use an incremental encoder too.

However when I run the examples provided by Maxon Motor, called MoveToRelativePosition, MoveWithVelocity, MoveWithIPM, DataRecording and GUI Demo, in which I'm basing me to build my Virtual Instrument, the VIs sometimes run, sometimes LabView stop and other times an error occurs in VCS_OpenDevice.

Could you help me solve this problem?

Thank you very much in advance. Smiley Happy


how to read array of string returned from DLL

$
0
0

I've developed DLL in labview which takes 2 input parameters as string and returns back an array of strings. How can I read back this returned array of strings in labview? I tried returning a string and I can able to read it. But how to read an array?

The function signature is - void GetLoginInfo(char DBPath[], char UserName[], LStrHandleArray *Array)

 

Shrinivas

for loop with stdout of all iterations

$
0
0

Hi

 

I have a for loop which calls an external script. The external script writes something to stdout. I'd like to see the stdout. I tried connecting a string to the stdout, using a concatenating tunnel. But it always only shows one line of stdout, not all of the output from the iterations. How can I achieve that?

Split Signal after reading signal using daqmx read vi for multiple channel

$
0
0

Hello,

 

I am using DAQmx read vi(Analog 1D Wfm NChan NSamp) to read single ended multiple analog input channels.After reading,I have to process two signals separately which I am doing with Split Signal vi. But, I am getting unexpected outputs in the case where I am not giving input to one among the analog input channel.I am attaching screenshot of that part of the vi for reference.Can anyone help me in identifying what I am missing...

Error.bmp

Thanks in advance,

Joms

pwm

$
0
0

I execuse for my english It's been six months that I am trying to simulate PWM in labview to control a three-phase inverter This PWM is comparing 3 sinusoidal signal frequency 50 Hz with a triangular signals of higher frequency 1000 Hz The inverter is simulated in Multisim ( multisim labview co simulation) I want to do a simple simulation of the PWM without using FPGA

plz help me

remote desktop monitoring

$
0
0

Is there a way in labview to monitor a remote desktop screen?

It is just for monitoring, not controlling.

 

I want to monitor multi-screen from many remote PCs. for example, multi-VNC Viewer...

Is it possible in labview?

 

Thank you in advance.

 

Viewing all 67294 articles
Browse latest View live


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