05-17-2012 03:41 PM
Well thanks for the help so far.
Does anyone else have any suggestions?
Thanks,
Yusif
05-18-2012 08:12 AM
Hi Yusif,
What parts of your program are you still having trouble with? Or are you just looking for general suggestions on programming in LabVIEW? Thanks!
Regards,
Kira T
05-18-2012 08:33 AM
Kira, thanks for the reply. Both versions of the VI that I have (single and double loop) do what I need so I guess I should have marked this topic as solved earlier. The minor issue that I am having is that currently both versions require the stop button to either be held for the Wait(ms) time or need to be unlatched after stop. I would appreciate any advice on how to get around the issue but the main question of this thread (how to update channels in real-time) has been resolved.
Thanks,
Yusif Nurizade
05-18-2012 10:32 AM
Hi Yusif,
One thing you could try is to implement what I have done in the attached image. This should allow you to stop the wait rather than having to wait for it to finish executing. Please let me know if this solves the issue or if you are still seeing problems. Thanks!
Regards,
Kira T
05-18-2012 11:31 AM
Kira,
Thank you for posting your example. It seems I have a bigger problem than I realized:
Initially, before adding the real-time channel update, I had the VI working so that if only one channel was selected, there was no switching besides the initialization. This works only when you are using one channel but it goes a long way in terms of saving on the cycle life of the switches. When I was trying to implement the real-time channel update, I worked off the Advanced Scan VI from the driver instead of the modified version that dealth with single channel swiching. I realize it was foolish of me to do it this way but must have selected the original initially and ten just kept toying with it as I was trying to get the real-time channel update to work. Going back to the VI, I thought the two modifications could work together but that is not the case. I sent the past couple of hours trying to add the single channel mod to the real-time channel update VI an vice versa to no success. I keep incurring VISA errors or the instrument locks up in an error or simply nothing happens even though the VI is running.
I've attached the original VI with the single channel modification (b) and two of my failures at adding the real-time channel update (c & d).
I realize this confounds the problem deeper than it was to begin with but I would reallyappreciate help with this. Also, could I keep my questions to this thread or should I start a new one since I marked this one solved?
Thanks again,
Yusif Nurizade
05-18-2012 11:46 AM
Yusif,
Yes, I would suggest placing your new questions on a separate thread. This will allow your post to get more exposure and make it so that other users having similar issues can find your thread easier. It will also be helpful if you could post some screenshots of the error that you are seeing so that we can troubleshoot those. Good luck!
Regards,
Kira T
05-21-2012 10:13 AM
Kira,
Thank you for the advice. I started a new thread on the topic here:
http://forums.ni.com/t5/LabVIEW/Touble-with-real-time-channel-update-and-single-channel/td-p/1997487
Would very much appreciate any help.
Yusif Nurizade