05-08-2009 07:35 PM
Hi,
I am using datasockets to comunicate between PCs/VIs.
One VI has an event structure, which is in a 10ms timed loop. I have followed one example on this forum, which uses the timeout event to trigger the appropriate event with a property node (Value Signal) - but this causes events when I donot want them to occur.
I have also put a datasocket read in the 10ms loop to write to the Value Signal property node, which slows things down a lot and skips triggers/signals, which entirely defeats the purpose of events in the first place.
Are there any (better) ways around this?
Thanks,
Michael
BTW I'm using Labview 7.1.1
05-11-2009 05:32 PM
Hi Michael,
I'm having some trouble understanding what you're trying to accomplish. Could you clarify and also possibly link to the other discussion forum that you referenced?
05-11-2009 05:41 PM
One VI has an event structure, which is in a 10ms timed loop. I have followed one example on this forum, which uses the timeout event to trigger the appropriate event with a property node (Value Signal) - but this causes events when I donot want them to occur.
You have an event structure with a 10ms timeout, and within your timeout you perform a property value (signal) write !? This will generate 100 events a second! No wonder you get events when you don't want them.
Sometime posting your code helps us to understand what it is you're struggling with.
05-11-2009 06:57 PM
Hi,
Thanks for the interest.
Here is the thread I first tried: http://forums.ni.com/ni/board/message?board.id=170&message.id=47862&query.id=228986#M47862
But the timeout event caused problems.
I am trying to trick the Event structure to trigger from an external VI linked by Datasockets, I was using a while/timed to to set the Value Signal Property node which didn't work very smoothly.
Thanks,
Michael
05-12-2009 04:43 PM
Hi Michael,
As Thoric mentioned, you currently have 100 events triggering per second. Is this what you're trying to accomplish? Again, I'm not sure what you're trying to do, so this makes it difficult to help. Thanks.
05-14-2009 05:49 PM
Hi,
I was using a preexisting VI for controling a device on a CANbus, and was using trying to another VI user interface to control an array of CAN devices. I ended up just sending raw CAN commands to the devices for control and used datasockets to provide feedback from the indicators.
Thanks,
Michael