01-26-2020 10:14 AM
Hi,
I need some help with my labview program.
I want to generate BOLEAN PULSE (TRUE) for each value of for loop. I need this pulse to triger camera.
I tried with nuber to bolean aray, but i need bolean sink value.
See the attachment.
Solved! Go to Solution.
01-26-2020 10:24 AM
Why would you connect the value of your wavelengths to a boolean LED indicator?
You are talking about "sinking a pulse" and also about a camera which I assume is a physical camera. You need to have come connection to the real world. Are you driving a digital output signal? If so, which card and where is the code to do that in your VI? You would need a digital output True for X milliseconds and a digital output back to False.
You can auto-index on the array's tunnel where it enters the For Loop. That will allow you to get rid of the Index Array and also the constant of 5 wired to the N terminal
01-26-2020 10:35 AM
Hi,
thanks for help.
That is just a part of my whole program. I am using LINX and arduino for setting digital output for camera.
Yes I need a digital output True for X milliseconds and a digital output back to False for every iteration of for loop.
Can you please explain this: auto-index on the array's tunnel where it enters the For Loop (maybe you add to my vi)
01-26-2020 10:45 AM
So add the digital output code to do this with DAQmx.
Right click on the tunnel and select Auto-Index.
Look at at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
Learn LabVIEW
01-26-2020 10:58 AM
Auto index is already enabled. I just need to set bolean value to true for 100ms (to triger camera) and then set back to false.
01-26-2020 12:55 PM
No, you don't have auto-index enabled.
And get rid of that inner while loop.
You already have structures in your For Loop for setting the timing.
Put the Arduino "create" stuff before your while loop, and the close stuff after the while loop.
In the For loop, before the digital on and the digital off in the two flat sequence frames that have the time delays. Whether you want On or Off first and which time delay value goes into which sequence frame, I don't know. You'll have to figure that out.
Stop wiring your wavelength numeric value to a boolean array to the digital output. The binary value of your wavelength has absolutely nothing to do with the true/false state of your digital output!
01-26-2020 09:23 PM
Hi Alen,
For reference, this is what an auto-indexing tunnel looks like, and a typical usage.
Hopefully you can imagine how this could be applied to your code to step through your wavelength values.
As a side note, this is a VI snippet (saved in 2019, possibly targeting 2015 although I've heard that can sometimes not work) which you can download and drag onto a block diagram to load in LabVIEW and test yourself.
01-28-2020 12:55 PM
Thanks,
I manage to enable auto indexing.
But I still have problem with setting sink bolean value. How can I set bolean value to TRUE in first time sequence and back to FALSE in second?
01-28-2020 01:14 PM
I think this gets you started on what I think you are trying to achieve. Is not the best way to do it but it gets you started.
02-02-2020 04:29 AM
Thanks! That is what I wanted!