From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-01-2013 12:46 PM
hello, I'm new in labview programming and I need help. In my project, I would like to acquire and decode the signal irig b. But I have a problem with a sub vi, in the waveform chart that I added in my vi (see attachment) I should see the waveform of the signal irig, but when I launch the program does not see anything, remains fixed at the value 1, where am I doing wrong?
thanks
Roberta
09-01-2013 01:17 PM
I don't understand your program, but it is full of race conditions. You are writing to PPS twice in the upper sequence and, in parallel (!), you are reading from it and writing to the terminal. The results are unpredictable and depend on what happens first. Most likely the currently FALSE PPS local variable near the bottom is read first and the value sent to the indicator and chart while the sequence toggles the LED, but by that time the stale value has already be written to the chart.
09-01-2013 01:21 PM
You are only updating the chart once. You also have a race condition because of the incorrect method of using local variables.
09-01-2013 01:32 PM
..., where am I doing wrong?thanks
Roberta
Many places. You probably need to go through the getting started videos and the tutorial. You have missed some basic concepts of LabVIEW.
Lets look at some of the problems:
The PPS Indicator value will be True or false depending on whe the read local variable is read. There is no data dependancy between the local read and the two local writes so the value of the indicator CANNOT be determined from the code as written. Basic Dataflow: If all inputs are available the function may run.
2: Miss-use of dynamic datatype:
PPS is a scalar outside any loop structure. Charts maintain a history of scalar values. They can maintain a history of booleans. The merge signal to cast to DDT is not just useless but it hides the data type for no good reason. That dog WILL BITE you when you scale up the application.
3: Missuse of the Enum data type:
Where you cast [0,1,2] to [2,5,8] a Ring control would do that for you.
Seriously, Go through the tutorials. Welcome to LabVIEW!
09-02-2013 04:42 AM - edited 09-02-2013 04:43 AM
thank you all! can you suggest me some tutorials about that can help me?
·
Þ · Jeff Bohrer how do I create a dependency between the local variables written and local read?
09-02-2013 04:46 AM
Those tutorials helped me, maybe they will help you too !
09-02-2013 04:45 PM
@frisk82 wrote:
thank you all! can you suggest me some tutorials about that can help me?
Or if you have a current Service Support Plan (SSP), you can takes LabVIEW Core 1 and Core 2 online for free.Self-Paced Online Training