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

How can AI keep up with the change of AO in NI-USB-6251?

$
0
0

Hello,

I write a labview program to generate an AO and at the same time read data from the AI. The AO terminal is wired to the AI terminal of the NI-USB-6251.  However, I found that the AI cannot keep up with the change of AO (The peak value of AO is 2V and the peak value of AI is 1.6V) .  Please see the attached files of the front panel and the block diagram.  Does anyone know how to solve this problem?


why VI package is empty???

$
0
0

Hello, I always have this problem with VI package and I don't know why please does any one know how to solve it ?Capture.PNG

Commands sent via System Exec.vi under Win10 Enterprise

$
0
0

Hi community

I am looking to change the time and date of the computer that runs my application (exe) programatically. In win XP through Win7 seems that the System Exec.vi does a perfect job. I.e: I just send the command "time HH:MMSmiley FrustratedS".

I have difficulty in getting the same operation done under Win10 (enterprise edition). I think the issue is with the elevation rights level.

I have changed the flag in the register EnableLUA which seemed to have helped at least the basic CMD prompt to work for the same command without having to 'run as administrator'. 

I have also created a manifest file to include in the .exe according to this post although step 6 did not work.  

 

I should mention that the account I am using is admin - not password protected, and I need it that way, so that the application starts automatically, with minimum give away re OS. 

 

Any help would be greatly appreciated,

thanks

Yannis

modbus IO server control from VI

$
0
0

Hello,

i am using DSC modbus IO server to communicate with PLC. i used shared variables in my VI.Now when i run VI it start communication with PLC automatically. when  i change Port of PC in which plc connected it shows error and i have to change port setting in modbus IO server property.

 

As i want to make this VI as separate EXE. i need to place this port setting in VI or add some programing so that it can automatically detect system port on which PLC connected

 

Please suggest a detail solution that how can i solve this problem. 

As i am new for labview please explain in detail and with screenshots if possible. 

Tower of Hanoi variant

$
0
0

Good afternoon! 

Does anyone know the source of the variant of Tower of Hanoi attached? I searched it on the Internet and I don't find it anymore...

Adding elements to multiple array elements and concatenating arrays to strings

$
0
0

Hi,

 

I need help in merge multiple arrays while adding other elements to array element. The desired outcome is a string of command based on the concatenated array elements.

 

Please have a look at LV code with desired output as i am not getting the desired output.

 

thanks,

How do I activate or extend the LabView trial version?

$
0
0

Hello,

 

I have problem, my trial version Labview expired and I haven´t got activate key.

I need run Labview tomorrow, because my theses is in Labview. Can someone help me? I need activate labview only for one day. 

Thanks for all tips.

Labview Exercise: Parking Fees

$
0
0

Hello, I'm trying to write a program that calculates the parking fees for customers who parked their cars in a city garage, assuming that no cars are parked longer than 24 hours. I'm having more trouble than I originally thought. Lets say the following is the parking rates for a garage: 0-1 Hours - $ 7.00

1-2 Hours - $ 8.00

2-3 Hours - $ 9.00

3-4 Hours - $10.00

4-5 Hours - $ 12.00

5-6 Hours - $ 14.00

6-7 Hours - $ 35.00*

7-24 Hours - $40.00**

*with validation rate will be reduced to $16

**with validation rate will be reduced to $20 


Digital IO behavior on simulated DAQ?

$
0
0

First experience with creating an using a simulated DAQ to do offline development, i am having an issue with the Digital input card (9375).  I want to monitor (2) channel for DI signals, when i run the example code the channels are actually toggling (T/F).  Not sure why this is doing this, it's actually counting in binary...

 

It would be nice to create code that would allow me to manually change the state of the channels to mock an event and see how the code responds but it's counting and pretty much un-usable.  What am i doing wrong...?

 

 

Export a graph at high quality

$
0
0

Have you any suggestions on how to create a figure with high resolution (DPI) from a graph? 

I observed that exporting to eps, the figure is too large, when I convert it to to a jpg (I am using ghostscript). Se

LabVIEW: Coin Flip Exercise

$
0
0

Hello guys, I need help to write a program to simulate an experiment of flipping a coin a number of times (for example 100 times), and show the number of times getting heads and tails respectively. If the random number is >0.5, you can assume it is one side (for example Head), otherwise is the other side (for example Tail). I have attached my block diagram, and unfortunately Im stuck. Please help

LabView: Calculate sum of positive integers

$
0
0

Hello guys, im trying to do the follow problem "Write a program that asks the user to enter a positive integer n, and calculates the sum of the integers 2 + 4 + 6 + … + 2n and show the results to the screen. Hints: please check the validity of the positive integer n, what if user input a negative number?" Im new to labview and i attached my work. Can anyone tell me if my program is correct if not can you tell me how to fix it. Or if theres a better way to do it.

Source: String Converted Sink: 2D Array of String

$
0
0

I need help converting. My error list shows this

These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required.
The type of the source is string.
The type of the sink is 2D array of
string.

If anyone knows how to convert pls help

TCP connection on windows 10

$
0
0

Hello everyone,

We are using a labview (2015) programm to access a database. It has been working just fine for the pasts months, but I can't have it to work on the new windows 10 (april update) computers. I've reduced the test to a simple TCP open connection which give me error code 1 TCP: Verbindung herstellen. 
From this same computer I can access the database from other softs than labview...

Have you heard about something like this ??

Thank you very much 
Martin

LabVIEW 2017 generate EXE error

$
0
0

I am using LabVIEW 2017 to generate one exe file. But when i open the exe file after genrate successfully, the system prompts crash dialog. And the error report is attched. How should i slove this problem? Thanks a lot.


Switch matrix

$
0
0

Hi ,

Im planning to design a labview panel which will control a video matrix using RS232 communication.

the matrix have 8 inputs and 8 outputs , each input can be routed to only one output. Once the input and the output was chosen in the panel , an apropriate command will be sent through the communication channel to the matrix Chip. Now , im trying to understand how to design such a matrix or just implement such kind of logic , any suggestions ?

 

Thanks in advance.

How to avoid the numeric indicator to be set to zero when case structure is false?

$
0
0

The numeric indicator will be set to zero when case structure is false. I chose "Use Default If Unwired" for the blue hollow dot on the edge of case structure, otherwise error will come out if I didn't do anything thing with the little blue hollow dot. How to avoid the numeric indicator to be set to zero when case structure is false?

forum1.jpgforum2.jpg

Labview DAQ-mx task error

$
0
0

Hi everyone,

Here I have a stepper motor driver card connected to NI-ELVIS II and to a stepper motor trainer via a DB25 connector. My aim is to create a task to send a continous pulse wave to drive the stepper motor. This is done by setting the physical channel of my DAQmx to ctr1 (which is wired to the port on the stepper driver card which sends step signals to the step input of the stepper motor IC. I am tying to set up this channel to generate a pulse train to continuosly drive the stepper motor at a rate of 1Hz. 

 

The issue I cannot seem to resolve is that everytime I go to run this program as I have it here is that I get Error 200077 complaining that my requested value to the idle state input (0 in this case) is invalid. I checked the error online and the help information about this VI and all I can gather is that it takes data only in the form I32. This is what the integer is though. I tried creating an enum with the words "Low" and "High' but I cannot then change my data type to I32 and so I get the same error.

Screenshot (82).pngThanks in advance,

Simon. 

Trigger creation of new TDMS file

$
0
0

Hello,

 

Please , I need to trigger the writing and the creation of new measurement file using a button. So if I press the button I start writing to the file and when I release it the file should be closed. And after, if I press the saving button again it starts saving to a new files.. and so on ...

 

Please any ideas ?  I ll be very grateful Smiley Happy

Thank you in advance,

 

Tanieta.

Start & stop buttons xcontrol

$
0
0

i want to create two button 

1-Start Button :run the current VI 

2-Stop Button : to abort execution

i tryed that with Xcontrol but I had a problem

when the start button is activated I can not do anything

what should i do?

Viewing all 69758 articles
Browse latest View live


Latest Images

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