Jump to content

babashari

Members
  • Posts

    3
  • Joined

  • Last visited

LabVIEW Information

  • Version
    LabVIEW 2013
  • Since
    2014

babashari's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks!!!! i start to deal with other issue at this project & i will try this sol ASAP ...
  2. Hi ned sorry for the latency it was weekend Attached Measurement data type definition (.pdf). The DLL input need to be pointer to array of measurements at C implementation it mean that the program reads the array and adjust it by jumping i*sizeof(One Measurement), therefore it needed to pass the exact database to the DLL and not shadow copy of the values. for example my VI 'Show probe dialog.VI' (this function is working well) the function signature has two pointers one to a data destination, second to database to manipulate. Attached pobe dialoge definition & implementation(img)- static bool ShowProbeDialog(ISmart** smartArray, int arrayLength, ProbeDialogParams* pdp, ProbeDialogResult* pdr); At Probe_Dialog.VI data pass to function and labView take care for the pointers issue but in the other case - the measurements is complex struct and i can't make the same thing- create the struct and send it to the function this attached the measurements vi. do you have idea for this??? Measurement.pdf
  3. Hi all I new with labview & i need to take care of LV project at work, the past programmer work was to communicate with our HW during .DLL file {with defined C# function & objects}. my goal is to make this code active (the code is realy good except .dll functions that need to get pointer to struct and not intfloat etc.) I already read the topics: https://decibel.ni.com/content/docs/DOC-9091 http://lavag.org/topic/14528-call-dll/?hl=pointer#entry87090 It deals with related issue, but in this case i need to deliver pointer to struct that already contains data this data already usee by the program and the .dll need to adjust it. the dll functions doesn't return the struct value. { UINT32 BufferReadMeasurements(Measurement* measurementsArray, UINT32 offsetInBuffer, UINT32 numberOfMeasurementsToRead, DWORD timeOutMilliseconds); } in the code he sends instance of the struct with initialization to const values. but the function need to get pointer to real struct . (while i try to run it the program the stuck) 1. someone have an idea how can i do this ? 2. while i try to change VI patterns and insert more patches (want to wire it in different way) i found out that the vi i adjust is seen transparent in its appearance at block diagram, this cause errors in the code, so how can i change the vi pattern without create new errors ? thenks
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.