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

Converting decimal strings in the array to IEEE 754

$
0
0

Hi 

 

I would like to ask how do I convert data collected in decimals strings in the array using Modbus API library read holding register value to IEEE 754. The attached photos are the front panel, the block diagram, the manual calculations of the final value I would like to have and the VI program.

 

Thank You. 


LabVIEW NXG

$
0
0

Hi , 

I am a student , and i want to download LabVIEW NXG for free , i do not want an evaluation period 30 days i want more . please help me ? 

 

SUB VI Output

$
0
0

hello,

 

i have simple question and i could not find the answer here .

i have sub vi, which has while loop inside , which makes 500 measurements with DT9837A module.

the output of this subvi is connected with numeric indicator in the main VI.

My problem is that the values of the measurements do not update in the main VI simultaneously.

 

any hekp would be appreciated

thank you

I cannot understand the reason why this code cannot be compiled. (Hybrid Mode, FPGA target)

$
0
0

Now, I am using CRio 9068 and some C series modules.

I want to make the pulse output from the digital modules and get the encoder data from the digital modules and other data from the analog module.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019PCsSAM&l=en-US

 

I confirmed this website to use hybrid mode and make the VI file to make pulse and get encoder data.

But, there are some errors  "The function is not currently supported on the target."

 

How can I solve this errors? Help...Plz.....

Documentation for LabVIEW FPGA?

$
0
0

I started recently to use LabVIEW FPGA. I found a tutorial at http://www.ni.com/tutorial/14532/fr/#toc8

The tutorial is good, I like it, but now I do not want to listen to a few minutes video to find a single piece of information.Is there a PDF documentation for LabVIEW FPGA? A PDF document where I can use text search?

Thank you

Error on line 1 is marked by a '#' character on my formula node

$
0
0

hi friends,

 

i want to do a simple equation using formula node. just plus, subtract and .times.

why it gets an error? i'm sorry i never using math formula before. I've attached my VI. Thankyou

exception using Microsoft.WindowsAPICodePack.Shell .net dll (1172)

$
0
0

Hi,

 

I tried to use the Microsoft.WindowsAPICodePack.Shell dll as shown in the attachment. I don't have any clue what I've might done wrong. I already tried to run LV as administrator but that didn't help.

Running the exact same code in C# is working.

 

Thanks in advance and best regards,

Lisa

 

 

Switch (3 way)


Speed at parallel procuder loops

$
0
0

Hi,

 

following situation. I want to log one temp sensor and one voltage sensor

Every one is creating data in a separate producer while loop and sending it with queue to a common consumer loop.

What is the reason that the shown graph of voltage is slow as the temp sensor?

 

Thanks

Switch (3 way)

Array Increment and reshape and extract numbers from it

$
0
0

I have two arrays first array contains number from 0 to 15 and  second array data varies from 0 to 15

My requirement is 

when I am extracting number 0 and 1 from array 1 then my second array should take values from 2 to 15 and extract number in pairs from array 2 such as (2,3),(3,4)(4,5)(5,6)(6,7)(7,8)(8,9)(9,10)(10,11)(11,12)(12,13)(13,14)(14,15) after completing this 
 I am extracting number 1 and 2 from array 1 then my second array should take values from 3 to 0 and extract number in pairs from second array such as (3,4)(4,5)(5,6)(6,7)(7,8)(8,9)(9,10)(10,11)(11,12)(12,13)(13,14)(14,15)(15,0) after completing this
 I am extracting number 2 and 3 from array 1 then my second array should take values from 4 to 1  and extract number in pairs from second array such as (4,5)(5,6)(6,7)(7,8)(8,9)(9,10)(10,11)(11,12)(12,13)(13,14)(14,15)(15,0)(0,1) after completing this procedure of extracting numbers it should repeat upto last extraction of number from array 1 that is (15,0) and accordingly extraction of numbers from second array should be done I used indexed array for extracting numbers from array  but for rest of the code i am not getting what logic should i implement.

NOTE:I am not using bracket in my code I used here in my question for better understanding of my question

Thank u

How to run the following program? 5646r hardware is needed

$
0
0
I am a beginner. I hope to get detailed instructions. Thank you very much.

Switch (3 way)

Graph digital waveform in real time

$
0
0

As the title says, i'm trying to graph data on a digital wave form, but I want the data to be displayed in real time and be able to find the full duration of the code length. The long run project here is to send and receive data via and be able to measure the time delay between when that code was sent and when it was received. (im sending data via UDP currently if that matters at all, which isn't included in the code)

 

I'v attached a pretty sloppy VI of me attempting to get real time values from the data being created from a random binary generator and graphed. But the "get final time" function and "waveform duration" function don't give real time values.

In the VI I also try "get date/time in second" function and create the waveform but that didn't exactly work either.

Hopefully what i'm trying to do isn't too complex, I appreciate any help I can get.

Type Def Control with U32

$
0
0

I want to build a Type Def Control like it in the attachment. Who knows? Thanks!


3D Quiver Plot using 1D X-Y-Z Data arrays

$
0
0

Scatter Plot shows the expected pattern of data point positions. Not sure what math needs to be done to plot the correct X-Y-Z positions in a quiver plot. Also not sure how to plot the quiver plot arrows using single axis data for x-y-z data. Maybe this can't be done??? What I expected to happen was an arrow at the data point at the x-y-z position it was taken and then the arrow pointing in a direction dictated by (field x-y-z data).

9205 resource conflict?

$
0
0

Alright, gang, let me darken your doors again with a DAQmx problem.  I have a cDAQ 9174 chassis with a 9263 AO card, and a 9205 AI.  Running LabVIEW 2019 and DAQmx 19-something.  I'm using 2 different tasks, one uses cDAQ1Mod2/ai0 for finite samples, differential.  The other task is on cDAQ1Mod2/ai1, also finite samples, differential.  I'm jumpering the (only one) analog voltage to be measured together for AI0 and AI1.  Why? I use AI0 for repetitive measurements, and use AI1 strictly to detect voltage crossing thresholds to trigger an event.  In DAQmx Create Virtual Channel, I gave them the names AnalogIn and AnalogInTrigger.  I've verified using NI-MAX that both channels are measuring my voltage input properly.

 

In my application, I 1st run the vi that 'arms' the analog trigger (using AI1), and it works properly without error.  This means that now it's just sitting, waiting for a trigger.  Then I attempt to read the (same) voltage on AI0.  I am outputting voltages on cDAQMod1/ao0, but 'infrequently' - no waveform generation, synchronization or anything fancy.

 

THE PROBLEM: The very 1st time I attempt to read from AI0 (requesting # samples = 20), I get a -50103 "specified resource is reserved" error.  Any ideas of why DAQmx thinks I have a resource conflict? Appreciate any insight, paul

Writing a triangular waveform to serial port

$
0
0

Hello, 

I would like to send triangular waveform on a serial port say at 30ms period.  what should be best option to do this. Can we use simulate signal vi and then wiring this directly to serial write VI . 

or should we must place inside a while loop and place wait until next ms vi to control the sample period .

the objective is to tight ms period in between data points.

regards,

Getting Error -200279: Unable to Keep Up with Acquisition in DAQmx

$
0
0

OK, guys, one more question for the DAQ fire hose I'm drinking from.  I'm trying to run my little cDAQ 9205 AI card in a 9174 chassis just as fast as I can.  I'm trying to achieve the absolute minimum *latency* of the analog voltage input measurement.  When I crank up the sample rate to the 9205 maximum of 250kS/s, I soon get a -200279 error.  As you can see, I'm doing extremely little to slow down the PC.  I can upsize the DAQ buffer, but of course that just prolongs the agony - it just takes longer to croak.  I *think* I understand that the default transfer mechanism is DMA (because it seems to be supported for my hardware, although I'm not positive on that.  Since I'm not really *doing anything* with the data (other than occasionally displaying it), I wouldn't think I'd really need to set up a buffer in the software.  What's wrong with my thought process? Thanks for any insight, paul

Print double sided using report toolkit (word)

$
0
0

Hi guys,

 

I am using the built in report toolkit in LV 2018 to print MS Word reports. Does anybody know how to configure it so it prints double sided?

 

Lee

Viewing all 66688 articles
Browse latest View live


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