LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

datasocket event trigger

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 

0 Kudos
Message 1 of 6
(3,224 Views)

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?

Stephen Meserve
National Instruments
0 Kudos
Message 2 of 6
(3,174 Views)

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. Smiley Wink

 

Sometime posting your code helps us to understand what it is you're struggling with.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 3 of 6
(3,172 Views)

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 

0 Kudos
Message 4 of 6
(3,168 Views)

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.

Stephen Meserve
National Instruments
0 Kudos
Message 5 of 6
(3,136 Views)

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 

0 Kudos
Message 6 of 6
(3,117 Views)