02-24-2009 03:14 PM
Hello,
I would like to be able to programmically update/change the URL for the traces in the activegroup of my NI HyperTrend while the program is running. The reason I want to accomplish this is because the program automatically create a new database then updates the library properties to point to the new database. The NI HyperTrend no longer will plot the current data since the data is no longer logged there. So I need to change the database URL of ITrace2 properties to the new database.
Attached is a bmp file which shows the block diagram of what I think should be how this is done. I get an -2147417851 error of which I don't understand. Please Advise, thank you.
Solved! Go to Solution.
02-25-2009 10:36 AM
ok I would like to use one of my life lines...ummm call a friend or well an application engineer...
Don't mind me, I don't mean to sound rude. I just have had WAY too much coffee...
02-25-2009 12:16 PM
02-25-2009 12:23 PM
Something I found right off the bat that may help:
Try running your main VI and subVI in the User interface thread.
To run a VI in User Interface, go to File>>VI Properties>>Execution and select User Interface for preferred execution system. The default is standard.
02-25-2009 12:25 PM
02-25-2009 12:45 PM
I set the mainVI and subVI to excute in the user interface and got an error.
-2146959355
Server execution failed
in trendViewScrn.vi->testingSubVI.vi
I also tried it in standard for my own exploration.
-2147417851
The server threw an exception.
in trendViewScrn.vi->testingSubVI.vi
02-27-2009 12:27 PM - edited 02-27-2009 12:31 PM
Dan,
sorry for the delay - I can't find much on the error. One suggestion: when you pass the loop enumerator to the "index" parameter, try incrementing it first, in case the index system of the traces is 1-based and not zero-based. Let me know if this makes a difference.
02-27-2009 12:33 PM
02-27-2009 12:42 PM