Make an array of all the devices you intend to use with the event, and feed the array into a single EventCreate vi, and use a single EventExe handler for all the events.You would need to repeat this for each subsequent event of the same type you wish to have. vi to something else and then use those two different subVIs in your program. To get around this you need to copy the offending subVI, then change the name of the cluster object in it from "Event" to something else (your choice), change the name of the. This causes the events in C to output to the same event in LabVIEW. The pointer is identical in the case where two events of the same type are passed from a single function. Implement a simple fix to the events which are causing the problem.Events work similarly to polling in LabVIEW anyway and should not cause substantial performance changes to your application. Stop using events and simply poll the device.There are a few solutions to this issue, either: This problem is a quirk in the way that LabVIEW handles passing events to and from C. In other words, if you open 2 of the same device and have a sensor change event for each one your system can behave unpredictably.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |