11-22-2009 10:17 PM
11-23-2009 07:45 AM
Could you down convert your vi to 8.5 and post again?
I would certainly like to, but LabVIEW will not let me! I keep getting this error... Maybe the 2009 NI_Switch stuff will not downconvert?
I will attach a screen shot of the program in the next reply.
11-23-2009 07:47 AM
This is part of a larger program where I've parsed out the relay setting. If you have eny questions, let me know. This is one of about 100 ways to do it.
11-23-2009 07:54 AM
Thanks for the snapshot.
See n tell how is mine. Still not very rugged. Anyway comments are most welcome!
Similar to yours, nothing in Timeout event.
11-23-2009 08:02 AM - edited 11-23-2009 08:03 AM
parthabe wrote:Thanks for the snapshot.
See n tell how is mine. Still not very rugged. Anyway comments are most welcome!
Similar to yours, nothing in Timeout event.
Looks good to me, although I didn't take the time to figure out your "+20" thing and the relay names, but if it is clicking relays...
Two of the best parts of the NI-Switch method of clicking the relays are the Wait for Debounce and the Get Relay Position-- these are things you'll not get easily using DAQmx to set the relays (not that you are, just FYI). I suggest you use the Get Relay Position as a check, and don't leave the loop until your Positions are what you expect.
11-23-2009 08:25 AM
I was expecting some sort of simulation of NI-SFP!!! (with actual switching action diagrams, like you see in the SFP panel )
You guys managed it with booleans and clusters!!!
11-23-2009 08:29 AM - edited 11-23-2009 08:29 AM
Vsh wrote:I was expecting some sort of simulation of NI-SFP!!! (with actual switching action diagrams, like you see in the SFP panel )
You guys managed it with booleans and clusters!!!
Hey, no frowny faces. Just trying to help.
In my opinion, fancy GUI buttons is a matter of busy work, and my thought was that the focus of the thread was not on GUI.
11-23-2009 05:52 PM
You can poll the mouse button (using Input Device Control VIs) to see if clicked on the SFP close button. If it does, you can programmatically close SFP using Windows API Function Utilities (32-bit) for LabVIEW from NI website. You can call Exit Application.vi twice if necessary.
You can set the SFP as a child window of your front panel. And hide the titlebar, then it will looks like part of your front panel. It's not really inside a Tab. You can't set "Wait until completion=True", or your Tab won't work. You have to catch Tab change event, and show/hide the SFP accordingly.
To integrate an exe (any exe) into LabVIEW seamlessly, you need a little bit Windows programming knowledge. It might takes some time. My G Toolbox ($) can save you time.
George Zou
11-23-2009 10:48 PM
Broken Arrow wrote:
Looks good to me, although I didn't take the time to figure out your "+20" thing and the relay names, but if it is clicking relays...
It is meant for the Ring Itemcount (+0/1 for Off/On).
Broken Arrow wrote:
I suggest you use the Get Relay Position as a check, and don't leave the loop until your Positions are what you expect.
Much thanks for your good suggestion.
11-23-2009 10:51 PM
Vsh wrote:I was expecting some sort of simulation of NI-SFP!!! (with actual switching action diagrams, like you see in the SFP panel )
You guys managed it with booleans and clusters!!!
Vsh, wish to post the snapshots of the NI Switch SFP & my VI itself. You compare & see for yourself. Of course, the Relays tab is still to be coded.